33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<?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.xiang.xservice.application.script.fwd.mapper.FwdPerformConfigMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.xiang.xservice.application.script.fwd.entity.pojo.FPerformConfig" >
|
|
<result column="id" property="id"/>
|
|
<result column="project_id" property="projectId"/>
|
|
<result column="time" property="time"/>
|
|
<result column="del_flag" property="delFlag"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id, project_id, time, del_flag
|
|
</sql>
|
|
|
|
<update id="delPerforms">
|
|
update fwd_perform_config set del_flag = 1 where 1=1
|
|
</update>
|
|
|
|
<insert id="insertPerforms">
|
|
insert into fwd_perform_config(project_id, time, del_flag)
|
|
values
|
|
<foreach collection="list" item="item" separator=",">
|
|
(#{item.projectId}, #{item.time}, #{item.delFlag})
|
|
</foreach>
|
|
</insert>
|
|
|
|
<select id="getAvailablePerform" resultMap="BaseResultMap">
|
|
select <include refid="Base_Column_List"/>
|
|
from fwd_perform_config where del_flag = 0
|
|
</select>
|
|
</mapper> |