| | |
| | | create_user, |
| | | create_time, |
| | | update_user, |
| | | update_time |
| | | update_time, |
| | | status, |
| | | from device |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | |
| | | specificationModel, |
| | | deviceStatus, |
| | | create_user, |
| | | status, |
| | | update_time |
| | | from device |
| | | ) a |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="authorizedPerson" resultType="com.yuanchu.mom.pojo.Device"> |
| | | select * |
| | | from (select id, |
| | | authorized_person, |
| | | status |
| | | from device) a |
| | | </select> |
| | | <select id="search" resultType="com.yuanchu.mom.pojo.Device"> |
| | | select * |
| | | from device |
| | | <where> |
| | | <if test="status!=null"> |
| | | and status = #{status} |
| | | </if> |
| | | <if test="deviceName!=null and deviceName!=''"> |
| | | and device_name like concat('%',#{deviceName},'%') |
| | | </if> |
| | | <if test="specificationModel!=null and specificationModel!= ''"> |
| | | and specification_model = #{specificationModel} |
| | | </if> |
| | | <if test="largeCategory!=null and largeCategory!= ''"> |
| | | and large_category = #{largeCategory} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |