|
|
|
@ -109,7 +109,7 @@ public class AppEnforcementRegistrationController extends BaseController { |
|
|
|
@SaIgnore |
|
|
|
@GetMapping("/queryList") |
|
|
|
@ResponseBody |
|
|
|
public R<EnforcementRegistrationVo> queryList(EnforcementRegistrationBo bo, PageQuery pageQuery) { |
|
|
|
public R<EnforcementRegistrationVo> queryList(EnforcementRegistrationBo bo) { |
|
|
|
// dateType本单位 0 全市 1
|
|
|
|
if (Objects.nonNull( LoginHelper.getUserId()) && bo.getWarnType()==0) { |
|
|
|
bo.setDeptId(LoginHelper.getDeptId() == null ? null : LoginHelper.getDeptId()); |
|
|
|
@ -119,17 +119,17 @@ public class AppEnforcementRegistrationController extends BaseController { |
|
|
|
bo.setBureauDeptId(bureauDept.getDeptId()); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询检查总次数
|
|
|
|
List<EnforcementRegistrationVo> listCount = enforcementRegistrationService.selectEnforcementRegistrationList(bo,pageQuery); |
|
|
|
|
|
|
|
List<EnforcementRegistrationVo> list = enforcementRegistrationService.selectEnforcementRegistrationList(bo); |
|
|
|
|
|
|
|
int count = 0; |
|
|
|
if (listCount.size() > 0) { |
|
|
|
count = listCount.stream() |
|
|
|
if (list.size() > 0) { |
|
|
|
count = list.stream() |
|
|
|
.map(item -> item.getNum()) |
|
|
|
.filter(num -> num != null) |
|
|
|
.mapToInt(Integer::intValue) |
|
|
|
.sum(); |
|
|
|
} |
|
|
|
List<EnforcementRegistrationVo> list = enforcementRegistrationService.selectEnforcementRegistrationList(bo, pageQuery); |
|
|
|
|
|
|
|
EnforcementRegistrationVo result = new EnforcementRegistrationVo(); |
|
|
|
result.setListCount(count); |
|
|
|
@ -317,7 +317,7 @@ public class AppEnforcementRegistrationController extends BaseController { |
|
|
|
// 已登记联合检查
|
|
|
|
EnforcementRegistrationBo bo = new EnforcementRegistrationBo(); |
|
|
|
bo.setUnionNo((vo.getUnionNo())); |
|
|
|
regResults = enforcementRegistrationService.selectEnforcementRegistrationList(bo, null); |
|
|
|
regResults = enforcementRegistrationService.selectEnforcementRegistrationList(bo); |
|
|
|
// 预约未登记的 (预约没要联合检查了)
|
|
|
|
EnterpriseLawEnforcementBo lawRarams = new EnterpriseLawEnforcementBo(); |
|
|
|
lawRarams.setUniteCheck(vo.getUniteCheck()); |
|
|
|
|