md
This commit is contained in:
parent
3df02a8fc1
commit
407e39d413
@ -153,7 +153,8 @@ public class EmisTmsScanRecordController extends EmisBaseController
|
|||||||
EmisTmsTransPlanDtl queryObj = new EmisTmsTransPlanDtl();
|
EmisTmsTransPlanDtl queryObj = new EmisTmsTransPlanDtl();
|
||||||
queryObj.setStartSite(getLoginUser().getUser().getOwnerSiteCode());
|
queryObj.setStartSite(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
queryObj.setTransType(transType);
|
queryObj.setTransType(transType);
|
||||||
queryObj.getParams().put("searchValue",searchValue);
|
queryObj.setSearchValue(searchValue);
|
||||||
|
// queryObj.getParams().put("searchValue",searchValue);
|
||||||
List<EmisTmsTransPlanDtl> list = emisTmsTransPlanDtlService.selectPreOrNextSiteList(queryObj);
|
List<EmisTmsTransPlanDtl> list = emisTmsTransPlanDtlService.selectPreOrNextSiteList(queryObj);
|
||||||
|
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
|||||||
@ -49,11 +49,9 @@
|
|||||||
start_site, #{destSite} as dest_site
|
start_site, #{destSite} as dest_site
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
from emis_tms_trans_plan_dtl
|
from emis_tms_trans_plan_dtl
|
||||||
<where>
|
<where>
|
||||||
del_flag='0'
|
del_flag='0'
|
||||||
<if test="id != null "> and id = #{id}</if>
|
|
||||||
<if test="planId != null "> and plan_id = #{planId}</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="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="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="estCostDay != null "> and est_cost_day like concat('%', #{estCostDay}, '%')</if>
|
||||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||||
<if test="status != null and status != ''"> and status=#{status}</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="searchValue != null and searchValue != '' and startSite != null and startSite != '' ">
|
||||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
and dest_site in (select site_code from emis_site where site_name like concat(#{searchValue},'%') )
|
||||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
</if>
|
||||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
|
||||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
<if test="searchValue != null and searchValue != '' and destSite != null and destSite != '' ">
|
||||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
and start_site in (select site_code from emis_site where site_name like concat(#{searchValue},'%') )
|
||||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
order by order_num asc
|
order by order_num asc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user