|
@@ -283,26 +283,26 @@ public class TRmActItemController extends BaseRESTfulController {
|
|
|
logger.info("修改前数据是" + old.toString());
|
|
|
String oldMintimegranid = old.getMintimegranid();
|
|
|
// 如果修改最小时间粒度,判断公式是否合法(最小时间粒度影响公式计算)
|
|
|
- if(!oldMintimegranid.equalsIgnoreCase(model[i].getMintimegranid())){
|
|
|
- HashMap<String, Object> parmas = new HashMap<>();
|
|
|
- parmas.put("code", model[i].getItemid());
|
|
|
- parmas.put("clock", DateUtils.dateStr(new Date(), "yyyyMM"));
|
|
|
- // 获取公式
|
|
|
- Formula fm = formulaService.getFormulaCodeClock(parmas);
|
|
|
- String res = formulaService.checkFormulaMint(fm, model[i].getMintimegranid());
|
|
|
- if(!res.isEmpty()){
|
|
|
- warnmsg.add(model[i].getId() + ":" + res);
|
|
|
- }
|
|
|
- }
|
|
|
+// if(!oldMintimegranid.equalsIgnoreCase(model[i].getMintimegranid())){
|
|
|
+// HashMap<String, Object> parmas = new HashMap<>();
|
|
|
+// parmas.put("code", model[i].getItemid());
|
|
|
+// parmas.put("clock", DateUtils.dateStr(new Date(), "yyyyMM"));
|
|
|
+// // 获取公式
|
|
|
+// Formula fm = formulaService.getFormulaCodeClock(parmas);
|
|
|
+// String res = formulaService.checkFormulaMint(fm, model[i].getMintimegranid());
|
|
|
+// if(!res.isEmpty()){
|
|
|
+// warnmsg.add(model[i].getId() + ":" + res);
|
|
|
+// }
|
|
|
+// }
|
|
|
model[i].setDefaulman(userId);
|
|
|
model[i].setModificationtime(DateUtils.dateStr(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
TRmActItem trmData = tRmActItemService.modify(model[i]);
|
|
|
- if(model[i].getItemdesc()!=null && !model[i].getItemdesc().trim().isEmpty()) {
|
|
|
- Map<String, Object> pm = new HashMap<>();
|
|
|
- pm.put("code", model[i].getItemid());
|
|
|
- pm.put("description", model[i].getItemdesc().trim());
|
|
|
- formulaService.updateDesBycode(pm);
|
|
|
- }
|
|
|
+// if(model[i].getItemdesc()!=null && !model[i].getItemdesc().trim().isEmpty()) {
|
|
|
+// Map<String, Object> pm = new HashMap<>();
|
|
|
+// pm.put("code", model[i].getItemid());
|
|
|
+// pm.put("description", model[i].getItemdesc().trim());
|
|
|
+// formulaService.updateDesBycode(pm);
|
|
|
+// }
|
|
|
logger.info("修改后数据是" + trmData.toString());
|
|
|
}
|
|
|
|