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.
40 lines
1.3 KiB
XML
40 lines
1.3 KiB
XML
<?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.udi.admin.dao.receipt.UnitMaintainDao">
|
|
|
|
<select id="filterList" parameterType="com.glxp.udi.admin.req.receipt.UnitMaintainFilterRequest"
|
|
resultType="com.glxp.udi.admin.entity.receipt.UnitMaintainEntity">
|
|
SELECT * FROM unit_maintain where
|
|
( name like concat('%',#{key},'%') or spell like concat('%',#{key},'%') or unitId like
|
|
concat('%',#{key},'%') )
|
|
</select>
|
|
|
|
|
|
<insert id="insertUnitMaintain" keyProperty="id"
|
|
parameterType="com.glxp.udi.admin.entity.receipt.UnitMaintainEntity">
|
|
INSERT INTO unit_maintain
|
|
(thirdId,unitId,name,spell,
|
|
addr,status,type)
|
|
values
|
|
(
|
|
#{thirdId},
|
|
#{unitId},
|
|
#{name},
|
|
#{spell},
|
|
#{addr},
|
|
#{status},
|
|
#{type}
|
|
)
|
|
</insert>
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
DELETE FROM unit_maintain WHERE id = #{id}
|
|
</delete>
|
|
|
|
|
|
<select id="selectById" parameterType="Map" resultType="com.glxp.udi.admin.entity.receipt.UnitMaintainEntity">
|
|
select * FROM unit_maintain WHERE id = #{id}
|
|
</select>
|
|
</mapper>
|