|
@@ -57,13 +57,13 @@ public class BaseVisitingMidServiceImpl extends ServiceImpl<BaseVisitingMidMappe
|
|
Integer count = midMapper.selectCount(queryWrapper);
|
|
Integer count = midMapper.selectCount(queryWrapper);
|
|
if (0 == count) {
|
|
if (0 == count) {
|
|
midMapper.updateById(baseVisitingMid);
|
|
midMapper.updateById(baseVisitingMid);
|
|
- QueryWrapper<BaseWashoutPoint> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
- queryWrapper1.eq("mid_id", baseVisitingMid.getId());
|
|
|
|
- BaseWashoutPoint washoutPoint = pointMapper.selectOne(queryWrapper1);
|
|
|
|
- if (ObjectUtil.isNotEmpty(washoutPoint)) {
|
|
|
|
- washoutPoint.setMidName(baseVisitingMid.getVisitingName());
|
|
|
|
- pointMapper.updateById(washoutPoint);
|
|
|
|
- }
|
|
|
|
|
|
+// QueryWrapper<BaseWashoutPoint> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
+// queryWrapper1.eq("mid_id", baseVisitingMid.getId());
|
|
|
|
+// BaseWashoutPoint washoutPoint = pointMapper.selectOne(queryWrapper1);
|
|
|
|
+// if (ObjectUtil.isNotEmpty(washoutPoint)) {
|
|
|
|
+// washoutPoint.setMidName(baseVisitingMid.getVisitingName());
|
|
|
|
+// pointMapper.updateById(washoutPoint);
|
|
|
|
+// }
|
|
return new Result(ResultCode.SUCCESS);
|
|
return new Result(ResultCode.SUCCESS);
|
|
} else {
|
|
} else {
|
|
return new Result(10001,"同类型的流程名称已存在!",false);
|
|
return new Result(10001,"同类型的流程名称已存在!",false);
|