| | |
| | | @TableField("appe_time") |
| | | private Date appeTime; |
| | | |
| | | /** |
| | | * 优先级 |
| | | */ |
| | | @ApiModelProperty(value= "优先级") |
| | | @TableField("pri") |
| | | private Integer pri; |
| | | |
| | | public StaDesc() {} |
| | | |
| | | public StaDesc(String typeDesc,String stnDesc,Integer crnStn,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { |
| | |
| | | @Repository |
| | | public interface StaDescMapper extends BaseMapper<StaDesc> { |
| | | |
| | | List<Integer> queryOutStaNosByLocNo(@Param("locNo") String locNo, @Param("typeNo") Integer typeNo); |
| | | List<StaDesc> queryOutStaNosByLocNo(@Param("locNo") String locNo, @Param("typeNo") Integer typeNo); |
| | | |
| | | StaDesc queryCrnStn(Integer crnNo); |
| | | |
| | |
| | | import com.zy.asrs.service.StaDescService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("staDescService") |
| | |
| | | |
| | | @Override |
| | | public List<Integer> queryOutStaNosByLocNo(String locNo, Integer typeNo) { |
| | | return this.baseMapper.queryOutStaNosByLocNo(locNo, typeNo); |
| | | List<Integer> list = new ArrayList<>(); |
| | | List<StaDesc> staDescs = this.baseMapper.queryOutStaNosByLocNo(locNo, typeNo); |
| | | for (StaDesc staDesc : staDescs) { |
| | | if (list.contains(staDesc.getStnNo())) { |
| | | continue; |
| | | } |
| | | list.add(staDesc.getStnNo()); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="pri" property="pri" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer"> |
| | | <select id="queryOutStaNosByLocNo" resultMap="BaseResultMap"> |
| | | select |
| | | distinct asd.stn_no |
| | | distinct asd.stn_no,asd.pri |
| | | from asr_sta_desc asd |
| | | left join asr_loc_mast alm on asd.crn_no = alm.crn_no |
| | | where 1=1 |
| | |
| | | <if test="typeNo != null and typeNo !=''"> |
| | | and asd.type_no = #{typeNo} |
| | | </if> |
| | | order by pri desc |
| | | </select> |
| | | |
| | | <select id="queryCrnStn" resultMap="BaseResultMap"> |