|
|
@@ -3,9 +3,9 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fs.hisStore.mapper.FsUserBillScrmMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="FsUserBillScrm" id="FsUserBillResult">
|
|
|
- <result property="id" column="id" />
|
|
|
+ <result property="bill_id" column="id" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
<result property="businessId" column="business_id" />
|
|
|
<result property="category" column="category" />
|
|
|
@@ -22,12 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserBillVo">
|
|
|
- select id, user_id, business_id, category, bill_type, type, title, number, balance, remark, create_time, update_time, status,tui_user_id from fs_user_bill
|
|
|
+ select bill_id, user_id, business_id, category, bill_type, type, title, number, balance, remark, create_time, update_time, status,tui_user_id from fs_user_bill
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserBillList" parameterType="FsUserBillScrm" resultMap="FsUserBillResult">
|
|
|
<include refid="selectFsUserBillVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
<if test="businessId != null and businessId != ''"> and business_id = #{businessId}</if>
|
|
|
<if test="category != null and category != ''"> and category = #{category}</if>
|
|
|
@@ -40,12 +40,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiUserId != null "> and tui_user_id = #{tuiUserId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectFsUserBillById" parameterType="Long" resultMap="FsUserBillResult">
|
|
|
<include refid="selectFsUserBillVo"/>
|
|
|
- where id = #{id}
|
|
|
+ where bill_id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertFsUserBill" parameterType="FsUserBillScrm" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into fs_user_bill
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -97,18 +97,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="tuiUserId != null">tui_user_id = #{tuiUserId},</if>
|
|
|
</trim>
|
|
|
- where id = #{id}
|
|
|
+ where bill_id = #{id}
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteFsUserBillById" parameterType="Long">
|
|
|
- delete from fs_user_bill where id = #{id}
|
|
|
+ delete from fs_user_bill where bill_id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteFsUserBillByIds" parameterType="String">
|
|
|
- delete from fs_user_bill where id in
|
|
|
+ delete from fs_user_bill where bill_id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-
|
|
|
-</mapper>
|
|
|
+
|
|
|
+</mapper>
|