Commit cc502763 authored by honghy's avatar honghy

需求95 报价单页面和列表调整

parent de8fad4e
...@@ -104,10 +104,12 @@ public class OfferDO extends BaseDO { ...@@ -104,10 +104,12 @@ public class OfferDO extends BaseDO {
/** /**
* 价格有效期开始 * 价格有效期开始
*/ */
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Date startTime; private Date startTime;
/** /**
* 价格有效期结束 * 价格有效期结束
*/ */
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Date endTime; private Date endTime;
/** /**
* 交货方式:FOB(离岸价),CIF(到岸价),CNF(成本加运费),EXW(出厂价) * 交货方式:FOB(离岸价),CIF(到岸价),CNF(成本加运费),EXW(出厂价)
......
...@@ -382,6 +382,12 @@ public interface OfferMapper extends BaseMapperX<OfferDO> { ...@@ -382,6 +382,12 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"AND o.relation_id = #{pageVO.customerId} ", "AND o.relation_id = #{pageVO.customerId} ",
"</when>", "</when>",
//startWarehouseIds
"<when test = 'pageVO.startWarehouseIds != null and pageVO.startWarehouseIds.size() > 0'>",
"AND st.id IN",
"<foreach item='startWarehouseId' collection='pageVO.startWarehouseIds' open='(' close=')' separator=','> #{startWarehouseId} </foreach>",
"</when>",
"<when test = 'pageVO.beginEstimatedShippingTime != null and pageVO.endEstimatedShippingTime != null '>", "<when test = 'pageVO.beginEstimatedShippingTime != null and pageVO.endEstimatedShippingTime != null '>",
"AND o.`estimated_shipping_time` between #{pageVO.beginEstimatedShippingTime} and #{pageVO.endEstimatedShippingTime}", "AND o.`estimated_shipping_time` between #{pageVO.beginEstimatedShippingTime} and #{pageVO.endEstimatedShippingTime}",
"</when>", "</when>",
......
...@@ -500,9 +500,9 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl ...@@ -500,9 +500,9 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
throw exception(MARKS_LENGTH_MAX, 20); throw exception(MARKS_LENGTH_MAX, 20);
} }
} }
if (null == updateReqVO.getStartTime() || null == updateReqVO.getEndTime()) { // if (null == updateReqVO.getStartTime() || null == updateReqVO.getEndTime()) {
throw exception(OFFER_START_END_TIME_NOT_NULL); // throw exception(OFFER_START_END_TIME_NOT_NULL);
} // }
if (updateReqVO.getRelation() == 1 && (Objects.isNull(updateReqVO.getConsignorId()) || updateReqVO.getConsignorId() == 0)) { if (updateReqVO.getRelation() == 1 && (Objects.isNull(updateReqVO.getConsignorId()) || updateReqVO.getConsignorId() == 0)) {
throw exception(OFFER_ASCRIPTION_CONSIGNOR_NOT_NULL); throw exception(OFFER_ASCRIPTION_CONSIGNOR_NOT_NULL);
} }
...@@ -585,7 +585,7 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl ...@@ -585,7 +585,7 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
if (Objects.nonNull(customerContactsDO.getCustomerId())) { if (Objects.nonNull(customerContactsDO.getCustomerId())) {
CustomerDO customerDO = customerService.getById(customerContactsDO.getCustomerId()); CustomerDO customerDO = customerService.getById(customerContactsDO.getCustomerId());
if (Objects.nonNull(customerDO) && Objects.nonNull(customerDO.getCustomerService())) { if (Objects.nonNull(customerDO) && Objects.nonNull(customerDO.getCustomerService())) {
updateObj.setFollowUpSalesmanId(String.valueOf(customerDO.getCustomerService())); // updateObj.setFollowUpSalesmanId(String.valueOf(customerDO.getCustomerService()));
updateObj.setSalesmanId(customerDO.getCustomerService()); updateObj.setSalesmanId(customerDO.getCustomerService());
AdminUserRespDTO adminUserRespDTO = adminUserApi.getUser(customerDO.getCustomerService()); AdminUserRespDTO adminUserRespDTO = adminUserApi.getUser(customerDO.getCustomerService());
if (Objects.nonNull(adminUserRespDTO)) { if (Objects.nonNull(adminUserRespDTO)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment