Browse Source

部门新增字段显示标识

anderx 3 years ago
parent
commit
4c63545535

+ 2 - 3
src/main/java/com/goafanti/organization/controller/AdminOrganizationController.java

@@ -41,14 +41,13 @@ public class AdminOrganizationController extends BaseApiController{
 	@RequestMapping(value = "/selectSuperIdS" , method = RequestMethod.GET)
 	public Result selectsuperIdS(){
 		Result res = new Result();
-
 		res.setData(organizationService.selectSuperId(1));
 		return res;
 	}
 	/**部门组织管理新增**/
 	@RequestMapping(value = "/addOrganization" , method = RequestMethod.POST)
 	public Result addOrganization(String name, String managerId, String type, String superId, String remarks,
-								  Integer workingHoursType,Integer hideSign) throws Exception{
+								  Integer workingHoursType,Integer hideSign) {
 		Result res = new Result();
 		if(StringUtils.isBlank(name) || StringUtils.isBlank(type) || StringUtils.isBlank(superId)){
 			res.getError().add(buildError("","组织名称、组织类型、上级组织不能为空"));
@@ -92,7 +91,7 @@ public class AdminOrganizationController extends BaseApiController{
 		if(StringUtils.isBlank(name) || StringUtils.isBlank(type)
 				|| StringUtils.isBlank(managerId)|| StringUtils.isBlank(superId)
 				|| StringUtils.isBlank(status)|| StringUtils.isBlank(remarks)){
-			res.getError().add(buildError(ErrorConstants.PARAM_ERROR,""));
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR,"参数"));
 			return res;
 		}
 		String sdepNo=departmentMapper.selectDepNo(superId);//No