You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
179 lines
9.3 KiB
179 lines
9.3 KiB
<?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.lzbi.draft.mapper.DcBusiTargetAdjustDayMasterMapper">
|
|
|
|
<resultMap type="com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao" id="DcBusiTargetAdjustDayMasterResult">
|
|
<result property="billSerial" column="bill_serial"/>
|
|
<result property="biilType" column="biil_type"/>
|
|
<result property="companyId" column="company_id"/>
|
|
<result property="companyName" column="company_name"/>
|
|
<result property="organizeName" column="organize_name"/>
|
|
<result property="oragnizeId" column="oragnize_id"/>
|
|
<result property="assetCode" column="asset_code"/>
|
|
<result property="assetName" column="asset_name"/>
|
|
<result property="fieldCode" column="field_code"/>
|
|
<result property="fieldName" column="field_name"/>
|
|
<result property="id" column="id"/>
|
|
<result property="dateAdjust" column="date_adjust"/>
|
|
<result property="tenantId" column="tenant_id"/>
|
|
<result property="revision" column="revision"/>
|
|
<result property="createdBy" column="created_by"/>
|
|
<result property="createdTime" column="created_time"/>
|
|
<result property="updatedBy" column="updated_by"/>
|
|
<result property="updatedTime" column="updated_time"/>
|
|
<result property="deleteBy" column="delete_by"/>
|
|
<result property="deleteTime" column="delete_time"/>
|
|
<result property="checkStauts" column="check_stauts"/>
|
|
<result property="checkType" column="check_type"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectDcBusiTargetAdjustDayMasterVo">
|
|
select bill_serial,
|
|
biil_type,
|
|
company_id,
|
|
company_name,
|
|
organize_name,
|
|
oragnize_id,
|
|
asset_code,
|
|
asset_name,
|
|
field_code,
|
|
field_name,
|
|
id,
|
|
date_adjust,
|
|
tenant_id,
|
|
revision,
|
|
created_by,
|
|
created_time,
|
|
updated_by,
|
|
updated_time,
|
|
delete_by,
|
|
delete_time,
|
|
check_stauts,
|
|
check_type
|
|
from dc_busi_target_adjust_day_master
|
|
</sql>
|
|
|
|
<select id="selectDcBusiTargetAdjustDayMasterDaoList" parameterType="DcBusiTargetAdjustDayMasterDao"
|
|
resultMap="DcBusiTargetAdjustDayMasterResult">
|
|
<include refid="selectDcBusiTargetAdjustDayMasterVo"/>
|
|
<where>
|
|
<if test="billSerial != null and billSerial != ''">and bill_serial = #{billSerial}</if>
|
|
<if test="biilType != null and biilType != ''">and biil_type = #{biilType}</if>
|
|
<if test="companyId != null ">and company_id = #{companyId}</if>
|
|
<if test="companyName != null and companyName != ''">and company_name like concat('%', #{companyName},
|
|
'%')
|
|
</if>
|
|
<if test="organizeName != null and organizeName != ''">and organize_name like concat('%', #{organizeName},
|
|
'%')
|
|
</if>
|
|
<if test="oragnizeId != null ">and oragnize_id = #{oragnizeId}</if>
|
|
<if test="assetCode != null and assetCode != ''">and asset_code = #{assetCode}</if>
|
|
<if test="assetName != null and assetName != ''">and asset_name like concat('%', #{assetName}, '%')</if>
|
|
<if test="fieldCode != null and fieldCode != ''">and field_code = #{fieldCode}</if>
|
|
<if test="fieldName != null and fieldName != ''">and field_name like concat('%', #{fieldName}, '%')</if>
|
|
<if test="dateAdjust != null and dateAdjust != ''">and date_adjust = #{dateAdjust}</if>
|
|
<if test="checkStauts != null and checkStauts != ''">and check_stauts = #{checkStauts}</if>
|
|
<if test="checkType != null and checkType != ''">and check_type = #{checkType}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectDcBusiTargetAdjustDayMasterDaoById" parameterType="Long"
|
|
resultMap="DcBusiTargetAdjustDayMasterResult">
|
|
<include refid="selectDcBusiTargetAdjustDayMasterVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao" useGeneratedKeys="true"
|
|
keyProperty="id">
|
|
insert into dc_busi_target_adjust_day_master
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="billSerial != null">bill_serial,</if>
|
|
<if test="biilType != null">biil_type,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyName != null">company_name,</if>
|
|
<if test="organizeName != null">organize_name,</if>
|
|
<if test="oragnizeId != null">oragnize_id,</if>
|
|
<if test="assetCode != null">asset_code,</if>
|
|
<if test="assetName != null">asset_name,</if>
|
|
<if test="fieldCode != null">field_code,</if>
|
|
<if test="fieldName != null">field_name,</if>
|
|
<if test="dateAdjust != null">date_adjust,</if>
|
|
<if test="tenantId != null">tenant_id,</if>
|
|
<if test="revision != null">revision,</if>
|
|
<if test="createdBy != null">created_by,</if>
|
|
<if test="createdTime != null">created_time,</if>
|
|
<if test="updatedBy != null">updated_by,</if>
|
|
<if test="updatedTime != null">updated_time,</if>
|
|
<if test="deleteBy != null">delete_by,</if>
|
|
<if test="deleteTime != null">delete_time,</if>
|
|
<if test="checkStauts != null">check_stauts,</if>
|
|
<if test="checkType != null">check_type,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="billSerial != null">#{billSerial},</if>
|
|
<if test="biilType != null">#{biilType},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyName != null">#{companyName},</if>
|
|
<if test="organizeName != null">#{organizeName},</if>
|
|
<if test="oragnizeId != null">#{oragnizeId},</if>
|
|
<if test="assetCode != null">#{assetCode},</if>
|
|
<if test="assetName != null">#{assetName},</if>
|
|
<if test="fieldCode != null">#{fieldCode},</if>
|
|
<if test="fieldName != null">#{fieldName},</if>
|
|
<if test="dateAdjust != null">#{dateAdjust},</if>
|
|
<if test="tenantId != null">#{tenantId},</if>
|
|
<if test="revision != null">#{revision},</if>
|
|
<if test="createdBy != null">#{createdBy},</if>
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
<if test="updatedBy != null">#{updatedBy},</if>
|
|
<if test="updatedTime != null">#{updatedTime},</if>
|
|
<if test="deleteBy != null">#{deleteBy},</if>
|
|
<if test="deleteTime != null">#{deleteTime},</if>
|
|
<if test="checkStauts != null">#{checkStauts},</if>
|
|
<if test="checkType != null">#{checkType},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao">
|
|
update dc_busi_target_adjust_day_master
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="billSerial != null">bill_serial = #{billSerial},</if>
|
|
<if test="biilType != null">biil_type = #{biilType},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyName != null">company_name = #{companyName},</if>
|
|
<if test="organizeName != null">organize_name = #{organizeName},</if>
|
|
<if test="oragnizeId != null">oragnize_id = #{oragnizeId},</if>
|
|
<if test="assetCode != null">asset_code = #{assetCode},</if>
|
|
<if test="assetName != null">asset_name = #{assetName},</if>
|
|
<if test="fieldCode != null">field_code = #{fieldCode},</if>
|
|
<if test="fieldName != null">field_name = #{fieldName},</if>
|
|
<if test="dateAdjust != null">date_adjust = #{dateAdjust},</if>
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
<if test="revision != null">revision = #{revision},</if>
|
|
<if test="createdBy != null">created_by = #{createdBy},</if>
|
|
<if test="createdTime != null">created_time = #{createdTime},</if>
|
|
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
|
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
|
<if test="deleteBy != null">delete_by = #{deleteBy},</if>
|
|
<if test="deleteTime != null">delete_time = #{deleteTime},</if>
|
|
<if test="checkStauts != null">check_stauts = #{checkStauts},</if>
|
|
<if test="checkType != null">check_type = #{checkType},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterDaoById" parameterType="Long">
|
|
delete
|
|
from dc_busi_target_adjust_day_master
|
|
where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterDaoByIds" parameterType="String">
|
|
delete from dc_busi_target_adjust_day_master where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper>
|