2022-05-20 15:06:27 +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.engine.organization.mapper.comp.CompExtMapper">
|
|
|
|
|
|
|
|
|
|
|
2022-05-20 17:34:18 +08:00
|
|
|
<insert id="insertCompExt" parameterType="java.util.Map">
|
|
|
|
|
insert into ${tableName} (
|
|
|
|
|
<foreach collection="map" item="value" index="key" separator=",">
|
|
|
|
|
${key}
|
|
|
|
|
</foreach>
|
|
|
|
|
)
|
|
|
|
|
values (
|
|
|
|
|
<foreach collection="map" item="value" index="key" separator=",">
|
|
|
|
|
#{value}
|
|
|
|
|
</foreach>
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateCompExt" parameterType="java.util.Map">
|
|
|
|
|
update ${tableName} set
|
|
|
|
|
<foreach collection="map" item="value" index="key" separator=",">
|
|
|
|
|
${key} = #{value}
|
|
|
|
|
</foreach>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
2022-05-20 15:06:27 +08:00
|
|
|
<select id="listCompExt" resultType="map">
|
|
|
|
|
select ${fields}
|
|
|
|
|
from ${tableName}
|
|
|
|
|
where delete_type = 0
|
|
|
|
|
and id = #{id}
|
|
|
|
|
</select>
|
2022-05-20 17:34:18 +08:00
|
|
|
|
|
|
|
|
<select id="countCompExtById" resultType="java.lang.Integer">
|
|
|
|
|
select count(1)
|
|
|
|
|
from ${tableName}
|
|
|
|
|
where delete_type = 0
|
|
|
|
|
and id = #{id}
|
|
|
|
|
</select>
|
2022-05-20 15:06:27 +08:00
|
|
|
</mapper>
|