d0fcac64 刘嘉

菠萝派接口- 发货,运单号有多个以;分割

1 个父辈 694069be
......@@ -363,7 +363,7 @@
<!-- 订单发货-->
<select id="getOrderByMap" parameterType="java.util.Map" resultType="java.lang.Integer">
SELECT COUNT(*) FROM ${doingOrderTable} WHERE express_code like concat(#{expressCode},'%') AND order_code = #{orderCode}
SELECT COUNT(*) FROM ${doingOrderTable} WHERE express_code like concat(concat('%',#{expressCode},'%')) AND order_code = #{orderCode}
AND supplier_id = #{supplierId}
</select>
......@@ -431,7 +431,7 @@
buyer_username =#{buyerUsername},
</if>
<if test="expressCode !=null and expressCode !='' ">
express_code = concat(IFNULL(concat(express_code,','),''),#{expressCode}),
express_code = #{expressCode},
</if>
<if test="buyerPhone !=null and buyerPhone !=''">
buyer_phone = #{buyerPhone},
......
......@@ -63,6 +63,14 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen
if(num > 0){
params.put("expressCode","");
}else{
if(!StringUtil.isNull(callRequest.getBizModel().getLogisticNo())){
if(StringUtil.isNull(iMDoingOrderBean.getExpressCode())){
params.put("expressCode",callRequest.getBizModel().getLogisticNo());
}else{
params.put("expressCode",iMDoingOrderBean.getExpressCode()+";"+callRequest.getBizModel().getLogisticNo());
}
}
}
if(StringUtil.isNull(callRequest.getBizModel().getSenderName())){
params.put("buyerUsername","");
......