| | |
| | | <select id="selectUserPages" resultMap="userResultMap"> |
| | | select |
| | | distinct |
| | | bu.*, |
| | | bu.*,IF(mod(SUBSTR(bu.cardid,17,1),2),1,2) sexs, |
| | | sll.longitude,sll.latitude, |
| | | bd.dept_name |
| | | from |
| | |
| | | <if test="user.examinationType!=null and user.examinationType != ''"> |
| | | and bu.examination_type = #{user.examinationType} |
| | | </if> |
| | | ORDER BY bu.id |
| | | ORDER BY bu.id desc |
| | | </select> |
| | | |
| | | <select id="selectUserPage" resultMap="userResultMap"> |
| | |
| | | <if test="user.examinationType!=null and user.examinationType != ''"> |
| | | and examination_type = #{user.examinationType} |
| | | </if> |
| | | ORDER BY bu.id |
| | | ORDER BY bu.id desc |
| | | </select> |
| | | |
| | | <select id="getUser" resultMap="userResultMap"> |
| | |
| | | <!--保安员列表--> |
| | | <select id="selectUserPageSecurity" resultMap="userResultMap"> |
| | | select |
| | | bu.* |
| | | bu.*,IF(mod(SUBSTR(bu.cardid,17,1),2),1,2) sexs |
| | | from |
| | | blade_user bu |
| | | left join |