| | |
| | | <set> |
| | | update_time=now(), |
| | | <if test="updateBy!=null"> |
| | | update_by = #{btnKey}, |
| | | update_by = #{updateBy}, |
| | | </if> |
| | | <if |
| | | test="(suName!=null and suName!='') or (suName!='' and suName==0)"> |
| | |
| | | </update> |
| | | |
| | | <!-- 批量删除 --> |
| | | <delete id="deleteByIds" parameterType="java.util.List"> |
| | | delete from sys_users where su_id in |
| | | <update id="deleteByIds" parameterType="java.util.List"> |
| | | update sys_users set su_valid='N' where su_id in |
| | | <foreach collection="list" index="index" item="item" open="(" |
| | | separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </delete> |
| | | </update> |
| | | |
| | | <!-- 根据id删除 --> |
| | | <delete id="deleteById" parameterType="Long"> |
| | | DELETE FROM sys_users |
| | | where su_id=#{suId} |
| | | </delete> |
| | | <update id="deleteById" parameterType="Long"> |
| | | update sys_users set su_valid='N' |
| | | where su_id=#{suId} |
| | | </update> |
| | | |
| | | <!-- 根据对象删除 --> |
| | | <delete id="deleteByModel" parameterType="Long"> |
| | |
| | | </if> |
| | | <if |
| | | test="(record.suName!=null and record.suName!='') or (record.suName!='' and record.suName==0)"> |
| | | and su_name like concat('%',#{record.suName},'%') |
| | | and (su_name like concat('%',concat(#{record.suName},'%')) or su_tel = #{record.suName}) |
| | | </if> |
| | | <if |
| | | test="(record.suTel!=null and record.suTel!='') or (record.suTel!='' and record.suTel==0)"> |
| | |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectAppVersion" resultType="com.matrix.system.hive.bean.AppVersion"> |
| | | select * from app_version |
| | | </select> |
| | | </mapper> |