|
@@ -5,6 +5,7 @@ import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.flowpath.convert.FlowPathConvert;
|
|
|
+import org.jeecg.modules.flowpath.dto.ItdmPassRunFlowPath;
|
|
|
import org.jeecg.modules.flowpath.dto.ItdmRejectDQRunFlowPath;
|
|
|
import org.jeecg.modules.flowpath.dto.ItdmRejectZDRunFlowPath;
|
|
|
import org.jeecg.modules.flowpath.dto.ItdmSaveRunFlowPath;
|
|
@@ -89,6 +90,30 @@ public class ItdmRunFlowPathStepServiceImpl extends ServiceImpl<ItdmRunFlowPathS
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void pass1(ItdmPassRunFlowPath itdmRunFlowPathStep) {
|
|
|
+ ItdmRunFlowPathStep select = this.baseMapper.selectById(itdmRunFlowPathStep.getRunFlowPathStep());
|
|
|
+ LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ select.setFqUser(user.getUsername());
|
|
|
+ this.baseMapper.updateById(select);
|
|
|
+ ItdmRunFlowPathStep nextstep = this.baseMapper.selectOne(Wrappers.lambdaQuery(ItdmRunFlowPathStep.class)
|
|
|
+ .eq(ItdmRunFlowPathStep::getRunFlowPath, select.getRunFlowPath())
|
|
|
+ .eq(ItdmRunFlowPathStep::getSort, Integer.parseInt(select.getSort()) + 1)
|
|
|
+
|
|
|
+ );
|
|
|
+ ItdmRunFlowPath itdmRunFlowPath = this.itdmRunFlowPathMapper.selectById(select.getRunFlowPath());
|
|
|
+ if (!itdmRunFlowPath.getDqSetp().equals(select.getFlowPathSetp())) {
|
|
|
+ throw new JeecgBootException("当前节点不是在进行中");
|
|
|
+ }
|
|
|
+
|
|
|
+ itdmRunFlowPath.setId(select.getRunFlowPath());
|
|
|
+ itdmRunFlowPath.setDqSetp(nextstep.getFlowPathSetp());
|
|
|
+ itdmRunFlowPath.setDqSetpUserIds(nextstep.getUserIds());
|
|
|
+ itdmRunFlowPath.setDqSetpRoleId(nextstep.getRoleId());
|
|
|
+ itdmRunFlowPathMapper.updateById(itdmRunFlowPath);
|
|
|
+
|
|
|
+ logService.insert(select.getRunFlowPath(), select.getId(), nextstep.getId(), "通过", "");
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public void rejectDQ(ItdmRejectDQRunFlowPath itdmRejectDQRunFlowPath) {
|