|
|
|
@ -22,17 +22,16 @@
|
|
|
|
|
</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 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">
|
|
|
|
@ -81,9 +80,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">
|
|
|
|
@ -145,44 +144,43 @@
|
|
|
|
|
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into auth_warehouse_bustype
|
|
|
|
|
(code, `action`, `name`)
|
|
|
|
|
values
|
|
|
|
|
(code, `action`, `name`)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
|
(#{item.code,jdbcType=VARCHAR}, #{item.action,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}
|
|
|
|
|
)
|
|
|
|
|
(#{item.code,jdbcType=VARCHAR}, #{item.action,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into auth_warehouse_bustype
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
code,
|
|
|
|
|
`action`,
|
|
|
|
|
`name`,
|
|
|
|
|
</trim>
|
|
|
|
|
values
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
#{code,jdbcType=VARCHAR},
|
|
|
|
|
#{action,jdbcType=VARCHAR},
|
|
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
|
|
</trim>
|
|
|
|
|
on duplicate key update
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id = #{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
`action` = #{action,jdbcType=VARCHAR},
|
|
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<!-- <insert id="insertOrUpdate" keyColumn="id" keyProperty="id"-->
|
|
|
|
|
<!-- parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">-->
|
|
|
|
|
<!-- <!–@mbg.generated–>-->
|
|
|
|
|
<!-- insert into auth_warehouse_bustype-->
|
|
|
|
|
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
|
|
|
|
|
<!-- <if test="id != null">-->
|
|
|
|
|
<!-- id,-->
|
|
|
|
|
<!-- </if>-->
|
|
|
|
|
<!-- code,-->
|
|
|
|
|
<!-- `action`,-->
|
|
|
|
|
<!-- `name`,-->
|
|
|
|
|
<!-- </trim>-->
|
|
|
|
|
<!-- values-->
|
|
|
|
|
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
|
|
|
|
|
<!-- <if test="id != null">-->
|
|
|
|
|
<!-- #{id,jdbcType=INTEGER},-->
|
|
|
|
|
<!-- </if>-->
|
|
|
|
|
<!-- #{code,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- #{action,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- #{name,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- </trim>-->
|
|
|
|
|
<!-- on duplicate key update-->
|
|
|
|
|
<!-- <trim suffixOverrides=",">-->
|
|
|
|
|
<!-- <if test="id != null">-->
|
|
|
|
|
<!-- id = #{id,jdbcType=INTEGER},-->
|
|
|
|
|
<!-- </if>-->
|
|
|
|
|
<!-- code = #{code,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- `action` = #{action,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- `name` = #{name,jdbcType=VARCHAR},-->
|
|
|
|
|
<!-- </trim>-->
|
|
|
|
|
<!-- </insert>-->
|
|
|
|
|
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseBussinessTypeEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
@ -239,14 +237,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,7 +257,6 @@
|
|
|
|
|
AND `action` = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
|
|
select *
|
|
|
|
@ -272,7 +270,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 +282,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>
|
|
|
|
|