@ -45,6 +45,7 @@ import com.yxt.anrui.fin.biz.finpaymentapply.FinPaymentapplyService;
import com.yxt.anrui.fin.biz.kingdee.appaybill.ApPayBillService ;
import com.yxt.anrui.fin.biz.kingdee.appaybill.ApPayBillService ;
import com.yxt.anrui.flowable.api.flowtask.FlowRecordVo ;
import com.yxt.anrui.flowable.api.flowtask.FlowRecordVo ;
import com.yxt.anrui.flowable.api.flowtask.FlowTask ;
import com.yxt.anrui.flowable.api.flowtask.FlowTask ;
import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign ;
import com.yxt.anrui.portal.api.flow.FlowableFeign ;
import com.yxt.anrui.portal.api.flow.FlowableFeign ;
import com.yxt.anrui.portal.api.sysorganization.SysOrganization ;
import com.yxt.anrui.portal.api.sysorganization.SysOrganization ;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign ;
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign ;
@ -114,7 +115,7 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord
@Autowired
@Autowired
private FileUploadComponent fileUploadComponent ;
private FileUploadComponent fileUploadComponent ;
@Autowired
@Autowired
private FlowableFeign flowable Feign ;
private FlowTaskFeign flowTask Feign ;
@Autowired
@Autowired
private DocPdfComponent docPdfComponent ;
private DocPdfComponent docPdfComponent ;
@ -359,14 +360,14 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord
if ( StringUtils . isNotBlank ( baseOutsourcingApplicationDetailsVo . getApplicationCode ( ) ) ) {
if ( StringUtils . isNotBlank ( baseOutsourcingApplicationDetailsVo . getApplicationCode ( ) ) ) {
dataMap . put ( "applyCode" , baseOutsourcingApplicationDetailsVo . getApplicationCode ( ) ) ;
dataMap . put ( "applyCode" , baseOutsourcingApplicationDetailsVo . getApplicationCode ( ) ) ;
//获取审批记录
//获取审批记录
FlowRecordVo flowRecordVo = flowableFeign . f lowRecord ( baseOutsourcingApplicationDetailsVo . getProcInstSid ( ) , null ) . getData ( ) ;
FlowRecordVo flowRecordVo = flowTaskFeign . businessF lowRecord ( baseOutsourcingApplicationDetailsVo . getProcInstSid ( ) ) . getData ( ) ;
List < FlowTask > flowList = flowRecordVo . getFlowList ( ) ;
List < FlowTask > flowList = flowRecordVo . getFlowList ( ) ;
List < FinPaymentrecordSourceLCVo > finPaymentrecordSourceLCVos = new ArrayList < > ( ) ;
List < FinPaymentrecordSourceLCVo > finPaymentrecordSourceLCVos = new ArrayList < > ( ) ;
for ( FlowTask flowTask : flowList ) {
for ( FlowTask flowTask : flowList ) {
FinPaymentrecordSourceLCVo finPaymentrecordSourceLCVo = new FinPaymentrecordSourceLCVo ( ) ;
FinPaymentrecordSourceLCVo finPaymentrecordSourceLCVo = new FinPaymentrecordSourceLCVo ( ) ;
finPaymentrecordSourceLCVo . setName ( flowTask . getAssigneeName ( ) ) ;
finPaymentrecordSourceLCVo . setName ( flowTask . getAssigneeName ( ) ) ;
finPaymentrecordSourceLCVo . setComment ( flowTask . getComment ( ) . getComment ( ) ) ;
finPaymentrecordSourceLCVo . setComment ( flowTask . getComment ( ) . getComment ( ) ) ;
finPaymentrecordSourceLCVo . setSpsj ( flowTask . getFinishTime ( ) ) ;
finPaymentrecordSourceLCVo . setSpsj ( DateUtil . format ( flowTask . getFinishTime ( ) , "yyyy-MM-dd" ) ) ;
finPaymentrecordSourceLCVos . add ( finPaymentrecordSourceLCVo ) ;
finPaymentrecordSourceLCVos . add ( finPaymentrecordSourceLCVo ) ;
}
}
dataMap . put ( "lcList" , finPaymentrecordSourceLCVos ) ;
dataMap . put ( "lcList" , finPaymentrecordSourceLCVos ) ;
@ -378,19 +379,19 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord
} else if ( StringUtils . isNotBlank ( busVehicleApplyDetailsVo . getSid ( ) ) ) {
} else if ( StringUtils . isNotBlank ( busVehicleApplyDetailsVo . getSid ( ) ) ) {
dataMap . put ( "applyCode" , busVehicleApplyDetailsVo . getApplicationCode ( ) ) ;
dataMap . put ( "applyCode" , busVehicleApplyDetailsVo . getApplicationCode ( ) ) ;
//获取审批记录
//获取审批记录
FlowRecordVo flowRecordVo = flowableFeign . f lowRecord ( busVehicleApplyDetailsVo . getProcInstId ( ) , null ) . getData ( ) ;
FlowRecordVo flowRecordVo = flowTaskFeign . businessF lowRecord ( busVehicleApplyDetailsVo . getProcInstId ( ) ) . getData ( ) ;
List < FlowTask > flowList = flowRecordVo . getFlowList ( ) ;
List < FlowTask > flowList = flowRecordVo . getFlowList ( ) ;
List < FinPaymentrecordSourceLCVo > finPaymentrecordSourceLCVos = new ArrayList < > ( ) ;
List < FinPaymentrecordSourceLCVo > finPaymentrecordSourceLCVos = new ArrayList < > ( ) ;
for ( FlowTask flowTask : flowList ) {
for ( FlowTask flowTask : flowList ) {
FinPaymentrecordSourceLCVo finPaymentrecordSourceLCVo = new FinPaymentrecordSourceLCVo ( ) ;
FinPaymentrecordSourceLCVo finPaymentrecordSourceLCVo = new FinPaymentrecordSourceLCVo ( ) ;
finPaymentrecordSourceLCVo . setName ( flowTask . getAssigneeName ( ) ) ;
finPaymentrecordSourceLCVo . setName ( flowTask . getAssigneeName ( ) ) ;
finPaymentrecordSourceLCVo . setComment ( flowTask . getComment ( ) . getComment ( ) ) ;
finPaymentrecordSourceLCVo . setComment ( flowTask . getComment ( ) . getComment ( ) ) ;
finPaymentrecordSourceLCVo . setSpsj ( flowTask . getFinishTime ( ) ) ;
finPaymentrecordSourceLCVo . setSpsj ( DateUtil . format ( flowTask . getFinishTime ( ) , "yyyy-MM-dd" ) ) ;
finPaymentrecordSourceLCVos . add ( finPaymentrecordSourceLCVo ) ;
finPaymentrecordSourceLCVos . add ( finPaymentrecordSourceLCVo ) ;
}
}
dataMap . put ( "lcList" , finPaymentrecordSourceLCVos ) ;
dataMap . put ( "lcList" , finPaymentrecordSourceLCVos ) ;
}
}
dataMap . put ( "createTime" , finPaymentrecord . getCreateTime ( ) ) ;
dataMap . put ( "createTime" , DateUtil . format ( finPaymentrecord . getCreateTime ( ) , "yyyy-MM-dd" ) ) ;
dataMap . put ( "createByName" , createByName ) ;
dataMap . put ( "createByName" , createByName ) ;
dataMap . put ( "createByDeptName" , deptName ) ;
dataMap . put ( "createByDeptName" , deptName ) ;
dataMap . put ( "createOrgName" , createOrgName ) ;
dataMap . put ( "createOrgName" , createOrgName ) ;
@ -400,7 +401,8 @@ public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecord
dataMap . put ( "cost" , finPaymentrecord . getCost ( ) ) ;
dataMap . put ( "cost" , finPaymentrecord . getCost ( ) ) ;
dataMap . put ( "payRemark" , finPaymentrecord . getPayRemark ( ) ) ;
dataMap . put ( "payRemark" , finPaymentrecord . getPayRemark ( ) ) ;
//获取图片路径
//获取图片路径
String photoPath = "D:\\anrui\\upload\\20211227\\kbjl_20211227143750186948.jpg" ;
// String photoPath = "file://D:/anrui/upload/20211227/kbjl_20211227143750186948.jpg";
String photoPath = fileUploadComponent . getUrlPrefix ( ) + "20211227/kbjl_20211227143750186948.jpg" ;
String photoPath64 = image2Base64 ( photoPath ) ;
String photoPath64 = image2Base64 ( photoPath ) ;
dataMap . put ( "photoPath64" , photoPath64 ) ;
dataMap . put ( "photoPath64" , photoPath64 ) ;
//获取模板
//获取模板