|
|
@ -164,6 +164,7 @@ import com.yxt.anrui.riskcenter.api.loansolutionsotherpolicy.LoanSolutionsOtherp |
|
|
|
import com.yxt.anrui.riskcenter.api.loansolutionsotherpolicy.LoanSolutionsOtherpolicyFeign; |
|
|
|
import com.yxt.anrui.scm.api.scmwarehouse.ScmWarehouseFeign; |
|
|
|
import com.yxt.anrui.scm.api.scmwarehouse.ScmWarehouseVo; |
|
|
|
import com.yxt.common.base.config.component.DocPdfComponent; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.Base64; |
|
|
@ -311,6 +312,8 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
private FinUncollectedReceivablesDetailedFeign finUncollectedReceivablesDetailedFeign; |
|
|
|
@Autowired |
|
|
|
private BaseDiscountpackageFeign baseDiscountpackageFeign; |
|
|
|
@Autowired |
|
|
|
private DocPdfComponent docPdfComponent; |
|
|
|
|
|
|
|
/** |
|
|
|
* 构造查询条件 |
|
|
@ -5856,10 +5859,26 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
qw.like("ls.factoryDiscount", pagerQuery.getFactoryDiscount()); |
|
|
|
} |
|
|
|
String typeState = "getSaleOrdersByOrgPath";//查询接口的标识
|
|
|
|
String urlPrefix = docPdfComponent.getPrefixTemplateUrl(); |
|
|
|
String temp = "/template/"; |
|
|
|
IPage<AppBusSalesOrderVo> pagging = baseMapper.getSaleOrdersByOrgPath(page, qw, pq.getParams().getName(), typeState, pagerQuery.getVinNo(), pagerQuery.getOrderingNo()); |
|
|
|
for (AppBusSalesOrderVo record : pagging.getRecords()) { |
|
|
|
record.setShowStopBtn(false); |
|
|
|
record.setShowContractBtn(false); |
|
|
|
record.setShowContractBtn2(false); |
|
|
|
//判断该合同是否有下载附件
|
|
|
|
if (StringUtils.isNotBlank(record.getContractId())) { |
|
|
|
String contractId = record.getContractId(); |
|
|
|
CommonContract contract = commonContractFeign.selectByNo(contractId).getData(); |
|
|
|
if (null != contract) { |
|
|
|
if (StringUtils.isNotBlank(contract.getContractUrlAll())) { |
|
|
|
record.setShowContractBtn2(true); |
|
|
|
record.setContractPath(urlPrefix + contract.getContractUrlAll()); |
|
|
|
record.setContractFilePath(temp + contract.getContractUrlAll()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(record.getCustomerImage())) { |
|
|
|
record.setCustomerImage(fileUploadComponent.getUrlPrefix() + record.getCustomerImage()); |
|
|
|
} |
|
|
|