| | |
| | | <if test="dto.lockState!=null"> |
| | | and tb_lock_inf.lock_state=#{dto.lockState} |
| | | </if> |
| | | and tb_lock_inf.del_flag=0 |
| | | and tb_lock_inf.lock_id in( |
| | | select distinct lock_id from plus_user.tb_baojigroup_lock,plus_user.tb_baojigroup_usr |
| | | <where> |
| | |
| | | from plus_inf.tb_lock_inf,plus_inf.tb_station_inf |
| | | <where> |
| | | tb_lock_inf.station_id=tb_station_inf.station_id |
| | | and tb_lock_inf.del_flag=0 |
| | | <if test="lockIdList!=null"> |
| | | and tb_lock_inf.lock_id in |
| | | <foreach collection="lockIdList" item="id" open="(" separator="," close=")"> |
| | |
| | | ,tb_station_inf.station_name,tb_station_inf.station_name1,tb_station_inf.station_name2,tb_station_inf.station_name3,tb_station_inf.station_name4 |
| | | from plus_inf.tb_lock_inf,plus_inf.tb_station_inf |
| | | <where> |
| | | and tb_lock_inf.del_flag=0 |
| | | tb_lock_inf.station_id=tb_station_inf.station_id |
| | | and lock_id=#{lockId} |
| | | </where> |
| | |
| | | <select id="getScreenType" resultType="java.lang.String"> |
| | | select distinct screen_box_type from plus_inf.tb_lock_inf |
| | | <where> |
| | | tb_lock_inf.lock_id in( |
| | | tb_lock_inf.del_flag=0 |
| | | and tb_lock_inf.lock_id in( |
| | | select distinct lock_id from plus_user.tb_baojigroup_lock,plus_user.tb_baojigroup_usr |
| | | <where> |
| | | tb_baojigroup_lock.baoji_id=tb_baojigroup_usr.baoji_id |
| | |
| | | <select id="getScreenProduct" resultType="java.lang.String"> |
| | | select distinct screen_box_product from plus_inf.tb_lock_inf |
| | | <where> |
| | | tb_lock_inf.lock_id in( |
| | | tb_lock_inf.del_flag=0 |
| | | and tb_lock_inf.lock_id in( |
| | | select distinct lock_id from plus_user.tb_baojigroup_lock,plus_user.tb_baojigroup_usr |
| | | <where> |
| | | tb_baojigroup_lock.baoji_id=tb_baojigroup_usr.baoji_id |
| | |
| | | <if test="dto.lockName!=null"> |
| | | and tb_lock_inf.lock_name LIKE CONCAT('%',#{dto.lockName},'%') |
| | | </if> |
| | | and tb_lock_inf.del_flag=0 |
| | | and tb_lock_inf.lock_id in( |
| | | select distinct lock_id from plus_user.tb_baojigroup_lock,plus_user.tb_baojigroup_usr |
| | | <where> |
| | |
| | | select tb_lock_inf.*,tb_station_inf.station_name |
| | | from plus_inf.tb_lock_inf,plus_inf.tb_station_inf |
| | | where tb_lock_inf.station_id=tb_station_inf.station_id |
| | | and tb_lock_inf.del_flag=0 |
| | | order by tb_lock_inf.num asc |
| | | </select> |
| | | |