Compare commits

...

2 Commits

Author SHA1 Message Date
hanrenchun b0081791c0 Merge remote-tracking branch 'origin/master' 2025-06-09 19:15:48 +08:00
hanrenchun 064fee9163 修改 2025-06-09 19:15:39 +08:00
2 changed files with 14 additions and 12 deletions

View File

@ -72,15 +72,9 @@ public class BusinessTripApprovalController extends BaseController {
throw new RuntimeException("请选择是否自带公务车辆"); throw new RuntimeException("请选择是否自带公务车辆");
} }
if (dto.getHasOffcialCar() != null && dto.getHasOffcialCar() == 1) { if (dto.getHasOffcialCar() != null && dto.getHasOffcialCar() == 1) {
if (dto.getCarModel() == null) {
throw new RuntimeException("请选择使用车型");
}
if (dto.getUseCarType() == null) { if (dto.getUseCarType() == null) {
throw new RuntimeException("请选择用车方式"); throw new RuntimeException("请选择用车方式");
} }
if (dto.getSeats() == null) {
throw new RuntimeException("请输入座位数");
}
} }
if (dto.getStartDate() == null || dto.getEndDate() == null) { if (dto.getStartDate() == null || dto.getEndDate() == null) {
throw new RuntimeException("请选择出差时间范围"); throw new RuntimeException("请选择出差时间范围");
@ -340,13 +334,21 @@ public class BusinessTripApprovalController extends BaseController {
if (dto.getReason() == null) { if (dto.getReason() == null) {
throw new RuntimeException("驳回意见不可为空"); throw new RuntimeException("驳回意见不可为空");
} }
approvalProcess.setApprovalStatus(0); if (approvalStatus == 100 || approvalStatus == 200 || approvalStatus == 300) {
approvalProcess.setApprovalStatus(400);
List<Long> userIds = new ArrayList<>();
userIds.add(1660L);
userIds.add(1661L);
addLog(approvalProcess, userIds);
}else {
approvalProcess.setApprovalStatus(0);
List<Long> userIds = new ArrayList<>();
userIds.add(approvalProcess.getSubmitterId());
addLog(approvalProcess, userIds);
}
one.setCheckState(dto.getState()); one.setCheckState(dto.getState());
one.setCheckTime(System.currentTimeMillis() / 1000L); one.setCheckTime(System.currentTimeMillis() / 1000L);
one.setReason(dto.getReason()); one.setReason(dto.getReason());
List<Long> userIds = new ArrayList<>();
userIds.add(approvalProcess.getSubmitterId());
addLog(approvalProcess, userIds);
boolean updateById = gwglLogService.updateById(one); boolean updateById = gwglLogService.updateById(one);
boolean updateById1 = approvalsProcessService.updateById(approvalProcess); boolean updateById1 = approvalsProcessService.updateById(approvalProcess);
return toAjax(updateById1 && updateById); return toAjax(updateById1 && updateById);

View File

@ -60,7 +60,7 @@
<sql id="selectUserVo"> <sql id="selectUserVo">
select u.user_id,u.user_num,u.hat_size,u.bottoms_size,u.tops_size,u.shoe_size,u.has_approval,u.is_leader, select u.user_id,u.user_num,u.hat_size,u.bottoms_size,u.tops_size,u.shoe_size,u.has_approval,u.is_leader,
u.user_type_cn,u.id_card, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.area_auth_code, u.user_type_cn,u.id_card, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.area_auth_code,
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader,d.leader_id, d.status as dept_status,
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
from sys_user u from sys_user u
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
@ -69,7 +69,7 @@
</sql> </sql>
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
select u.user_id,u.user_num,u.hat_size,u.bottoms_size,u.tops_size,u.has_approval,u.is_leader,u.shoe_size,u.user_type_cn,u.id_card, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.area_auth_code, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u select u.user_id,u.user_num,u.hat_size,u.bottoms_size,u.tops_size,u.has_approval,u.is_leader,u.shoe_size,u.user_type_cn,u.id_card, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.area_auth_code, u.create_by, u.create_time, u.remark, d.dept_name, d.leader,d.leader_id from sys_user u
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
where u.del_flag = '0' where u.del_flag = '0'
<if test="userId != null and userId != 0"> <if test="userId != null and userId != 0">