You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
XML
50 lines
1.5 KiB
XML
4 years ago
|
<?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.glxp.api.admin.dao.basic.UnitMaintainDao">
|
||
|
|
||
|
<select id="filterList" parameterType="com.glxp.api.admin.req.receipt.UnitMaintainFilterRequest"
|
||
|
resultType="com.glxp.api.admin.entity.basic.UnitMaintainEntity">
|
||
|
SELECT * FROM basic_corp
|
||
|
<where>
|
||
|
<if test="key != '' and key!=null">
|
||
|
and name like concat('%',#{key},'%') or spell like concat('%',#{key},'%') or erpId like
|
||
|
concat('%',#{key},'%')
|
||
|
</if>
|
||
|
|
||
|
</where>
|
||
|
|
||
|
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<insert id="insertUnitMaintain" keyProperty="id"
|
||
|
parameterType="com.glxp.api.admin.entity.basic.UnitMaintainEntity">
|
||
|
INSERT INTO basic_corp
|
||
|
(thirdId,erpId,name,spell,
|
||
|
addr,status,type,contact,mobile,creditNo)
|
||
|
values
|
||
|
(
|
||
|
#{thirdId},
|
||
|
#{erpId},
|
||
|
#{name},
|
||
|
#{spell},
|
||
|
#{addr},
|
||
|
#{status},
|
||
|
#{type},
|
||
|
#{contact},
|
||
|
#{mobile},
|
||
|
#{creditNo}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
<delete id="deleteById" parameterType="Map">
|
||
|
DELETE FROM basic_corp WHERE id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
|
||
|
<select id="selectById" parameterType="Map" resultType="com.glxp.api.admin.entity.basic.UnitMaintainEntity">
|
||
|
select * FROM basic_corp WHERE id = #{id}
|
||
|
</select>
|
||
|
</mapper>
|