You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
904 B
XML
31 lines
904 B
XML
3 years ago
|
<?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" >
|
||
3 years ago
|
<mapper namespace="com.engine.organization.mapper.extend.ExtDTMapper">
|
||
3 years ago
|
|
||
|
|
||
|
<insert id="insertCompExtDT" 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>
|
||
3 years ago
|
<delete id="deleteByMainID">
|
||
|
delete
|
||
|
from ${tableName}
|
||
3 years ago
|
where mainid = #{mainId}
|
||
3 years ago
|
</delete>
|
||
|
|
||
3 years ago
|
<select id="listCompExtDT" resultType="map">
|
||
3 years ago
|
select ${fields}
|
||
|
from ${tableName}
|
||
|
where mainid = #{id}
|
||
|
and delete_type = 0
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|