|
@@ -15,6 +15,7 @@ import com.fjhx.account.controller.utils.DateUtils;
|
|
|
import com.fjhx.area.utils.CustomizeAreaUtil;
|
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
|
import com.fjhx.common.enums.CodingRuleEnum;
|
|
|
+import com.fjhx.common.enums.FlowStatusEnum1;
|
|
|
import com.fjhx.common.service.coding.CodingRuleService;
|
|
|
import com.fjhx.common.service.corporation.CorporationService;
|
|
|
import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
@@ -24,7 +25,6 @@ import com.fjhx.customer.entity.customer.vo.CustomerVo;
|
|
|
import com.fjhx.customer.service.customer.CustomerService;
|
|
|
import com.fjhx.flow.service.flow.FlowExampleService;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
-import com.fjhx.sale.entity.contract.po.ContractProduct;
|
|
|
import com.fjhx.sale.entity.contract.vo.ContractVo;
|
|
|
import com.fjhx.sale.entity.quotation.po.QuotationPay;
|
|
|
import com.fjhx.sale.entity.quotation.po.QuotationProduct;
|
|
@@ -372,7 +372,11 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
*/
|
|
|
@Override
|
|
|
public Page<SaleQuotationVo> saleDetail(CustomerSelectDto dto) {
|
|
|
- Page<SaleQuotationVo> saleQuotationVoPage = baseMapper.saleDetail(dto.getPage(), dto);
|
|
|
+ IWrapper<SaleQuotation> wrapper = IWrapper.getWrapper();
|
|
|
+ wrapper.eq("t1", SaleQuotation::getBuyCorporationId, dto.getId());
|
|
|
+ wrapper.eq("t1.status", FlowStatusEnum1.PASS.getKey());
|
|
|
+ wrapper.orderByDesc("t1", SaleQuotation::getCreateTime);
|
|
|
+ Page<SaleQuotationVo> saleQuotationVoPage = baseMapper.saleDetail(dto.getPage(), wrapper);
|
|
|
List<SaleQuotationVo> records = saleQuotationVoPage.getRecords();
|
|
|
// 赋值用户名称
|
|
|
UserUtil.assignmentNickName(records, SaleQuotationVo::getCreateUser, SaleQuotationVo::setUserName);
|