庞家镇
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.pill.mapper.PillFactoryMapper">
|
||||
|
||||
<resultMap type="PillFactory" id="PillFactoryResult">
|
||||
|
||||
<resultMap type="com.ruoyi.pill.domain.PillFactory" id="PillFactoryResult">
|
||||
<result property="factoryId" column="factory_id" />
|
||||
<result property="factoryName" column="factory_name" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
@ -20,12 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPillFactoryVo">
|
||||
select factory_id, factory_name, factory_code, contact, phone, keyword, status, create_by, create_time, update_by, update_time, remark from pill_factory
|
||||
select factory_id, factory_name, factory_code, contact, phone, keyword, status, create_by, create_time, update_by, update_time, remark
|
||||
from ruoyi.pill_factory
|
||||
</sql>
|
||||
|
||||
<select id="selectPillFactoryList" parameterType="PillFactory" resultMap="PillFactoryResult">
|
||||
<select id="selectPillFactoryList" parameterType="com.ruoyi.pill.domain.PillFactory" resultMap="PillFactoryResult">
|
||||
<include refid="selectPillFactoryVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="factoryName != null and factoryName != ''"> and factory_name like concat('%', #{factoryName}, '%')</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
<if test="contact != null and contact != ''"> and contact = #{contact}</if>
|
||||
@ -34,14 +35,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectPillFactoryByFactoryId" parameterType="Long" resultMap="PillFactoryResult">
|
||||
<include refid="selectPillFactoryVo"/>
|
||||
where factory_id = #{factoryId}
|
||||
</select>
|
||||
|
||||
<insert id="insertPillFactory" parameterType="PillFactory" useGeneratedKeys="true" keyProperty="factoryId">
|
||||
insert into pill_factory
|
||||
|
||||
<insert id="insertPillFactory" parameterType="com.ruoyi.pill.domain.PillFactory" useGeneratedKeys="true" keyProperty="factoryId">
|
||||
insert into ruoyi.pill_factory
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="factoryName != null and factoryName != ''">factory_name,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
@ -70,8 +71,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePillFactory" parameterType="PillFactory">
|
||||
update pill_factory
|
||||
<update id="updatePillFactory" parameterType="com.ruoyi.pill.domain.PillFactory">
|
||||
update ruoyi.pill_factory
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="factoryName != null and factoryName != ''">factory_name = #{factoryName},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
@ -89,13 +90,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
|
||||
<delete id="deletePillFactoryByFactoryId" parameterType="Long">
|
||||
delete from pill_factory where factory_id = #{factoryId}
|
||||
delete from ruoyi.pill_factory where factory_id = #{factoryId}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePillFactoryByFactoryIds" parameterType="String">
|
||||
delete from pill_factory where factory_id in
|
||||
delete from ruoyi.pill_factory where factory_id in
|
||||
<foreach item="factoryId" collection="array" open="(" separator="," close=")">
|
||||
#{factoryId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user