|
|
@ -38,6 +38,7 @@ import com.elink.esua.epdc.dto.item.form.ItemBackHotlineDTO; |
|
|
|
import com.elink.esua.epdc.dto.item.form.RollBackHotLineFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.item.form.UpdateAppealSendDTO; |
|
|
|
import com.elink.esua.epdc.dto.item.result.CenterData; |
|
|
|
import com.elink.esua.epdc.dto.item.result.HotLineBackResultData; |
|
|
|
import com.elink.esua.epdc.dto.oss.UploadHotLineFormDTO; |
|
|
|
import com.elink.esua.epdc.modules.events.dao.ItemHotlineDao; |
|
|
|
import com.elink.esua.epdc.modules.events.entity.ItemHotlineEntity; |
|
|
@ -146,7 +147,7 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
// 格式化 Date 对象
|
|
|
|
String formattedDate = formatter.format(item.getDjsj()); |
|
|
|
itemHotlineEntity.setSjnr("登记时间:"+formattedDate+"内容:"+item.getSjnr()); |
|
|
|
itemHotlineEntity.setSjnr("登记时间:" + formattedDate + "内容:" + item.getSjnr()); |
|
|
|
// 存入12345表
|
|
|
|
baseDao.insert(itemHotlineEntity); |
|
|
|
// 存入之后 告知市里
|
|
|
@ -179,9 +180,7 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getData(){ |
|
|
|
public String getData() { |
|
|
|
// 获取今天的日期
|
|
|
|
LocalDate today = LocalDate.now(); |
|
|
|
// 初始化一个计数器,用于记录工作日的天数
|
|
|
@ -216,7 +215,7 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
itemHotlineEntity.setBackResult(dto.getCznr()); |
|
|
|
itemHotlineEntity.setBackTime(new Date()); |
|
|
|
baseDao.updateById(itemHotlineEntity); |
|
|
|
RollBackHotLineFromDTO formdto =new RollBackHotLineFromDTO(); |
|
|
|
RollBackHotLineFromDTO formdto = new RollBackHotLineFromDTO(); |
|
|
|
formdto.setSqid(itemHotlineEntity.getSqid()); |
|
|
|
LocalDateTime currentDateTime = LocalDateTime.now(); |
|
|
|
|
|
|
@ -227,10 +226,10 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
formdto.setCznr(dto.getCznr()); |
|
|
|
RollBackHotLineFromDTO.CzrEntity czrEntity = new RollBackHotLineFromDTO.CzrEntity(); |
|
|
|
UserDetail user = SecurityUser.getUser(); |
|
|
|
czrEntity.setId(user.getId()+""); |
|
|
|
czrEntity.setId(user.getId() + ""); |
|
|
|
czrEntity.setXm(user.getRealName()); |
|
|
|
czrEntity.setLxdh(user.getMobile()); |
|
|
|
czrEntity.setSsjgbm(user.getDeptId()+""); |
|
|
|
czrEntity.setSsjgbm(user.getDeptId() + ""); |
|
|
|
czrEntity.setSsjg(user.getDeptName()); |
|
|
|
czrEntity.setSsbmbm(user.getDeptId().toString()); |
|
|
|
czrEntity.setSsbm(user.getDeptName()); |
|
|
@ -261,7 +260,7 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
// 格式化 Date 对象
|
|
|
|
String formattedDate = formatter.format(item.getDjsj()); |
|
|
|
itemHotlineEntity.setSjnr("登记时间:"+formattedDate+ "重办原因:"+item.getOpinion()+"内容:" +item.getSjnr()); |
|
|
|
itemHotlineEntity.setSjnr("登记时间:" + formattedDate + "重办原因:" + item.getOpinion() + "内容:" + item.getSjnr()); |
|
|
|
// 查询下 sqid去库里查一下,没有就当新件,sqid不变,也不能重复
|
|
|
|
// QueryWrapper<ItemHotlineEntity> wrapper = new QueryWrapper<>();
|
|
|
|
// wrapper.eq("sqid", item.getSqid());
|
|
|
@ -270,7 +269,6 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
// ItemHotlineEntity oldEntity = baseDao.selectOne(wrapper);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//注:0办理:原来由别的区市办理,现在由当前区市办理 插入 2:退件不通过,需要继续办理 这个得更新。不能插入
|
|
|
|
//4:办理结果不符合要求,需要重新办理 就是对处理结果不满意的 。插入一个新件出去处理
|
|
|
|
// 改为都插入 等分发的时候在做处理
|
|
|
@ -315,4 +313,24 @@ public class ItemHotlineServiceImpl extends BaseServiceImpl<ItemHotlineDao, Item |
|
|
|
entity.setBackItemResult(dto.getBackItemResult()); |
|
|
|
updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void getBackResult() { |
|
|
|
// 拉取热线最终办理结果
|
|
|
|
List<HotLineBackResultData> hotLineBackResultData = pushToCityGridServiceImpl.hotLineBackResult(); |
|
|
|
UpdateAppealSendDTO dto = new UpdateAppealSendDTO(); |
|
|
|
for (HotLineBackResultData item : hotLineBackResultData) { |
|
|
|
QueryWrapper<ItemHotlineEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(item.getSqid()), "sqid", item.getSqid()); |
|
|
|
ItemHotlineEntity itemHotlineEntity = baseDao.selectOne(wrapper); |
|
|
|
itemHotlineEntity.setCzsj(item.getCzsj()); |
|
|
|
itemHotlineEntity.setCznr(item.getCznr()); |
|
|
|
baseDao.updateById(itemHotlineEntity); |
|
|
|
|
|
|
|
// 设置诉求最终办理结果已接收接口
|
|
|
|
dto.setSqid(item.getSqid()); |
|
|
|
pushToCityGridServiceImpl.updateBackResult(dto); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |