|
|
|
@ -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-->
|
|
|
|
@ -81,9 +74,9 @@
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
update auth_warehouse_bustype
|
|
|
|
|
set code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
`action` = #{action,jdbcType=VARCHAR},
|
|
|
|
|
`name` = #{name,jdbcType=VARCHAR}
|
|
|
|
|
set code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
`action` = #{action,jdbcType=VARCHAR},
|
|
|
|
|
`name` = #{name,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateBatch" parameterType="java.util.List">
|
|
|
|
@ -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-->
|
|
|
|
@ -178,9 +161,9 @@
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id = #{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
`action` = #{action,jdbcType=VARCHAR},
|
|
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
|
|
|
|
@ -239,14 +222,15 @@
|
|
|
|
|
auth_warehouse_bustype.action,
|
|
|
|
|
basic_bussiness_type.name
|
|
|
|
|
from auth_warehouse_bustype
|
|
|
|
|
inner join basic_bussiness_type on auth_warehouse_bustype.action = basic_bussiness_type.action
|
|
|
|
|
inner join basic_bussiness_type on auth_warehouse_bustype.action = basic_bussiness_type.action
|
|
|
|
|
where code = #{code}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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">
|
|
|
|
@ -272,7 +250,7 @@
|
|
|
|
|
auth_warehouse_bustype.action,
|
|
|
|
|
basic_bussiness_type.name
|
|
|
|
|
from auth_warehouse_bustype
|
|
|
|
|
inner join basic_bussiness_type on auth_warehouse_bustype.action = basic_bussiness_type.action
|
|
|
|
|
inner join basic_bussiness_type on auth_warehouse_bustype.action = basic_bussiness_type.action
|
|
|
|
|
where code = #{code}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -284,9 +262,11 @@
|
|
|
|
|
</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>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|