TConGasProInforMapper.xml 25.7 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
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
<?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="com.zehong.system.mapper.TConGasProInforMapper">
    
    <resultMap type="TConGasProInfor" id="TConGasProInforResult">
        <result property="fConGasProInforId"    column="f_con_gas_pro_infor_id"    />
        <result property="fProjectCode"    column="f_project_code"    />
        <result property="fProjectNo"    column="f_project_no"    />
        <result property="fProjectName"    column="f_project_name"    />
        <result property="fConstructionStart"    column="f_construction_start"    />
        <result property="fConstructionEnd"    column="f_construction_end"    />
        <result property="fAddress"    column="f_address"    />
        <result property="fDistrictId"    column="f_district_id"    />
        <result property="fConstructionLongitude"    column="f_construction_longitude"    />
        <result property="fConstructionLatitude"    column="f_construction_latitude"    />
        <result property="fConstructionPointType"    column="f_construction_point_type"    />
        <result property="fVillageId"    column="f_village_id"    />
        <result property="fPipePress"    column="f_pipe_press"    />
        <result property="fReportFlag"    column="f_report_flag"    />
        <result property="fConstructionStatus"    column="f_construction_status"    />
        <result property="fBuildDepartment"    column="f_build_department"    />
        <result property="fProjectLeader"    column="f_project_leader"    />
        <result property="fProjectLeaderPhone"    column="f_project_leader_phone"    />
        <result property="fIndustry"    column="f_industry"    />
        <result property="fDepartmentName"    column="f_department_name"    />
        <result property="fConstructDepartment"    column="f_construct_department"    />
        <result property="fBuildProjectLeaderName"    column="f_build_project_leader_name"    />
        <result property="fBuildProjectLeaderPhone"    column="f_build_project_leader_phone"    />
        <result property="fTechnicalLeaderName"    column="f_technical_leader_name"    />
        <result property="fTechnicalLeaderPhone"    column="f_technical_leader_phone"    />
        <result property="fSupervisionUnitName"    column="f_supervision_unit_name"    />
        <result property="fChiefEngineerName"    column="f_chief_engineer_name"    />
        <result property="fChiefEngineerPhone"    column="f_chief_engineer_phone"    />
        <result property="fCompanyInfoId"    column="f_company_info_id"    />
37
        <result property="companyInfoName"    column="enterpriseName"    />
耿迪迪's avatar
耿迪迪 committed
38 39 40 41 42 43 44 45 46 47 48
        <result property="fPatrolSafetyOfficerNo"    column="f_patrol_safety_officer_no"    />
        <result property="fPartrolSafetyOfficerName"    column="f_partrol_safety_officer_name"    />
        <result property="fPatrolSafetyOfficerPhone"    column="f_patrol_safety_officer_phone"    />
        <result property="fResidentSafetyOfficerNo"    column="f_resident_safety_officer_no"    />
        <result property="fResidentSafetyOfficerName"    column="f_resident_safety_officer_name"    />
        <result property="fResidentSafetyOfficerPhone"    column="f_resident_safety_officer_phone"    />
        <result property="fGasCompanyStationNo"    column="f_gas_company_station_no"    />
        <result property="fGasCompanyStationName"    column="f_gas_company_station_name"    />
        <result property="fGasCompanyStationPhone"    column="f_gas_company_station_phone"    />
        <result property="fRemark"    column="f_remark"    />
        <result property="fUpdateTime"    column="f_update_time"    />
49 50 51 52 53

        <result property="entUploadTime"    column="f_ent_upload_time"    />
        <result property="entUploadState"    column="f_ent_upload_state"    />
        <result property="govUploadTime"    column="f_gov_upload_time"    />
        <result property="govUploadState"    column="f_gov_upload_state"    />
耿迪迪's avatar
耿迪迪 committed
54 55 56
    </resultMap>

    <sql id="selectTConGasProInforVo">
