|
@@ -14,6 +14,7 @@ import com.fjhx.area.utils.CustomizeAreaUtil;
|
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
|
import com.fjhx.common.entity.contract.po.ContractTemplate;
|
|
|
import com.fjhx.common.entity.corporation.po.Corporation;
|
|
|
+import com.fjhx.common.enums.FlowStatusEnum1;
|
|
|
import com.fjhx.common.service.contract.ContractTemplateService;
|
|
|
import com.fjhx.common.service.corporation.CorporationService;
|
|
|
import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
@@ -333,7 +334,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);
|