Commit ccf364cc authored by 朱晨阳's avatar 朱晨阳

添加整改类型

parent 1f5f3c6d
package com.yeejoin.amos.boot.module.hygf.biz.controller; package com.yeejoin.amos.boot.module.hygf.biz.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams; import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.module.hygf.api.Enum.RectificationOrderEnum; import com.yeejoin.amos.boot.module.hygf.api.Enum.RectificationOrderEnum;
...@@ -153,6 +155,16 @@ public class HygfRectificationOrderController extends BaseController { ...@@ -153,6 +155,16 @@ public class HygfRectificationOrderController extends BaseController {
for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) { for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) {
List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong); List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong);
page.getRecords().forEach(e->{ page.getRecords().forEach(e->{
if(e.getRectificationIdea() != null && e.getRectificationIdea().size() > 0) {
List<String> types = new ArrayList<>();
e.getRectificationIdea().forEach(t -> {
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(t));
types.add(jsonObject.getString("type"));
});
e.setRectificationType(String.join(",", types));
}
if (longs.contains(areaId) && e.getRectificationSource().equals("area")){ if (longs.contains(areaId) && e.getRectificationSource().equals("area")){
e.setIsAudit("0"); e.setIsAudit("0");
}else if (longs.contains(engineeringId) && e.getRectificationSource().equals("engineering")){ }else if (longs.contains(engineeringId) && e.getRectificationSource().equals("engineering")){
...@@ -219,9 +231,21 @@ public class HygfRectificationOrderController extends BaseController { ...@@ -219,9 +231,21 @@ public class HygfRectificationOrderController extends BaseController {
} }
Page<HygfRectificationOrder> page = hygfRectificationOrderServiceImpl.queryForHygfRectificationOrderPage(current, size, workOrderPowerStationNodes, peasantHouseholeId,status); Page<HygfRectificationOrder> page = hygfRectificationOrderServiceImpl.queryForHygfRectificationOrderPage(current, size, workOrderPowerStationNodes, peasantHouseholeId,status);
for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) { for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) {
List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong); List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong);
page.getRecords().forEach(e->{ page.getRecords().forEach(e->{
if(e.getRectificationIdea() != null && e.getRectificationIdea().size() > 0) {
List<String> types = new ArrayList<>();
e.getRectificationIdea().forEach(t -> {
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(t));
types.add(jsonObject.getString("type"));
});
e.setRectificationType(String.join(",", types));
}
if (longs.contains(areaId) && e.getRectificationSource().equals("bw-area") &&rectificationSource.contains(e.getRectificationSource())){ if (longs.contains(areaId) && e.getRectificationSource().equals("bw-area") &&rectificationSource.contains(e.getRectificationSource())){
e.setIsAudit("0"); e.setIsAudit("0");
}else if (longs.contains(engineeringId) && e.getRectificationSource().equals("bw-engineering")&& rectificationSource.contains(e.getRectificationSource())){ }else if (longs.contains(engineeringId) && e.getRectificationSource().equals("bw-engineering")&& rectificationSource.contains(e.getRectificationSource())){
...@@ -240,7 +264,6 @@ public class HygfRectificationOrderController extends BaseController { ...@@ -240,7 +264,6 @@ public class HygfRectificationOrderController extends BaseController {
} }
/** /**
* 列表分页查询 * 列表分页查询
* *
...@@ -301,6 +324,16 @@ public class HygfRectificationOrderController extends BaseController { ...@@ -301,6 +324,16 @@ public class HygfRectificationOrderController extends BaseController {
for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) { for (Long aLong : reginParams.getUserModel().getOrgRoleSeqs().keySet()) {
List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong); List<Long> longs = reginParams.getUserModel().getOrgRoleSeqs().get(aLong);
page.getRecords().forEach(e->{ page.getRecords().forEach(e->{
if(e.getRectificationIdea() != null && e.getRectificationIdea().size() > 0) {
List<String> types = new ArrayList<>();
e.getRectificationIdea().forEach(t -> {
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(t));
types.add(jsonObject.getString("type"));
});
e.setRectificationType(String.join(",", types));
}
if (longs.contains(areaId) && e.getRectificationSource().equals("ys-area") && rectificationSource.contains(e.getRectificationSource()) ){ if (longs.contains(areaId) && e.getRectificationSource().equals("ys-area") && rectificationSource.contains(e.getRectificationSource()) ){
e.setIsAudit("0"); e.setIsAudit("0");
}else if (longs.contains(tourongId) && e.getRectificationSource().equals("ys-tourong")&& rectificationSource.contains(e.getRectificationSource())){ }else if (longs.contains(tourongId) && e.getRectificationSource().equals("ys-tourong")&& rectificationSource.contains(e.getRectificationSource())){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment