Commit abf8023f authored by wanglong's avatar wanglong

修改代码

parent 5e4ee059
...@@ -32,6 +32,7 @@ import org.apache.poi.ss.formula.functions.T; ...@@ -32,6 +32,7 @@ import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
...@@ -77,6 +78,8 @@ public class WelderController extends BaseController { ...@@ -77,6 +78,8 @@ public class WelderController extends BaseController {
@ApiOperation(httpMethod = "POST", value = "新增人员信息", notes = "新增人员信息") @ApiOperation(httpMethod = "POST", value = "新增人员信息", notes = "新增人员信息")
public ResponseModel<OrgUsrDto> saveWelder(@RequestBody JSONObject jsonObject, @RequestParam String bizOrgType , public ResponseModel<OrgUsrDto> saveWelder(@RequestBody JSONObject jsonObject, @RequestParam String bizOrgType ,
@RequestParam(required = false) String sequenceNbr) { @RequestParam(required = false) String sequenceNbr) {
//当有seq时判断是否已绑定项目
if (!ValidationUtil.isEmpty(sequenceNbr)){
String sequenceNbrDept = orgService.getOrgUsrById(jsonObject.getString("sequenceNbr")).getParentId(); String sequenceNbrDept = orgService.getOrgUsrById(jsonObject.getString("sequenceNbr")).getParentId();
//修改部门时判断用户是否是部门负责人 //修改部门时判断用户是否是部门负责人
if (!sequenceNbrDept.equals(jsonObject.getString("deptId"))) { if (!sequenceNbrDept.equals(jsonObject.getString("deptId"))) {
...@@ -89,6 +92,8 @@ public class WelderController extends BaseController { ...@@ -89,6 +92,8 @@ public class WelderController extends BaseController {
} }
} }
} }
}
return ResponseHelper.buildResponse(welderServiceImpl.savePerson(jsonObject, bizOrgType, sequenceNbr)); return ResponseHelper.buildResponse(welderServiceImpl.savePerson(jsonObject, bizOrgType, sequenceNbr));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment