md
This commit is contained in:
parent
25089d2558
commit
30eac6af0a
@ -70,4 +70,7 @@ public interface EmisTmsTransPlanDtlMapper extends BaseMapper<EmisTmsTransPlanDt
|
||||
|
||||
|
||||
public int deleteEmisTmsTransPlanDtlByPlanId(Long planId);
|
||||
|
||||
|
||||
public List<EmisTmsTransPlanDtl> selectPreOrNextSiteList(EmisTmsTransPlanDtl emisTmsTransPlanDtl);
|
||||
}
|
||||
|
||||
@ -49,6 +49,33 @@
|
||||
select id, plan_id, step_name, 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 from emis_tms_trans_plan_dtl
|
||||
</sql>
|
||||
|
||||
<!-- 获取上一站点或下一站点-->
|
||||
<select id="selectPreOrNextSiteList" parameterType="EmisTmsTransPlanDtl" resultMap="EmisTmsTransPlanDtlResult">
|
||||
select distinct start_site , dest_site
|
||||
from emis_site
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="planId != null "> and plan_id = #{planId}</if>
|
||||
<if test="stepName != null and stepName != ''"> and step_name like concat('%', #{stepName}, '%')</if>
|
||||
<if test="startSite != null and startSite != ''"> and FIND_IN_SET( #{startSite}, start_site ) </if>
|
||||
<if test="destSite != null and destSite != ''"> and FIND_IN_SET( #{destSite}, dest_site )</if>
|
||||
<if test="transType != null and transType != ''"> and trans_type=#{transType}</if>
|
||||
<if test="estCostDay != null "> 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=#{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 order_num asc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsTransPlanDtlList" parameterType="EmisTmsTransPlanDtl" resultMap="EmisTmsTransPlanDtlResult">
|
||||
<include refid="selectEmisTmsTransPlanDtlVo"/>
|
||||
<where>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user