|
|
|
@ -5,18 +5,18 @@
|
|
|
|
|
<mapper namespace="com.ruoyi.ehsRescueTeam.mapper.EhsRescueTeamMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="EhsRescueTeam" id="EhsRescueTeamResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="teamName" column="team_name" />
|
|
|
|
|
<result property="teamLevel" column="team_level" />
|
|
|
|
|
<!--<result property="rescueWorkerNum" column="rescue_worker_num" />-->
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
|
<result property="createUserId" column="create_user_id" />
|
|
|
|
|
<result property="updateUserId" column="update_user_id" />
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="teamName" column="team_name"/>
|
|
|
|
|
<result property="teamLevel" column="team_level"/>
|
|
|
|
|
<!--<result property="rescueWorkerNum" column="rescue_worker_num" />-->
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
|
|
<result property="createUserId" column="create_user_id"/>
|
|
|
|
|
<result property="updateUserId" column="update_user_id"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEhsRescueTeamVo">
|
|
|
|
@ -26,14 +26,15 @@
|
|
|
|
|
<select id="selectEhsRescueTeamList" parameterType="EhsRescueTeam" resultMap="EhsRescueTeamResult">
|
|
|
|
|
<include refid="selectEhsRescueTeamVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="teamName != null and teamName != ''"> and team_name like concat('%', #{teamName}, '%')</if>
|
|
|
|
|
<if test="teamLevel != null and teamLevel != ''"> and team_level like concat('%', #{teamLevel}, '%')</if>
|
|
|
|
|
<if test="teamName != null and teamName != ''">and team_name like concat('%', #{teamName}, '%')</if>
|
|
|
|
|
<if test="teamLevel != null and teamLevel != ''">and team_level like concat('%', #{teamLevel}, '%')</if>
|
|
|
|
|
<if test="deptId != null and deptId != ''">and dept_id = #{deptId}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEhsRescueTeamById" parameterType="Long" resultMap="EhsRescueTeamResult">
|
|
|
|
|
<include refid="selectEhsRescueTeamVo"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
<include refid="selectEhsRescueTeamVo"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getWorkerNumByTeamId" resultType="java.lang.Long">
|
|
|
|
|
SELECT IFNULL(
|
|
|
|
|