You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
5.0 KiB
109 lines
5.0 KiB
6 months ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<!DOCTYPE mapper
|
||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
6 months ago
|
<mapper namespace="com.ruoyi.tc.mapper.UnitMapper">
|
||
6 months ago
|
|
||
|
<resultMap id="unitResult" type="Unit">
|
||
|
<id property="id" column="id" />
|
||
|
<result property="userName" column="user_name"/>
|
||
|
<result property="nickName" column="nick_name"/>
|
||
|
<result property="dwjc" column="dwjc"/>
|
||
|
<result property="ssqyprovince" column="ssqyprovince"/>
|
||
|
<result property="ssqycity" column="ssqycity"/>
|
||
|
<result property="ssqycity" column="ssqycity"/>
|
||
|
<result property="dwxxdz" column="dwxxdz"/>
|
||
|
<result property="sshy" column="sshy"/>
|
||
|
<result property="dwlx" column="dwlx"/>
|
||
|
<result property="dwbq" column="dwbq"/>
|
||
|
<result property="ssjgdw" column="ssjgdw"/>
|
||
|
<result property="dwjs" column="dwjs"/>
|
||
|
<result property="dwzsxz" column="dwzsxz"/>
|
||
|
<result property="gjdw" column="gjdw"/>
|
||
|
<result property="rcyyfzbm" column="rcyyfzbm"/>
|
||
|
<result property="dwfzrxm" column="dwfzrxm"/>
|
||
|
<result property="dwfzrlxfs" column="dwfzrlxfs"/>
|
||
|
<result property="dwfzryx" column="dwfzryx"/>
|
||
|
<result property="dwfzrzwzc" column="dwfzrzwzc"/>
|
||
|
<result property="fgfzrxm" column="fgfzrxm"/>
|
||
|
<result property="fgfzrlxfs" column="fgfzrlxfs"/>
|
||
|
<result property="fgfzryx" column="fgfzryx"/>
|
||
|
<result property="fgfzrzwzc" column="fgfzrzwzc"/>
|
||
|
<result property="bmfzrxm" column="bmfzrxm"/>
|
||
|
<result property="bmfzrlxfs" column="bmfzrlxfs"/>
|
||
|
<result property="bmfzryx" column="bmfzryx"/>
|
||
|
<result property="bmfzrzwzc" column="bmfzrzwzc"/>
|
||
|
<result property="dylxrxm" column="dylxrxm"/>
|
||
|
<result property="dylxrlxfs" column="dylxrlxfs"/>
|
||
|
<result property="dylxryx" column="dylxryx"/>
|
||
|
<result property="dylxrzwzc" column="dylxrzwzc"/>
|
||
|
<result property="jcxx" column="jcxx"/>
|
||
|
<result property="gw" column="gw"/>
|
||
|
<result property="dtjd" column="dtjd"/>
|
||
|
<result property="dtwd" column="dtwd"/>
|
||
|
<result property="sjdw" column="sjdw"/>
|
||
|
<result property="createBy" column="create_by"/>
|
||
6 months ago
|
<result property="createId" column="create_id"/>
|
||
6 months ago
|
<result property="createTime" column="create_time"/>
|
||
|
<result property="updateBy" column="update_by"/>
|
||
6 months ago
|
<result property="updateId" column="update_id"/>
|
||
6 months ago
|
<result property="updateTime" column="update_time"/>
|
||
|
<result property="remark" column="remark"/>
|
||
6 months ago
|
<result property="delFlag" column="del_flag"/>
|
||
6 months ago
|
<collection property="otherConcat" javaType="java.util.List" ofType="com.ruoyi.tc.entity.UnitOtherConcat" >
|
||
|
<id property="concatId" column="concat_id" />
|
||
|
<result property="qtlxrxm" column="qtlxrlxfs" />
|
||
|
<result property="qtlxrlxfs" column="qtlxrlxfs" />
|
||
|
<result property="qtlxryx" column="qtlxryx" />
|
||
|
<result property="qtlxrzwzc" column="qtlxrzwzc" />
|
||
|
<result property="createBy" column="create_by"/>
|
||
|
<result property="createId" column="create_id"/>
|
||
|
<result property="createTime" column="create_time"/>
|
||
|
<result property="updateBy" column="update_by"/>
|
||
|
<result property="updateId" column="update_id"/>
|
||
|
<result property="updateTime" column="update_time"/>
|
||
|
<result property="remark" column="remark"/>
|
||
|
</collection>
|
||
6 months ago
|
</resultMap>
|
||
|
|
||
|
<select id="selectUnitList" parameterType="unit" resultMap="unitResult">
|
||
6 months ago
|
select a.* from unit_info a
|
||
6 months ago
|
<where>
|
||
6 months ago
|
a.del_flag = '0'
|
||
6 months ago
|
<if test="req.nickName != null and req.nickName != '' ">
|
||
6 months ago
|
and a.nick_name like concat('%',#{req.nickName},'%')
|
||
6 months ago
|
</if>
|
||
|
<if test="req.dwlx != null">
|
||
6 months ago
|
and a.dwlx = #{req.dwlx}
|
||
6 months ago
|
</if>
|
||
|
<if test="req.userName != null and req.userName != '' ">
|
||
6 months ago
|
and a.user_name like concat('%',#{req.userName},'%')
|
||
6 months ago
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
6 months ago
|
<select id="getById" parameterType="unit" resultMap="unitResult">
|
||
|
select a.*,c.* from unit_info a
|
||
|
left join unit_other_contact c on a.id = c.unit_id
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
|
||
6 months ago
|
<select id="selectByIds" resultType="java.lang.String">
|
||
|
select user_name from unit_info where id in
|
||
6 months ago
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</select>
|
||
|
<update id="deleteUnits">
|
||
|
update unit_info set del_flag = '2' where id in
|
||
6 months ago
|
<foreach collection="array" item="ids" open="(" separator="," close=")">
|
||
|
#{ids}
|
||
|
</foreach>
|
||
6 months ago
|
</update>
|
||
|
<update id="deleteUsers">
|
||
|
update sys_user set del_flag = '2' where user_name in
|
||
|
<foreach collection="array" item="userNames" open="(" separator="," close=")">
|
||
|
#{userNames}
|
||
|
</foreach>
|
||
|
</update>
|
||
6 months ago
|
</mapper>
|