|
|
|
@ -18,6 +18,7 @@ import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.ui.ModelMap; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.time.Instant; |
|
|
|
import java.time.LocalDate; |
|
|
|
import java.time.ZoneId; |
|
|
|
@ -196,9 +197,18 @@ public class AppEnforcementRegistrationController extends BaseController |
|
|
|
UserBean userByUserId = userApi.getUserByUserId(enforcementRegistration.getUserId()); |
|
|
|
enforcementRegistration.setDeptId(userByUserId == null ? null : userByUserId.getDeptId()); |
|
|
|
} |
|
|
|
//查询检查总次数
|
|
|
|
List<EnforcementRegistration> registrations = enforcementRegistrationService.selectEnforcementRegistrationListNew(enforcementRegistration); |
|
|
|
int count = 0; |
|
|
|
if (registrations.size() >0) { |
|
|
|
count = registrations.stream().map(item -> Integer.valueOf(item.getNum())).reduce(0, Integer::sum); |
|
|
|
} |
|
|
|
//查询列表
|
|
|
|
startPage(); |
|
|
|
List<EnforcementRegistration> list = enforcementRegistrationService.selectEnforcementRegistrationListNew(enforcementRegistration); |
|
|
|
return getDataTable(list); |
|
|
|
TableDataInfo dataTable = getDataTable(list); |
|
|
|
dataTable.setMsg(count); |
|
|
|
return dataTable; |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/queryByEpId") |
|
|
|
|