Commit 0e75b2bf authored by honghy's avatar honghy Committed by wux

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

parent a6e11d2e
...@@ -724,7 +724,7 @@ public interface OfferMapper extends BaseMapperX<OfferDO> { ...@@ -724,7 +724,7 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) ", "join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) ",
"left join system_user u on u.id = o.follow_up_salesman_id ", "left join system_user u on u.id = o.follow_up_salesman_id ",
"where o.deleted = 0", "where o.deleted = 0",
"AND o.`status` in(2,1,6,8,3)", "AND o.`status` in(0,1,2,3,4,5,6,7,9)",
"AND (o.`order_id` is null or o.`order_id` = 0)", "AND (o.`order_id` is null or o.`order_id` = 0)",
"AND o.`end_time` > now()", "AND o.`end_time` > now()",
"AND (o.`consignor_id` = #{queryVO.consignorId}", "AND (o.`consignor_id` = #{queryVO.consignorId}",
......
...@@ -36,9 +36,9 @@ public class OfferAssociationOrderListener { ...@@ -36,9 +36,9 @@ public class OfferAssociationOrderListener {
if (Objects.isNull(offerDO)) { if (Objects.isNull(offerDO)) {
throw exception(OFFER_NOT_EXISTS); throw exception(OFFER_NOT_EXISTS);
} }
if (offerDO.getStatus() == 2) { // if (offerDO.getStatus() == 2) {
throw exception(OFFER_STATUS_ERROR); // throw exception(OFFER_STATUS_ERROR);
} // }
if (Objects.nonNull(offerDO.getOrderId()) && offerDO.getOrderId() > 0L) { if (Objects.nonNull(offerDO.getOrderId()) && offerDO.getOrderId() > 0L) {
if (!Objects.equals(offerDO.getOrderId(), event.getOrderId())) { if (!Objects.equals(offerDO.getOrderId(), event.getOrderId())) {
throw exception(ORDER_ASSOCIATION_OFFER_NO_CAN_UPDATE); throw exception(ORDER_ASSOCIATION_OFFER_NO_CAN_UPDATE);
......
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