Commit ba013fd9 by jianan

客户告知书5

parent cae32cdd
......@@ -3768,13 +3768,14 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
public void run() {
AgPoInformed informed = informedMapper.selectByPrimaryKey(requestVO.getId());
if (informed != null) {
Long informedId = informed.getId();
String templatePDF = PDFConfiguration.getProperty("informed.pdf.template");
//模板文件生成临时文件目录
String tmpPathPDF = PDFConfiguration.getProperty("informed.pdf.temp.path");
//PDF模板输出结果文件
String templateResultPDF = tmpPathPDF + informed.getId() + "-signedInformed.pdf";
String templateResultPDF = tmpPathPDF + informedId + "-signedInformed.pdf";
//填充数据
Map<String, String> initDatas = new HashMap<>();
......@@ -3789,15 +3790,15 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
//按模板填充数据生成结果PDF
PDFTemplate.generatePDF(templatePDF, templateResultPDF, initDatas, initImages);
try {
//上传至oss ossService
String ossPath = this.putContractFileToOSS("informed", templateResultPDF, informed.getId());
String ossPath = this.putContractFileToOSS("informed", templateResultPDF, informedId);
informed.setInformedOssPath(ossPath);
informedMapper.updateByPrimaryKeySelective(informed);
MktLeadsAssignedTrack track = new MktLeadsAssignedTrack();
track.setInformedId(id);
mktLeadsAssignedTrackDALService.saveTrack(track);
//更新track
mktLeadsAssignedTrackDALService.updateInformedOssPathByInformedId(ossPath, informedId);
}catch (Exception e) {
e.printStackTrace();
......
package com.yd.dal.entity.meta;
import java.util.Date;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class MdDropOptions {
public class MdDropOptions implements Serializable {
/**
* 选项编号
*/
......
......@@ -60,4 +60,9 @@ public class MktLeadsAssignedTrackDALServiceImpl implements MktLeadsAssignedTrac
public void deleteScheduleTrackById(Long scheduleTrackId) {
mktLeadsAssignedTrackMapper.deleteScheduleTrackById(scheduleTrackId);
}
@Override
public int updateInformedOssPathByInformedId(String ossPath, Long informedId) {
return mktLeadsAssignedTrackMapper.updateInformedOssPathByInformedId(ossPath, informedId);
}
}
......@@ -34,4 +34,6 @@ public interface MktLeadsAssignedTrackDALService {
List<SalesScoreDetail> getSalesScoreDetailByPractitionerId(Long practitionerId, String time);
void deleteScheduleTrackById(Long scheduleTrackId);
int updateInformedOssPathByInformedId(String ossPath, Long informedId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment