Browse Source

修改配置文件

develop
bobol 10 months ago
parent
commit
52c913fe44
  1. 2
      lzbi-admin/src/main/resources/application-test.yml
  2. 4
      lzbi-module/src/main/java/com/lzbi/task/TaskWorkParamRead.java

2
lzbi-admin/src/main/resources/application-test.yml

@ -147,7 +147,7 @@ wechat:
goal-server: goal-server:
# iot平台服务地址 # iot平台服务地址
iot: http://10.10.10.56:9010 iot: http://10.10.10.56:9010
magic: http://localhost:9012/magic/api magic: http://10.10.10.56:9012/magic/api
# IOT服务接口 # IOT服务接口
iot-server-api: iot-server-api:

4
lzbi-module/src/main/java/com/lzbi/task/TaskWorkParamRead.java

@ -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());

Loading…
Cancel
Save