md
This commit is contained in:
parent
36e02e240e
commit
47e78881af
@ -111,11 +111,12 @@ public class EmisTmsScanRecordController extends BaseController
|
||||
|
||||
@GetMapping("/getNextStationList")
|
||||
@JacksonFilter(include= {"startSite","destSite","startSiteName","destSiteName"},value= EmisTmsTransPlanDtl.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
public TableDataInfo getNextStationList()
|
||||
public TableDataInfo getNextStationList(String siteName)
|
||||
{
|
||||
startPage();
|
||||
EmisTmsTransPlanDtl queryObj = new EmisTmsTransPlanDtl();
|
||||
queryObj.setStartSite(getLoginUser().getUser().getOwnerSiteCode());
|
||||
queryObj.getParams().put("siteName",siteName);
|
||||
List<EmisTmsTransPlanDtl> list = emisTmsTransPlanDtlService.selectEmisTmsTransPlanDtlList(queryObj);
|
||||
|
||||
return getDataTable(list);
|
||||
|
||||
@ -39,9 +39,11 @@
|
||||
<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} and site_type not in(1,2) </if>
|
||||
<if test="destSite != null and destSite != ''"> and a.site_code!=#{destSite} and site_type not in(1,2) </if>
|
||||
where a.del_flag='0' and site_type not in(1,2)
|
||||
<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="params.siteName != null and params.siteName != ''"> and a.site_name like concat('%',#{params.siteName},'%') </if>
|
||||
|
||||
order by site_code asc
|
||||
</select>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user