57 58 59 60 61 62 63 64 65 66 67 68 69
        select f_con_gas_pro_infor_id, f_project_code, f_project_no, f_project_name, f_construction_start,
               f_construction_end, f_address, f_district_id,
               f_construction_longitude, f_construction_latitude,
               f_construction_point_type, f_village_id, f_pipe_press, f_report_flag, f_construction_status,
               f_build_department, f_project_leader, f_project_leader_phone, f_industry, f_department_name,
               f_construct_department, f_build_project_leader_name, f_build_project_leader_phone,
               f_technical_leader_name, f_technical_leader_phone, f_supervision_unit_name, f_chief_engineer_name,
               f_chief_engineer_phone, f_company_info_id,
               enterprise.enterprise_name as enterpriseName,f_patrol_safety_officer_no, f_partrol_safety_officer_name,
               f_patrol_safety_officer_phone, f_resident_safety_officer_no, f_resident_safety_officer_name,
               f_resident_safety_officer_phone, f_gas_company_station_no, f_gas_company_station_name,
               f_gas_company_station_phone, f_remark, f_update_time,f_ent_upload_time,f_ent_upload_state,
               f_gov_upload_time,f_gov_upload_state from t_con_gas_pro_infor gasInfo left join t_enterprise_info enterprise on gasInfo.f_company_info_id = enterprise.enterprise_id
耿迪迪's avatar
耿迪迪 committed
70 71
    </sql>

72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139

    <resultMap type="TConGasProInfor" id="TConGasProInforResultForExport">
        <result property="fConGasProInforId"    column="f_con_gas_pro_infor_id"    />
        <result property="fProjectCode"    column="f_project_code"    />
        <result property="fProjectNo"    column="f_project_no"    />
        <result property="fProjectName"    column="f_project_name"    />
        <result property="fConstructionStart"    column="f_construction_start"    />
        <result property="fConstructionEnd"    column="f_construction_end"    />
        <result property="fAddress"    column="f_address"    />
        <result property="fDistrictId"    column="f_district_id"    />
        <result property="districtName"    column="regionName"    />
        <result property="fConstructionLongitude"    column="f_construction_longitude"    />
        <result property="fConstructionLatitude"    column="f_construction_latitude"    />
        <result property="fConstructionPointType"    column="f_construction_point_type"    />
        <result property="fVillageId"    column="f_village_id"    />
        <result property="fPipePress"    column="f_pipe_press"    />
        <result property="fReportFlag"    column="f_report_flag"    />
        <result property="fConstructionStatus"    column="f_construction_status"    />
        <result property="fBuildDepartment"    column="f_build_department"    />
        <result property="fProjectLeader"    column="f_project_leader"    />
        <result property="fProjectLeaderPhone"    column="f_project_leader_phone"    />
        <result property="fIndustry"    column="f_industry"    />
        <result property="fDepartmentName"    column="f_department_name"    />
        <result property="fConstructDepartment"    column="f_construct_department"    />
        <result property="fBuildProjectLeaderName"    column="f_build_project_leader_name"    />
        <result property="fBuildProjectLeaderPhone"    column="f_build_project_leader_phone"    />
        <result property="fTechnicalLeaderName"    column="f_technical_leader_name"    />
        <result property="fTechnicalLeaderPhone"    column="f_technical_leader_phone"    />
        <result property="fSupervisionUnitName"    column="f_supervision_unit_name"    />
        <result property="fChiefEngineerName"    column="f_chief_engineer_name"    />
        <result property="fChiefEngineerPhone"    column="f_chief_engineer_phone"    />
        <result property="fCompanyInfoId"    column="f_company_info_id"    />
        <result property="companyInfoName"    column="enterpriseName"    />
        <result property="fPatrolSafetyOfficerNo"    column="f_patrol_safety_officer_no"    />
        <result property="fPartrolSafetyOfficerName"    column="f_partrol_safety_officer_name"    />
        <result property="fPatrolSafetyOfficerPhone"    column="f_patrol_safety_officer_phone"    />
        <result property="fResidentSafetyOfficerNo"    column="f_resident_safety_officer_no"    />
        <result property="fResidentSafetyOfficerName"    column="f_resident_safety_officer_name"    />
        <result property="fResidentSafetyOfficerPhone"    column="f_resident_safety_officer_phone"    />
        <result property="fGasCompanyStationNo"    column="f_gas_company_station_no"    />
        <result property="fGasCompanyStationName"    column="f_gas_company_station_name"    />
        <result property="fGasCompanyStationPhone"    column="f_gas_company_station_phone"    />
        <result property="fRemark"    column="f_remark"    />
        <result property="fUpdateTime"    column="f_update_time"    />

        <result property="entUploadTime"    column="f_ent_upload_time"    />
        <result property="entUploadState"    column="f_ent_upload_state"    />
        <result property="govUploadTime"    column="f_gov_upload_time"    />
        <result property="govUploadState"    column="f_gov_upload_state"    />
    </resultMap>

    <sql id="exprotTConGasProInforVo">
        select f_con_gas_pro_infor_id, f_project_code, f_project_no, f_project_name, f_construction_start,
               f_construction_end, f_address, f_district_id,
               region.f_name as regionName,f_construction_longitude, f_construction_latitude,
               f_construction_point_type, f_village_id, f_pipe_press, f_report_flag, f_construction_status,
               f_build_department, f_project_leader, f_project_leader_phone, f_industry, f_department_name,
               f_construct_department, f_build_project_leader_name, f_build_project_leader_phone,
               f_technical_leader_name, f_technical_leader_phone, f_supervision_unit_name, f_chief_engineer_name,
               f_chief_engineer_phone, f_company_info_id,
               enterprise.enterprise_name as enterpriseName,f_patrol_safety_officer_no, f_partrol_safety_officer_name,
               f_patrol_safety_officer_phone, f_resident_safety_officer_no, f_resident_safety_officer_name,
               f_resident_safety_officer_phone, f_gas_company_station_no, f_gas_company_station_name,
               f_gas_company_station_phone, f_remark, f_update_time,f_ent_upload_time,f_ent_upload_state,
               f_gov_upload_time,f_gov_upload_state from t_con_gas_pro_infor gasInfo left join t_enterprise_info enterprise on gasInfo.f_company_info_id = enterprise.enterprise_id
                                                                                     left join t_county_level_region region on gasInfo.f_district_id = region.f_id
    </sql>

