update code
parent
137f438a2e
commit
d25d22a6d5
|
@ -1,6 +1,9 @@
|
||||||
package com.yanzhu.xd.system.controller;
|
package com.yanzhu.xd.system.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
|
@ -40,6 +43,19 @@ public class SurProjectAttendanceDataController extends BaseController
|
||||||
return prefix + "/attendanceData";
|
return prefix + "/attendanceData";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/listEx")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo listEx(SurProjectAttendanceData surProjectAttendanceData)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
String tmp=surProjectAttendanceData.getAttendanceTime();
|
||||||
|
if(StrUtil.isNotEmpty(tmp)){
|
||||||
|
int year= DateUtil.parse(tmp).year();
|
||||||
|
surProjectAttendanceData.setYear(year);
|
||||||
|
}
|
||||||
|
List<SurProjectAttendanceData> list = surProjectAttendanceDataService.selectSurProjectAttendanceDataList(surProjectAttendanceData);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 查询考勤数据列表
|
* 查询考勤数据列表
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -84,8 +84,6 @@ public class SurProjectAttendanceUserController extends BaseController
|
||||||
return util.exportExcel(list, "实名制人员数据");
|
return util.exportExcel(list, "实名制人员数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增保存实名制人员
|
* 新增保存实名制人员
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue