增加业务报表备注功能,可以根据业务设计开发,目前电表报表与收益报表均有备注列可以修改
This commit is contained in:
@ -0,0 +1,81 @@
|
|||||||
|
<?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.xzzn.ems.mapper.SysBizRemarkMapper">
|
||||||
|
|
||||||
|
<resultMap id="SysBizRemarkResult" type="com.xzzn.ems.domain.SysBizRemark">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="bizType" column="biz_type"/>
|
||||||
|
<result property="bizKey1" column="biz_key1"/>
|
||||||
|
<result property="bizKey2" column="biz_key2"/>
|
||||||
|
<result property="remark" column="remark"/>
|
||||||
|
<result property="createBy" column="create_by"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="updateBy" column="update_by"/>
|
||||||
|
<result property="updateTime" column="update_time"/>
|
||||||
|
<result property="delFlag" column="del_flag"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSysBizRemarkColumns">
|
||||||
|
select id, biz_type, biz_key1, biz_key2, remark, create_by, create_time, update_by, update_time, del_flag
|
||||||
|
from sys_biz_remark
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByBizKeys" resultMap="SysBizRemarkResult">
|
||||||
|
<include refid="selectSysBizRemarkColumns"/>
|
||||||
|
where biz_type = #{bizType}
|
||||||
|
and biz_key1 = #{bizKey1}
|
||||||
|
and biz_key2 = #{bizKey2}
|
||||||
|
and del_flag = '0'
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectByBizKey2List" resultMap="SysBizRemarkResult">
|
||||||
|
<include refid="selectSysBizRemarkColumns"/>
|
||||||
|
where biz_type = #{bizType}
|
||||||
|
and biz_key1 = #{bizKey1}
|
||||||
|
and del_flag = '0'
|
||||||
|
and biz_key2 in
|
||||||
|
<foreach collection="bizKey2List" item="bizKey2" open="(" separator="," close=")">
|
||||||
|
#{bizKey2}
|
||||||
|
</foreach>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSysBizRemark" parameterType="com.xzzn.ems.domain.SysBizRemark" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into sys_biz_remark
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="bizType != null">biz_type,</if>
|
||||||
|
<if test="bizKey1 != null">biz_key1,</if>
|
||||||
|
<if test="bizKey2 != null">biz_key2,</if>
|
||||||
|
<if test="remark != null">remark,</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>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="bizType != null">#{bizType},</if>
|
||||||
|
<if test="bizKey1 != null">#{bizKey1},</if>
|
||||||
|
<if test="bizKey2 != null">#{bizKey2},</if>
|
||||||
|
<if test="remark != null">#{remark},</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>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSysBizRemark" parameterType="com.xzzn.ems.domain.SysBizRemark">
|
||||||
|
update sys_biz_remark
|
||||||
|
<trim prefix="set" suffixOverrides=",">
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user