|
|
|
@ -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); |
|
|
|
@ -137,6 +137,28 @@ public class AppEnforcementRegistrationController extends BaseController { |
|
|
|
return R.ok(result); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 执法端-查询执法记录-当前企业 |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@SaIgnore |
|
|
|
@GetMapping("/queryByEpId") |
|
|
|
public R<List<EnforcementRegistrationVo>> queryByEpId(EnforcementRegistrationBo bo) |
|
|
|
{ |
|
|
|
if (Objects.nonNull( LoginHelper.getUserId()) && bo.getWarnType()==0) { |
|
|
|
bo.setDeptId(LoginHelper.getDeptId() == null ? null : LoginHelper.getDeptId()); |
|
|
|
|
|
|
|
SysDeptVo bureauDept = sysDeptService.iterationDeptParentToBureau(LoginHelper.getDeptId()); |
|
|
|
if (bureauDept != null) { |
|
|
|
bo.setBureauDeptId(bureauDept.getDeptId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
List<EnforcementRegistrationVo> list = enforcementRegistrationService.selectEnforcementRegistrationList(bo); |
|
|
|
return R.ok(list); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 修改保存执法端-执法登记 |
|
|
|
*/ |
|
|
|
@ -317,7 +339,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()); |
|
|
|
|