|
|
@@ -23,144 +23,6 @@
|
|
|
wbf.id, wbf.business_id, wbf.file_path, wbf.remark, wbf.status, wbf.del_flag, wbf.create_by,
|
|
|
wbf.create_time, wbf.update_by, wbf.update_time
|
|
|
</sql>
|
|
|
- <!-- This code was generated by TableGo tools, mark 1 end. -->
|
|
|
-
|
|
|
- <!-- 分页查询钱包_业务文件列表 -->
|
|
|
- <select id="selectWalletBusinessFileList" resultMap="walletBusinessFileMap">
|
|
|
- SELECT
|
|
|
- <include refid="allColumns" />
|
|
|
- FROM wallet_business_file wbf WHERE wbf.DEL_FLAG = '0'
|
|
|
- <if test="businessId != null">
|
|
|
- AND wbf.business_id = #{businessId}
|
|
|
- </if>
|
|
|
- <if test="filePath != null and filePath != ''">
|
|
|
- AND wbf.file_path LIKE CONCAT('%', #{filePath}, '%')
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- 根据主键ID查询钱包_业务文件 -->
|
|
|
- <select id="selectWalletBusinessFileById" resultMap="walletBusinessFileMap">
|
|
|
- SELECT
|
|
|
- <include refid="allColumns" />
|
|
|
- FROM wallet_business_file wbf WHERE wbf.id = #{id}
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- 根据主键ID列表查询钱包_业务文件列表 -->
|
|
|
- <select id="selectWalletBusinessFileByIds" resultMap="walletBusinessFileMap">
|
|
|
- SELECT
|
|
|
- <include refid="allColumns" />
|
|
|
- FROM wallet_business_file wbf WHERE wbf.id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- This code was generated by TableGo tools, mark 2 begin. -->
|
|
|
- <!-- 新增钱包_业务文件 -->
|
|
|
- <insert id="insertWalletBusinessFile" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
- INSERT INTO wallet_business_file
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
- <if test="businessId != null">business_id,</if>
|
|
|
- <if test="filePath != null">file_path,</if>
|
|
|
- <if test="remark != null">remark,</if>
|
|
|
- <if test="status != null">status,</if>
|
|
|
- <if test="delFlag != null">del_flag,</if>
|
|
|
- <if test="createBy != null">create_by,</if>
|
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
- <if test="updateBy != null">update_by,</if>
|
|
|
- <if test="updateTime != null">update_time</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
- <if test="businessId != null">#{businessId},</if>
|
|
|
- <if test="filePath != null">#{filePath},</if>
|
|
|
- <if test="remark != null">#{remark},</if>
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
- <if test="delFlag != null">#{delFlag},</if>
|
|
|
- <if test="createBy != null">#{createBy},</if>
|
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
- <if test="updateBy != null">#{updateBy},</if>
|
|
|
- <if test="updateTime != null">#{updateTime}</if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into wallet_business_file
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- id,
|
|
|
- business_id,
|
|
|
- file_path,
|
|
|
- remark,
|
|
|
- status,
|
|
|
- create_by,
|
|
|
- create_time,
|
|
|
- update_by,
|
|
|
- update_time,
|
|
|
- del_flag
|
|
|
- </trim>
|
|
|
- values
|
|
|
- <foreach collection="list" item="item" separator=",">
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- #{item.id,jdbcType=BIGINT},
|
|
|
- #{item.businessId,jdbcType=BIGINT},
|
|
|
- #{item.filePath,jdbcType=VARCHAR},
|
|
|
- #{item.remark,jdbcType=VARCHAR},
|
|
|
- #{item.status,jdbcType=INTEGER},
|
|
|
- #{item.createBy,jdbcType=BIGINT},
|
|
|
- #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.updateBy,jdbcType=BIGINT},
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.delFlag,jdbcType=INTEGER}
|
|
|
- </trim>
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <!-- 修改钱包_业务文件 -->
|
|
|
- <update id="updateWalletBusinessFile">
|
|
|
- UPDATE wallet_business_file
|
|
|
- <set>
|
|
|
- <if test="businessId != null">business_id = #{businessId},</if>
|
|
|
- <if test="filePath != null">file_path = #{filePath},</if>
|
|
|
- <if test="remark != null">remark = #{remark},</if>
|
|
|
- <if test="status != null">status = #{status},</if>
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
- <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime}</if>
|
|
|
- </set>
|
|
|
- WHERE id = #{id}
|
|
|
- </update>
|
|
|
- <!-- This code was generated by TableGo tools, mark 2 end. -->
|
|
|
-
|
|
|
- <!-- 删除钱包_业务文件 -->
|
|
|
- <delete id="deleteWalletBusinessFileById">
|
|
|
- DELETE FROM wallet_business_file WHERE id = #{id}
|
|
|
- </delete>
|
|
|
-
|
|
|
- <!-- 批量删除钱包_业务文件 -->
|
|
|
- <delete id="deleteWalletBusinessFileByIds">
|
|
|
- DELETE FROM wallet_business_file WHERE id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
-
|
|
|
- <!-- 批量逻辑删除钱包_业务文件 -->
|
|
|
- <update id="deleteWalletBusinessFileLogicByIds">
|
|
|
- UPDATE wallet_business_file
|
|
|
- <set>
|
|
|
- DEL_FLAG = '2',
|
|
|
- UPDATE_TIME = NOW(),
|
|
|
- <if test="loginName != null and loginName != ''">UPDATE_BY = #{loginName}</if>
|
|
|
- </set>
|
|
|
- WHERE DEL_FLAG = '0' AND id IN
|
|
|
- <foreach collection="idList" index="index" item="id" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </update>
|
|
|
-
|
|
|
|
|
|
<!-- 根据主键ID查询钱包_业务文件 -->
|
|
|
<select id="selectFileByBusinessId" resultType="String">
|