|
|
@@ -918,8 +918,8 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public R stopCollection(Long collectionId,Long operateId) {
|
|
|
- FsUserInformationCollection collection = this.fsUserInformationCollectionMapper.selectFsUserInformationCollectionById(collectionId);
|
|
|
+ public R stopCollection(FsUserInformationCollectionSchedule param, Long operateId) {
|
|
|
+ FsUserInformationCollection collection = this.fsUserInformationCollectionMapper.selectFsUserInformationCollectionById(param.getCollectionId());
|
|
|
if (collection == null) {
|
|
|
return R.error("未找到采集信息");
|
|
|
}
|
|
|
@@ -927,14 +927,27 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
return R.error("用户信息采集已完成,无法终止");
|
|
|
}
|
|
|
//清空订单号
|
|
|
- fsUserInformationCollectionMapper.collectionOderCodeNULL(collectionId);
|
|
|
+ fsUserInformationCollectionMapper.collectionOderCodeNULL(param.getCollectionId());
|
|
|
//清空信息采集状态
|
|
|
FsUserInformationCollection map = new FsUserInformationCollection();
|
|
|
- map.setId(collectionId);
|
|
|
+ map.setId(param.getCollectionId());
|
|
|
map.setUserConfirm(0);
|
|
|
map.setDoctorConfirm(0);
|
|
|
map.setStatus(1);
|
|
|
if(fsUserInformationCollectionMapper.updateFsUserInformationCollection(map) > 0) {
|
|
|
+ //同步采集进度
|
|
|
+ FsUserInformationCollectionSchedule fsUserInformationCollectionSchedule= new FsUserInformationCollectionSchedule();
|
|
|
+ fsUserInformationCollectionSchedule.setId(param.getId());
|
|
|
+ // "用户采集进度"中止时间
|
|
|
+ fsUserInformationCollectionSchedule.setTerminatedTime(DateUtils.getNowDate());
|
|
|
+ // "用户采集进度"中止标识
|
|
|
+ fsUserInformationCollectionSchedule.setStatus(CollectionTaskStatusEnum.TERMINATED.getCode());
|
|
|
+ // "用户采集进度"中止原因
|
|
|
+ fsUserInformationCollectionSchedule.setRemark(param.getRemark());
|
|
|
+ // "用户采集进度"中止操作人员
|
|
|
+ fsUserInformationCollectionSchedule.setTerminatedBy(operateId);
|
|
|
+ scheduleMapper.updateFsUserInformationCollectionSchedule(fsUserInformationCollectionSchedule);
|
|
|
+
|
|
|
return R.ok();
|
|
|
}
|
|
|
return R.error("终止失败");
|