Browse Source

新增最小公出时长

anderx 2 years ago
parent
commit
20ef23a089

+ 0 - 1
src/main/java/com/goafanti/admin/controller/AdminDepartmentApiController.java

@@ -48,7 +48,6 @@ public class AdminDepartmentApiController extends CertifyApiController {
 	@RequestMapping(value = "/workingHours/update", method = RequestMethod.POST)
 	public Result update(WorkingHours in) {
 		Result res = new Result();
-
 		if (departmentService.checkWorkingHoursType(in)) {
 			res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "", "分类"));
 			return res;

+ 1 - 1
src/main/java/com/goafanti/admin/service/impl/DepartmentServiceImpl.java

@@ -57,7 +57,7 @@ public class DepartmentServiceImpl extends BaseMybatisDao<WorkingHoursMapper> im
 			}else {
 				if (in.getId()!=null){
 					for (WorkingHours e : typeCount) {
-						if (e.getId().equals(in.getId())){
+						if (!e.getId().equals(in.getId())){
 							return true;
 						}
 					}