临时外出添加培训修改

This commit is contained in:
fl 2025-03-06 10:47:43 +08:00
parent 25e131d534
commit 26dffb27f9
2 changed files with 13 additions and 0 deletions

View File

@ -184,6 +184,13 @@ public class HolidayServiceImpl implements HolidayService {
public int updateHoliday(HolidayBean o) {
o.setUpdateUserId(SecurityUtils.getLoginUser().getSysUser().getUserId());
o.setExamineStatus("0");
if("1".equals(o.getIsTrain())){
o.setLeaveType("培训");
o.setType(o.getLeaveType());
}else if("0".equals(o.getIsTrain()) && "培训".equals(o.getType())){
o.setLeaveType("临时外出");
o.setType(o.getLeaveType());
}
int i = holidayDao.updateHoliday(o);
Long userId = SecurityUtils.getLoginUser().getSysUser().getUserId();
if (i > 0) {

View File

@ -41,6 +41,12 @@
<if test="orgName != null and orgName != ''">
org_name = #{orgName},
</if>
<if test="leaveType != null and leaveType != ''">
leave_type = #{leaveType},
</if>
<if test="type != null and type != ''">
`type` = #{type},
</if>
leave_reason = #{leaveReason},
leave_start_date = #{leaveStartDate},
leave_start_interval = #{leaveStartInterval},