|  | @@ -171,6 +171,7 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |     */
 | 
	
		
			
				|  |  |    @RequestMapping(value = "/exportXls")
 | 
	
		
			
				|  |  |    public ModelAndView exportXls(HttpServletRequest request, UserShift userShift) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        return super.exportXls(request, userShift, UserShift.class, "员工排班");
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -191,13 +192,13 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  			  params.setTitleRows(2);
 | 
	
		
			
				|  |  |  			  params.setHeadRows(1);
 | 
	
		
			
				|  |  |  			  params.setNeedSave(true);
 | 
	
		
			
				|  |  | -			  String date="2022-06";
 | 
	
		
			
				|  |  |  			  try {
 | 
	
		
			
				|  |  |  			  	List<UserShift>ls=new ArrayList<>();
 | 
	
		
			
				|  |  |  				  List<UserShiftExcel> list = ExcelImportUtil.importExcel(file.getInputStream(), UserShiftExcel.class, params);
 | 
	
		
			
				|  |  |  				  for(UserShiftExcel o:list){
 | 
	
		
			
				|  |  |  					 if (oConvertUtils.isNotEmpty(o.getWorkNo())&&oConvertUtils.isNotEmpty(o.getMoth())){
 | 
	
		
			
				|  |  |  						 String userId = userShiftService.getUserId(o.getWorkNo());
 | 
	
		
			
				|  |  | +						 userShiftService.deleteUserShift(userId,o.getMoth()+"-01");
 | 
	
		
			
				|  |  |  						 if (oConvertUtils.isNotEmpty(userId)) {
 | 
	
		
			
				|  |  |  							 if (oConvertUtils.isNotEmpty(o.getA1())) {
 | 
	
		
			
				|  |  |  								 UserShift u = new UserShift();
 | 
	
	
		
			
				|  | @@ -206,6 +207,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA1());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA1().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA1().equals("法")){
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -215,9 +218,11 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 u.setUserId(userId);
 | 
	
		
			
				|  |  |  								 u.setShiftDate(DateUtils.parseDate(o.getMoth()+"-02","yyyy-MM-dd"));
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA2());
 | 
	
		
			
				|  |  | -								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA1().equals("休")) {
 | 
	
		
			
				|  |  | +								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA2().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | -								 }else {
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA1().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  | +								 } else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
		
			
				|  |  |  								 ls.add(u);
 | 
	
	
		
			
				|  | @@ -228,7 +233,9 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA3());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA3().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | -								 }else {
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA3().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  | +								 } else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
		
			
				|  |  |  								 ls.add(u);
 | 
	
	
		
			
				|  | @@ -239,7 +246,9 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA4());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA4().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | -								 }else {
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA4().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  | +								 } else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
		
			
				|  |  |  								 ls.add(u);
 | 
	
	
		
			
				|  | @@ -250,6 +259,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA5());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA5().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA5().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -261,6 +272,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA6());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA6().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA6().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -272,6 +285,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA7());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA7().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA7().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -283,6 +298,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA8());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA8().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA8().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -294,6 +311,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA9());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA9().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA9().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -305,6 +324,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA10());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA10().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA10().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -316,6 +337,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA11());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA11().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA11().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -327,6 +350,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA12());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA12().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA12().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -338,6 +363,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA13());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA13().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA13().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -349,6 +376,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA14());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA14().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA14().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -360,6 +389,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA15());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA15().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA15().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -371,6 +402,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA16());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA16().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA16().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -382,6 +415,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA17());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA17().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA17().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -393,6 +428,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA18());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA18().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA18().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -404,6 +441,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA19());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA19().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA19().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -415,6 +454,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA20());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA20().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else  if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA20().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -426,6 +467,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA21());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA21().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA21().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -437,6 +480,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA22());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA22().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA22().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -448,6 +493,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA23());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA23().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA23().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -459,6 +506,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA23());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA23().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA23().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -470,6 +519,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA24());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA24().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA24().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -481,6 +532,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA25());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA25().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else  if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA25().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -492,6 +545,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA26());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA26().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else  if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA26().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -503,6 +558,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA27());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA27().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA27().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -514,6 +571,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA28());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA28().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA28().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -525,6 +584,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA30());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA30().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA30().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -536,6 +597,8 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  								 String shiftId = userShiftService.getShiftId(o.getA31());
 | 
	
		
			
				|  |  |  								 if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA31().equals("休")) {
 | 
	
		
			
				|  |  |  									 u.setShiftId(shiftId);
 | 
	
		
			
				|  |  | +								 }else if (oConvertUtils.isNotEmpty(shiftId)&&!o.getA31().equals("法")) {
 | 
	
		
			
				|  |  | +									 u.setShiftId("1");
 | 
	
		
			
				|  |  |  								 }else {
 | 
	
		
			
				|  |  |  									 u.setShiftId("0");
 | 
	
		
			
				|  |  |  								 }
 | 
	
	
		
			
				|  | @@ -571,9 +634,14 @@ public class UserShiftController extends JeecgController<UserShift, IUserShiftSe
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	 @GetMapping(value = "/UserShiftType")
 | 
	
		
			
				|  |  |  	 public Result<?> UserShiftType(UserShift userShift) throws ParseException {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -		 String userShiftType = userShiftService.getUserShiftType(DateUtils.formatDate(userShift.getShiftDate()), userShift.getUserId());
 | 
	
		
			
				|  |  | -		 return Result.OK(userShiftType);
 | 
	
		
			
				|  |  | +	  	List<String>dates=null;
 | 
	
		
			
				|  |  | +	  	if (oConvertUtils.isNotEmpty(userShift.getShiftId())){
 | 
	
		
			
				|  |  | +			String substring = userShift.getShiftId().substring(0, userShift.getShiftId().length() - 1);
 | 
	
		
			
				|  |  | +			dates=Arrays.asList(substring.split(","));
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		 Map<String, Integer> map = userShiftService.shiftCount(dates, userShift.getUserId());
 | 
	
		
			
				|  |  | +		// String userShiftType = userShiftService.getUserShiftType(DateUtils.formatDate(userShift.getShiftDate()), userShift.getUserId());
 | 
	
		
			
				|  |  | +		 return Result.OK(map);
 | 
	
		
			
				|  |  |  	 }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |