|
@@ -118,7 +118,8 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
public PtlAgreementDispatchVo getAgreementDispatch(PtlAgreementDispatchQuery ptlAgreementDispatchQuery) {
|
|
public PtlAgreementDispatchVo getAgreementDispatch(PtlAgreementDispatchQuery ptlAgreementDispatchQuery) {
|
|
|
log.info("获取协议调度. ptlAgreementDispatchQuery=[{}]", JSONUtil.toJsonStr(ptlAgreementDispatchQuery));
|
|
log.info("获取协议调度. ptlAgreementDispatchQuery=[{}]", JSONUtil.toJsonStr(ptlAgreementDispatchQuery));
|
|
|
List<PtlAgreementDispatch> ptlAgreementDispatches = baseMapper.selectList(new LambdaQueryWrapper<PtlAgreementDispatch>()
|
|
List<PtlAgreementDispatch> ptlAgreementDispatches = baseMapper.selectList(new LambdaQueryWrapper<PtlAgreementDispatch>()
|
|
|
- .eq(PtlAgreementDispatch::getCompanyId, ptlAgreementDispatchQuery.getCompanyId()));
|
|
|
|
|
|
|
+ .eq(PtlAgreementDispatch::getCompanyId, ptlAgreementDispatchQuery.getCompanyId())
|
|
|
|
|
+ .orderByAsc(PtlAgreementDispatch::getCreateTime));
|
|
|
PtlAgreementDispatchVo dispatchVos = new PtlAgreementDispatchVo();
|
|
PtlAgreementDispatchVo dispatchVos = new PtlAgreementDispatchVo();
|
|
|
List<String> dispatchIds = ptlAgreementDispatches.stream().map(PtlAgreementDispatch::getId).collect(Collectors.toList());
|
|
List<String> dispatchIds = ptlAgreementDispatches.stream().map(PtlAgreementDispatch::getId).collect(Collectors.toList());
|
|
|
if (!dispatchIds.isEmpty()) {
|
|
if (!dispatchIds.isEmpty()) {
|
|
@@ -144,8 +145,19 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
int index = 1;
|
|
int index = 1;
|
|
|
// add by lipf, 对协议配置中的字典序号进行转义 2026年5月20日16:43:34
|
|
// add by lipf, 对协议配置中的字典序号进行转义 2026年5月20日16:43:34
|
|
|
List<PtlAgreementUndwrtRulesDictLabal> ptlAgreementUndwrtRulesDictLabals = baseMapper.queryAllDictLabal();
|
|
List<PtlAgreementUndwrtRulesDictLabal> ptlAgreementUndwrtRulesDictLabals = baseMapper.queryAllDictLabal();
|
|
|
|
|
+ ptlAgreementUndwrtRulesDictLabals.forEach(x -> {
|
|
|
|
|
+ if(x.getDictId() == 182 || x.getDictId() == 4 || x.getDictId() == 5){
|
|
|
|
|
+ x.setIdStr(x.getCode());
|
|
|
|
|
+ }else{
|
|
|
|
|
+ x.setIdStr(String.valueOf(x.getId()));
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
Map<String, String> dictLabalId2Name = ptlAgreementUndwrtRulesDictLabals.stream()
|
|
Map<String, String> dictLabalId2Name = ptlAgreementUndwrtRulesDictLabals.stream()
|
|
|
- .collect(Collectors.toMap(PtlAgreementUndwrtRulesDictLabal::getIdStr, PtlAgreementUndwrtRulesDictLabal::getName));
|
|
|
|
|
|
|
+ .collect(Collectors.toMap(
|
|
|
|
|
+ dict -> dict.getDictId() == 182 ? dict.getCode() : dict.getIdStr(),
|
|
|
|
|
+ PtlAgreementUndwrtRulesDictLabal::getName,
|
|
|
|
|
+ (existing, replacement) -> existing
|
|
|
|
|
+ ));
|
|
|
Map<String, PtlAreaLicense> areaLicenseMap = ptlAreaLicenseService.queryAllAreaLicenseMap();
|
|
Map<String, PtlAreaLicense> areaLicenseMap = ptlAreaLicenseService.queryAllAreaLicenseMap();
|
|
|
|
|
|
|
|
Map<String,String> operatorMap = new HashMap<>();
|
|
Map<String,String> operatorMap = new HashMap<>();
|
|
@@ -192,12 +204,14 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
|
|
|
|
|
|
|
|
attrlink.setMaxName(maxName);
|
|
attrlink.setMaxName(maxName);
|
|
|
}
|
|
}
|
|
|
|
|
+ System.out.printf(attrlink.getAttrCode()+"\n");
|
|
|
PtlAgreementUndwrtRulesAttr undwrtRuleAttrByAttrCode = ptlAgreementUndwrtRulesAttrService.getUndwrtRuleAttrByAttrCode(attrlink.getAttrCode());
|
|
PtlAgreementUndwrtRulesAttr undwrtRuleAttrByAttrCode = ptlAgreementUndwrtRulesAttrService.getUndwrtRuleAttrByAttrCode(attrlink.getAttrCode());
|
|
|
if(undwrtRuleAttrByAttrCode != null){
|
|
if(undwrtRuleAttrByAttrCode != null){
|
|
|
attrlink.setAttrCodeName(undwrtRuleAttrByAttrCode.getAttrName());
|
|
attrlink.setAttrCodeName(undwrtRuleAttrByAttrCode.getAttrName());
|
|
|
if(undwrtRuleAttrByAttrCode.getDictId() != null){
|
|
if(undwrtRuleAttrByAttrCode.getDictId() != null){
|
|
|
attrlink.setAttrCodeName(undwrtRuleAttrByAttrCode.getAttrName());
|
|
attrlink.setAttrCodeName(undwrtRuleAttrByAttrCode.getAttrName());
|
|
|
List<PtlAgreementUndwrtRulesDictLabal> dictLabelsByTypeCode = ptlAgreementUndwrtRulesDictLabalService.getDictLabelsByTypeCode(undwrtRuleAttrByAttrCode.getDictId());
|
|
List<PtlAgreementUndwrtRulesDictLabal> dictLabelsByTypeCode = ptlAgreementUndwrtRulesDictLabalService.getDictLabelsByTypeCode(undwrtRuleAttrByAttrCode.getDictId());
|
|
|
|
|
+
|
|
|
PtlAgreementUndwrtRulesDictLabal ptlAgreementUndwrtRulesDictLabal = dictLabelsByTypeCode.stream().filter(x -> x.getCode().equals(attrlink.getMin())).findFirst().orElse(null);
|
|
PtlAgreementUndwrtRulesDictLabal ptlAgreementUndwrtRulesDictLabal = dictLabelsByTypeCode.stream().filter(x -> x.getCode().equals(attrlink.getMin())).findFirst().orElse(null);
|
|
|
if(ptlAgreementUndwrtRulesDictLabal != null){
|
|
if(ptlAgreementUndwrtRulesDictLabal != null){
|
|
|
if(attrlink.getAttrDesc() == null){
|
|
if(attrlink.getAttrDesc() == null){
|