|
@@ -643,6 +643,19 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @Override
|
|
|
|
+ public List<Czrk> getAllCzrkRegionId(String s) {
|
|
|
|
+ return czrkMapper.getAllCzrkRegionId(s);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<Czrk> getAllCzrk(Czrk czrk) {
|
|
|
|
+ setAgeScope(czrk);
|
|
|
|
+ List<Czrk> czrkList = czrkMapper.getAllCzrk(czrk);
|
|
|
|
+ packAddr(czrkList);
|
|
|
|
+ return czrkList;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Czrk getById(Long id) {
|
|
public Czrk getById(Long id) {
|
|
if (isEmpty(id)) {
|
|
if (isEmpty(id)) {
|
|
@@ -1010,6 +1023,9 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
|
|
|
|
String startTime = DateUtils.getTodayStartStr();
|
|
String startTime = DateUtils.getTodayStartStr();
|
|
String endTime = DateUtils.getTodayEndStr();
|
|
String endTime = DateUtils.getTodayEndStr();
|
|
|
|
+
|
|
|
|
+ Timestamp s = Timestamp.valueOf(startTime);
|
|
|
|
+ Timestamp e = Timestamp.valueOf(endTime);
|
|
Long deptId = sysUser.getDeptId();
|
|
Long deptId = sysUser.getDeptId();
|
|
|
|
|
|
// 市领导 todo 此处不应该写死
|
|
// 市领导 todo 此处不应该写死
|
|
@@ -1043,7 +1059,78 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
}
|
|
}
|
|
result.put("cun", isEmpty(cunDepts) ? 0 : cunDepts.size());
|
|
result.put("cun", isEmpty(cunDepts) ? 0 : cunDepts.size());
|
|
|
|
|
|
- List<Long> deptIdList = null;
|
|
|
|
|
|
+ //查找潜山市户籍人口总数
|
|
|
|
+ List<Czrk> czrkList = czrkMapper.getAllCzrkRegionId("340882000000");
|
|
|
|
+ if(czrkList==null){
|
|
|
|
+ czrkList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //潜山市户籍人口总数
|
|
|
|
+ int hjzrs = czrkList.size();
|
|
|
|
+
|
|
|
|
+ //潜山市 户籍人口今日新增
|
|
|
|
+ int hjxz = 0;
|
|
|
|
+ //潜山市 户籍人口今日减少
|
|
|
|
+ int hjjs = 0;
|
|
|
|
+
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (Czrk czrk : czrkList) {
|
|
|
|
+ if("Y".equals(czrk.getIsDel())){
|
|
|
|
+ hjzrs--;
|
|
|
|
+ }
|
|
|
|
+ //判断是否是在今天操作的人员信息
|
|
|
|
+ if(s.before(czrk.getCreateTime()) && czrk.getCreateTime().before(e)){
|
|
|
|
+ if("Y".equals(czrk.getIsDel())){
|
|
|
|
+ hjjs++;
|
|
|
|
+ }else{
|
|
|
|
+ hjxz++;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //潜山市总人数
|
|
|
|
+ result.put("hjzrs", hjzrs);
|
|
|
|
+ //潜山市新增
|
|
|
|
+ result.put("hjxz", hjxz);
|
|
|
|
+ //潜山市减少
|
|
|
|
+ result.put("hjjs", hjjs);
|
|
|
|
+ result.put("hjbfb", NumberUtils.percent(hjzrs, hjzrs));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //查找潜山市常驻人口信息
|
|
|
|
+ List<CzrkJzdz> czrkJzdzList = czrkJzdzService.selectCzrkJzdzListByRegionId("340882000000");
|
|
|
|
+ if(czrkJzdzList==null){
|
|
|
|
+ czrkJzdzList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //潜山市居住人口总数
|
|
|
|
+ int czzrs = czrkJzdzList.size();
|
|
|
|
+
|
|
|
|
+ //潜山市居住人口今日新增
|
|
|
|
+ int czxz = 0;
|
|
|
|
+ //潜山市居住人口今日减少
|
|
|
|
+ int czjs = 0;
|
|
|
|
+
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (CzrkJzdz czrkJzdz : czrkJzdzList) {
|
|
|
|
+ if("N".equals(czrkJzdz.getStatus())){
|
|
|
|
+ czzrs--;
|
|
|
|
+ }
|
|
|
|
+ //判断是否是在今天操作的人员信息
|
|
|
|
+ if(s.before(czrkJzdz.getCreateTime()) && czrkJzdz.getCreateTime().before(e)){
|
|
|
|
+ if("N".equals(czrkJzdz.getStatus())){
|
|
|
|
+ czjs++;
|
|
|
|
+ }else{
|
|
|
|
+ czxz++;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //潜山市总人数
|
|
|
|
+ result.put("czzrs", czzrs);
|
|
|
|
+ //潜山市新增
|
|
|
|
+ result.put("czxz", czxz);
|
|
|
|
+ //潜山市减少
|
|
|
|
+ result.put("czjs", czjs);
|
|
|
|
+ result.put("czbfb", NumberUtils.percent(czzrs, czzrs));
|
|
|
|
+
|
|
|
|
+ /*List<Long> deptIdList = null;
|
|
int zrs = czrkMapper.countAll(); // 总人数
|
|
int zrs = czrkMapper.countAll(); // 总人数
|
|
int hjzrs = czrkMapper.countHj1(deptIdList); // 该镇户籍人口总数
|
|
int hjzrs = czrkMapper.countHj1(deptIdList); // 该镇户籍人口总数
|
|
result.put("hjzrs", hjzrs);
|
|
result.put("hjzrs", hjzrs);
|
|
@@ -1059,13 +1146,14 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
int czjs = czrkMapper.countByCzJs1(startTime, endTime, deptIdList); // 该镇 常住人口今日减少
|
|
int czjs = czrkMapper.countByCzJs1(startTime, endTime, deptIdList); // 该镇 常住人口今日减少
|
|
result.put("czxz", czxz);
|
|
result.put("czxz", czxz);
|
|
result.put("czjs", czjs);
|
|
result.put("czjs", czjs);
|
|
- result.put("czbfb", NumberUtils.percent(czzrs, zrs));
|
|
|
|
|
|
+ result.put("czbfb", NumberUtils.percent(czzrs, zrs));*/
|
|
|
|
|
|
// 以各个镇为单位单独处理 townsDepts
|
|
// 以各个镇为单位单独处理 townsDepts
|
|
ArrayList<JSONObject> towsDataList = new ArrayList<>(20);
|
|
ArrayList<JSONObject> towsDataList = new ArrayList<>(20);
|
|
for (SysDept townsDept : townsDepts) {
|
|
for (SysDept townsDept : townsDepts) {
|
|
JSONObject townsResult = new JSONObject(16);
|
|
JSONObject townsResult = new JSONObject(16);
|
|
- townSts(townsResult, townsDept.getId(), townsDept.getDeptName(), false);
|
|
|
|
|
|
+ ///townSts(townsResult, townsDept.getId(), townsDept.getDeptName(), false);
|
|
|
|
+ townSts(townsResult, townsDept, czrkList, czrkJzdzList,hjzrs, czzrs);
|
|
towsDataList.add(townsResult);
|
|
towsDataList.add(townsResult);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1084,7 +1172,36 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
}
|
|
}
|
|
|
|
|
|
ThreadPoolService.execute(() -> {
|
|
ThreadPoolService.execute(() -> {
|
|
- townSts(result, deptId, deptName, true);
|
|
|
|
|
|
+
|
|
|
|
+ //查找潜山市户籍人口总数
|
|
|
|
+ List<Czrk> czrkList = czrkMapper.getAllCzrkRegionId("340882000000");
|
|
|
|
+ if(czrkList==null){
|
|
|
|
+ czrkList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //潜山市户籍人口总数
|
|
|
|
+ int hjzrs = czrkList.size();
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (Czrk czrk : czrkList) {
|
|
|
|
+ if("Y".equals(czrk.getIsDel())){
|
|
|
|
+ hjzrs--;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //查找潜山市常驻人口信息
|
|
|
|
+ List<CzrkJzdz> czrkJzdzList = czrkJzdzService.selectCzrkJzdzListByRegionId("340882000000");
|
|
|
|
+ if(czrkJzdzList==null){
|
|
|
|
+ czrkJzdzList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //潜山市居住人口总数
|
|
|
|
+ int czzrs = czrkJzdzList.size();
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (CzrkJzdz czrkJzdz : czrkJzdzList) {
|
|
|
|
+ if("N".equals(czrkJzdz.getStatus())){
|
|
|
|
+ czzrs--;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ townSts(result, sysUser.getDept(), czrkList, czrkJzdzList,hjzrs, czzrs);
|
|
// redisService.setCacheObject(packRedisKey("town:" + deptId), result, 1L, TimeUnit.DAYS);
|
|
// redisService.setCacheObject(packRedisKey("town:" + deptId), result, 1L, TimeUnit.DAYS);
|
|
setIntoRedis(packRedisKey("town:" + deptId), result);
|
|
setIntoRedis(packRedisKey("town:" + deptId), result);
|
|
});
|
|
});
|
|
@@ -1098,6 +1215,9 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
}
|
|
}
|
|
|
|
|
|
ThreadPoolService.execute(() -> {
|
|
ThreadPoolService.execute(() -> {
|
|
|
|
+ String areaId = sysUser.getDept().getAreaId();
|
|
|
|
+
|
|
|
|
+
|
|
List<SysDept> depts = remoteDeptService.listChildrenDepts(deptId);
|
|
List<SysDept> depts = remoteDeptService.listChildrenDepts(deptId);
|
|
result.put("dqdw", deptName);
|
|
result.put("dqdw", deptName);
|
|
|
|
|
|
@@ -1127,11 +1247,14 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
- private void townSts(JSONObject result, Long deptId, String deptName, boolean percent) {
|
|
|
|
|
|
+ private void townSts(JSONObject result, SysDept sysDept, List<Czrk> czrkList, List<CzrkJzdz> czrkJzdzList ,int shjzrs, int sczzrs) {
|
|
String startTime = DateUtils.getTodayStartStr();
|
|
String startTime = DateUtils.getTodayStartStr();
|
|
String endTime = DateUtils.getTodayEndStr();
|
|
String endTime = DateUtils.getTodayEndStr();
|
|
Timestamp s = Timestamp.valueOf(startTime);
|
|
Timestamp s = Timestamp.valueOf(startTime);
|
|
Timestamp e = Timestamp.valueOf(endTime);
|
|
Timestamp e = Timestamp.valueOf(endTime);
|
|
|
|
+ Long deptId = sysDept.getId();
|
|
|
|
+ String deptName = sysDept.getDeptName();
|
|
|
|
+ String areaId = sysDept.getAreaId();
|
|
// 乡镇以下的所有部门
|
|
// 乡镇以下的所有部门
|
|
List<SysDept> depts = remoteDeptService.listChildrenDepts(deptId);
|
|
List<SysDept> depts = remoteDeptService.listChildrenDepts(deptId);
|
|
List<SysDept> cunDepts = new ArrayList<>(16);
|
|
List<SysDept> cunDepts = new ArrayList<>(16);
|
|
@@ -1155,6 +1278,153 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
result.put("zu", isEmpty(zuDept) ? 0 : zuDept.size());
|
|
result.put("zu", isEmpty(zuDept) ? 0 : zuDept.size());
|
|
|
|
|
|
/** **/
|
|
/** **/
|
|
|
|
+ /*int zrs = 0; // 总人数
|
|
|
|
+ if (BooleanUtils.isTrue(percent)) {
|
|
|
|
+ zrs = czrkMapper.countAll();
|
|
|
|
+ }*/
|
|
|
|
+
|
|
|
|
+ if(czrkList==null){
|
|
|
|
+ czrkList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //该镇户籍人口总数
|
|
|
|
+ int hjzrs = 0;
|
|
|
|
+
|
|
|
|
+ //该镇 户籍人口今日新增
|
|
|
|
+ int hjxz = 0;
|
|
|
|
+ //该镇 户籍人口今日减少
|
|
|
|
+ int hjjs = 0;
|
|
|
|
+
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (Czrk czrk : czrkList) {
|
|
|
|
+ if(!(czrk.getVillageTownsId() == null) && !(czrk.getVillageTownsId().longValue() == 0) && String.valueOf(czrk.getVillageTownsId()).equals(areaId)){
|
|
|
|
+ if("N".equals(czrk.getIsDel())){
|
|
|
|
+ hjzrs++;
|
|
|
|
+ }
|
|
|
|
+ //判断是否是在今天操作的人员信息
|
|
|
|
+ if(s.before(czrk.getCreateTime()) && czrk.getCreateTime().before(e)){
|
|
|
|
+ if("Y".equals(czrk.getIsDel())){
|
|
|
|
+ hjjs++;
|
|
|
|
+ }else{
|
|
|
|
+ hjxz++;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ result.put("hjzrs", hjzrs);
|
|
|
|
+ result.put("hjxz", hjxz);
|
|
|
|
+ result.put("hjjs", hjjs);
|
|
|
|
+ result.put("hjbfb", NumberUtils.percent(hjzrs, shjzrs));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(czrkJzdzList==null){
|
|
|
|
+ czrkJzdzList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ //该镇户籍人口总数
|
|
|
|
+ int czzrs = 0;
|
|
|
|
+
|
|
|
|
+ //该镇 户籍人口今日新增
|
|
|
|
+ int czxz = 0;
|
|
|
|
+ //该镇 户籍人口今日减少
|
|
|
|
+ int czjs = 0;
|
|
|
|
+
|
|
|
|
+ //循环所有人判断当前总人数,该镇 户籍人口今日新增,该镇 户籍人口今日减少
|
|
|
|
+ for (CzrkJzdz czrkJzdz : czrkJzdzList) {
|
|
|
|
+ if(StringUtils.isNotEmpty(czrkJzdz.getTownId()) && czrkJzdz.getTownId().equals(areaId)){
|
|
|
|
+ if("Y".equals(czrkJzdz.getStatus())){
|
|
|
|
+ czzrs++;
|
|
|
|
+ }
|
|
|
|
+ //判断是否是在今天操作的人员信息
|
|
|
|
+ if(s.before(czrkJzdz.getCreateTime()) && czrkJzdz.getCreateTime().before(e)){
|
|
|
|
+ if("N".equals(czrkJzdz.getStatus())){
|
|
|
|
+ czjs++;
|
|
|
|
+ }else{
|
|
|
|
+ czxz++;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ result.put("czzrs", czzrs);
|
|
|
|
+ result.put("czxz", czxz);
|
|
|
|
+ result.put("czjs", czjs);
|
|
|
|
+ result.put("czbfb", NumberUtils.percent(czzrs, sczzrs));
|
|
|
|
+
|
|
|
|
+ /*int czzrs = czrkMapper.countCz1(deptIdList); // 该镇常住人口总数
|
|
|
|
+ result.put("czzrs", czzrs);
|
|
|
|
+ int czxz = czrkMapper.countByCzXz1(startTime, endTime, deptIdList); // 该镇 常住人口今日新增
|
|
|
|
+ int czjs = czrkMapper.countByCzJs1(startTime, endTime, deptIdList); // 该镇 常住人口今日减少
|
|
|
|
+ result.put("czxz", czxz);
|
|
|
|
+ result.put("czjs", czjs);
|
|
|
|
+ result.put("czbfb", NumberUtils.percent(czzrs, zrs));*/
|
|
|
|
+
|
|
|
|
+ result.put("zhen", deptName);
|
|
|
|
+ /** **/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 常住人口信息
|
|
|
|
+// int type = 4; // 乡镇
|
|
|
|
+// int czzrs = czrkMapper.countCzrk(type, areaId); // 常住人口
|
|
|
|
+// result.put("czzrs", czzrs);
|
|
|
|
+//
|
|
|
|
+// int zrs = 0;
|
|
|
|
+// // 常住人口占总人口的百分比
|
|
|
|
+// if (BooleanUtils.isTrue(percent)) {
|
|
|
|
+// // 查全部
|
|
|
|
+// zrs = czrkMapper.countCzrk(type, areaId);
|
|
|
|
+// String czbfb = NumberUtils.percent(czzrs, zrs);
|
|
|
|
+// result.put("czbfb", czbfb);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+//// type = 4;
|
|
|
|
+// int czxz = czrkMapper.countByCzXz(startTime, endTime, type, areaId);
|
|
|
|
+// int czjs = czrkMapper.countByCzJs(startTime, endTime, type, areaId);
|
|
|
|
+// result.put("czxz", czxz);
|
|
|
|
+// result.put("czjs", czjs);
|
|
|
|
+//
|
|
|
|
+// result.put("zhen", deptName);
|
|
|
|
+//
|
|
|
|
+// // 户籍人口信息
|
|
|
|
+// int hjxz = czrkMapper.countByHjXz(startTime, endTime, type, areaId); // 新增
|
|
|
|
+// int hjjs = czrkMapper.countByHjJs(startTime, endTime, type, areaId);// 减少
|
|
|
|
+// result.put("hjxz", hjxz);
|
|
|
|
+// result.put("hjjs", hjjs);
|
|
|
|
+//
|
|
|
|
+// // 户籍总人数
|
|
|
|
+// int hjzrs = czrkMapper.countHj(startTime, endTime, type, areaId);
|
|
|
|
+//// int hjzrs= isEmpty(hjzrsList) ? 0 : hjzrsList.size();
|
|
|
|
+// result.put("hjzrs", hjzrs);
|
|
|
|
+// String hjbfb = NumberUtils.percent(hjzrs, zrs);
|
|
|
|
+// result.put("hjbfb", hjbfb);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /*private void townSts(JSONObject result, Long deptId, String deptName, boolean percent) {
|
|
|
|
+ String startTime = DateUtils.getTodayStartStr();
|
|
|
|
+ String endTime = DateUtils.getTodayEndStr();
|
|
|
|
+ Timestamp s = Timestamp.valueOf(startTime);
|
|
|
|
+ Timestamp e = Timestamp.valueOf(endTime);
|
|
|
|
+ // 乡镇以下的所有部门
|
|
|
|
+ List<SysDept> depts = remoteDeptService.listChildrenDepts(deptId);
|
|
|
|
+ List<SysDept> cunDepts = new ArrayList<>(16);
|
|
|
|
+ for (SysDept dept : depts) {
|
|
|
|
+ if (isEmpty(dept.getParentId())) continue;
|
|
|
|
+ if (deptId.equals(dept.getParentId())) {
|
|
|
|
+ cunDepts.add(dept);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ result.put("cun", isEmpty(cunDepts) ? 0 : cunDepts.size());
|
|
|
|
+
|
|
|
|
+ List<SysDept> zuDept = new ArrayList<>(16);
|
|
|
|
+ for (SysDept cunDept : cunDepts) {
|
|
|
|
+ for (SysDept dept : depts) {
|
|
|
|
+ if (cunDept.getId().equals(dept.getParentId())) {
|
|
|
|
+ zuDept.add(dept);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ result.put("zu", isEmpty(zuDept) ? 0 : zuDept.size());
|
|
|
|
+
|
|
|
|
+ *//** **//*
|
|
int zrs = 0; // 总人数
|
|
int zrs = 0; // 总人数
|
|
if (BooleanUtils.isTrue(percent)) {
|
|
if (BooleanUtils.isTrue(percent)) {
|
|
zrs = czrkMapper.countAll();
|
|
zrs = czrkMapper.countAll();
|
|
@@ -1193,14 +1463,14 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
result.put("hjjs", hjjs);
|
|
result.put("hjjs", hjjs);
|
|
result.put("hjbfb", NumberUtils.percent(hjzrs, zrs));
|
|
result.put("hjbfb", NumberUtils.percent(hjzrs, zrs));
|
|
|
|
|
|
- /*List<Long> deptIdList = map(depts, SysDept::getId);
|
|
|
|
|
|
+ *//*List<Long> deptIdList = map(depts, SysDept::getId);
|
|
int hjzrs = czrkMapper.countHj1(deptIdList); // 该镇户籍人口总数
|
|
int hjzrs = czrkMapper.countHj1(deptIdList); // 该镇户籍人口总数
|
|
result.put("hjzrs", hjzrs);
|
|
result.put("hjzrs", hjzrs);
|
|
int hjxz = czrkMapper.countByHjXz1(startTime, endTime, deptIdList); // 该镇 户籍人口今日新增
|
|
int hjxz = czrkMapper.countByHjXz1(startTime, endTime, deptIdList); // 该镇 户籍人口今日新增
|
|
result.put("hjxz", hjxz);
|
|
result.put("hjxz", hjxz);
|
|
int hjjs = czrkMapper.countByHjJs1(startTime, endTime, deptIdList); // 该镇 户籍人口今日减少
|
|
int hjjs = czrkMapper.countByHjJs1(startTime, endTime, deptIdList); // 该镇 户籍人口今日减少
|
|
result.put("hjjs", hjjs);
|
|
result.put("hjjs", hjjs);
|
|
- result.put("hjbfb", NumberUtils.percent(hjzrs, zrs));*/
|
|
|
|
|
|
+ result.put("hjbfb", NumberUtils.percent(hjzrs, zrs));*//*
|
|
|
|
|
|
|
|
|
|
List<CzrkJzdz> czrkJzdzList = czrkJzdzService.selectCzrkJzdzListByDeptId(deptIdList);
|
|
List<CzrkJzdz> czrkJzdzList = czrkJzdzService.selectCzrkJzdzListByDeptId(deptIdList);
|
|
@@ -1234,16 +1504,16 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
result.put("czjs", czjs);
|
|
result.put("czjs", czjs);
|
|
result.put("czbfb", NumberUtils.percent(czzrs, zrs));
|
|
result.put("czbfb", NumberUtils.percent(czzrs, zrs));
|
|
|
|
|
|
- /*int czzrs = czrkMapper.countCz1(deptIdList); // 该镇常住人口总数
|
|
|
|
|
|
+ *//*int czzrs = czrkMapper.countCz1(deptIdList); // 该镇常住人口总数
|
|
result.put("czzrs", czzrs);
|
|
result.put("czzrs", czzrs);
|
|
int czxz = czrkMapper.countByCzXz1(startTime, endTime, deptIdList); // 该镇 常住人口今日新增
|
|
int czxz = czrkMapper.countByCzXz1(startTime, endTime, deptIdList); // 该镇 常住人口今日新增
|
|
int czjs = czrkMapper.countByCzJs1(startTime, endTime, deptIdList); // 该镇 常住人口今日减少
|
|
int czjs = czrkMapper.countByCzJs1(startTime, endTime, deptIdList); // 该镇 常住人口今日减少
|
|
result.put("czxz", czxz);
|
|
result.put("czxz", czxz);
|
|
result.put("czjs", czjs);
|
|
result.put("czjs", czjs);
|
|
- result.put("czbfb", NumberUtils.percent(czzrs, zrs));*/
|
|
|
|
|
|
+ result.put("czbfb", NumberUtils.percent(czzrs, zrs));*//*
|
|
|
|
|
|
result.put("zhen", deptName);
|
|
result.put("zhen", deptName);
|
|
- /** **/
|
|
|
|
|
|
+ *//** **//*
|
|
|
|
|
|
|
|
|
|
// 常住人口信息
|
|
// 常住人口信息
|
|
@@ -1280,7 +1550,7 @@ public class CzrkServiceImpl implements ICzrkService {
|
|
// result.put("hjzrs", hjzrs);
|
|
// result.put("hjzrs", hjzrs);
|
|
// String hjbfb = NumberUtils.percent(hjzrs, zrs);
|
|
// String hjbfb = NumberUtils.percent(hjzrs, zrs);
|
|
// result.put("hjbfb", hjbfb);
|
|
// result.put("hjbfb", hjbfb);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public JSONObject hjczLine() {
|
|
public JSONObject hjczLine() {
|