短信回调修改
This commit is contained in:
parent
1b2a4aa596
commit
a3c9ee2354
@ -42,5 +42,5 @@ public class TaskMessageBackEntity extends Model<TaskMessageBackEntity> {
|
|||||||
/**
|
/**
|
||||||
* 主键id集合
|
* 主键id集合
|
||||||
*/
|
*/
|
||||||
private List<Integer> ids;
|
private String ids;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,15 +1,18 @@
|
|||||||
package org.example.service.impl;
|
package org.example.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.example.entity.TaskMessageBackEntity;
|
import org.example.entity.TaskMessageBackEntity;
|
||||||
import org.example.mapper.TaskMessageBackMapper;
|
import org.example.mapper.TaskMessageBackMapper;
|
||||||
import org.example.service.TaskMessageBackService;
|
import org.example.service.TaskMessageBackService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -45,6 +48,15 @@ public class TaskMessageBackServiceImpl extends ServiceImpl<TaskMessageBackMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer updateMessageBackReadState(TaskMessageBackEntity taskMessageBackEntity) {
|
public Integer updateMessageBackReadState(TaskMessageBackEntity taskMessageBackEntity) {
|
||||||
return taskMessageBackMapper.updateMessageBackReadState(taskMessageBackEntity.getIds(), taskMessageBackEntity.getReadState());
|
log.info("开始修改短信回执表-------------------------");
|
||||||
|
List<Integer> list = new ArrayList<>();
|
||||||
|
if (StringUtils.isNotBlank(taskMessageBackEntity.getIds())) {
|
||||||
|
list = JSON.parseArray(taskMessageBackEntity.getIds(), Integer.class);
|
||||||
|
}
|
||||||
|
if (StringUtils.isBlank(taskMessageBackEntity.getIds())) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
log.info("修改短信回执表完成-------------------------");
|
||||||
|
return taskMessageBackMapper.updateMessageBackReadState(list, taskMessageBackEntity.getReadState());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user