Commit 1ee3a754 by MMF

MMF 2026-04-15 领导审批

parent 0947b05c
...@@ -144,6 +144,22 @@ public class ZqbfXmzBfxqController extends BaseController { ...@@ -144,6 +144,22 @@ public class ZqbfXmzBfxqController extends BaseController {
} }
/** /**
* 调度专家
*/
@PostMapping("/dispatchT")
public AjaxResult dispatchT(@RequestBody ZqbfXmzBfxq zqbfXmzBfxq) {
try {
return toAjax(zqbfXmzBfxqService.dispatchT(zqbfXmzBfxq, getUsername()));
} catch (BusinessException e) {
log.warn("最强帮扶-调度专家失败:" + e.getMessage());
return warn(e.getMessage());
} catch (Exception e) {
log.error(e.getMessage());
return error(e.getMessage());
}
}
/**
* 领导审核 * 领导审核
*/ */
@PostMapping("/approval") @PostMapping("/approval")
......
...@@ -46,6 +46,7 @@ public interface ZqbfXmzBfxqService { ...@@ -46,6 +46,7 @@ public interface ZqbfXmzBfxqService {
*/ */
int dispatch(List<ZqczXmzDdzj> zqczXmzDdzjList, String username); int dispatch(List<ZqczXmzDdzj> zqczXmzDdzjList, String username);
int dispatchT(ZqbfXmzBfxq zqbfXmzBfxq, String username);
/** /**
* 领导审核 * 领导审核
*/ */
...@@ -60,4 +61,6 @@ public interface ZqbfXmzBfxqService { ...@@ -60,4 +61,6 @@ public interface ZqbfXmzBfxqService {
* 帮扶反馈 * 帮扶反馈
*/ */
int support(ZqczXmzBffk zqczXmzBffk, String username); int support(ZqczXmzBffk zqczXmzBffk, String username);
} }
...@@ -202,6 +202,32 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService { ...@@ -202,6 +202,32 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService {
return 1; return 1;
} }
@Override
public int dispatchT(ZqbfXmzBfxq zqbfXmzBfxq, String username) {
Long xqid = zqbfXmzBfxq.getXqid();
// 查询当前需求
ZqbfXmzBfxqVo zqbfXmzBfxqVo = info(xqid);
if (zqbfXmzBfxqVo == null) {
throw new BusinessException("暂无当前需求");
}
if (!Arrays.asList("3", "4").contains(zqbfXmzBfxqVo.getDqzt())) { // 3=待调度 4=已驳回
throw new BusinessException("当前环节不允许提交");
}
// 修改需求
zqbfXmzBfxq.setDqzt("5");
edit(zqbfXmzBfxq, username);
// 新增帮扶记录
ZqczXmzBfjl zqczXmzBfjl = new ZqczXmzBfjl();
zqczXmzBfjl.setXqid(xqid);
zqczXmzBfjl.setDqzt("5");
zqczXmzBfjl.setGxr(username);
zqczXmzBfjlMapper.add(zqczXmzBfjl);
return 1;
}
/** /**
* 领导审核 * 领导审核
*/ */
...@@ -218,12 +244,8 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService { ...@@ -218,12 +244,8 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService {
throw new BusinessException("暂无当前需求"); throw new BusinessException("暂无当前需求");
} }
if (!Arrays.asList("5", "6").contains(dqzt)) { // 审核状态 if (!Arrays.asList("4", "6").contains(dqzt)) { // 审核状态
throw new BusinessException("无效审核:5=已驳回6=已审核(帮扶中)"); throw new BusinessException("无效审核:4=已驳回6=已审核(帮扶中)");
}
if ("5".equals(dqzt) && StringUtils.isEmpty(htms)) {
throw new BusinessException("回退原因不能为空");
} }
// 修改需求 // 修改需求
......
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