|
|
@@ -59,9 +59,9 @@ public interface FsStoreDeliversMapper {
|
|
|
* @param orderId 订单ID
|
|
|
* @return 发货信息
|
|
|
*/
|
|
|
- @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and type=0")
|
|
|
+ @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and ifnull(type,0)=0")
|
|
|
List<FsStoreDelivers> findByOrderId(@Param("orderId") Long orderId);
|
|
|
- @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and type=#{type}")
|
|
|
+ @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and ifnull(type,0)=#{type}")
|
|
|
List<FsStoreDelivers> findByOrderIdWithType(@Param("orderId") Long orderId,@Param("type") Integer type);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
@@ -75,7 +75,7 @@ public interface FsStoreDeliversMapper {
|
|
|
@MapKey("orderId")
|
|
|
Map<Long,FsStoreDelivers> findByOrderIdWithTypeBatch(@Param("orderIds") List<Long> orderId, @Param("type") Integer type);
|
|
|
|
|
|
- @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and type=#{type} limit 1")
|
|
|
+ @Select("SELECT * FROM fs_store_delivers WHERE order_id = #{orderId} and ifnull(type,0)=#{type} limit 1")
|
|
|
FsStoreDelivers findByOrderIdWithTypeSingle(@Param("orderId") Long orderId,@Param("type") Integer type);
|
|
|
|
|
|
/**
|