| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 | 
							- <?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.supervision.medicalhealth.mapper.BdglConsumePutoutMapper">
 
-     <resultMap type="BdglConsumePutout" id="BdglConsumePutoutResult">
 
-         <result property="id"    column="id"    />
 
-         <result property="durgArchivesId"    column="durg_archives_id"    />
 
-         <result property="putOut"    column="put_out"    />
 
-         <result property="place"    column="place"    />
 
-         <result property="purpose"    column="purpose"    />
 
-         <result property="remarks"    column="remarks"    />
 
-         <result property="putTime"    column="put_time"    />
 
-         <result property="receiveId"    column="receive_id"    />
 
-         <result property="adminId"    column="admin_id"    />
 
-         <result property="createTime"    column="create_time"    />
 
-         <result property="updateTime"    column="update_time"    />
 
-         <result property="durgBrand"    column="durg_brand"    />
 
-         <result property="manufacturer"    column="manufacturer"    />
 
-         <result property="specifications"    column="specifications"    />
 
-         <result property="productIntroduction"    column="product_introduction"    />
 
-         <result property="number"    column="number"    />
 
-         <result property="storeHouse"    column="store_house"    />
 
-         <result property="unitId"    column="unit_id"    />
 
-         <result property="unitId1"    column="unit_id1"    />
 
-         <result property="unitName1"    column="unit_name1"    />
 
-         <result property="unitName"    column="unit_name"    />
 
-         <result property="peopleNamee"    column="people_namee"    />
 
-         <result property="durgName"    column="durg_name"    />
 
-         <result property="userName"    column="user_name"    />
 
-     </resultMap>
 
-     <sql id="selectBdglConsumePutoutVo">
 
-         select id, durg_archives_id, put_out, place, purpose, remarks, put_time, receive_id, admin_id, create_time, update_time, durg_brand, manufacturer, specifications, product_introduction, number, store_house, unit_id, unit_id1, unit_name1, unit_name, people_namee, durg_name, user_name from bdgl_consume_putout
 
-     </sql>
 
-     <select id="selectBdglConsumePutoutList" parameterType="BdglConsumePutout" resultMap="BdglConsumePutoutResult">
 
-         <include refid="selectBdglConsumePutoutVo"/>
 
-         <where>
 
-             <if test="durgArchivesId != null "> and durg_archives_id = #{durgArchivesId}</if>
 
-             <if test="putOut != null "> and put_out = #{putOut}</if>
 
-             <if test="place != null  and place != ''"> and place = #{place}</if>
 
-             <if test="purpose != null  and purpose != ''"> and purpose = #{purpose}</if>
 
-             <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
 
-             <if test="putTime != null "> and put_time = #{putTime}</if>
 
-             <if test="receiveId != null "> and receive_id = #{receiveId}</if>
 
-             <if test="adminId != null "> and admin_id = #{adminId}</if>
 
-             <if test="durgBrand != null  and durgBrand != ''"> and durg_brand = #{durgBrand}</if>
 
-             <if test="manufacturer != null  and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
 
-             <if test="specifications != null  and specifications != ''"> and specifications = #{specifications}</if>
 
-             <if test="productIntroduction != null  and productIntroduction != ''"> and product_introduction = #{productIntroduction}</if>
 
-             <if test="number != null  and number != ''"> and number = #{number}</if>
 
-             <if test="storeHouse != null "> and store_house = #{storeHouse}</if>
 
-             <if test="unitId != null "> and unit_id = #{unitId}</if>
 
-             <if test="unitId1 != null "> and unit_id1 = #{unitId1}</if>
 
-             <if test="unitName1 != null  and unitName1 != ''"> and unit_name1 = #{unitName1}</if>
 
-             <if test="unitName != null  and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
 
-             <if test="peopleNamee != null  and peopleNamee != ''"> and people_namee = #{peopleNamee}</if>
 
