This commit is contained in:
linfso 2024-05-24 10:03:15 +08:00
parent 36e02e240e
commit 47e78881af
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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>