|
@@ -311,18 +311,32 @@ public class TQTDReportAction implements IMINAction {
|
|
|
MINActionResult res = new MINActionResult();
|
|
MINActionResult res = new MINActionResult();
|
|
|
db = Service.lookup(IMINDataBaseService.class);
|
|
db = Service.lookup(IMINDataBaseService.class);
|
|
|
PubAppparExample appparExample = new PubAppparExample();
|
|
PubAppparExample appparExample = new PubAppparExample();
|
|
|
- appparExample.createCriteria().andCodeEqualTo("tqtd_num");
|
|
|
|
|
|
|
+ String systemCode = Service.lookup(IReportService.class).getSystemCode();
|
|
|
|
|
+ appparExample.createCriteria().andCodeEqualTo("tqtd_num_" + systemCode);
|
|
|
List<PubApppar> appparList = db.selectByExample(PubAppparMapper.class, appparExample);
|
|
List<PubApppar> appparList = db.selectByExample(PubAppparMapper.class, appparExample);
|
|
|
List<Map<String, String>> resList = new ArrayList<Map<String, String>>();
|
|
List<Map<String, String>> resList = new ArrayList<Map<String, String>>();
|
|
|
Map<String, String> resMap = new HashMap<String, String>();
|
|
Map<String, String> resMap = new HashMap<String, String>();
|
|
|
resList.add(resMap);
|
|
resList.add(resMap);
|
|
|
String hejiNum = "0";
|
|
String hejiNum = "0";
|
|
|
|
|
+
|
|
|
|
|
+ List<Map<String, Object>> col = new ArrayList<Map<String, Object>>();
|
|
|
for (PubApppar pub : appparList) {
|
|
for (PubApppar pub : appparList) {
|
|
|
resMap.put(pub.getValue(), pub.getShowmsg());
|
|
resMap.put(pub.getValue(), pub.getShowmsg());
|
|
|
hejiNum = CommonUtil.add(hejiNum, pub.getShowmsg());
|
|
hejiNum = CommonUtil.add(hejiNum, pub.getShowmsg());
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, Object> colMap = new HashMap<String, Object>();
|
|
|
|
|
+ colMap.put("field", pub.getValue());
|
|
|
|
|
+ colMap.put("title", pub.getValue());
|
|
|
|
|
+ colMap.put("edit", "text");
|
|
|
|
|
+ col.add(colMap);
|
|
|
}
|
|
}
|
|
|
|
|
+ Map<String, Object> colHejiMap = new HashMap<String, Object>();
|
|
|
|
|
+ colHejiMap.put("field", "合计");
|
|
|
|
|
+ colHejiMap.put("title", "合计");
|
|
|
|
|
+ col.add(colHejiMap);
|
|
|
resMap.put("合计", hejiNum);
|
|
resMap.put("合计", hejiNum);
|
|
|
res.set(IMINBusinessConstant.F_PAGING_LAY, resList);
|
|
res.set(IMINBusinessConstant.F_PAGING_LAY, resList);
|
|
|
|
|
+ res.set("col", col);
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -333,10 +347,12 @@ public class TQTDReportAction implements IMINAction {
|
|
|
MINSession session
|
|
MINSession session
|
|
|
) throws MINBusinessException {
|
|
) throws MINBusinessException {
|
|
|
MINActionResult res = new MINActionResult();
|
|
MINActionResult res = new MINActionResult();
|
|
|
|
|
+
|
|
|
|
|
+ String systemCode = Service.lookup(IReportService.class).getSystemCode();
|
|
|
// 修改数据库数据
|
|
// 修改数据库数据
|
|
|
db = Service.lookup(IMINDataBaseService.class);
|
|
db = Service.lookup(IMINDataBaseService.class);
|
|
|
PubApppar apppar = new PubApppar();
|
|
PubApppar apppar = new PubApppar();
|
|
|
- apppar.setCode("tqtd_num");
|
|
|
|
|
|
|
+ apppar.setCode("tqtd_num_"+systemCode);
|
|
|
apppar.setValue(field);
|
|
apppar.setValue(field);
|
|
|
apppar.setShowmsg(value);
|
|
apppar.setShowmsg(value);
|
|
|
db.updateByPrimaryKeySelective(PubAppparMapper.class, apppar);
|
|
db.updateByPrimaryKeySelective(PubAppparMapper.class, apppar);
|