|
@@ -58,6 +58,10 @@
|
|
<if test="name != null and name.trim() != ''">
|
|
<if test="name != null and name.trim() != ''">
|
|
AND name LIKE concat('%',#{name},'%')
|
|
AND name LIKE concat('%',#{name},'%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="exportDataType != null and exportDataType.trim() != ''">
|
|
|
|
+ AND export_data_type = #{exportDataType}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
<choose>
|
|
<choose>
|
|
<when test="sidx != null and sidx.trim() != ''">
|
|
<when test="sidx != null and sidx.trim() != ''">
|
|
order by ${sidx} ${order}
|
|
order by ${sidx} ${order}
|
|
@@ -70,21 +74,24 @@
|
|
limit #{offset}, #{limit}
|
|
limit #{offset}, #{limit}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="queryTotal" resultType="int">
|
|
<select id="queryTotal" resultType="int">
|
|
select count(*) from mall_export_exception_data
|
|
select count(*) from mall_export_exception_data
|
|
WHERE 1=1
|
|
WHERE 1=1
|
|
- <if test="name != null and name.trim() != ''">
|
|
|
|
- AND name LIKE concat('%',#{name},'%')
|
|
|
|
- </if>
|
|
|
|
<if test="storeId != null and storeId != '' ">
|
|
<if test="storeId != null and storeId != '' ">
|
|
AND store_id = #{storeId}
|
|
AND store_id = #{storeId}
|
|
</if>
|
|
</if>
|
|
<if test="merchSn != null and merchSn.trim() != '' ">
|
|
<if test="merchSn != null and merchSn.trim() != '' ">
|
|
AND merch_sn = #{merchSn}
|
|
AND merch_sn = #{merchSn}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="name != null and name.trim() != ''">
|
|
|
|
+ AND name LIKE concat('%',#{name},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="exportDataType != null and exportDataType.trim() != ''">
|
|
|
|
+ AND export_data_type = #{exportDataType}
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="save" parameterType="com.kmall.admin.entity.ExportExceptionDataEntity" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="save" parameterType="com.kmall.admin.entity.ExportExceptionDataEntity" useGeneratedKeys="true" keyProperty="id">
|
|
insert into mall_export_exception_data(
|
|
insert into mall_export_exception_data(
|
|
`export_exception_data`,
|
|
`export_exception_data`,
|
|
@@ -109,9 +116,9 @@
|
|
#{modTime},
|
|
#{modTime},
|
|
#{tstm})
|
|
#{tstm})
|
|
</insert>
|
|
</insert>
|
|
-
|
|
|
|
|
|
+
|
|
<update id="update" parameterType="com.kmall.admin.entity.ExportExceptionDataEntity">
|
|
<update id="update" parameterType="com.kmall.admin.entity.ExportExceptionDataEntity">
|
|
- update mall_export_exception_data
|
|
|
|
|
|
+ update mall_export_exception_data
|
|
<set>
|
|
<set>
|
|
<if test="exportExceptionData != null">`export_exception_data` = #{exportExceptionData}, </if>
|
|
<if test="exportExceptionData != null">`export_exception_data` = #{exportExceptionData}, </if>
|
|
<if test="exportDataType != null">`export_data_type` = #{exportDataType}, </if>
|
|
<if test="exportDataType != null">`export_data_type` = #{exportDataType}, </if>
|
|
@@ -126,16 +133,16 @@
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
|
|
+
|
|
<delete id="delete">
|
|
<delete id="delete">
|
|
delete from mall_export_exception_data where id = #{value}
|
|
delete from mall_export_exception_data where id = #{value}
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
|
|
+
|
|
<delete id="deleteBatch">
|
|
<delete id="deleteBatch">
|
|
- delete from mall_export_exception_data where id in
|
|
|
|
|
|
+ delete from mall_export_exception_data where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
-</mapper>
|
|
|
|
|
|
+</mapper>
|