Commit 75b5a751 by 高晓磊

散客预警是否通知人员,修改为True&&超采预警记录字段拿错了

parent 64bba6ca
......@@ -78,7 +78,7 @@ public class RetailInfoServiceImpl implements RetailInfoService {
if (warnSetting != null) {
BaseBusinessWarn warn = warningService.createWarn(warnSetting.getSettingId());
warn.setWarningCalculate(new RetailInfoBuyCountWarningCalculate(retailInfoName, idCard, station, selectBuyCountByIdCard(idCard, station)));
warn.warn(false);
warn.warn(true);
} else {
setWarningSettingEntity(newKobject, uuid, RetailInfoConstant.RETAIL_INFO_WARN_BUY_COUNT, RetailInfoConstant.RETAIL_INFO_BUY_COUNT_WARNING_CALCULATOR,templateCount.getMax(),false,true);
}
......@@ -120,7 +120,7 @@ public class RetailInfoServiceImpl implements RetailInfoService {
List<KObject> allByStationId = warehouseUserService.getAllByStationId(UUID.fromString(stationId));
warnSettingEntity.setPersonnel(allByStationId.stream().map(a -> a.getString("id")).toArray(String[]::new));
warnSettingEntity.setWarnCalculator(warnCalculator);
warningService.insertWarnSettingToIsNotice(warnSettingEntity,false);
warningService.insertWarnSettingToIsNotice(warnSettingEntity,true);
return warnSettingEntity;
}
......
......@@ -49,7 +49,7 @@ public class SandWarningExeProcessor implements DataProcessor {
sandAreaName = byId.getString("sandMiningAreaName");
shipName="-";
regionalCompanyName=byId.get("regionalCompany").getString("name");
row.put("detail", warnSetting.getMax());
row.put("detail", row.get("actualValue"));
}else if(SandMiningAreaConstant.SAND_SHIP_WARN_BILL_TYPE.equals(billType)){
KObject sandMining = sandMiningService.getById(billId);
......@@ -57,7 +57,7 @@ public class SandWarningExeProcessor implements DataProcessor {
shipName=sandMining.get("ship").getString("shipName");
regionalCompanyName=sandMining.get("regionalCompany").getString("name");
row.put("detail", row.get("target").toString());
row.put("detail", row.get("-").toString());
}
row.put("sandAreaName", sandAreaName);
row.put("shipName", shipName);
......
......@@ -111,7 +111,7 @@
</m:field>
<m:field>
<m:name>min</m:name>
<m:title>实际</m:title>
<m:title>最少</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
......@@ -119,6 +119,17 @@
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>actualValue</m:name>
<m:title>实际值</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>warnState</m:name>
<m:title>状态</m:title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment