bns_jjsp_service/securityControl-modules/securityControl-task/target/classes/mapper/task/FengKongMapper.xml

248 lines
7.5 KiB
XML
Raw Permalink Normal View History

2025-01-16 18:13:22 +08:00
<?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.securityControl.task.mapper.FengkongMapper">
<!--根据施工人员id查询施工人员-->
<select id="getSgry" parameterType="java.lang.String" resultType="java.util.Map">
select * from sgwpdm_sm_fb_fk_sgry where SGRY_ID = #{sgry_id}
</select>
<!--新增风控平台基建企业人员信息-->
<insert id="insertSgry" parameterType="java.util.Map">
insert ignore into sgwpdm_sm_fb_fk_sgry
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="sgry_id != null">
SGRY_ID,
</if>
<if test="xm != null">
XM,
</if>
<if test="sgqy_id != null">
SGQY_ID,
</if>
<if test="xb != null">
XB,
</if>
<if test="mz != null">
MZ,
</if>
<if test="sfzh != null">
SFZH,
</if>
<if test="dhhm != null">
DHHM,
</if>
<if test="del_flg != null">
DEL_FLG,
</if>
<if test="user_id != null">
USER_ID,
</if>
<if test="user_name != null">
USER_NAME,
</if>
<if test="create_time != null and create_time != ''">
CREATE_TIME,
</if>
<if test="realgz != null">
REALGZ,
</if>
<if test="szr != null">
SZR,
</if>
<if test="js != null">
JS,
</if>
<if test="zylb != null">
ZYLB,
</if>
<if test="zr_city_id != null">
ZR_CITY_ID,
</if>
<if test="zr_city_name != null">
ZR_CITY_NAME,
</if>
<if test="zr_country_id != null">
ZR_COUNTRY_ID,
</if>
<if test="zr_country_name != null">
ZR_COUNTRY_NAME,
</if>
DATA_CREATE_TIME,
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id},
</if>
<if test="sgry_id != null">
#{sgry_id},
</if>
<if test="xm != null">
#{xm},
</if>
<if test="sgqy_id != null">
#{sgqy_id},
</if>
<if test="xb != null">
#{xb},
</if>
<if test="mz != null">
#{mz},
</if>
<if test="sfzh != null">
#{sfzh},
</if>
<if test="dhhm != null">
#{dhhm},
</if>
<if test="del_flg != null">
#{del_flg},
</if>
<if test="user_id != null">
#{user_id},
</if>
<if test="user_name != null">
#{user_name},
</if>
<if test="create_time != null and create_time != ''">
#{create_time},
</if>
<if test="realgz != null">
#{realgz},
</if>
<if test="szr != null">
#{szr},
</if>
<if test="js != null">
#{js},
</if>
<if test="zylb != null">
#{zylb},
</if>
<if test="zr_city_id != null">
#{zr_city_id},
</if>
<if test="zr_city_name != null">
#{zr_city_name},
</if>
<if test="zr_country_id != null">
#{zr_country_id},
</if>
<if test="zr_country_name != null">
#{zr_country_name},
</if>
SYSDATE(),
</trim>
</insert>
<!--修改风控平台基建企业人员信息-->
<update id="updateSgry" parameterType="java.util.Map">
update sgwpdm_sm_fb_fk_sgry
<set>
<if test="sgry_id != null">
SGRY_ID = #{sgry_id},
</if>
<if test="xm != null">
XM = #{xm},
</if>
<if test="sgqy_id != null">
SGQY_ID = #{sgqy_id},
</if>
<if test="xb != null">
XB = #{xb},
</if>
<if test="mz != null">
MZ = #{mz},
</if>
<if test="sfzh != null">
SFZH = #{sfzh},
</if>
<if test="dhhm != null">
DHHM = #{dhhm},
</if>
<if test="del_flg != null">
DEL_FLG = #{del_flg},
</if>
<if test="user_id != null">
USER_ID = #{user_id},
</if>
<if test="user_name != null">
USER_NAME = #{user_name},
</if>
<if test="create_time != null and create_time != ''">
CREATE_TIME = #{create_time},
</if>
<if test="realgz != null">
REALGZ = #{realgz},
</if>
<if test="szr != null">
SZR = #{szr},
</if>
<if test="js != null">
JS = #{js},
</if>
<if test="zylb != null">
ZYLB = #{zylb},
</if>
<if test="zr_city_id != null">
ZR_CITY_ID = #{zr_city_id},
</if>
<if test="zr_city_name != null">
ZR_CITY_NAME = #{zr_city_name},
</if>
<if test="zr_country_id != null">
ZR_COUNTRY_ID = #{zr_country_id},
</if>
<if test="zr_country_name != null">
ZR_COUNTRY_NAME = #{zr_country_name},
</if>
DATA_UPDATE_TIME = SYSDATE(),
</set>
where SGRY_ID = #{sgry_id}
</update>
<!--新增风控平台基建企业人员资质-->
<insert id="insertSgryZz" parameterType="java.util.Map">
insert ignore into sgwpdm_sm_fb_fk_sgryzz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="ryid != null">
SGRY_ID,
</if>
<if test="file_type != null">
FILE_TYPE,
</if>
<if test="img_url != null">
IMG_URL,
</if>
<if test="create_time != null and create_time != ''">
CREATE_TIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id},
</if>
<if test="ryid != null">
#{ryid},
</if>
<if test="file_type != null">
#{file_type},
</if>
<if test="img_url != null">
#{img_url},
</if>
<if test="create_time != null and create_time != ''">
#{create_time},
</if>
</trim>
</insert>
<!--根据施工人员id删除资质信息-->
<delete id="deleteSgryZz" parameterType="java.lang.String">
delete from sgwpdm_sm_fb_fk_sgryzz where SGRY_ID = #{sgry_id}
</delete>
</mapper>