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