|
|
|
@ -22,18 +22,11 @@
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
delete from auth_warehouse_bustype
|
|
|
|
|
delete
|
|
|
|
|
from auth_warehouse_bustype
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into auth_warehouse_bustype (code, `action`, `name`
|
|
|
|
|
)
|
|
|
|
|
values (#{code,jdbcType=VARCHAR}, #{action,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
@ -142,16 +135,6 @@
|
|
|
|
|
#{item.id,jdbcType=INTEGER}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into auth_warehouse_bustype
|
|
|
|
|
(code, `action`, `name`)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
|
(#{item.code,jdbcType=VARCHAR}, #{item.action,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertOrUpdateEntity" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
@ -246,7 +229,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterList" parameterType="com.glxp.api.req.auth.FilterInvBusTypeRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity">
|
|
|
|
|
SELECT * FROM auth_warehouse_bustype
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM auth_warehouse_bustype
|
|
|
|
|
<where>
|
|
|
|
|
<if test="id != '' and id != null">
|
|
|
|
|
AND id = #{id}
|
|
|
|
@ -258,12 +242,6 @@
|
|
|
|
|
AND `action` = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
|
|
select *
|
|
|
|
|
from auth_warehouse_bustype
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectListByAction" resultMap="BaseResultMap">
|
|
|
|
@ -284,7 +262,9 @@
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectByActions" resultType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity">
|
|
|
|
|
select * from auth_warehouse_bustype where code = #{subInvCode} and action in
|
|
|
|
|
select *
|
|
|
|
|
from auth_warehouse_bustype where code = #{subInvCode}
|
|
|
|
|
and action in
|
|
|
|
|
<foreach collection="actions" item="item" index="index" open="(" close=")" separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|