fix(标准入库/更改流程): 80628
This commit is contained in:
+73
-1
@@ -39,11 +39,14 @@ import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
||||
import com.jero.modules.laws.standard.service.ILawsOverseasStandardService;
|
||||
import com.jero.modules.laws.standardization.entity.LawsStandardization;
|
||||
import com.jero.modules.laws.standardization.service.ILawsStandardizationService;
|
||||
import com.jero.modules.system.entity.SysDepart;
|
||||
import com.jero.modules.system.service.ISysDepartService;
|
||||
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;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -85,6 +88,9 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
@Resource
|
||||
private ISysUserService sysUserService;
|
||||
|
||||
@Resource
|
||||
private ISysDepartService sysDepartService;
|
||||
|
||||
@Resource
|
||||
private ISysDictService dictService;
|
||||
|
||||
@@ -468,7 +474,18 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
Object read = JSONPath.read(businessJson, "$.dynamic_type");
|
||||
String text = dictService.queryDictText("POWER_TYPE_DOMESTIC", read.toString());
|
||||
jsonObject.put("dynamic_type_dictText", text);
|
||||
|
||||
}
|
||||
// 国内标准类别
|
||||
if (businessJson.contains("standard_class")){
|
||||
Object read = JSONPath.read(businessJson, "$.standard_class");
|
||||
String text = dictService.queryDictText("standard_type", read.toString());
|
||||
jsonObject.put("standard_class_dictText", text);
|
||||
}
|
||||
// 国内适用车型
|
||||
if (businessJson.contains("applicable_vehicle")){
|
||||
Object read = JSONPath.read(businessJson, "$.applicable_vehicle");
|
||||
String text = dictService.queryDictText("APPLICATIONS_DOMESTIC", read.toString());
|
||||
jsonObject.put("applicable_vehicle_dictText", text);
|
||||
}
|
||||
}else {
|
||||
processFbEntryChange.setSource_dictText("海外");
|
||||
@@ -478,6 +495,18 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
String text = dictService.queryDictText("POWER_TYPE_DOMESTIC_OVERSEAS", read.toString());
|
||||
jsonObject.put("dynamic_type_dictText", text);
|
||||
}
|
||||
// 海外标准类别
|
||||
if (businessJson.contains("standard_class")){
|
||||
Object read = JSONPath.read(businessJson, "$.standard_class");
|
||||
String text = dictService.queryDictText("standard_type_overseas", read.toString());
|
||||
jsonObject.put("standard_class_dictText", text);
|
||||
}
|
||||
// 海外适用车型
|
||||
if (businessJson.contains("applicable_vehicle")){
|
||||
Object read = JSONPath.read(businessJson, "$.applicable_vehicle");
|
||||
String text = dictService.queryDictText("APPLICATIONS_OVERSEAS", read.toString());
|
||||
jsonObject.put("applicable_vehicle_dictText", text);
|
||||
}
|
||||
}
|
||||
if ("1".equals(processFbEntryChange.getOperateType())){
|
||||
processFbEntryChange.setOperateType_dictText("标准法规入库");
|
||||
@@ -496,6 +525,43 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
LawsStandardization lawsStandardization = lawsStandardizationService.getById(String.valueOf(read));
|
||||
jsonObject.put("bidding_committee_dictText", !Objects.isNull(lawsStandardization) ? lawsStandardization.getName() : "");
|
||||
}
|
||||
// 标准状态
|
||||
if (businessJson.contains("standard_status")){
|
||||
Object read = JSONPath.read(businessJson, "$.standard_status");
|
||||
String text = dictService.queryDictText("standard_status", read.toString());
|
||||
jsonObject.put("standard_status_dictText", text);
|
||||
}
|
||||
// 标准性质
|
||||
if (businessJson.contains("standard_property")){
|
||||
Object read = JSONPath.read(businessJson, "$.standard_property");
|
||||
String text = dictService.queryDictText("standard_property", read.toString());
|
||||
jsonObject.put("standard_property_dictText", text);
|
||||
}
|
||||
// 标准体系
|
||||
if (businessJson.contains("standard_system")){
|
||||
Object read = JSONPath.read(businessJson, "$.standard_system");
|
||||
String text = dictService.queryDictText("standard_system", read.toString());
|
||||
jsonObject.put("standard_system_dictText", text);
|
||||
}
|
||||
// 责任部门
|
||||
if (businessJson.contains("responsible_department")){
|
||||
Object read = JSONPath.read(businessJson, "$.responsible_department");
|
||||
List<SysDepart> sysDepartList = sysDepartService.listByIds(Arrays.asList(String.valueOf(read.toString()).split(",")));
|
||||
jsonObject.put("responsible_department_dictText", CollectionUtils.isNotEmpty(sysDepartList) ?
|
||||
sysDepartList.stream().map(SysDepart::getDepartName).collect(Collectors.joining(",")) : "");
|
||||
}
|
||||
// 企业参与情况
|
||||
if (businessJson.contains("enterprise_participation")){
|
||||
Object read = JSONPath.read(businessJson, "$.enterprise_participation");
|
||||
String text = dictService.queryDictText("yn", read.toString());
|
||||
jsonObject.put("enterprise_participation_dictText", text);
|
||||
}
|
||||
// 适用认证
|
||||
if (businessJson.contains("applicable_certification")){
|
||||
Object read = JSONPath.read(businessJson, "$.applicable_certification");
|
||||
String text = dictService.queryDictText("applicable_certification", read.toString());
|
||||
jsonObject.put("applicable_certification_dictText", text);
|
||||
}
|
||||
processFbEntryChange.setBusinessJson(jsonObject.toJSONString());
|
||||
}
|
||||
@Override
|
||||
@@ -506,4 +572,10 @@ public class ProcessFbEntryChangeServiceImpl extends ServiceImpl<ProcessFbEntryC
|
||||
new LambdaQueryWrapper<ProcessFbEntryChange>()
|
||||
.eq(ProcessFbEntryChange::getId, processAll.getProjectId()));
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
for (int i = 0; i < 103; i++) {
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user