fix review
This commit is contained in:
@@ -33,11 +33,12 @@ public class LinePayDAO {
|
||||
}
|
||||
|
||||
/**
|
||||
* //todo 全部替换掉后弃用
|
||||
*
|
||||
* @param lineId
|
||||
* @param payBusinessType
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
public LinePayDO getLinePayByLineIdAndPayType(Long lineId,Integer payBusinessType) {
|
||||
LinePayDO linePayDO = linePayMapper.getByLineIdAndPayTypeAndShopId(lineId,payBusinessType,null);
|
||||
return linePayDO;
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.FranchiseFeeDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface FranchiseFeeMapper extends Mapper<FranchiseFeeDO> {
|
||||
FranchiseFeeDO selectByShopId(@Param("shopId") Long shopId);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.FranchiseFeeMapper">
|
||||
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.FranchiseFeeDO">
|
||||
select *
|
||||
from xfsg_franchise_fee
|
||||
where shop_id = #{shopId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -101,7 +101,10 @@
|
||||
deleted,
|
||||
</if>
|
||||
<if test="payBusinessType !=null">
|
||||
pay_business_type
|
||||
pay_business_type,
|
||||
</if>
|
||||
<if test="shopId !=null">
|
||||
shop_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
@@ -160,7 +163,10 @@
|
||||
#{deleted,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="payBusinessType !=null">
|
||||
#{payBusinessType,jdbcType=TINYINT}
|
||||
#{payBusinessType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="shopId !=null">
|
||||
#{shopId},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
Reference in New Issue
Block a user