修复二开问题

This commit is contained in:
钱涛 2025-12-11 16:43:03 +08:00
parent 8def579736
commit 65e7882649
1 changed files with 5 additions and 3 deletions

View File

@ -414,9 +414,11 @@ public class CalculateFormulaVarBO {
String sql = "SELECT sum(workdays) as a,sum(attendancemins) FROM kq_format_total WHERE workdays is not null and resourceid = "+userId+" and kqdate >= '" +SalaryDateUtil.getFormatDate(fromDate)+"' and kqdate <= '"+ SalaryDateUtil.getFormatDate(endDate)+"'";
List<Map> list = getSQLMapper().runSQL(sql);
if (CollectionUtils.isNotEmpty(list)) {
Object value = list.get(0).get("a");
if (value != null) {
ycq = NumberUtils.isCreatable(value.toString()) ? Double.valueOf(value.toString()) : Double.valueOf("0");
if(list.get(0)!=null){
Object value = list.get(0).get("a");
if (value != null) {
ycq = NumberUtils.isCreatable(value.toString()) ? Double.valueOf(value.toString()) : Double.valueOf("0");
}
}
}
return ycq;