|
@@ -29,6 +29,7 @@ import com.customs.cq.datacenter.business.entity.request.dangercategory.ReqCreat
|
|
import com.customs.cq.datacenter.business.entity.request.dangercategory.ReqModifyDangerCategory;
|
|
import com.customs.cq.datacenter.business.entity.request.dangercategory.ReqModifyDangerCategory;
|
|
import com.customs.cq.datacenter.business.entity.search.SearchDangerCategory;
|
|
import com.customs.cq.datacenter.business.entity.search.SearchDangerCategory;
|
|
import com.customs.cq.datacenter.business.mapper.impl.DangerCategoryMapperImpl;
|
|
import com.customs.cq.datacenter.business.mapper.impl.DangerCategoryMapperImpl;
|
|
|
|
+import com.customs.cq.datacenter.business.mapper.impl.DangerCheckFormMapperImpl;
|
|
import com.customs.cq.datacenter.common.ExecutedResult;
|
|
import com.customs.cq.datacenter.common.ExecutedResult;
|
|
import com.customs.cq.datacenter.common.PagerResult;
|
|
import com.customs.cq.datacenter.common.PagerResult;
|
|
import com.customs.cq.datacenter.common.core.domain.model.LoginUser;
|
|
import com.customs.cq.datacenter.common.core.domain.model.LoginUser;
|
|
@@ -56,6 +57,8 @@ import java.util.Objects;
|
|
public class DangerCategoryService extends BasicService {
|
|
public class DangerCategoryService extends BasicService {
|
|
@Autowired
|
|
@Autowired
|
|
private DangerCategoryMapperImpl dao;
|
|
private DangerCategoryMapperImpl dao;
|
|
|
|
+ @Autowired
|
|
|
|
+ private DangerCheckFormMapperImpl checkFormMapper;
|
|
|
|
|
|
public ExecutedResult<Long> create(ReqCreateDangerCategory request) {
|
|
public ExecutedResult<Long> create(ReqCreateDangerCategory request) {
|
|
// 转换po
|
|
// 转换po
|
|
@@ -101,6 +104,10 @@ public class DangerCategoryService extends BasicService {
|
|
if (result != 1) {
|
|
if (result != 1) {
|
|
return ExecutedResult.failed("编辑[隐患类别]失败。");
|
|
return ExecutedResult.failed("编辑[隐患类别]失败。");
|
|
}
|
|
}
|
|
|
|
+ // 更新隐患检查表的检查频率
|
|
|
|
+ ThreadPoolUtil.getDefaultPool().execute(() -> {
|
|
|
|
+ checkFormMapper.updateCheckCycle(request.getId(), request.getCheckCycle());
|
|
|
|
+ });
|
|
return ExecutedResult.success();
|
|
return ExecutedResult.success();
|
|
}
|
|
}
|
|
|
|
|