Commit dfbdb7de by Your Name Committed by chenzg

更新部门下不能新增岗位员工

parent d4c38734
......@@ -73,8 +73,7 @@ import io.swagger.annotations.ApiOperation;
@Api(tags = "3.0审批模块")
@RestController
@Transactional
@RequestMapping(value = "/spmk",
produces = { "application/json","multipart/form-data" })
@RequestMapping(value = "/spmk", produces = { "application/json","multipart/form-data" })
public class SpmkController {
@Autowired
......@@ -998,7 +997,7 @@ public class SpmkController {
*/
@PostMapping(value = "/approved_addDetail")
@ApiOperation(value = "A审核详情数据转换", httpMethod = "POST", notes = "")
public void addApproveDetail(String status){
spmkService.addApproveDetail(status);
public String addApproveDetail(String status){
return spmkService.addApproveDetail(status);
}
}
......@@ -14,6 +14,6 @@ public interface SpmkService {
List<SpmkApprovalG> selectListAg(UserBean userBean);
void addApproveDetail(String status);
String addApproveDetail(String status);
}
......@@ -155,7 +155,7 @@ public class SpmkServiceImpl implements SpmkService{
* @param status
*/
@Override
public void addApproveDetail(String status) {
public String addApproveDetail(String status) {
if ("1".equals(status)) {
QueryWrapper queryWrapper = new QueryWrapper<SpmkApproveDetail>().select("id,approve_summary_id", "name", "department_name", "request_data", "froms", "router", "flow_children");
List<SpmkApproveDetail> spmkApproveDetails = spmkApproveDetailMapper.selectList(queryWrapper);
......@@ -199,6 +199,10 @@ public class SpmkServiceImpl implements SpmkService{
}
}
});
}else{
return "失败";
}
return "成功";
}
}
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