|
@@ -845,6 +845,29 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
return vo;
|
|
return vo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public R stopCollection(Long collectionId,Long operateId) {
|
|
|
|
|
+ FsUserInformationCollection collection = this.fsUserInformationCollectionMapper.selectFsUserInformationCollectionById(collectionId);
|
|
|
|
|
+ if (collection == null) {
|
|
|
|
|
+ return R.error("未找到采集信息");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (collection.getStatus() == 2 && collection.getUserConfirm2() == 1) {
|
|
|
|
|
+ return R.error("用户信息采集已完成,无法终止");
|
|
|
|
|
+ }
|
|
|
|
|
+ //清空订单号
|
|
|
|
|
+ fsUserInformationCollectionMapper.collectionOderCodeNULL(collectionId);
|
|
|
|
|
+ //清空信息采集状态
|
|
|
|
|
+ FsUserInformationCollection map = new FsUserInformationCollection();
|
|
|
|
|
+ map.setId(collectionId);
|
|
|
|
|
+ map.setUserConfirm(0);
|
|
|
|
|
+ map.setDoctorConfirm(0);
|
|
|
|
|
+ map.setStatus(1);
|
|
|
|
|
+ if(fsUserInformationCollectionMapper.updateFsUserInformationCollection(map) > 0) {
|
|
|
|
|
+ return R.ok();
|
|
|
|
|
+ }
|
|
|
|
|
+ return R.error("终止失败");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private List<AnswerVO> getAnswerVOs(List<AnswerVO> target,List<AnswerVO> source) {
|
|
private List<AnswerVO> getAnswerVOs(List<AnswerVO> target,List<AnswerVO> source) {
|
|
|
target.addAll(source);
|
|
target.addAll(source);
|
|
|
return target.stream()
|
|
return target.stream()
|