|
|
@ -413,6 +413,13 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
if (null != busFiles && i > 0) { |
|
|
|
this.uploadPicture(dto); |
|
|
|
} |
|
|
|
BusDiscountpackageHandoverDetailsVo detailsVo = this.handoverDetails(sid); |
|
|
|
String s = commonCreatePdf(detailsVo); |
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
|
String filePath = s.substring(targetPath.length()); |
|
|
|
BusDiscountpackageHandover entity = fetchBySid(sid); |
|
|
|
entity.setFilePath(filePath); |
|
|
|
baseMapper.updateById(entity); |
|
|
|
} else if ((sysRoleVo.getName()).contains("优惠包管理员")) { |
|
|
|
dto.setTransferStateKey("003"); |
|
|
|
dto.setTransferStateValue("移交中"); |
|
|
@ -647,9 +654,16 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
IPage<BusDiscountpackageHandover> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<AppBusDiscountpackageHandoverVo> pagging = baseMapper.selectAppPageVo(page, qw); |
|
|
|
List<AppBusDiscountpackageHandoverVo> records = pagging.getRecords(); |
|
|
|
String urlPrefix = docPdfComponent.getPrefixTemplateUrl(); |
|
|
|
if (null != records && records.size() > 0) { |
|
|
|
for (AppBusDiscountpackageHandoverVo record : records) { |
|
|
|
if (null != record) { |
|
|
|
if (StringUtils.isNotBlank(record.getFilePath())) { |
|
|
|
record.setShowDownloadBtn(true); |
|
|
|
record.setFilePath(urlPrefix + record.getFilePath()); |
|
|
|
} else { |
|
|
|
record.setShowDownloadBtn(false); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(record.getVins())) { |
|
|
|
record.setVins("-"); |
|
|
|
} |
|
|
@ -901,6 +915,11 @@ public class BusDiscountpackageHandoverService extends MybatisBaseService<BusDis |
|
|
|
entity.setRecTime(new Date()); |
|
|
|
entity.setTransferStateValue("已移交"); |
|
|
|
entity.setTransferStateKey("004"); |
|
|
|
BusDiscountpackageHandoverDetailsVo detailsVo = this.handoverDetails(dto.getSid()); |
|
|
|
String s = commonCreatePdf(detailsVo); |
|
|
|
String targetPath = docPdfComponent.getUploadTemplateUrl(); |
|
|
|
String filePath = s.substring(targetPath.length()); |
|
|
|
entity.setFilePath(filePath); |
|
|
|
baseMapper.updateById(entity); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|