|
@@ -72,14 +72,14 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
|
|
|
@Override
|
|
|
public List<Map<String, Object>> getDate6121ForPage(HashMap<String, Object> parmas, Integer pageNum,
|
|
|
- Integer pageSize) {
|
|
|
+ Integer pageSize) {
|
|
|
List<Map<String, Object>> rows = tRmActValueMapper.getDate6121(parmas);
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<Map<String, Object>> getDate6122ForPage(HashMap<String, Object> parmas, Integer pageNum,
|
|
|
- Integer pageSize) {
|
|
|
+ Integer pageSize) {
|
|
|
List<Map<String, Object>> rows = tRmActValueMapper.getDate6122(parmas);
|
|
|
return rows;
|
|
|
}
|
|
@@ -105,11 +105,12 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
@Override
|
|
|
public void StateTimegranidforDay() {
|
|
|
List<TRmActItem> tRmActItemsDay = tRmActItemService.getforsj("DAY");
|
|
|
- this.getTRmActValueByFormula(tRmActItemsDay, "2021-11-05", "DAY");
|
|
|
- this.getMonthRmActValue(tRmActItemsDay);
|
|
|
- this.getYearRmActValue(tRmActItemsDay);
|
|
|
+ this.getTRmActValueByFormula(tRmActItemsDay, DateTypeEnum.getMethod("yesterday").getDate(), "DAY");
|
|
|
+ this.getMonthRmActValue(tRmActItemsDay);
|
|
|
+ this.getYearRmActValue(tRmActItemsDay);
|
|
|
logger.info("供需实绩粒度为天定时任务结束......");
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 最小粒度为月的定时任务
|
|
|
*/
|
|
@@ -152,7 +153,7 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
|
|
|
/**
|
|
|
* 计算累计值(月时间粒度的计算值为当月日累计值)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param itemid 项目ID
|
|
|
* @param clock 累计值来源时间
|
|
|
* @param timegranid 累计值来源时间粒度
|
|
@@ -172,34 +173,34 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
|
|
|
/**
|
|
|
* 通过公式,实绩项目数据录入(Timegranid为最小时间粒度时候用该方法)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param tRmActItems 实绩项目
|
|
|
* @param clock 时间
|
|
|
* @param Timegranid 时间粒度
|
|
|
*/
|
|
|
public void getTRmActValueByFormula(List<TRmActItem> tRmActItems,String clock,String Timegranid) {
|
|
|
for (TRmActItem tRmActItem : tRmActItems) {
|
|
|
- HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
- id.put("clock", clock);
|
|
|
- id.put("timegranid", Timegranid);
|
|
|
- id.put("itemid", tRmActItem.getItemid());
|
|
|
- // 数据是否已存在
|
|
|
- TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
- if(t!=null){
|
|
|
- logger.error("原数据已存在:" + clock + ",itemid:"+ tRmActItem.getItemid());
|
|
|
- continue;
|
|
|
- }
|
|
|
- Short digits = tRmActItem.getDigits() == null ? 2 : tRmActItem.getDigits();
|
|
|
+ HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
+ id.put("clock", clock);
|
|
|
+ id.put("timegranid", Timegranid);
|
|
|
+ id.put("itemid", tRmActItem.getItemid());
|
|
|
+ // 数据是否已存在
|
|
|
+ TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
+ if(t!=null){
|
|
|
+ logger.error("原数据已存在:" + clock + ",itemid:"+ tRmActItem.getItemid());
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ Short digits = tRmActItem.getDigits() == null ? 2 : tRmActItem.getDigits();
|
|
|
// 折标系数
|
|
|
Double zbxs = formulaService.getValByItemid(tRmActItem.getEnergyid(),Timegranid, clock, 0);
|
|
|
if (zbxs==null){
|
|
|
zbxs=0.0;
|
|
|
}
|
|
|
Double actualvalue = formulaService.getValByItemid(tRmActItem.getItemid(), Timegranid, clock, 0);
|
|
|
- // if(actualvalue<0){
|
|
|
- // actualvalue=0.0;
|
|
|
- // logger.info("id为"+tRmActItem.getItemid()+"计算错误");
|
|
|
- // }
|
|
|
+ // if(actualvalue<0){
|
|
|
+ // actualvalue=0.0;
|
|
|
+ // logger.info("id为"+tRmActItem.getItemid()+"计算错误");
|
|
|
+ // }
|
|
|
TRmActValue tRmActValue = new TRmActValue();
|
|
|
tRmActValue.setItemid(tRmActItem.getItemid());
|
|
|
tRmActValue.setClock(clock);
|
|
@@ -241,25 +242,25 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
* @param tRmActItems 项目
|
|
|
*/
|
|
|
public void getMonthRmActValue(List<TRmActItem> tRmActItems) {
|
|
|
- if(DateTypeEnum.getMethod("dm").getDate().equals("21")){
|
|
|
+ if(DateTypeEnum.getMethod("dm").getDate().equals("1")){
|
|
|
for (TRmActItem tRmActItem : tRmActItems) {
|
|
|
- HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
- id.put("clock", "2021-09");
|
|
|
- id.put("timegranid", "MONTH");
|
|
|
- id.put("itemid", tRmActItem.getItemid());
|
|
|
- // 数据是否已存在
|
|
|
- TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
- if(t!=null){
|
|
|
- logger.error("原数据已存在:" + DateTypeEnum.getMethod("lastMonth").getDate() + ",itemid:"+ tRmActItem.getItemid());
|
|
|
- continue;
|
|
|
- }
|
|
|
- Short digits = tRmActItem.getDigits() == null ? 2 : tRmActItem.getDigits();
|
|
|
- TRmActValue MonthtRmActValue = new TRmActValue();
|
|
|
+ HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
+ id.put("clock", DateTypeEnum.getMethod("lastMonth").getDate());
|
|
|
+ id.put("timegranid", "MONTH");
|
|
|
+ id.put("itemid", tRmActItem.getItemid());
|
|
|
+ // 数据是否已存在
|
|
|
+ TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
+ if(t!=null){
|
|
|
+ logger.error("原数据已存在:" + DateTypeEnum.getMethod("lastMonth").getDate() + ",itemid:"+ tRmActItem.getItemid());
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ Short digits = tRmActItem.getDigits() == null ? 2 : tRmActItem.getDigits();
|
|
|
+ TRmActValue MonthtRmActValue = new TRmActValue();
|
|
|
MonthtRmActValue.setItemid(tRmActItem.getItemid());
|
|
|
- MonthtRmActValue.setClock("2021-09");
|
|
|
+ MonthtRmActValue.setClock(DateTypeEnum.getMethod("lastMonth").getDate());
|
|
|
MonthtRmActValue.setTimegranid("MONTH");
|
|
|
//获取计算值(上月数据累加)
|
|
|
- Double MonthActualvalue = this.getSumvalue(tRmActItem.getItemid(),"2021-11","DAY");
|
|
|
+ Double MonthActualvalue = this.getSumvalue(tRmActItem.getItemid(),DateTypeEnum.getMethod("lastMonth").getDate(),"DAY");
|
|
|
// if(MonthActualvalue<0){
|
|
|
// MonthActualvalue=0.0;
|
|
|
// logger.info("id为"+tRmActItem.getItemid()+"计算错误");
|
|
@@ -307,23 +308,23 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
|
|
|
/**
|
|
|
* 年粒度数据录入(月数据累加)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param tRmActItems
|
|
|
*/
|
|
|
public void getYearRmActValue(List<TRmActItem> tRmActItems) {
|
|
|
if(DateTypeEnum.getMethod("dy").getDate().equals("1")){
|
|
|
for (TRmActItem tRmActItem : tRmActItems) {
|
|
|
- HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
- id.put("clock", DateTypeEnum.getMethod("lastYear").getDate());
|
|
|
- id.put("timegranid", "YEAR");
|
|
|
- id.put("itemid", tRmActItem.getItemid());
|
|
|
- // 数据是否已存在
|
|
|
- TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
- if(t!=null){
|
|
|
- logger.error("原数据已存在:" + DateTypeEnum.getMethod("lastYear").getDate() + ",itemid:"+ tRmActItem.getItemid());
|
|
|
- continue;
|
|
|
- }
|
|
|
- TRmActValue YeartRmActValue = new TRmActValue();
|
|
|
+ HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
+ id.put("clock", DateTypeEnum.getMethod("lastYear").getDate());
|
|
|
+ id.put("timegranid", "YEAR");
|
|
|
+ id.put("itemid", tRmActItem.getItemid());
|
|
|
+ // 数据是否已存在
|
|
|
+ TRmActValue t = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
+ if(t!=null){
|
|
|
+ logger.error("原数据已存在:" + DateTypeEnum.getMethod("lastYear").getDate() + ",itemid:"+ tRmActItem.getItemid());
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ TRmActValue YeartRmActValue = new TRmActValue();
|
|
|
//年累计
|
|
|
YeartRmActValue.setItemid(tRmActItem.getItemid());
|
|
|
YeartRmActValue.setClock(DateTypeEnum.getMethod("lastYear").getDate());
|
|
@@ -355,14 +356,14 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- /**
|
|
|
- * 每日数据统计(实绩定时任务、计划定时任务,根据项目生成日、月、年粒度数据)
|
|
|
- */
|
|
|
- public void statDataforDay() {
|
|
|
- //获取实绩项目
|
|
|
+ @Override
|
|
|
+ /**
|
|
|
+ * 每日数据统计(实绩定时任务、计划定时任务,根据项目生成日、月、年粒度数据)
|
|
|
+ */
|
|
|
+ public void statDataforDay() {
|
|
|
+ //获取实绩项目
|
|
|
List<TRmActItem> rs = tRmActItemService.getitems("R");
|
|
|
-
|
|
|
+
|
|
|
Calendar c = Calendar.getInstance();
|
|
|
c.add(Calendar.DAY_OF_YEAR, -1); // 减1天昨天
|
|
|
String clockd = new SimpleDateFormat("yyyy-MM-dd").format(c.getTime());
|
|
@@ -374,61 +375,61 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
String clocky = new SimpleDateFormat("yyyy").format(c.getTime());
|
|
|
c.add(Calendar.YEAR, 1); // 回到现在
|
|
|
// 生成昨日数据
|
|
|
- for (TRmActItem tRmActItem : rs) {
|
|
|
- if(tRmActItem.getMintimegranid().equalsIgnoreCase("DAY")) {
|
|
|
- this.restatData(tRmActItem.getItemid(), clockd, "DAY", "系统");
|
|
|
- }
|
|
|
- }
|
|
|
- // 每月前5天生成上月数据
|
|
|
- if(c.get(Calendar.DAY_OF_MONTH) <= 5){
|
|
|
- for (TRmActItem tRmActItem : rs) {
|
|
|
- this.restatData(tRmActItem.getItemid(), clockm, "MONTH", "系统");
|
|
|
- }
|
|
|
- }
|
|
|
- // 每年前5天生成去年数据
|
|
|
- if(c.get(Calendar.DAY_OF_YEAR) <= 5){
|
|
|
- for (TRmActItem tRmActItem : rs) {
|
|
|
- this.restatData(tRmActItem.getItemid(), clocky, "YEAR", "系统");
|
|
|
- }
|
|
|
- }
|
|
|
- tRmPlanValueService.state();
|
|
|
- }
|
|
|
+ for (TRmActItem tRmActItem : rs) {
|
|
|
+ if(tRmActItem.getMintimegranid().equalsIgnoreCase("DAY")) {
|
|
|
+ this.restatData(tRmActItem.getItemid(), clockd, "DAY", "系统");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 每月前5天生成上月数据
|
|
|
+ if(c.get(Calendar.DAY_OF_MONTH) <= 5){
|
|
|
+ for (TRmActItem tRmActItem : rs) {
|
|
|
+ this.restatData(tRmActItem.getItemid(), clockm, "MONTH", "系统");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 每年前5天生成去年数据
|
|
|
+ if(c.get(Calendar.DAY_OF_YEAR) <= 5){
|
|
|
+ for (TRmActItem tRmActItem : rs) {
|
|
|
+ this.restatData(tRmActItem.getItemid(), clocky, "YEAR", "系统");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ tRmPlanValueService.state();
|
|
|
+ }
|
|
|
|
|
|
- @Override
|
|
|
- public String restatData(String itemid, String clock, String timegranid, String opuser) {
|
|
|
- if(!itemid.endsWith("R")){
|
|
|
- return "项目编号错误";
|
|
|
- }
|
|
|
- TRmActItem t = tRmActItemService.getById(itemid);
|
|
|
- if(t!=null){
|
|
|
- Short digits = t.getDigits() == null ? 2 : t.getDigits();
|
|
|
- Short digits2 = digits < 2 ? 2 : digits; // 单耗精度最少为2
|
|
|
- HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
- id.put("clock", clock);
|
|
|
- id.put("timegranid", timegranid);
|
|
|
- id.put("itemid", itemid);
|
|
|
+ @Override
|
|
|
+ public String restatData(String itemid, String clock, String timegranid, String opuser) {
|
|
|
+ if(!itemid.endsWith("R")){
|
|
|
+ return "项目编号错误";
|
|
|
+ }
|
|
|
+ TRmActItem t = tRmActItemService.getById(itemid);
|
|
|
+ if(t!=null){
|
|
|
+ Short digits = t.getDigits() == null ? 2 : t.getDigits();
|
|
|
+ Short digits2 = digits < 2 ? 2 : digits; // 单耗精度最少为2
|
|
|
+ HashMap<String, Object> id = new HashMap<String, Object>();
|
|
|
+ id.put("clock", clock);
|
|
|
+ id.put("timegranid", timegranid);
|
|
|
+ id.put("itemid", itemid);
|
|
|
// 计算值
|
|
|
Double actualvalue = 0d;
|
|
|
if(!TimegranidUtils.getTimegranidList(t.getMintimegranid()).contains(timegranid.toUpperCase())){
|
|
|
- return "时间粒度错误";
|
|
|
+ return "时间粒度错误";
|
|
|
}else if(t.getMintimegranid().equalsIgnoreCase(timegranid)){
|
|
|
- actualvalue = formulaService.getValByItemid(itemid, timegranid, clock, 0);
|
|
|
- }else{
|
|
|
- // 实绩数据-高粒度公式计算还是累加?当前使用累加。有公式为 比例类型(除法)的需要改成公式计算。
|
|
|
- // actualvalue = formulaService.getValByItemid(itemid, timegranid, clock, 0);
|
|
|
- // 此时计算值为小粒度累加
|
|
|
- HashMap<String, Object> maps = new HashMap<>();
|
|
|
- if(timegranid.equalsIgnoreCase("MONTH")){
|
|
|
- maps.put("itemid", itemid);
|
|
|
- maps.put("clock", clock);
|
|
|
- maps.put("timegranid", "DAY");
|
|
|
- }else if(timegranid.equalsIgnoreCase("YEAR")){
|
|
|
- maps.put("itemid", itemid);
|
|
|
- maps.put("clock", clock);
|
|
|
- maps.put("timegranid", "MONTH");
|
|
|
- }
|
|
|
- actualvalue = tRmActValueMapper.getSumvalue(maps);
|
|
|
- }
|
|
|
+ actualvalue = formulaService.getValByItemid(itemid, timegranid, clock, 0);
|
|
|
+ }else{
|
|
|
+ // 实绩数据-高粒度公式计算还是累加?当前使用累加。有公式为 比例类型(除法)的需要改成公式计算。
|
|
|
+ // actualvalue = formulaService.getValByItemid(itemid, timegranid, clock, 0);
|
|
|
+ // 此时计算值为小粒度累加
|
|
|
+ HashMap<String, Object> maps = new HashMap<>();
|
|
|
+ if(timegranid.equalsIgnoreCase("MONTH")){
|
|
|
+ maps.put("itemid", itemid);
|
|
|
+ maps.put("clock", clock);
|
|
|
+ maps.put("timegranid", "DAY");
|
|
|
+ }else if(timegranid.equalsIgnoreCase("YEAR")){
|
|
|
+ maps.put("itemid", itemid);
|
|
|
+ maps.put("clock", clock);
|
|
|
+ maps.put("timegranid", "MONTH");
|
|
|
+ }
|
|
|
+ actualvalue = tRmActValueMapper.getSumvalue(maps);
|
|
|
+ }
|
|
|
// 折标系数
|
|
|
Double zbxs = formulaService.getValByItemid(t.getEnergyid(),timegranid, clock, 0);
|
|
|
if (zbxs==null){
|
|
@@ -439,51 +440,51 @@ public class TRmActValueServiceImpl extends BaseServiceImpl<TRmActValue, HashMap
|
|
|
Double sjcl = dh.get("SJCL").doubleValue();
|
|
|
//累计产量
|
|
|
// Double ljcl = dh.get("LJCL").doubleValue();
|
|
|
- // 数据是否已存在
|
|
|
- TRmActValue tv = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
- try {
|
|
|
- if(tv!=null){
|
|
|
- tv.setActualvalue(new BigDecimal(actualvalue));
|
|
|
- tv.setApportvalue(BigDecimalUtil.add(tv.getCorrectvalue()!=null?tv.getCorrectvalue().doubleValue():0d, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
- // 折标值
|
|
|
- tv.setStdvalue(BigDecimalUtil.mul(zbxs, tv.getApportvalue().doubleValue()).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
- //单耗值
|
|
|
- tv.setUcvalue(BigDecimalUtil.divide(tv.getApportvalue().doubleValue(), sjcl, digits2.intValue()));
|
|
|
- tv.setUptime(DateUtils.dateStr(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
- tv.setUserid(opuser);
|
|
|
- tRmActValueMapper.updateByPrimaryKeySelective(tv);
|
|
|
- }else{
|
|
|
- TRmActValue tRmActValue = new TRmActValue();
|
|
|
- tRmActValue.setItemid(itemid);
|
|
|
- tRmActValue.setClock(clock);
|
|
|
- tRmActValue.setTimegranid(timegranid);
|
|
|
- //计算值
|
|
|
- tRmActValue.setActualvalue(new BigDecimal(actualvalue));
|
|
|
- //修正值
|
|
|
- tRmActValue.setCorrectvalue(new BigDecimal(0));
|
|
|
- //最终值
|
|
|
- tRmActValue.setApportvalue(new BigDecimal(actualvalue));
|
|
|
- //折标值
|
|
|
- tRmActValue.setStdvalue(BigDecimalUtil.mul(zbxs, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
- //单耗值
|
|
|
- tRmActValue.setUcvalue(BigDecimalUtil.divide(actualvalue, sjcl, digits2.intValue()));
|
|
|
- tRmActValue.setCrman(opuser);
|
|
|
- tRmActValue.setRecTime(DateUtils.dateStr(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
- //修改次数
|
|
|
- // tRmActValue.setModifyflag(new Short("0"));
|
|
|
- tRmActValueMapper.insert(tRmActValue);
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- logger.error("实绩数据计算错误:itemid-" + itemid + ",clock-" + clock);
|
|
|
- logger.error("--:" + e.getMessage());
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- return null;
|
|
|
- }
|
|
|
+ // 数据是否已存在
|
|
|
+ TRmActValue tv = tRmActValueMapper.selectByPrimaryKey(id);
|
|
|
+ try {
|
|
|
+ if(tv!=null){
|
|
|
+ tv.setActualvalue(new BigDecimal(actualvalue));
|
|
|
+ tv.setApportvalue(BigDecimalUtil.add(tv.getCorrectvalue()!=null?tv.getCorrectvalue().doubleValue():0d, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
+ // 折标值
|
|
|
+ tv.setStdvalue(BigDecimalUtil.mul(zbxs, tv.getApportvalue().doubleValue()).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
+ //单耗值
|
|
|
+ tv.setUcvalue(BigDecimalUtil.divide(tv.getApportvalue().doubleValue(), sjcl, digits2.intValue()));
|
|
|
+ tv.setUptime(DateUtils.dateStr(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
+ tv.setUserid(opuser);
|
|
|
+ tRmActValueMapper.updateByPrimaryKeySelective(tv);
|
|
|
+ }else{
|
|
|
+ TRmActValue tRmActValue = new TRmActValue();
|
|
|
+ tRmActValue.setItemid(itemid);
|
|
|
+ tRmActValue.setClock(clock);
|
|
|
+ tRmActValue.setTimegranid(timegranid);
|
|
|
+ //计算值
|
|
|
+ tRmActValue.setActualvalue(new BigDecimal(actualvalue));
|
|
|
+ //修正值
|
|
|
+ tRmActValue.setCorrectvalue(new BigDecimal(0));
|
|
|
+ //最终值
|
|
|
+ tRmActValue.setApportvalue(new BigDecimal(actualvalue));
|
|
|
+ //折标值
|
|
|
+ tRmActValue.setStdvalue(BigDecimalUtil.mul(zbxs, actualvalue).setScale(digits, BigDecimal.ROUND_HALF_UP));
|
|
|
+ //单耗值
|
|
|
+ tRmActValue.setUcvalue(BigDecimalUtil.divide(actualvalue, sjcl, digits2.intValue()));
|
|
|
+ tRmActValue.setCrman(opuser);
|
|
|
+ tRmActValue.setRecTime(DateUtils.dateStr(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
+ //修改次数
|
|
|
+ // tRmActValue.setModifyflag(new Short("0"));
|
|
|
+ tRmActValueMapper.insert(tRmActValue);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("实绩数据计算错误:itemid-" + itemid + ",clock-" + clock);
|
|
|
+ logger.error("--:" + e.getMessage());
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
- @Override
|
|
|
- public int getCount(Map<String, Object> params) {
|
|
|
- return tRmActValueMapper.getCount(params);
|
|
|
- }
|
|
|
-}
|
|
|
+ @Override
|
|
|
+ public int getCount(Map<String, Object> params) {
|
|
|
+ return tRmActValueMapper.getCount(params);
|
|
|
+ }
|
|
|
+}
|