This commit is contained in:
linfso 2024-05-24 09:46:25 +08:00
parent 386480097b
commit 7f68f9bf30

View File

@ -35,39 +35,39 @@
select a.site_name from emis_site a where a.site_code = #{code} limit 1
</select>
<select id="selectEmisTmsTransPlanDtlList" parameterType="EmisTmsTransPlanDtl" resultMap="EmisTmsTransPlanDtlResult">
select 1 as id, 1 as plan_id, a.site_code as start_site , a.site_code as dest_site
from emis_site a
<where>
a.del_flag='0'
<if test="startSite != null and startSite != ''"> and a.site_code!=#{startSite}</if>
<if test="destSite != null and destSite != ''"> and a.site_code!=#{destSite}</if>
</where>
where a.del_flag='0'
<if test="startSite != null and startSite != ''"> and a.site_code=#{startSite}</if>
<if test="destSite != null and destSite != ''"> and a.site_code=#{destSite}</if>
order by site_code asc
</select>>
</select>
<!-- <select id="selectEmisTmsTransPlanDtlList_old" parameterType="EmisTmsTransPlanDtl" resultMap="EmisTmsTransPlanDtlResult">-->
<!-- <include refid="selectEmisTmsTransPlanDtlVo"/>-->
<!-- <where>-->
<!-- <if test="id != null "> and id = #{id}</if>-->
<!-- <if test="planId != null "> and plan_id = #{planId}</if>-->
<!-- <if test="startSite != null and startSite != ''"> and start_site like concat('%', #{startSite}, '%')</if>-->
<!-- <if test="destSite != null and destSite != ''"> and dest_site like concat('%', #{destSite}, '%')</if>-->
<!-- <if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>-->
<!-- <if test="estCostDay != null and estCostDay != ''"> and est_cost_day like concat('%', #{estCostDay}, '%')</if>-->
<!-- <if test="orderNum != null "> and order_num = #{orderNum}</if>-->
<!-- <if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>-->
<!-- <if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>-->
<!-- <if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>-->
<!-- <if test="createTime != null "> and create_time = #{createTime}</if>-->
<!-- <if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>-->
<!-- <if test="updateTime != null "> and update_time = #{updateTime}</if>-->
<!-- <if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>-->
<!-- <if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>-->
<!-- <if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>-->
<!-- </where>-->
<!-- order by create_time desc-->
<!-- </select>-->
<select id="selectEmisTmsTransPlanDtlList_old" parameterType="EmisTmsTransPlanDtl" resultMap="EmisTmsTransPlanDtlResult">
<include refid="selectEmisTmsTransPlanDtlVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="planId != null "> and plan_id = #{planId}</if>
<if test="startSite != null and startSite != ''"> and start_site like concat('%', #{startSite}, '%')</if>
<if test="destSite != null and destSite != ''"> and dest_site like concat('%', #{destSite}, '%')</if>
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
<if test="estCostDay != null and estCostDay != ''"> and est_cost_day like concat('%', #{estCostDay}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisTmsTransPlanDtlById" parameterType="Long" resultMap="EmisTmsTransPlanDtlResult">
select id, plan_id, start_site, dest_site, trans_type, est_cost_day, order_num, status, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site