|
@@ -87,6 +87,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @return
|
|
|
* @throws ParseException
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息handleInfo-1付薪,2累计调休,3忽略")
|
|
|
@RequestMapping(value = "/handleInfo", method = RequestMethod.PUT)
|
|
|
public Result<?> handleInfo(@RequestBody JSONObject jsonObject) throws ParseException {
|
|
|
String multiple = jsonObject.getString("multiple");
|
|
@@ -158,6 +159,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @return
|
|
|
* @throws ParseException
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息fuXinInfo-1付薪,2累计调休,3忽略")
|
|
|
@RequestMapping(value = "/fuXinInfo", method = RequestMethod.PUT)
|
|
|
public Result<?> fuXinInfo(@RequestBody JSONObject jsonObject) throws ParseException {
|
|
|
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
@@ -229,6 +231,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @return
|
|
|
* @throws ParseException
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息errorInfo-异常信息校准")
|
|
|
@RequestMapping(value = "/errorInfo", method = RequestMethod.PUT)
|
|
|
public Result<?> errorInfo(@RequestBody JSONObject jsonObject) throws ParseException {
|
|
|
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
@@ -237,8 +240,16 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
if(!bdClockinMonthService.ifClose(viewDate)){
|
|
|
return Result.error(viewDate+"当前月份已关账,无法此操作");
|
|
|
}
|
|
|
+ String deptCode = user.getOrgCode();
|
|
|
+ String loginId = user.getId();
|
|
|
|
|
|
String userId = jsonObject.get("userId").toString();//用户
|
|
|
+
|
|
|
+ //二级部门负责人不能校准自己的考勤,需一级负责人校准
|
|
|
+ if(deptCode.length() > 2 && userId.equals(loginId)){
|
|
|
+ return Result.error("请等待本部门上级负责人进行校准");
|
|
|
+ }
|
|
|
+
|
|
|
BdErrorInfo bdErrorInfo = new BdErrorInfo();
|
|
|
if(jsonObject.get("errorText")!= null){
|
|
|
String errorText = jsonObject.get("errorText").toString();//忽略原因
|
|
@@ -343,6 +354,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @param jsonObject
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息syMonthReport-同步考勤月报至U8")
|
|
|
@RequestMapping(value = "/syMonthReport", method = RequestMethod.PUT)
|
|
|
public Result<?> syMonthReport(@RequestBody JSONObject jsonObject) {
|
|
|
|
|
@@ -374,6 +386,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @param jsonObject
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息monthReport-生成考勤月报")
|
|
|
@RequestMapping(value = "/monthReport", method = RequestMethod.PUT)
|
|
|
public Result<?> monthReport(@RequestBody JSONObject jsonObject) {
|
|
|
|
|
@@ -733,6 +746,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @param request
|
|
|
* @param viewClockIn
|
|
|
*/
|
|
|
+ @AutoLog(value = "员工考勤信息-exportXlsDay")
|
|
|
@RequestMapping(value = "/exportXlsDay")
|
|
|
public ModelAndView exportXlsDay(HttpServletRequest request, ExportClockDay viewClockIn) {
|
|
|
// List<ExportClockInfo> list = viewClockInService.exportErrotInfo(userName,mDate,userType);
|