| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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.shkpr.service.bespokegateway.core.mapper.primary.FunctionInfoMapper">
- <select id="findAll" resultType="com.shkpr.service.bespokegateway.core.domain.po.FunctionInfo">
- select id,
- uid,
- name,
- remark,
- param1,
- param2,
- create_time,
- update_time,
- disused,
- ordering,
- puid,
- kind
- from k4_bs_sys_function_info
- </select>
- <insert id="upsert">
- insert into k4_bs_sys_function_info (uid, "name", remark, update_time, puid)
- values (#{uid,jdbcType=VARCHAR},
- #{name,jdbcType=VARCHAR},
- #{remark,jdbcType=VARCHAR},
- localtimestamp(0),
- #{puid,jdbcType=VARCHAR})
- on conflict (uid) do update set "name" = excluded."name",
- remark = excluded.remark,
- update_time = excluded.update_time,
- puid = excluded.puid
- </insert>
- <delete id="deleteByUids">
- delete from k4_bs_sys_function_info
- where uid in
- <foreach collection="uids" item="uid" open="(" close=")" separator=",">
- #{uid, jdbcType=VARCHAR}
- </foreach>
- </delete>
- </mapper>
|