提交修改
This commit is contained in:
parent
a08797fee4
commit
4c131847c5
@ -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());
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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){//下面推送消息
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user