统一修改ruoyi->bms

This commit is contained in:
caojia
2026-09-28 10:02:38 +08:00
parent 341afc4111
commit 0408b6c35e
639 changed files with 2776 additions and 2807 deletions
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bms.system.mapper.BmsRegionSyncLogMapper">
<resultMap type="BmsRegionSyncLog" id="BmsRegionSyncLogResult">
<id property="logId" column="log_id" />
<result property="syncType" column="sync_type" />
<result property="status" column="status" />
<result property="totalCount" column="total_count" />
<result property="insertCount" column="insert_count" />
<result property="updateCount" column="update_count" />
<result property="failCount" column="fail_count" />
<result property="durationMs" column="duration_ms" />
<result property="errorMsg" column="error_msg" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSyncLogVo">
select log_id, sync_type, status, total_count, insert_count, update_count,
fail_count, duration_ms, error_msg, create_by, create_time, update_by, update_time
from bms_region_sync_log
</sql>
<select id="selectSyncLogById" parameterType="Long" resultMap="BmsRegionSyncLogResult">
<include refid="selectSyncLogVo"/>
where log_id = #{logId}
</select>
<select id="selectSyncLogList" parameterType="BmsRegionSyncLog" resultMap="BmsRegionSyncLogResult">
<include refid="selectSyncLogVo"/>
<where>
<if test="syncType != null and syncType != ''">
AND sync_type = #{syncType}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="params.beginTime != null and params.beginTime != ''">
and date_format(create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''">
and date_format(create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
</if>
</where>
order by log_id desc
</select>
<insert id="insertSyncLog" parameterType="BmsRegionSyncLog" useGeneratedKeys="true" keyProperty="logId">
insert into bms_region_sync_log (
<if test="syncType != null and syncType != ''">sync_type,</if>
<if test="status != null and status != ''">status,</if>
<if test="totalCount != null">total_count,</if>
<if test="insertCount != null">insert_count,</if>
<if test="updateCount != null">update_count,</if>
<if test="failCount != null">fail_count,</if>
<if test="durationMs != null">duration_ms,</if>
<if test="errorMsg != null">error_msg,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
) values (
<if test="syncType != null and syncType != ''">#{syncType},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="totalCount != null">#{totalCount},</if>
<if test="insertCount != null">#{insertCount},</if>
<if test="updateCount != null">#{updateCount},</if>
<if test="failCount != null">#{failCount},</if>
<if test="durationMs != null">#{durationMs},</if>
<if test="errorMsg != null">#{errorMsg},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateSyncLog" parameterType="BmsRegionSyncLog">
update bms_region_sync_log
<set>
<if test="status != null and status != ''">status = #{status},</if>
<if test="totalCount != null">total_count = #{totalCount},</if>
<if test="insertCount != null">insert_count = #{insertCount},</if>
<if test="updateCount != null">update_count = #{updateCount},</if>
<if test="failCount != null">fail_count = #{failCount},</if>
<if test="durationMs != null">duration_ms = #{durationMs},</if>
<if test="errorMsg != null">error_msg = #{errorMsg},</if>
update_time = sysdate()
</set>
where log_id = #{logId}
</update>
<delete id="deleteSyncLogByIds" parameterType="Long">
delete from bms_region_sync_log where log_id in
<foreach item="logId" collection="array" open="(" separator="," close=")">
#{logId}
</foreach>
</delete>
</mapper>