|
|
@@ -20,10 +20,10 @@ import com.goafanti.common.utils.StringUtils;
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/api/admin/department")
|
|
|
public class AdminDepartmentApiController extends CertifyApiController {
|
|
|
-
|
|
|
+
|
|
|
@Resource
|
|
|
private DepartmentService departmentService;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 新增工作时间
|
|
|
*/
|
|
|
@@ -43,7 +43,7 @@ public class AdminDepartmentApiController extends CertifyApiController {
|
|
|
res.setData(departmentService.addWorkingHours(in));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 删除工作时间
|
|
|
*/
|
|
|
@@ -61,7 +61,7 @@ public class AdminDepartmentApiController extends CertifyApiController {
|
|
|
res.setData(departmentService.deleteWorkingHours(id));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 工作时间列表
|
|
|
*/
|
|
|
@@ -71,7 +71,7 @@ public class AdminDepartmentApiController extends CertifyApiController {
|
|
|
res.setData(departmentService.selectWorkingHours());
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 工作时间列表
|
|
|
*/
|
|
|
@@ -86,5 +86,17 @@ public class AdminDepartmentApiController extends CertifyApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 工作时间列表
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/selectAllDep", method = RequestMethod.GET)
|
|
|
+ public Result selectAllDep() {
|
|
|
+ Result res = new Result();
|
|
|
+
|
|
|
+ res.setData(departmentService.selectAllDep());
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|