入离职工时加上考勤报表问题修复

dev
chenwei 12 months ago
parent 31cedeac49
commit 7024436e24

@ -993,7 +993,7 @@ public class ExportExcelCmd extends AbstractCommonCommand<Map<String, Object>> {
" a.resourceid, " + " a.resourceid, " +
" SUM(tiaoxiuamount) AS tiaoxiuamounts, " + " SUM(tiaoxiuamount) AS tiaoxiuamounts, " +
" SUM(usedamount) AS usedamounts, " + " SUM(usedamount) AS usedamounts, " +
" GREATEST( sum(extraamount) + SUM(tiaoxiuamount) - SUM(usedamount), 0.00000) AS difference_amounts, " + " GREATEST( SUM(COALESCE(extraamount, 0)) + SUM(COALESCE(tiaoxiuamount, 0)) - SUM(COALESCE(usedamount, 0)), 0.00000) AS difference_amounts, " +
" COALESCE(datetype, b.changetype) AS grouping_date, " + " COALESCE(datetype, b.changetype) AS grouping_date, " +
" CASE " + " CASE " +
" WHEN datetype IS NOT NULL THEN datetype " + " WHEN datetype IS NOT NULL THEN datetype " +
@ -1051,7 +1051,7 @@ public class ExportExcelCmd extends AbstractCommonCommand<Map<String, Object>> {
" a.resourceid, " + " a.resourceid, " +
" SUM(tiaoxiuamount) AS tiaoxiuamounts, " + " SUM(tiaoxiuamount) AS tiaoxiuamounts, " +
" SUM(usedamount) AS usedamounts, " + " SUM(usedamount) AS usedamounts, " +
" GREATEST( sum(extraamount) + SUM(tiaoxiuamount) - SUM(usedamount), 0.00000) AS difference_amounts, " + " GREATEST( SUM(COALESCE(extraamount, 0)) + SUM(COALESCE(tiaoxiuamount, 0)) - SUM(COALESCE(usedamount, 0)), 0.00000) AS difference_amounts, " +
" COALESCE(datetype, b.changetype) AS grouping_date, " + " COALESCE(datetype, b.changetype) AS grouping_date, " +
" CASE " + " CASE " +
" WHEN datetype IS NOT NULL THEN datetype " + " WHEN datetype IS NOT NULL THEN datetype " +

@ -1225,9 +1225,7 @@ public class GetKQReportCmd extends AbstractCommonCommand<Map<String, Object>> {
Map<String, Object> result = new HashMap<String, Object>(); Map<String, Object> result = new HashMap<String, Object>();
String acqSql = "SELECT " + String acqSql = "SELECT " +
" a.resourceid, " + " a.resourceid, " +
" SUM(tiaoxiuamount) AS tiaoxiuamounts, " + " GREATEST( SUM(COALESCE(extraamount, 0)) + SUM(COALESCE(tiaoxiuamount, 0)) - SUM(COALESCE(usedamount, 0)), 0.00000) AS difference_amounts, " +
" SUM(usedamount) AS usedamounts, " +
" GREATEST( sum(extraamount) + SUM(tiaoxiuamount) - SUM(usedamount), 0.00000) AS difference_amounts, " +
" COALESCE(datetype, b.changetype) AS grouping_date, " + " COALESCE(datetype, b.changetype) AS grouping_date, " +
" CASE " + " CASE " +
" WHEN datetype IS NOT NULL THEN datetype " + " WHEN datetype IS NOT NULL THEN datetype " +
@ -1288,7 +1286,7 @@ public class GetKQReportCmd extends AbstractCommonCommand<Map<String, Object>> {
" a.resourceid, " + " a.resourceid, " +
" SUM(tiaoxiuamount) AS tiaoxiuamounts, " + " SUM(tiaoxiuamount) AS tiaoxiuamounts, " +
" SUM(usedamount) AS usedamounts, " + " SUM(usedamount) AS usedamounts, " +
" GREATEST( sum(extraamount) + SUM(tiaoxiuamount) - SUM(usedamount), 0.00000) AS difference_amounts, " + " GREATEST( SUM(COALESCE(extraamount, 0)) + SUM(COALESCE(tiaoxiuamount, 0)) - SUM(COALESCE(usedamount, 0)), 0.00000) AS difference_amounts, " +
" COALESCE(datetype, b.changetype) AS grouping_date, " + " COALESCE(datetype, b.changetype) AS grouping_date, " +
" CASE " + " CASE " +
" WHEN datetype IS NOT NULL THEN datetype " + " WHEN datetype IS NOT NULL THEN datetype " +

@ -70,6 +70,12 @@ public class OverTimeBatchAction implements Action {
bb.writeLog("detailInfos: " + detailInfos); bb.writeLog("detailInfos: " + detailInfos);
String sql = "select tiaoxiuid from kq_flow_overtime where requetsid = ?";
rs.executeQuery(sql);
int flag = 0;
//1
for ( Map<String, Object> di: detailInfos) { for ( Map<String, Object> di: detailInfos) {
Integer res = Util.getIntValue( Util.null2String( di.get("resourceId"))); Integer res = Util.getIntValue( Util.null2String( di.get("resourceId")));
String fromDate = Util.null2String( di.get("fromDate")); String fromDate = Util.null2String( di.get("fromDate"));

Loading…
Cancel
Save