liuling 3 days ago
parent
commit
dbd43e53e9

+ 10 - 0
src/com/kingdee/eas/custom/calcdailypay/task/CalcDailyPayFacadeControllerBean.java

@@ -143,8 +143,18 @@ public class CalcDailyPayFacadeControllerBean extends AbstractCalcDailyPayFacade
         System.out.println("=======return========="+ JSONObject.toJSONString(stringObjectMap));
         super._sendSalary(ctx, preCalcDays);
     }
+
+    public static void main(String[] args) {
+        String dayBefore = getDayBefore(new Date(), 1);
+    }
     public Map<String, Integer> sendSalaryData(Context ctx, String date) throws SHRWebException, BOSException {
         String whereSql = this.getSelectDataId( ctx,date);
+        if ("".equals(whereSql)){
+            Map<String, Integer> result = new HashMap();
+            result.put("success", 0);
+            result.put("fail", 0);
+            return result;
+        }
         String sql = "select count(fid) as count from T_HR_TimepieceBillEntry where  fid in  " + whereSql;
         String nocalsql = "select count(fid) as count from T_HR_TimepieceBillEntry where   fentrycalstatus = '0' and fid in  " + whereSql;
         IRowSet iRowSet = DbUtil.executeQuery(ctx, sql);