提交修改

This commit is contained in:
quyixiao 2020-09-29 11:36:11 +08:00
parent a08797fee4
commit 4c131847c5
4 changed files with 10 additions and 3 deletions

View File

@ -254,6 +254,8 @@ public class ResultRecordController extends AbstractController {
String target = "审批通过";
if (resultComment.getStatus() == 5) {
target = "驳回";
}else if (resultComment.getStatus() == 6){
target = "申述";
}
comment.setTarget(target);
comment.setKeyResult(resultComment.getComment());

View File

@ -90,6 +90,7 @@ public interface ResultRecordService extends IService<ResultRecord> {
ResultRecord selectResultRecordByStaffIdStatus(Long staffId, int status);
R reject( ResultRecord resultRecord,Integer status);
StaffEntity getApprovalStaff(ResultRecord resultRecord, String departmentLevel, List<StaffRoleDto> staffRoleDtos, Long roleId);
DepartmentsStaffRelateEntity getLeaderDepartmentsStaffRelateEntity(Long staffId);

View File

@ -624,8 +624,9 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
.put("to", approvalStaff)
.put("type", WorkMsgTypeEnum.URGING);
}else if (req.getStatus() == 6){
// 向上级申述
resultRecordService.approval(req.getRecordResultId(), userId,req.getStatus(),false);
status = 6;
// 回滚代码
resultRecordService.reject(resultRecord,req.getStatus());
}
resultCommentService.addOrUpdateComment(req, userId, status,lastUsedFlowRecord);
if(r != null){//下面推送消息

View File

@ -158,8 +158,11 @@
<select id="selectFlowRecordByResultRecordIdType" resultType="com.lz.modules.flow.entity.FlowRecord">
select * from lz_flow_record where is_delete = 0 and record_id = #{resultRecordId} and type = #{type} and status = 0
</select>
<select id="selectFlowRecordByResultRecordIdTypeStatus" resultType="com.lz.modules.flow.entity.FlowRecord">
select * from lz_flow_record where is_delete = 0 and record_id = #{resultRecordId} and type = #{type} and status = #{status}
select * from lz_flow_record where is_delete = 0 and record_id = #{recordResultId} and type = #{type} and status = #{status}
</select>