This commit is contained in:
linfso 2024-07-06 09:17:42 +08:00
parent 3df02a8fc1
commit 407e39d413
2 changed files with 11 additions and 11 deletions

View File

@ -153,7 +153,8 @@ public class EmisTmsScanRecordController extends EmisBaseController
EmisTmsTransPlanDtl queryObj = new EmisTmsTransPlanDtl();
queryObj.setStartSite(getLoginUser().getUser().getOwnerSiteCode());
queryObj.setTransType(transType);
queryObj.getParams().put("searchValue",searchValue);
queryObj.setSearchValue(searchValue);
// queryObj.getParams().put("searchValue",searchValue);
List<EmisTmsTransPlanDtl> list = emisTmsTransPlanDtlService.selectPreOrNextSiteList(queryObj);
return getDataTable(list);

View File

@ -49,11 +49,9 @@
start_site, #{destSite} as dest_site
</if>
from emis_tms_trans_plan_dtl
<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>
@ -62,14 +60,15 @@
<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=#{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>
<if test="searchValue != null and searchValue != '' and startSite != null and startSite != '' ">
and dest_site in (select site_code from emis_site where site_name like concat(#{searchValue},'%') )
</if>
<if test="searchValue != null and searchValue != '' and destSite != null and destSite != '' ">
and start_site in (select site_code from emis_site where site_name like concat(#{searchValue},'%') )
</if>
</where>
order by order_num asc
</select>