|
@@ -8,7 +8,6 @@ import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsPageReqVO;
|
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsRespVO;
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsRespVO;
|
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsSaveReqVO;
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsSaveReqVO;
|
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsUpdateGroupVO;
|
|
import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPointsUpdateGroupVO;
|
|
|
-import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopDO;
|
|
|
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopGroupDO;
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopGroupDO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopPointsDO;
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopPointsDO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.mysql.sop.SopPointsMapper;
|
|
import cn.iocoder.yudao.module.iscs.dal.mysql.sop.SopPointsMapper;
|
|
@@ -69,20 +68,8 @@ public class SopPointsServiceImpl extends ServiceImpl<SopPointsMapper, SopPoints
|
|
|
if (!ids.isEmpty()) {
|
|
if (!ids.isEmpty()) {
|
|
|
// 校验存在
|
|
// 校验存在
|
|
|
List<SopPointsDO> sopPointsDOS = validateSopPointsExists(ids);
|
|
List<SopPointsDO> sopPointsDOS = validateSopPointsExists(ids);
|
|
|
- SopDO byId = sopService.getById(sopPointsDOS.get(0).getSopId());
|
|
|
|
|
// 删除
|
|
// 删除
|
|
|
sopPointsMapper.physicalDeleteByIds(ids);
|
|
sopPointsMapper.physicalDeleteByIds(ids);
|
|
|
- // 校验sop生效有没有影响
|
|
|
|
|
- // 如果一开始是生效的,检验修改以后是否还生效
|
|
|
|
|
- if (byId.getSopStatus().equals("1")) {
|
|
|
|
|
- try {
|
|
|
|
|
- sopService.sopEffectiveRules(byId.getId());
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- sopService.update(Wrappers.<SopDO>lambdaUpdate()
|
|
|
|
|
- .eq(SopDO::getId, byId.getId())
|
|
|
|
|
- .set(SopDO::getSopStatus, "0"));
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|