-             <if test="durgName != null  and durgName != ''"> and durg_name like concat('%', #{durgName}, '%')</if>
 
-             <if test="userName != null  and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
 
-         </where>
 
-     </select>
 
-     <select id="selectBdglConsumePutoutById" parameterType="Long" resultMap="BdglConsumePutoutResult">
 
-         <include refid="selectBdglConsumePutoutVo"/>
 
-         where id = #{id}
 
-     </select>
 
-     <insert id="insertBdglConsumePutout" parameterType="BdglConsumePutout" useGeneratedKeys="true" keyProperty="id">
 
-         insert into bdgl_consume_putout
 
-         <trim prefix="(" suffix=")" suffixOverrides=",">
 
-             <if test="durgArchivesId != null">durg_archives_id,</if>
 
-             <if test="putOut != null">put_out,</if>
 
-             <if test="place != null">place,</if>
 
-             <if test="purpose != null">purpose,</if>
 
-             <if test="remarks != null">remarks,</if>
 
-             <if test="putTime != null">put_time,</if>
 
-             <if test="receiveId != null">receive_id,</if>
 
-             <if test="adminId != null">admin_id,</if>
 
-             <if test="createTime != null">create_time,</if>
 
-             <if test="updateTime != null">update_time,</if>
 
-             <if test="durgBrand != null">durg_brand,</if>
 
-             <if test="manufacturer != null">manufacturer,</if>
 
-             <if test="specifications != null">specifications,</if>
 
-             <if test="productIntroduction != null">product_introduction,</if>
 
-             <if test="number != null">number,</if>
 
-             <if test="storeHouse != null">store_house,</if>
 
-             <if test="unitId != null">unit_id,</if>
 
-             <if test="unitId1 != null">unit_id1,</if>
 
-             <if test="unitName1 != null">unit_name1,</if>
 
-             <if test="unitName != null">unit_name,</if>
 
-             <if test="peopleNamee != null">people_namee,</if>
 
-             <if test="durgName != null">durg_name,</if>
 
-             <if test="userName != null">user_name,</if>
 
-         </trim>
 
-         <trim prefix="values (" suffix=")" suffixOverrides=",">
 
-             <if test="durgArchivesId != null">#{durgArchivesId},</if>
 
-             <if test="putOut != null">#{putOut},</if>
 
-             <if test="place != null">#{place},</if>
 
-             <if test="purpose != null">#{purpose},</if>
 
-             <if test="remarks != null">#{remarks},</if>
 
-             <if test="putTime != null">#{putTime},</if>
 
-             <if test="receiveId != null">#{receiveId},</if>
 
-             <if test="adminId != null">#{adminId},</if>
 
-             <if test="createTime != null">#{createTime},</if>
 
-             <if test="updateTime != null">#{updateTime},</if>
 
-             <if test="durgBrand != null">#{durgBrand},</if>
 
-             <if test="manufacturer != null">#{manufacturer},</if>
 
-             <if test="specifications != null">#{specifications},</if>
 
-             <if test="productIntroduction != null">#{productIntroduction},</if>
 
-             <if test="number != null">#{number},</if>
 
-             <if test="storeHouse != null">#{storeHouse},</if>
 
-             <if test="unitId != null">#{unitId},</if>
 
-             <if test="unitId1 != null">#{unitId1},</if>
 
-             <if test="unitName1 != null">#{unitName1},</if>
 
-             <if test="unitName != null">#{unitName},</if>
 
-             <if test="peopleNamee != null">#{peopleNamee},</if>
 
-             <if test="durgName != null">#{durgName},</if>
 
-             <if test="userName != null">#{userName},</if>
 
-         </trim>
 
-     </insert>
 
-     <update id="updateBdglConsumePutout" parameterType="BdglConsumePutout">
 
-         update bdgl_consume_putout
 
-         <trim prefix="SET" suffixOverrides=",">
 
-             <if test="durgArchivesId != null">durg_archives_id = #{durgArchivesId},</if>
 
-             <if test="putOut != null">put_out = #{putOut},</if>
 
-             <if test="place != null">place = #{place},</if>
 
-             <if test="purpose != null">purpose = #{purpose},</if>
 
-             <if test="remarks != null">remarks = #{remarks},</if>
 
-             <if test="putTime != null">put_time = #{putTime},</if>
 
-             <if test="receiveId != null">receive_id = #{receiveId},</if>
 
-             <if test="adminId != null">admin_id = #{adminId},</if>
 
-             <if test="createTime != null">create_time = #{createTime},</if>
 
-             <if test="updateTime != null">update_time = #{updateTime},</if>
 
-             <if test="durgBrand != null">durg_brand = #{durgBrand},</if>
 
-             <if test="manufacturer != null">manufacturer = #{manufacturer},</if>
 
-             <if test="specifications != null">specifications = #{specifications},</if>
 
-             <if test="productIntroduction != null">product_introduction = #{productIntroduction},</if>
 
-             <if test="number != null">number = #{number},</if>
 
-             <if test="storeHouse != null">store_house = #{storeHouse},</if>
 
-             <if test="unitId != null">unit_id = #{unitId},</if>
 
-             <if test="unitId1 != null">unit_id1 = #{unitId1},</if>
 
-             <if test="unitName1 != null">unit_name1 = #{unitName1},</if>
 
-             <if test="unitName != null">unit_name = #{unitName},</if>
 
-             <if test="peopleNamee != null">people_namee = #{peopleNamee},</if>
 
-             <if test="durgName != null">durg_name = #{durgName},</if>
 
-             <if test="userName != null">user_name = #{userName},</if>
 
-         </trim>
 
-         where id = #{id}
 
-     </update>
 
-     <delete id="deleteBdglConsumePutoutById" parameterType="Long">
 
-         delete from bdgl_consume_putout where id = #{id}
 
-     </delete>
 
-     <delete id="deleteBdglConsumePutoutByIds" parameterType="String">
 
-         delete from bdgl_consume_putout where id in
 
-         <foreach item="id" collection="array" open="(" separator="," close=")">
 
-             #{id}
 
-         </foreach>
 
-     </delete>
 
- </mapper>
 
 
  |