出差申请
This commit is contained in:
parent
fc83ba33da
commit
6a6b4069d8
|
@ -78,6 +78,7 @@ public class BusinessTripApprovalController extends BaseController {
|
|||
dto.setDepartment(user.getDept().getDeptName());
|
||||
List<Long> togUserIdList = dto.getTogUserIdList();
|
||||
StringBuilder ids = new StringBuilder();
|
||||
if (togUserIdList != null && !togUserIdList.isEmpty()) {
|
||||
for (Long aLong : togUserIdList) {
|
||||
if (ids.length() > 0) {
|
||||
ids.append(",");
|
||||
|
@ -85,6 +86,7 @@ public class BusinessTripApprovalController extends BaseController {
|
|||
ids.append(aLong);
|
||||
}
|
||||
dto.setTogUserIds(ids.toString());
|
||||
}
|
||||
return toAjax(businessTripApprovalService.save(dto));
|
||||
}
|
||||
|
||||
|
|
|
@ -60,6 +60,26 @@ public class DictionaryInterceptor implements Interceptor {
|
|||
|
||||
}
|
||||
|
||||
if (StrUtil.equals(field.getName(), "startDate")) {
|
||||
field.setAccessible(true);
|
||||
Long passTime = (Long) field.get(obj);
|
||||
try {
|
||||
ReflectUtil.setFieldValue(obj, field.getName() + "Cn", DateUtil.format(DateUtil.date(passTime * 1000), DatePattern.NORM_DATETIME_PATTERN));
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (StrUtil.equals(field.getName(), "endDate")) {
|
||||
field.setAccessible(true);
|
||||
Long passTime = (Long) field.get(obj);
|
||||
try {
|
||||
ReflectUtil.setFieldValue(obj, field.getName() + "Cn", DateUtil.format(DateUtil.date(passTime * 1000), DatePattern.NORM_DATETIME_PATTERN));
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (StrUtil.endWith(field.getName(), "Time") && field.getType().equals(Long.class)) {
|
||||
field.setAccessible(true);
|
||||
field.setAccessible(true);
|
||||
|
|
Loading…
Reference in New Issue