政策重点认证事业部 风险项入库
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ public class PolicyWorkFlowController {
|
|||||||
private PolicyWorkFlowService policyWorkFlowService;
|
private PolicyWorkFlowService policyWorkFlowService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 政策征求意见导出
|
* 纳入重点问题管控
|
||||||
*/
|
*/
|
||||||
@PostMapping("/enterIssue")
|
@PostMapping("/enterIssue")
|
||||||
@ApiOperation("纳入重点问题管控")
|
@ApiOperation("纳入重点问题管控")
|
||||||
|
|||||||
+8
-4
@@ -21,9 +21,11 @@ public class PolicyWorkFlowService {
|
|||||||
public boolean enterIssue(String json){
|
public boolean enterIssue(String json){
|
||||||
boolean count=false; //是否成功
|
boolean count=false; //是否成功
|
||||||
JSONObject dataJsonObj = JSONObject.parseObject(json);
|
JSONObject dataJsonObj = JSONObject.parseObject(json);
|
||||||
|
JSONObject jsonData = dataJsonObj.getJSONObject("json");
|
||||||
|
|
||||||
if ("1".equals(dataJsonObj.getString("department"))) {
|
|
||||||
JSONArray dataList = dataJsonObj.getJSONArray("dataList");
|
if ("1".equals( jsonData.getString("feedbackDept"))) {
|
||||||
|
JSONArray dataList = jsonData.getJSONArray("infoTableDatas");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 把json对象转换未实体对象
|
* 把json对象转换未实体对象
|
||||||
@@ -31,11 +33,13 @@ public class PolicyWorkFlowService {
|
|||||||
List<BusinessDeptIssue> data = dataList
|
List<BusinessDeptIssue> data = dataList
|
||||||
.stream()
|
.stream()
|
||||||
.map(jsonObj -> {
|
.map(jsonObj -> {
|
||||||
|
|
||||||
BusinessDeptIssue businessDeptIssue = JSONObject.parseObject(jsonObj.toString(), BusinessDeptIssue.class);
|
BusinessDeptIssue businessDeptIssue = JSONObject.parseObject(jsonObj.toString(), BusinessDeptIssue.class);
|
||||||
businessDeptIssue.setId(UUIDUtils.randomUUID20());
|
businessDeptIssue.setId(UUIDUtils.randomUUID20());
|
||||||
return businessDeptIssue;
|
return businessDeptIssue;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList())
|
||||||
|
.stream()
|
||||||
|
.filter(item->"1".equals(item.getIsRisk()))
|
||||||
|
.collect(Collectors.toList());
|
||||||
count=businessDeptIssueService.saveBatch(data);
|
count=businessDeptIssueService.saveBatch(data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
@@ -85,6 +85,10 @@ public class BusinessDeptIssue {
|
|||||||
@TableField("is_close")
|
@TableField("is_close")
|
||||||
private String isClose;
|
private String isClose;
|
||||||
|
|
||||||
|
@ExcelIgnore
|
||||||
|
@TableField("is_risk")
|
||||||
|
private String isRisk;
|
||||||
|
|
||||||
@ExcelIgnore
|
@ExcelIgnore
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Integer page;
|
private Integer page;
|
||||||
|
|||||||
Reference in New Issue
Block a user