|
|
@ -1,59 +1,92 @@ |
|
|
|
<?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"> |
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.lzbi.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="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 type="com.lzbi.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, 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 |
|
|
|
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"> |
|
|
|
<select id="selectDcBusiTargetAdjustDayMasterList" parameterType="DcBusiTargetAdjustDayMaster" |
|
|
|
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="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> |
|
|
|
<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"> |
|
|
|
<select id="selectDcBusiTargetAdjustDayMasterById" parameterType="Long" |
|
|
|
resultMap="DcBusiTargetAdjustDayMasterResult"> |
|
|
|
<include refid="selectDcBusiTargetAdjustDayMasterVo"/> |
|
|
|
where id = #{id} |
|
|
|
</select> |
|
|
|
|
|
|
|
<insert id="insertDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao" useGeneratedKeys="true" keyProperty="id"> |
|
|
|
<insert id="insertDcBusiTargetAdjustDayMaster" parameterType="DcBusiTargetAdjustDayMaster" useGeneratedKeys="true" |
|
|
|
keyProperty="id"> |
|
|
|
insert into dc_busi_target_adjust_day_master |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="billSerial != null">bill_serial,</if> |
|
|
@ -64,6 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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> |
|
|
@ -75,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deleteTime != null">delete_time,</if> |
|
|
|
<if test="checkStauts != null">check_stauts,</if> |
|
|
|
<if test="checkType != null">check_type,</if> |
|
|
|
</trim> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="billSerial != null">#{billSerial},</if> |
|
|
|
<if test="biilType != null">#{biilType},</if> |
|
|
@ -85,6 +120,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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> |
|
|
@ -96,10 +133,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deleteTime != null">#{deleteTime},</if> |
|
|
|
<if test="checkStauts != null">#{checkStauts},</if> |
|
|
|
<if test="checkType != null">#{checkType},</if> |
|
|
|
</trim> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateDcBusiTargetAdjustDayMasterDao" parameterType="DcBusiTargetAdjustDayMasterDao"> |
|
|
|
<update id="updateDcBusiTargetAdjustDayMaster" parameterType="DcBusiTargetAdjustDayMaster"> |
|
|
|
update dc_busi_target_adjust_day_master |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="billSerial != null">bill_serial = #{billSerial},</if> |
|
|
@ -110,6 +147,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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> |
|
|
@ -125,11 +164,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterDaoById" parameterType="Long"> |
|
|
|
delete from dc_busi_target_adjust_day_master where id = #{id} |
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterById" parameterType="Long"> |
|
|
|
delete |
|
|
|
from dc_busi_target_adjust_day_master |
|
|
|
where id = #{id} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterDaoByIds" parameterType="String"> |
|
|
|
<delete id="deleteDcBusiTargetAdjustDayMasterByIds" parameterType="String"> |
|
|
|
delete from dc_busi_target_adjust_day_master where id in |
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
|
|
#{id} |
|
|
|