郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?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">
<mapper namespace=".dao.WorkBlindPlatePluggingDao">
 
    <resultMap type="com.gk.hotwork.specialWork.entity.WorkBlindPlatePluggingInfo" id="WorkBlindPlatePluggingInfoMap">
        <result property="id" column="id" jdbcType="BIGINT"/>
        <result property="bpCode" column="bp_code" jdbcType="VARCHAR"/>
        <result property="mainMedia" column="main_media" jdbcType="VARCHAR"/>
        <result property="temperature" column="temperature" jdbcType="DECIMAL"/>
        <result property="pressure" column="pressure" jdbcType="DECIMAL"/>
        <result property="bpMaterialQuality" column="bp_material_quality" jdbcType="VARCHAR"/>
        <result property="bpSpecification" column="bp_specification" jdbcType="VARCHAR"/>
        <result property="bpLocation" column="bp_location" jdbcType="VARCHAR"/>
        <result property="bpLocationMapPath" column="bp_location_map_path" jdbcType="VARCHAR"/>
        <result property="installBpTime" column="install_bp_time" jdbcType="TIMESTAMP"/>
        <result property="uninstallBpTime" column="uninstall_bp_time" jdbcType="TIMESTAMP"/>
        <result property="workApplyId" column="work_apply_id" jdbcType="BIGINT"/>
        <result property="otherSpecialWork" column="other_special_work" jdbcType="VARCHAR"/>
        <result property="status" column="status" jdbcType="TINYINT"/>
        <result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
        <result property="createUid" column="create_uid" jdbcType="BIGINT"/>
        <result property="createUname" column="create_uname" jdbcType="VARCHAR"/>
        <result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
        <result property="modifiedUid" column="modified_uid" jdbcType="BIGINT"/>
        <result property="modifiedUname" column="modified_uname" jdbcType="VARCHAR"/>
    </resultMap>
 
 
    <!--查询数据-->
    <select id="listByConditions" resultMap="WorkBlindPlatePluggingInfoMap" parameterType="com.gk.hotwork.specialWork.model.query.WorkBlindPlatePluggingQuery">
        select
          id, bp_code, main_media, temperature, pressure, bp_material_quality, bp_specification, bp_location, bp_location_map_path, install_bp_time, uninstall_bp_time, work_apply_id, other_special_work, status, gmt_create, create_uid, create_uname, gmt_modified, modified_uid, modified_uname
        from work_blind_plate_plugging
        <where>
 
            <if test="query.workApplyId != null">
                and work_apply_id = #{query.workApplyId}
            </if>
            <if test="query.status != null">
                and status = #{query.status}
            </if>
 
        </where>
    </select>
    <!--通过主键idList批量删除数据-->
    <update id="updateStatutsByIds">
        update work_blind_plate_plugging
        set status = #{status}
        where id in
        <foreach collection="idList" item="id" index="index" open="(" close=")" separator=",">
            #{id}
        </foreach>
    </update>
 
 
</mapper>