feat:保存配置信息

This commit is contained in:
xiang
2025-07-26 23:33:55 +08:00
parent f0104bf168
commit da2bebc80d
18 changed files with 366 additions and 83 deletions

View File

@@ -0,0 +1,33 @@
<?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.fwd.mapper.FwdPerformConfigMapper">
<resultMap id="BaseResultMap" type="com.xiang.xservice.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="getAvailableUser" resultMap="BaseResultMap">
select <include refid="Base_Column_List"/>
from fwd_perform_config where del_flag = 0
</select>
</mapper>