md
This commit is contained in:
parent
d77dd7cfd1
commit
b231926421
@ -1,21 +1,28 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisTmsCostFeeMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisTmsCostFee" id="EmisTmsCostFeeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="costNo" column="cost_no" />
|
||||
<result property="costName" column="cost_name" />
|
||||
<result property="feeType" column="fee_type" />
|
||||
<result property="splitType" column="split_type" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="transSignNo" column="trans_sign_no" />
|
||||
<result property="sendPlace" column="send_place" />
|
||||
<result property="destPlace" column="dest_place" />
|
||||
<result property="costFee" column="cost_fee" />
|
||||
<result property="sendPieceSum" column="send_piece_sum" />
|
||||
<result property="pieceNumber" column="piece_number" />
|
||||
<result property="totalWeight" column="total_weight" />
|
||||
<result property="totalVolume" column="total_volume" />
|
||||
<result property="blConfirmCenter" column="bl_confirm_center" />
|
||||
<result property="realPieceNumber" column="real_piece_number" />
|
||||
<result property="realTotalWeight" column="real_total_weight" />
|
||||
<result property="realTotalVolume" column="real_total_volume" />
|
||||
<result property="confirmCenterDate" column="confirm_center_date" />
|
||||
<result property="confirmCenterNote" column="confirm_center_note" />
|
||||
<result property="confirmCenterManCode" column="confirm_center_man_code" />
|
||||
@ -28,24 +35,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsCostFeeVo">
|
||||
select id, cost_no, cost_name, fee_type, split_type, cost_fee, send_piece_sum, piece_number, total_weight, total_volume, bl_confirm_center, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_cost_fee
|
||||
select id, cost_no, cost_name, fee_type, split_type, trans_type, trans_sign_no, send_place, dest_place, cost_fee, send_piece_sum, piece_number, total_weight, total_volume, bl_confirm_center, real_piece_number, real_total_weight, real_total_volume, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_cost_fee
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsCostFeeList" parameterType="EmisTmsCostFee" resultMap="EmisTmsCostFeeResult">
|
||||
<include refid="selectEmisTmsCostFeeVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="costNo != null and costNo != ''"> and cost_no = #{costNo}</if>
|
||||
<if test="costName != null and costName != ''"> and cost_name like concat('%', #{costName}, '%')</if>
|
||||
<if test="feeType != null and feeType != ''"> and fee_type = #{feeType}</if>
|
||||
<if test="splitType != null and splitType != ''"> and split_type = #{splitType}</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||
<if test="transSignNo != null and transSignNo != ''"> and trans_sign_no like concat('%', #{transSignNo}, '%')</if>
|
||||
<if test="sendPlace != null and sendPlace != ''"> and send_place like concat('%', #{sendPlace}, '%')</if>
|
||||
<if test="destPlace != null and destPlace != ''"> and dest_place like concat('%', #{destPlace}, '%')</if>
|
||||
<if test="costFee != null "> and cost_fee = #{costFee}</if>
|
||||
<if test="sendPieceSum != null "> and send_piece_sum = #{sendPieceSum}</if>
|
||||
<if test="pieceNumber != null "> and piece_number = #{pieceNumber}</if>
|
||||
<if test="totalWeight != null "> and total_weight = #{totalWeight}</if>
|
||||
<if test="totalVolume != null "> and total_volume = #{totalVolume}</if>
|
||||
<if test="blConfirmCenter != null and blConfirmCenter != ''"> and bl_confirm_center = #{blConfirmCenter}</if>
|
||||
<if test="realPieceNumber != null "> and real_piece_number = #{realPieceNumber}</if>
|
||||
<if test="realTotalWeight != null "> and real_total_weight = #{realTotalWeight}</if>
|
||||
<if test="realTotalVolume != null "> and real_total_volume = #{realTotalVolume}</if>
|
||||
<if test="confirmCenterDate != null "> and confirm_center_date = #{confirmCenterDate}</if>
|
||||
<if test="confirmCenterNote != null and confirmCenterNote != ''"> and confirm_center_note like concat('%', #{confirmCenterNote}, '%')</if>
|
||||
<if test="confirmCenterManCode != null and confirmCenterManCode != ''"> and confirm_center_man_code = #{confirmCenterManCode}</if>
|
||||
@ -75,12 +89,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and cost_name = #{costName}
|
||||
and fee_type = #{feeType}
|
||||
and split_type = #{splitType}
|
||||
and trans_type = #{transType}
|
||||
and trans_sign_no = #{transSignNo}
|
||||
and send_place = #{sendPlace}
|
||||
and dest_place = #{destPlace}
|
||||
and cost_fee = #{costFee}
|
||||
and send_piece_sum = #{sendPieceSum}
|
||||
and piece_number = #{pieceNumber}
|
||||
and total_weight = #{totalWeight}
|
||||
and total_volume = #{totalVolume}
|
||||
and bl_confirm_center = #{blConfirmCenter}
|
||||
and real_piece_number = #{realPieceNumber}
|
||||
and real_total_weight = #{realTotalWeight}
|
||||
and real_total_volume = #{realTotalVolume}
|
||||
and confirm_center_date = #{confirmCenterDate}
|
||||
and confirm_center_note = #{confirmCenterNote}
|
||||
and confirm_center_man_code = #{confirmCenterManCode}
|
||||
@ -100,13 +121,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisTmsCostFeeById" parameterType="Long" resultMap="EmisTmsCostFeeResult">
|
||||
select id, cost_no, cost_name, fee_type, split_type, cost_fee, send_piece_sum, piece_number, total_weight, total_volume, bl_confirm_center, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
select id, cost_no, cost_name, fee_type, split_type, trans_type, trans_sign_no, send_place, dest_place, cost_fee, send_piece_sum, piece_number, total_weight, total_volume, bl_confirm_center, real_piece_number, real_total_weight, real_total_volume, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_tms_cost_fee a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisTmsCostFee" parameterType="EmisTmsCostFee" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_cost_fee
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -115,12 +136,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="costName != null and costName != ''">cost_name,</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type,</if>
|
||||
<if test="splitType != null and splitType != ''">split_type,</if>
|
||||
<if test="transType != null and transType != ''">trans_type,</if>
|
||||
<if test="transSignNo != null and transSignNo != ''">trans_sign_no,</if>
|
||||
<if test="sendPlace != null and sendPlace != ''">send_place,</if>
|
||||
<if test="destPlace != null and destPlace != ''">dest_place,</if>
|
||||
<if test="costFee != null">cost_fee,</if>
|
||||
<if test="sendPieceSum != null">send_piece_sum,</if>
|
||||
<if test="pieceNumber != null">piece_number,</if>
|
||||
<if test="totalWeight != null">total_weight,</if>
|
||||
<if test="totalVolume != null">total_volume,</if>
|
||||
<if test="blConfirmCenter != null and blConfirmCenter != ''">bl_confirm_center,</if>
|
||||
<if test="realPieceNumber != null">real_piece_number,</if>
|
||||
<if test="realTotalWeight != null">real_total_weight,</if>
|
||||
<if test="realTotalVolume != null">real_total_volume,</if>
|
||||
<if test="confirmCenterDate != null">confirm_center_date,</if>
|
||||
<if test="confirmCenterNote != null and confirmCenterNote != ''">confirm_center_note,</if>
|
||||
<if test="confirmCenterManCode != null and confirmCenterManCode != ''">confirm_center_man_code,</if>
|
||||
@ -138,19 +166,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="costNo != null and costNo != ''">#{costNo},</if>
|
||||
<if test="costName != null and costName != ''">#{costName},</if>
|
||||
<if test="feeType != null and feeType != ''">#{feeType},</if>
|
||||
<if test="splitType != null and splitType != ''">#{splitType},</if>
|
||||
<if test="transType != null and transType != ''">#{transType},</if>
|
||||
<if test="transSignNo != null and transSignNo != ''">#{transSignNo},</if>
|
||||
<if test="sendPlace != null and sendPlace != ''">#{sendPlace},</if>
|
||||
<if test="destPlace != null and destPlace != ''">#{destPlace},</if>
|
||||
<if test="costFee != null">#{costFee},</if>
|
||||
<if test="sendPieceSum != null">#{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null">#{pieceNumber},</if>
|
||||
<if test="totalWeight != null">#{totalWeight},</if>
|
||||
<if test="totalVolume != null">#{totalVolume},</if>
|
||||
<if test="blConfirmCenter != null and blConfirmCenter != ''">#{blConfirmCenter},</if>
|
||||
<if test="realPieceNumber != null">#{realPieceNumber},</if>
|
||||
<if test="realTotalWeight != null">#{realTotalWeight},</if>
|
||||
<if test="realTotalVolume != null">#{realTotalVolume},</if>
|
||||
<if test="confirmCenterDate != null">#{confirmCenterDate},</if>
|
||||
<if test="confirmCenterNote != null and confirmCenterNote != ''">#{confirmCenterNote},</if>
|
||||
<if test="confirmCenterManCode != null and confirmCenterManCode != ''">#{confirmCenterManCode},</if>
|
||||
@ -168,7 +203,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTmsCostFee" parameterType="EmisTmsCostFee">
|
||||
@ -178,12 +213,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="costName != null and costName != ''">cost_name = #{costName},</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
|
||||
<if test="splitType != null and splitType != ''">split_type = #{splitType},</if>
|
||||
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||
<if test="transSignNo != null and transSignNo != ''">trans_sign_no = #{transSignNo},</if>
|
||||
<if test="sendPlace != null and sendPlace != ''">send_place = #{sendPlace},</if>
|
||||
<if test="destPlace != null and destPlace != ''">dest_place = #{destPlace},</if>
|
||||
<if test="costFee != null">cost_fee = #{costFee},</if>
|
||||
<if test="sendPieceSum != null">send_piece_sum = #{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null">piece_number = #{pieceNumber},</if>
|
||||
<if test="totalWeight != null">total_weight = #{totalWeight},</if>
|
||||
<if test="totalVolume != null">total_volume = #{totalVolume},</if>
|
||||
<if test="blConfirmCenter != null and blConfirmCenter != ''">bl_confirm_center = #{blConfirmCenter},</if>
|
||||
<if test="realPieceNumber != null">real_piece_number = #{realPieceNumber},</if>
|
||||
<if test="realTotalWeight != null">real_total_weight = #{realTotalWeight},</if>
|
||||
<if test="realTotalVolume != null">real_total_volume = #{realTotalVolume},</if>
|
||||
<if test="confirmCenterDate != null">confirm_center_date = #{confirmCenterDate},</if>
|
||||
<if test="confirmCenterNote != null and confirmCenterNote != ''">confirm_center_note = #{confirmCenterNote},</if>
|
||||
<if test="confirmCenterManCode != null and confirmCenterManCode != ''">confirm_center_man_code = #{confirmCenterManCode},</if>
|
||||
@ -206,11 +248,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeById" parameterType="Long">
|
||||
delete from emis_tms_cost_fee where id = #{id}
|
||||
update emis_tms_cost_fee set del_flag='1' where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeByIds" parameterType="String">
|
||||
delete from emis_tms_cost_fee where id in
|
||||
update emis_tms_cost_fee set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user