更名流程-将更名流程走完后,企标计划的名称并没有修改 BUG
This commit is contained in:
+3
-24
@@ -535,30 +535,9 @@ public class WorkFlowController {
|
||||
@PostMapping("/completeTask")
|
||||
public Wrapper<String> completeTaskByUserId( BusMes busMes){
|
||||
Wrapper<String> str = workFlowFeignClient.completeTaskByUserId(busMes);
|
||||
|
||||
EsRevisePlan EsRevisePlan = new EsRevisePlan();
|
||||
String json = busMes.getJson();
|
||||
Map map = JSON.parseObject(json, Map.class);
|
||||
Object esId = map.get("esId");
|
||||
if(esId!=null){
|
||||
Object renameEs = map.get("renameEs");
|
||||
EsRevisePlan.setId(esId.toString());
|
||||
if(renameEs!=null){
|
||||
EsRevisePlan.setEsName(renameEs.toString());
|
||||
}
|
||||
//日志
|
||||
EsRevisePlan selectById = esRevisePlanDao.selectById(esId.toString());
|
||||
HashMap<String, String> mapJson = new HashMap<>();
|
||||
mapJson.put("type","4");
|
||||
mapJson.put("esId",esId.toString());
|
||||
mapJson.put("esName",selectById.getEsName());
|
||||
mapJson.put("renameEs",renameEs.toString());
|
||||
esRevisePlanLogService.addLog(JSON.parseObject(JSON.toJSONString(mapJson)));
|
||||
iEsRevisePlanService.updateById(EsRevisePlan);
|
||||
if(str.getCode() == 500){
|
||||
str.setSuccess(false);
|
||||
}
|
||||
}
|
||||
if(str.getCode() == 500){
|
||||
str.setSuccess(false);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user