|
@@ -48,6 +48,7 @@ import com.jtgh.yjpt.controller.BaseController;
|
|
|
import com.jtgh.yjpt.controller.sgalgl.PoiUtils;
|
|
|
import com.jtgh.yjpt.dao.yjgl.zdwxyfb.CgDao;
|
|
|
import com.jtgh.yjpt.entity.BaseEntity;
|
|
|
+import com.jtgh.yjpt.entity.check.DcEntity;
|
|
|
import com.jtgh.yjpt.entity.check.ZcyhEntity;
|
|
|
import com.jtgh.yjpt.entity.common.AccessoryEntity;
|
|
|
import com.jtgh.yjpt.entity.gkgq.GqEntity;
|
|
@@ -59,6 +60,7 @@ import com.jtgh.yjpt.entity.yjgl.zdwxyfb.CgsyEntity;
|
|
|
import com.jtgh.yjpt.entity.yjgl.zdwxyfb.CgztEntity;
|
|
|
import com.jtgh.yjpt.entity.yjgl.zdwxyfb.ZbhjjbqkEntity;
|
|
|
import com.jtgh.yjpt.entity.zysqbp.ZysqbpEntity;
|
|
|
+import com.jtgh.yjpt.service.check.DcService;
|
|
|
import com.jtgh.yjpt.service.check.ZcyhService;
|
|
|
import com.jtgh.yjpt.service.common.AccessoryService;
|
|
|
import com.jtgh.yjpt.service.gkgq.GqService;
|
|
@@ -100,6 +102,8 @@ public class CgController extends BaseController {
|
|
|
private ZcyhService zcyhService;
|
|
|
@Autowired
|
|
|
private ZysqbpService zysqbpService;
|
|
|
+ @Autowired
|
|
|
+ private DcService dcService;
|
|
|
|
|
|
|
|
|
@Log(Type.QUERY)
|
|
@@ -661,7 +665,7 @@ public class CgController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取隐患分页列表
|
|
|
+// * 获取自查隐患分页列表
|
|
|
* @param pageRequest
|
|
|
* @param entity
|
|
|
* @return
|
|
@@ -680,6 +684,27 @@ public class CgController extends BaseController {
|
|
|
return createBusinessContext(page);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+// * 获取督查隐患分页列表
|
|
|
+ * @param pageRequest
|
|
|
+ * @param entity
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public BusinessContext listDcYh(SinglePageRequest pageRequest,CgEntity entity) {
|
|
|
+ List<PredicateModel> filterList = new ArrayList<PredicateModel>();
|
|
|
+ // 所属储罐
|
|
|
+ addNotEmptyModel(filterList, "cg", entity.getId(), Operator.EQ);
|
|
|
+ // 隐患区域-罐区
|
|
|
+ addNotEmptyModel(filterList, "yhqy", "2", Operator.EQ);
|
|
|
+ addNotEmptyModel(filterList, "recordStatus",
|
|
|
+ BaseEntity.RECORD_STATE_DELETE, Operator.NEQ);
|
|
|
+ Specification<DcEntity> spec = SpecificationCreater
|
|
|
+ .searchByPredicateModels(filterList);
|
|
|
+ Page<DcEntity> page = dcService.findAll(spec, pageRequest);
|
|
|
+ return createBusinessContext(page);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取作业分页列表
|
|
|
* @param pageRequest
|