fix: 修改包名,模块名。
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
<?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.intc.invest.mapper.ILogMapper">
|
||||
|
||||
<resultMap type="ILogVo" id="ILogResult">
|
||||
<result property="logId" column="log_id" />
|
||||
<result property="mobile" column="mobile" />
|
||||
<result property="logContent" column="log_content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="operTime" column="oper_time" />
|
||||
<result property="createUser" column="create_user" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="type" column="type" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="itemCodeName" column="item_code_name" />
|
||||
<result property="logDetail" column="log_detail" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectILogVo">
|
||||
select a.log_id, a.mobile,a.item_code_name,a.log_detail, a.log_content, a.status, a.oper_time, a.create_user, a.create_by, a.type, a.create_time from i_log a
|
||||
</sql>
|
||||
|
||||
<select id="selectILogList" parameterType="ILogDto" resultMap="ILogResult">
|
||||
<include refid="selectILogVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="mobile != null and mobile != ''"> and a.mobile like '%'|| #{mobile}||'%'</if>
|
||||
<if test="logContent != null and logContent != ''"> and a.log_content like '%'|| #{logContent}||'%'</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="operTime != null "> and a.oper_time = #{operTime}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.oper_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectILogByLogId" parameterType="Long" resultMap="ILogResult">
|
||||
<include refid="selectILogVo"/>
|
||||
where a.log_id = #{logId}
|
||||
</select>
|
||||
|
||||
<insert id="insertILog" parameterType="ILog">
|
||||
insert into i_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">log_id,</if>
|
||||
<if test="mobile != null">mobile,</if>
|
||||
<if test="logContent != null">log_content,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="operTime != null">oper_time,</if>
|
||||
<if test="createUser != null">create_user,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="logDetail != null">log_detail,</if>
|
||||
<if test="itemCodeName != null">item_code_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">#{logId},</if>
|
||||
<if test="mobile != null">#{mobile},</if>
|
||||
<if test="logContent != null">#{logContent},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="operTime != null">#{operTime},</if>
|
||||
<if test="createUser != null">#{createUser},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="logDetail != null">#{logDetail},</if>
|
||||
<if test="itemCodeName != null">#{itemCodeName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateILog" parameterType="ILog">
|
||||
update i_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="mobile != null">mobile = #{mobile},</if>
|
||||
<if test="logContent != null">log_content = #{logContent},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="operTime != null">oper_time = #{operTime},</if>
|
||||
<if test="createUser != null">create_user = #{createUser},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="logDetail != null">log_detail = #{logDetail},</if>
|
||||
<if test="itemCodeName != null">item_code_name = #{itemCodeName},</if>
|
||||
</trim>
|
||||
where log_id = #{logId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteILogByLogId" parameterType="Long">
|
||||
delete from i_log where log_id = #{logId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteILogByLogIds" parameterType="String">
|
||||
delete from i_log where log_id in
|
||||
<foreach item="logId" collection="array" open="(" separator="," close=")">
|
||||
#{logId}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeILogByLogId" parameterType="Long">
|
||||
update i_log set del_flag='1' where log_id = #{logId}
|
||||
</update>
|
||||
|
||||
<update id="removeILogByLogIds" parameterType="String">
|
||||
update i_log set del_flag='1' where log_id in
|
||||
<foreach item="logId" collection="array" open="(" separator="," close=")">
|
||||
#{logId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="cleanLog" >
|
||||
TRUNCATE TABLE i_log
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user