|
@@ -1869,7 +1869,8 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
wrapper.ne("t1",Contract::getIsShow,1);
|
|
|
wrapper.eq("t1", Contract::getStatus, FlowStatusEnum1.PASS.getKey());
|
|
|
wrapper.eq("t1.orderStatus", dto.getOrderStatus());
|
|
|
- Page<ContractVo> page = baseMapper.getExportCopyList(dto.getPage(), wrapper);
|
|
|
+ wrapper.eq(ObjectUtil.isNotEmpty(dto.getDocumentaryType()),"t1.documentaryCount",0);
|
|
|
+ Page<ContractVo> page = baseMapper.getExportCopyList(dto.getPage(), wrapper,dto.getDocumentaryType());
|
|
|
List<ContractVo> list = page.getRecords();
|
|
|
if(CollectionUtils.isNotEmpty(list)){
|
|
|
List<Long> customerIds = list.stream().map(Contract::getBuyCorporationId).collect(Collectors.toList());
|
|
@@ -1931,6 +1932,17 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 外销跟单添加备注
|
|
|
+ * @param contractVo
|
|
|
+ */
|
|
|
+ @DSTransactional
|
|
|
+ @Override
|
|
|
+ public void editContractRemark(ContractVo contractVo) {
|
|
|
+ this.updateById(contractVo);
|
|
|
+ ObsFileUtil.editFile(contractVo.getFileList(), contractVo.getId(), 1);
|
|
|
+ }
|
|
|
+
|
|
|
public static void main(String[] args) {
|
|
|
BigDecimal a = null;
|
|
|
double d1 = a.doubleValue() * 0.13;
|