| | |
| | | <if test="user.status!=null and user.status != '' and user.status != 6"> |
| | | and bu.status = #{user.status} |
| | | </if> |
| | | <if test="user.education!=null and user.education != ''"> |
| | | and bu.education = #{user.education} |
| | | </if> |
| | | <if test="user.trainingUnitId!=null and user.trainingUnitId != ''"> |
| | | and str.training_unit_id = #{user.trainingUnitId} |
| | | </if> |
| | |
| | | |
| | | <!--计算保安人员年龄--> |
| | | <select id="getUserAgeById" resultType="org.springblade.modules.system.vo.UserVO"> |
| | | select id,ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING(cardid,7,4),0) age,securitynumber,cardid |
| | | select id,real_name realName,ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING(cardid,7,4),0) age,securitynumber,cardid |
| | | from |
| | | blade_user |
| | | where |
| | |
| | | </foreach> |
| | | </insert> |
| | | |
| | | |
| | | |
| | | </mapper> |