|
@@ -175,8 +175,8 @@ public class TRmBalanceValueServiceImpl extends BaseServiceImpl<TRmBalanceValue,
|
|
|
|
|
|
TRmBalanceValue tv = tRmBalanceValueMapper.selectByPrimaryKey(id);
|
|
|
if(tv!=null){
|
|
|
-
|
|
|
tv.setActualvalue(new BigDecimal(actualvalue));
|
|
|
+
|
|
|
|
|
|
|
|
|
tv.setStdvalue(BigDecimalUtil.mul(zbxs, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
@@ -194,9 +194,17 @@ public class TRmBalanceValueServiceImpl extends BaseServiceImpl<TRmBalanceValue,
|
|
|
tv.setActualvalue(new BigDecimal(actualvalue));
|
|
|
|
|
|
tv.setCorrectvalue(new BigDecimal(0));
|
|
|
-
|
|
|
-
|
|
|
- tv.setApportvalue(null);
|
|
|
+
|
|
|
+
|
|
|
+ HashMap<String,Object> parmas = new HashMap<>();
|
|
|
+ parmas.put("itemid", "'"+itemid+"'");
|
|
|
+ parmas.put("clock",clock);
|
|
|
+ parmas.put("clocke",clock);
|
|
|
+ parmas.put("timegranid", timegranid);
|
|
|
+ List<Map<String, Object>> result = tRmActItemService.getBalanceDataForPage(parmas,1,10).getList();
|
|
|
+ tv.setApportvalue(result!=null && result.size()>0 && result.get(0)!=null ? new BigDecimal(String.valueOf(result.get(0).get("RAV"))):null);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
tv.setStdvalue(BigDecimalUtil.mul(zbxs, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
|