|
@ -92,13 +92,12 @@ public class TaskWorkParamRead { |
|
|
private final String SOURCE = "work"; |
|
|
private final String SOURCE = "work"; |
|
|
|
|
|
|
|
|
public int createParamBill(String inComeDate) { |
|
|
public int createParamBill(String inComeDate) { |
|
|
//String inComeDate="2023-11-29";
|
|
|
|
|
|
DcBusiCoderuleConfigDao ruleIdByBusicode = dcBaseCoderuleDefineService.getRuleIdByBusicode(BUSICODE); |
|
|
DcBusiCoderuleConfigDao ruleIdByBusicode = dcBaseCoderuleDefineService.getRuleIdByBusicode(BUSICODE); |
|
|
DcBaseCoderuleDefineDao ruleDao = dcBaseCoderuleDefineService.selectDcBaseCoderuleDefineDaoById(ruleIdByBusicode.getRuleId()); |
|
|
DcBaseCoderuleDefineDao ruleDao = dcBaseCoderuleDefineService.selectDcBaseCoderuleDefineDaoById(ruleIdByBusicode.getRuleId()); |
|
|
DcBusiParamBillMaster billm = new DcBusiParamBillMaster(); |
|
|
DcBusiParamBillMaster billm = new DcBusiParamBillMaster(); |
|
|
String billNo = codeNoGenerater.getCode(ruleDao); |
|
|
String billNo = codeNoGenerater.getCode(ruleDao); |
|
|
if (StringUtils.isNull(billNo)) { |
|
|
if (StringUtils.isNull(billNo)) { |
|
|
billNo = "AD_" + String.valueOf(System.currentTimeMillis()); |
|
|
billNo = "AD_" + System.currentTimeMillis(); |
|
|
} |
|
|
} |
|
|
billm.setBillNo(billNo); |
|
|
billm.setBillNo(billNo); |
|
|
billm.setCreatedBy("robot"); |
|
|
billm.setCreatedBy("robot"); |
|
@ -109,7 +108,6 @@ public class TaskWorkParamRead { |
|
|
billm.setCheckStatus("1"); |
|
|
billm.setCheckStatus("1"); |
|
|
List<DcBusiParamBillSub> billSub = new ArrayList<>(); |
|
|
List<DcBusiParamBillSub> billSub = new ArrayList<>(); |
|
|
DcBusiWorkReadConfig dwrc = new DcBusiWorkReadConfig(); |
|
|
DcBusiWorkReadConfig dwrc = new DcBusiWorkReadConfig(); |
|
|
//dwrc.setAssetCode(assetCode);
|
|
|
|
|
|
dwrc.setGoalSource(SOURCE); |
|
|
dwrc.setGoalSource(SOURCE); |
|
|
List<DcBusiWorkReadConfig> dcBusiWorkReadConfigs = dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigList(dwrc); |
|
|
List<DcBusiWorkReadConfig> dcBusiWorkReadConfigs = dcBusiWorkReadConfigService.selectDcBusiWorkReadConfigList(dwrc); |
|
|
List<String> pcl = dcBusiWorkReadConfigs.parallelStream().filter(o -> StringUtils.isNotEmpty(o.getGoalParamCode())).map(DcBusiWorkReadConfig::getGoalParamCode).collect(Collectors.toList()); |
|
|
List<String> pcl = dcBusiWorkReadConfigs.parallelStream().filter(o -> StringUtils.isNotEmpty(o.getGoalParamCode())).map(DcBusiWorkReadConfig::getGoalParamCode).collect(Collectors.toList()); |
|
|