更名流程-将更名流程走完后,企标计划的名称并没有修改 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;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -70,9 +70,9 @@ public class EsRevisePlanLogServiceImpl extends ServiceImpl<EsRevisePlanLogDao,
|
||||
case "4":
|
||||
//更名
|
||||
String renameEs = (String) qbfsForm.get("renameEs");
|
||||
if(!esName.equals(renameEs)) {
|
||||
//if(!esName.equals(renameEs)) {
|
||||
msg = msg + "修改了《" + esName + "》 , “企标名称”由“" + esName + "”改为“" + renameEs + "”;";
|
||||
}
|
||||
//}
|
||||
break;
|
||||
}
|
||||
if (ObjectUtils.isNotEmpty(esId)&&ObjectUtils.isEmpty(esId1)&&ObjectUtils.isEmpty(esId2)) {
|
||||
|
||||
Reference in New Issue
Block a user