Commit 47826b8e by Your Name

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

parent 08ea25f3
...@@ -998,7 +998,7 @@ public class SpmkController { ...@@ -998,7 +998,7 @@ public class SpmkController {
*/ */
@PostMapping(value = "/approved_addDetail") @PostMapping(value = "/approved_addDetail")
@ApiOperation(value = "A审核详情数据转换", httpMethod = "POST", notes = "") @ApiOperation(value = "A审核详情数据转换", httpMethod = "POST", notes = "")
public String addApproveDetail(@RequestBody String status){ public String addApproveDetail(){
return spmkService.addApproveDetail(status); return spmkService.addApproveDetail();
} }
} }
...@@ -14,6 +14,6 @@ public interface SpmkService { ...@@ -14,6 +14,6 @@ public interface SpmkService {
List<SpmkApprovalG> selectListAg(UserBean userBean); List<SpmkApprovalG> selectListAg(UserBean userBean);
String addApproveDetail(String status); String addApproveDetail();
} }
...@@ -153,11 +153,11 @@ public class SpmkServiceImpl implements SpmkService{ ...@@ -153,11 +153,11 @@ public class SpmkServiceImpl implements SpmkService{
/** /**
* 审核汇总详情数据转换 * 审核汇总详情数据转换
* @param status * @param
*/ */
@Override @Override
public String addApproveDetail(String status) { public String addApproveDetail() {
if ("1".equals(status)) {
QueryWrapper queryWrapper = new QueryWrapper<SpmkApproveDetail>().select("id,approve_summary_id", "name", "department_name", "request_data", "froms", "router", "flow_children"); 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); List<SpmkApproveDetail> spmkApproveDetails = spmkApproveDetailMapper.selectList(queryWrapper);
spmkApproveDetails.forEach(t -> { spmkApproveDetails.forEach(t -> {
...@@ -200,9 +200,7 @@ public class SpmkServiceImpl implements SpmkService{ ...@@ -200,9 +200,7 @@ public class SpmkServiceImpl implements SpmkService{
} }
} }
}); });
}else{
return "失败";
}
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