|
@ -109,6 +109,12 @@ public class AdFeesReimbursableApplyService extends MybatisBaseService<AdFeesRei |
|
|
applyVo.setIsBeyondQuotaObj(obj3); |
|
|
applyVo.setIsBeyondQuotaObj(obj3); |
|
|
List<AdFeesReimbursableDetailsVo> list = adFeesReimbursableDetailsService.getUpdateInit(sid); |
|
|
List<AdFeesReimbursableDetailsVo> list = adFeesReimbursableDetailsService.getUpdateInit(sid); |
|
|
list.removeAll(Collections.singleton(null)); |
|
|
list.removeAll(Collections.singleton(null)); |
|
|
|
|
|
if (StringUtils.isNotBlank(apply.getIsSpecialSeatKey())) { |
|
|
|
|
|
applyVo.setIsTravelCharge(true); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(apply.getIsExpensiveKey())) { |
|
|
|
|
|
applyVo.setIsBanquetExpense(true); |
|
|
|
|
|
} |
|
|
if (!list.isEmpty()) { |
|
|
if (!list.isEmpty()) { |
|
|
list.stream().forEach(details -> { |
|
|
list.stream().forEach(details -> { |
|
|
FormCommon objv1 = FormCommon.of(details.getBelongsDeptSid(), details.getBelongsDept()); |
|
|
FormCommon objv1 = FormCommon.of(details.getBelongsDeptSid(), details.getBelongsDept()); |
|
@ -131,6 +137,16 @@ public class AdFeesReimbursableApplyService extends MybatisBaseService<AdFeesRei |
|
|
public ResultBean<String> saveOrUpdateDto(AdFeesReimbursableApplyDto dto) { |
|
|
public ResultBean<String> saveOrUpdateDto(AdFeesReimbursableApplyDto dto) { |
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
String sid = dto.getSid(); |
|
|
String sid = dto.getSid(); |
|
|
|
|
|
if (!dto.getIsTravelCharge()) { |
|
|
|
|
|
dto.setIsSpecialSeatKey(null); |
|
|
|
|
|
dto.setIsSpecialSeatValue(null); |
|
|
|
|
|
dto.setDepartureTime(null); |
|
|
|
|
|
dto.setReturnTime(null); |
|
|
|
|
|
} |
|
|
|
|
|
if (!dto.getIsBanquetExpense()) { |
|
|
|
|
|
dto.setIsExpensiveKey(null); |
|
|
|
|
|
dto.setIsExpensiveValue(null); |
|
|
|
|
|
} |
|
|
if (StringUtils.isBlank(sid)) { |
|
|
if (StringUtils.isBlank(sid)) { |
|
|
// 新建操作
|
|
|
// 新建操作
|
|
|
AdFeesReimbursableApply entity = new AdFeesReimbursableApply(); |
|
|
AdFeesReimbursableApply entity = new AdFeesReimbursableApply(); |
|
@ -185,6 +201,12 @@ public class AdFeesReimbursableApplyService extends MybatisBaseService<AdFeesRei |
|
|
if (applyDetailVo == null) { |
|
|
if (applyDetailVo == null) { |
|
|
return rb.setMsg("该申请不存在"); |
|
|
return rb.setMsg("该申请不存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(applyDetailVo.getIsSpecialSeatValue())) { |
|
|
|
|
|
applyDetailVo.setIsTravelCharge(true); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isNotBlank(applyDetailVo.getIsExpensiveValue())) { |
|
|
|
|
|
applyDetailVo.setIsBanquetExpense(true); |
|
|
|
|
|
} |
|
|
List<String> files = oaAppendixService.selectByLinkSid(sid, "图片"); |
|
|
List<String> files = oaAppendixService.selectByLinkSid(sid, "图片"); |
|
|
List<String> appes = oaAppendixService.selectByLinkSid(sid, "文件"); |
|
|
List<String> appes = oaAppendixService.selectByLinkSid(sid, "文件"); |
|
|
applyDetailVo.setFiles(files); |
|
|
applyDetailVo.setFiles(files); |
|
|