|
|
|
@ -126,7 +126,7 @@ public class CaseServiceImpl implements CaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ResultEntity<HttpStatus> insertCase(String caseInfo, String json, String operator) {
|
|
|
|
|
public ResultEntity<HttpStatus> insertCase(String caseInfo, String json, String operator, String type) {
|
|
|
|
|
Gson gson = new Gson();
|
|
|
|
|
CaseInfo newCase = new CaseInfo();
|
|
|
|
|
try {
|
|
|
|
@ -173,10 +173,8 @@ public class CaseServiceImpl implements CaseService {
|
|
|
|
|
synthesisPlanClientMapper.updateByPrimaryKeySelective(synthesisPlanClient);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String type = newCase.getManageMoneyMattersType();
|
|
|
|
|
//判断是哪种考核点 增加相关表
|
|
|
|
|
ResultEntity resultEntity = addCorrelationTable(type,json,gson,operator);
|
|
|
|
|
ResultEntity resultEntity = addCorrelationTable(type, json, gson, operator);
|
|
|
|
|
return resultEntity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -201,7 +199,7 @@ public class CaseServiceImpl implements CaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//添加或编辑相关类型表
|
|
|
|
|
public ResultEntity addCorrelationTable(String type,String json,Gson gson,String operator){
|
|
|
|
|
public ResultEntity addCorrelationTable(String type, String json, Gson gson, String operator) {
|
|
|
|
|
try {
|
|
|
|
|
if (StringUtils.isNotBlank(json)) {
|
|
|
|
|
if (type.equals("风险测评-风险指标")) {
|
|
|
|
|