|
@@ -64,6 +64,26 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
// shiftService.getMap(query);
|
|
|
// }
|
|
|
|
|
|
+
|
|
|
+ ////人员考勤页面,1付薪,2累计调休,3忽略
|
|
|
+ @RequestMapping(value = "/fuXinInfo", method = RequestMethod.PUT)
|
|
|
+ public String fuXinInfo(@RequestBody JSONObject jsonObject) throws ParseException {
|
|
|
+ String viewDate = jsonObject.get("viewDate").toString();
|
|
|
+ String st = jsonObject.get("st").toString();
|
|
|
+ String userId = jsonObject.get("userId").toString();
|
|
|
+ if(st.equals("1")){
|
|
|
+ st = "付薪";
|
|
|
+ }else if(st.equals("2")){
|
|
|
+ st = "累计调休";
|
|
|
+ }else{
|
|
|
+ st = "忽略";
|
|
|
+ }
|
|
|
+
|
|
|
+ viewClockInService.fuXinInfo(st,userId,viewDate);
|
|
|
+
|
|
|
+ return "设置成功";
|
|
|
+ }
|
|
|
+
|
|
|
@RequestMapping(value = "/jiaozhun", method = RequestMethod.PUT)
|
|
|
public String jiaozhun(@RequestBody JSONObject jsonObject) throws ParseException {
|
|
|
|
|
@@ -136,9 +156,18 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
@RequestParam(name="beginViewDate", defaultValue="1") String beginViewDate,
|
|
|
@RequestParam(name="endViewDate", defaultValue="1") String endViewDate,
|
|
|
+ String userName,String mDate,
|
|
|
HttpServletRequest req) {
|
|
|
|
|
|
LambdaQueryWrapper<ViewClockIn> query = new LambdaQueryWrapper<ViewClockIn>();
|
|
|
+
|
|
|
+ if(userName != null && userName != ""){
|
|
|
+ query.eq(ViewClockIn::getRealname,userName);//姓名
|
|
|
+ }
|
|
|
+ if(mDate != null && mDate != ""){
|
|
|
+ query.eq(ViewClockIn::getHeadMonth,mDate);//月份
|
|
|
+ }
|
|
|
+
|
|
|
if(viewClockIn.getRealname() != null && viewClockIn.getRealname() != ""){
|
|
|
query.like(ViewClockIn::getRealname,viewClockIn.getRealname());//姓名
|
|
|
}
|