fix(标准法规入库/变更流程): 翻译问题
This commit is contained in:
+28
-1
@@ -1,6 +1,8 @@
|
||||
package com.jero.modules.activiti.process.fb.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.JSONPath;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.api.dto.message.SendMessageDTO;
|
||||
@@ -29,6 +31,7 @@ import com.jero.modules.laws.common.service.ILawsCommonService;
|
||||
import com.jero.modules.laws.common.util.CurrentUserUtil;
|
||||
import com.jero.modules.laws.standard.entity.LawsEnterpriseStandard;
|
||||
import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
||||
import com.jero.modules.system.service.ISysDictService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.tag.entity.LawsTag;
|
||||
import com.jero.modules.tag.enums.TableNameEnum;
|
||||
@@ -74,6 +77,9 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
@Resource
|
||||
private ISysUserService sysUserService;
|
||||
|
||||
@Resource
|
||||
private ISysDictService dictService;
|
||||
|
||||
/**
|
||||
* @Author: liao
|
||||
* @Date: 2023/11/2 15:43
|
||||
@@ -371,19 +377,40 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
}
|
||||
|
||||
private void toDict(ProcessFbEntryChange processFbEntryChange) {
|
||||
String businessJson = processFbEntryChange.getBusinessJson();
|
||||
String source = processFbEntryChange.getSource();
|
||||
JSONObject jsonObject = JSON.parseObject(businessJson);
|
||||
if ("1".equals(source)){
|
||||
processFbEntryChange.setSourceDictText("国内");
|
||||
// 国内动力类型
|
||||
if (businessJson.contains("dynamic_type")){
|
||||
Object read = JSONPath.read(businessJson, "$.dynamic_type");
|
||||
String text = dictService.queryDictText("POWER_TYPE_DOMESTIC", read.toString());
|
||||
jsonObject.put("dynamic_typeDictText", text);
|
||||
|
||||
}
|
||||
}else {
|
||||
processFbEntryChange.setSourceDictText("海外");
|
||||
// 海外动力类型
|
||||
if (businessJson.contains("dynamic_type")){
|
||||
Object read = JSONPath.read(businessJson, "$.dynamic_type");
|
||||
String text = dictService.queryDictText("POWER_TYPE_DOMESTIC_OVERSEAS", read.toString());
|
||||
jsonObject.put("dynamic_typeDictText", text);
|
||||
}
|
||||
}
|
||||
if ("1".equals(processFbEntryChange.getOperateType())){
|
||||
processFbEntryChange.setOperateTypeDictText("标准法规入库");
|
||||
}else {
|
||||
processFbEntryChange.setOperateTypeDictText("标准法规变更");
|
||||
}
|
||||
// 采标程度
|
||||
if (businessJson.contains("degree_of_bid_acquisition")){
|
||||
Object read = JSONPath.read(businessJson, "$.degree_of_bid_acquisition");
|
||||
String text = dictService.queryDictText("degree_bid_acquisition", read.toString());
|
||||
jsonObject.put("degree_of_bid_acquisitionDictText", text);
|
||||
}
|
||||
processFbEntryChange.setBusinessJson(jsonObject.toJSONString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changeToDraft(ProcessAll processAll) {
|
||||
// 删除业务表数据
|
||||
|
||||
Reference in New Issue
Block a user