耿迪迪's avatar
耿迪迪 committed
140 141 142 143 144 145 146
    <select id="selectTConGasProInforList" parameterType="TConGasProInfor" resultMap="TConGasProInforResult">
        <include refid="selectTConGasProInforVo"/>
        <where>  
            <if test="fProjectCode != null  and fProjectCode != ''"> and f_project_code like concat('%', #{fProjectCode}, '%')</if>
            <if test="fProjectNo != null "> and f_project_no = #{fProjectNo}</if>
            <if test="fProjectName != null  and fProjectName != ''"> and f_project_name like concat('%', #{fProjectName}, '%')</if>
            <if test="fPipePress != null  and fPipePress != ''"> and f_pipe_press = #{fPipePress}</if>
147
            <if test="entUploadState != null  and entUploadState != ''"> and f_ent_upload_state = #{entUploadState}</if>
148
            <if test="fCompanyInfoId != null  and fCompanyInfoId != ''"> and f_company_info_id = #{fCompanyInfoId}</if>
耿迪迪's avatar
耿迪迪 committed
149
        </where>
150
        order by f_update_time desc
耿迪迪's avatar
耿迪迪 committed
151
    </select>
152 153 154 155 156 157 158 159 160 161

    <select id="exportTConGasProInforList" parameterType="TConGasProInfor" resultMap="TConGasProInforResultForExport">
        <include refid="exprotTConGasProInforVo"/>
        <where>
            <if test="fProjectCode != null  and fProjectCode != ''"> and f_project_code like concat('%', #{fProjectCode}, '%')</if>
            <if test="fProjectNo != null "> and f_project_no = #{fProjectNo}</if>
            <if test="fProjectName != null  and fProjectName != ''"> and f_project_name like concat('%', #{fProjectName}, '%')</if>
            <if test="fPipePress != null  and fPipePress != ''"> and f_pipe_press = #{fPipePress}</if>
            <if test="entUploadState != null  and entUploadState != ''"> and f_ent_upload_state = #{entUploadState}</if>
            <if test="fCompanyInfoId != null  and fCompanyInfoId != ''"> and f_company_info_id = #{fCompanyInfoId}</if>
162
            <if test="govUploadState != null  and govUploadState != ''"> and f_gov_upload_state = #{govUploadState}</if>
163 164 165 166 167
        </where>
        order by f_update_time desc
    </select>


耿迪迪's avatar
耿迪迪 committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
    <select id="selectTConGasProInforById" parameterType="Long" resultMap="TConGasProInforResult">
        <include refid="selectTConGasProInforVo"/>
        where f_con_gas_pro_infor_id = #{fConGasProInforId}
    </select>
        
    <insert id="insertTConGasProInfor" parameterType="TConGasProInfor" useGeneratedKeys="true" keyProperty="fConGasProInforId">
        insert into t_con_gas_pro_infor
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="fProjectCode != null and fProjectCode != ''">f_project_code,</if>
            <if test="fProjectNo != null">f_project_no,</if>
            <if test="fProjectName != null and fProjectName != ''">f_project_name,</if>
            <if test="fConstructionStart != null and fConstructionStart != ''">f_construction_start,</if>
            <if test="fConstructionEnd != null and fConstructionEnd != ''">f_construction_end,</if>
            <if test="fAddress != null and fAddress != ''">f_address,</if>
            <if test="fDistrictId != null">f_district_id,</if>
            <if test="fConstructionLongitude != null">f_construction_longitude,</if>
            <if test="fConstructionLatitude != null">f_construction_latitude,</if>
            <if test="fConstructionPointType != null">f_construction_point_type,</if>
            <if test="fVillageId != null">f_village_id,</if>
            <if test="fPipePress != null and fPipePress != ''">f_pipe_press,</if>
            <if test="fReportFlag != null">f_report_flag,</if>
            <if test="fConstructionStatus != null">f_construction_status,</if>
            <if test="fBuildDepartment != null and fBuildDepartment != ''">f_build_department,</if>
            <if test="fProjectLeader != null">f_project_leader,</if>
            <if test="fProjectLeaderPhone != null">f_project_leader_phone,</if>
            <if test="fIndustry != null and fIndustry != ''">f_industry,</if>
            <if test="fDepartmentName != null">f_department_name,</if>
            <if test="fConstructDepartment != null and fConstructDepartment != ''">f_construct_department,</if>
            <if test="fBuildProjectLeaderName != null">f_build_project_leader_name,</if>
            <if test="fBuildProjectLeaderPhone != null">f_build_project_leader_phone,</if>
            <if test="fTechnicalLeaderName != null">f_technical_leader_name,</if>
            <if test="fTechnicalLeaderPhone != null">f_technical_leader_phone,</if>
            <if test="fSupervisionUnitName != null">f_supervision_unit_name,</if>
            <if test="fChiefEngineerName != null">f_chief_engineer_name,</if>
            <if test="fChiefEngineerPhone != null">f_chief_engineer_phone,</if>
            <if test="fCompanyInfoId != null and fCompanyInfoId != ''">f_company_info_id,</if>
            <if test="fPatrolSafetyOfficerNo != null">f_patrol_safety_officer_no,</if>
            <if test="fPartrolSafetyOfficerName != null">f_partrol_safety_officer_name,</if>
            <if test="fPatrolSafetyOfficerPhone != null">f_patrol_safety_officer_phone,</if>
            <if test="fResidentSafetyOfficerNo != null">f_resident_safety_officer_no,</if>
            <if test="fResidentSafetyOfficerName != null">f_resident_safety_officer_name,</if>
            <if test="fResidentSafetyOfficerPhone != null">f_resident_safety_officer_phone,</if>
            <if test="fGasCompanyStationNo != null">f_gas_company_station_no,</if>
            <if test="fGasCompanyStationName != null">f_gas_company_station_name,</if>
            <if test="fGasCompanyStationPhone != null">f_gas_company_station_phone,</if>
            <if test="fRemark != null">f_remark,</if>
            <if test="fUpdateTime != null and fUpdateTime != ''">f_update_time,</if>
215 216 217 218 219

            <if test="entUploadTime != null">f_ent_upload_time,</if>
            <if test="entUploadState != null and entUploadStatue != ''">f_ent_upload_state,</if>
            <if test="govUploadTime != null">f_gov_upload_time,</if>
            <if test="govUploadState != null and govUploadStatue != ''">f_gov_upload_state,</if>
耿迪迪's avatar
耿迪迪 committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="fProjectCode != null and fProjectCode != ''">#{fProjectCode},</if>
            <if test="fProjectNo != null">#{fProjectNo},</if>
            <if test="fProjectName != null and fProjectName != ''">#{fProjectName},</if>
            <if test="fConstructionStart != null and fConstructionStart != ''">#{fConstructionStart},</if>
            <if test="fConstructionEnd != null and fConstructionEnd != ''">#{fConstructionEnd},</if>
            <if test="fAddress != null and fAddress != ''">#{fAddress},</if>
            <if test="fDistrictId != null">#{fDistrictId},</if>
            <if test="fConstructionLongitude != null">#{fConstructionLongitude},</if>
            <if test="fConstructionLatitude != null">#{fConstructionLatitude},</if>
            <if test="fConstructionPointType != null">#{fConstructionPointType},</if>
            <if test="fVillageId != null">#{fVillageId},</if>
            <if test="fPipePress != null and fPipePress != ''">#{fPipePress},</if>
            <if test="fReportFlag != null">#{fReportFlag},</if>
            <if test="fConstructionStatus != null">#{fConstructionStatus},</if>
            <if test="fBuildDepartment != null and fBuildDepartment != ''">#{fBuildDepartment},</if>
            <if test="fProjectLeader != null">#{fProjectLeader},</if>
            <if test="fProjectLeaderPhone != null">#{fProjectLeaderPhone},</if>
            <if test="fIndustry != null and fIndustry != ''">#{fIndustry},</if>
            <if test="fDepartmentName != null">#{fDepartmentName},</if>
            <if test="fConstructDepartment != null and fConstructDepartment != ''">#{fConstructDepartment},</if>
            <if test="fBuildProjectLeaderName != null">#{fBuildProjectLeaderName},</if>
            <if test="fBuildProjectLeaderPhone != null">#{fBuildProjectLeaderPhone},</if>
            <if test="fTechnicalLeaderName != null">#{fTechnicalLeaderName},</if>
            <if test="fTechnicalLeaderPhone != null">#{fTechnicalLeaderPhone},</if>
            <if test="fSupervisionUnitName != null">#{fSupervisionUnitName},</if>
            <if test="fChiefEngineerName != null">#{fChiefEngineerName},</if>
            <if test="fChiefEngineerPhone != null">#{fChiefEngineerPhone},</if>
            <if test="fCompanyInfoId != null and fCompanyInfoId != ''">#{fCompanyInfoId},</if>
            <if test="fPatrolSafetyOfficerNo != null">#{fPatrolSafetyOfficerNo},</if>
            <if test="fPartrolSafetyOfficerName != null">#{fPartrolSafetyOfficerName},</if>
            <if test="fPatrolSafetyOfficerPhone != null">#{fPatrolSafetyOfficerPhone},</if>
            <if test="fResidentSafetyOfficerNo != null">#{fResidentSafetyOfficerNo},</if>
            <if test="fResidentSafetyOfficerName != null">#{fResidentSafetyOfficerName},</if>
            <if test="fResidentSafetyOfficerPhone != null">#{fResidentSafetyOfficerPhone},</if>
            <if test="fGasCompanyStationNo != null">#{fGasCompanyStationNo},</if>
            <if test="fGasCompanyStationName != null">#{fGasCompanyStationName},</if>
            <if test="fGasCompanyStationPhone != null">#{fGasCompanyStationPhone},</if>
            <if test="fRemark != null">#{fRemark},</if>
260 261 262 263 264 265
            <if test="fUpdateTime != null">#{fUpdateTime},</if>

            <if test="entUploadTime != null ">#{entUploadTime},</if>
            <if test="entUploadState != null and entUploadState != ''">#{entUploadState},</if>
            <if test="govUploadTime != null ">#{govUploadTime},</if>
            <if test="govUploadState != null and govUploadState != ''">#{govUploadState},</if>
耿迪迪's avatar
耿迪迪 committed
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
         </trim>
    </insert>

    <update id="updateTConGasProInfor" parameterType="TConGasProInfor">
        update t_con_gas_pro_infor
        <trim prefix="SET" suffixOverrides=",">
            <if test="fProjectCode != null and fProjectCode != ''">f_project_code = #{fProjectCode},</if>
            <if test="fProjectNo != null">f_project_no = #{fProjectNo},</if>
            <if test="fProjectName != null and fProjectName != ''">f_project_name = #{fProjectName},</if>
            <if test="fConstructionStart != null and fConstructionStart != ''">f_construction_start = #{fConstructionStart},</if>
            <if test="fConstructionEnd != null and fConstructionEnd != ''">f_construction_end = #{fConstructionEnd},</if>
            <if test="fAddress != null and fAddress != ''">f_address = #{fAddress},</if>
            <if test="fDistrictId != null">f_district_id = #{fDistrictId},</if>
            <if test="fConstructionLongitude != null">f_construction_longitude = #{fConstructionLongitude},</if>
            <if test="fConstructionLatitude != null">f_construction_latitude = #{fConstructionLatitude},</if>
            <if test="fConstructionPointType != null">f_construction_point_type = #{fConstructionPointType},</if>
            <if test="fVillageId != null">f_village_id = #{fVillageId},</if>
            <if test="fPipePress != null and fPipePress != ''">f_pipe_press = #{fPipePress},</if>
            <if test="fReportFlag != null">f_report_flag = #{fReportFlag},</if>
            <if test="fConstructionStatus != null">f_construction_status = #{fConstructionStatus},</if>
            <if test="fBuildDepartment != null and fBuildDepartment != ''">f_build_department = #{fBuildDepartment},</if>
            <if test="fProjectLeader != null">f_project_leader = #{fProjectLeader},</if>
            <if test="fProjectLeaderPhone != null">f_project_leader_phone = #{fProjectLeaderPhone},</if>
            <if test="fIndustry != null and fIndustry != ''">f_industry = #{fIndustry},</if>
            <if test="fDepartmentName != null">f_department_name = #{fDepartmentName},</if>
            <if test="fConstructDepartment != null and fConstructDepartment != ''">f_construct_department = #{fConstructDepartment},</if>
            <if test="fBuildProjectLeaderName != null">f_build_project_leader_name = #{fBuildProjectLeaderName},</if>
            <if test="fBuildProjectLeaderPhone != null">f_build_project_leader_phone = #{fBuildProjectLeaderPhone},</if>
            <if test="fTechnicalLeaderName != null">f_technical_leader_name = #{fTechnicalLeaderName},</if>
            <if test="fTechnicalLeaderPhone != null">f_technical_leader_phone = #{fTechnicalLeaderPhone},</if>
            <if test="fSupervisionUnitName != null">f_supervision_unit_name = #{fSupervisionUnitName},</if>
            <if test="fChiefEngineerName != null">f_chief_engineer_name = #{fChiefEngineerName},</if>
            <if test="fChiefEngineerPhone != null">f_chief_engineer_phone = #{fChiefEngineerPhone},</if>
            <if test="fCompanyInfoId != null and fCompanyInfoId != ''">f_company_info_id = #{fCompanyInfoId},</if>
            <if test="fPatrolSafetyOfficerNo != null">f_patrol_safety_officer_no = #{fPatrolSafetyOfficerNo},</if>
            <if test="fPartrolSafetyOfficerName != null">f_partrol_safety_officer_name = #{fPartrolSafetyOfficerName},</if>
            <if test="fPatrolSafetyOfficerPhone != null">f_patrol_safety_officer_phone = #{fPatrolSafetyOfficerPhone},</if>
            <if test="fResidentSafetyOfficerNo != null">f_resident_safety_officer_no = #{fResidentSafetyOfficerNo},</if>
            <if test="fResidentSafetyOfficerName != null">f_resident_safety_officer_name = #{fResidentSafetyOfficerName},</if>
            <if test="fResidentSafetyOfficerPhone != null">f_resident_safety_officer_phone = #{fResidentSafetyOfficerPhone},</if>
            <if test="fGasCompanyStationNo != null">f_gas_company_station_no = #{fGasCompanyStationNo},</if>
            <if test="fGasCompanyStationName != null">f_gas_company_station_name = #{fGasCompanyStationName},</if>
            <if test="fGasCompanyStationPhone != null">f_gas_company_station_phone = #{fGasCompanyStationPhone},</if>
            <if test="fRemark != null">f_remark = #{fRemark},</if>
310 311 312 313 314 315
            <if test="fUpdateTime != null">f_update_time = #{fUpdateTime},</if>

            <if test="entUploadTime != null">f_ent_upload_time = #{entUploadTime},</if>
            <if test="entUploadState != null and entUploadState != ''">f_ent_upload_state = #{entUploadState},</if>
            <if test="govUploadTime != null ">f_gov_upload_time = #{govUploadTime},</if>
            <if test="govUploadState != null and govUploadState != ''">f_gov_upload_state = #{govUploadState},</if>
耿迪迪's avatar
耿迪迪 committed
316 317 318 319
        </trim>
        where f_con_gas_pro_infor_id = #{fConGasProInforId}
    </update>

320 321 322 323
    <update id="updateEntUploadStateById">
        update t_con_gas_pro_infor set f_ent_upload_state = #{state}, f_ent_upload_time = #{entUploadTime} where  f_con_gas_pro_infor_id = #{fConGasProInforId}
    </update>

耿迪迪's avatar
耿迪迪 committed
324 325 326 327 328 329 330 331 332 333 334
    <delete id="deleteTConGasProInforById" parameterType="Long">
        delete from t_con_gas_pro_infor where f_con_gas_pro_infor_id = #{fConGasProInforId}
    </delete>

    <delete id="deleteTConGasProInforByIds" parameterType="String">
        delete from t_con_gas_pro_infor where f_con_gas_pro_infor_id in 
        <foreach item="fConGasProInforId" collection="array" open="(" separator="," close=")">
            #{fConGasProInforId}
        </foreach>
    </delete>
</mapper>