You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
7.2 KiB
112 lines
7.2 KiB
2 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.ruoyi.deliveryProgress.mapper.DeliveryProgressInfoMapper">
|
||
|
|
||
|
<resultMap type="DeliveryProgressInfo" id="DeliveryProgressInfoResult">
|
||
|
<result property="deliveryProgressId" column="delivery_progress_id" />
|
||
|
<result property="deliveryProgressCode" column="delivery_progress_code" />
|
||
|
<result property="planDays" column="plan_days" />
|
||
|
<result property="produceDate" column="produce_date" />
|
||
|
<result property="enterpriseCode" column="enterprise_code" />
|
||
|
<result property="enterpriseName" column="enterprise_name" />
|
||
|
<result property="deliveryFactory" column="delivery_factory" />
|
||
|
<result property="beginningDate" column="beginning_date" />
|
||
|
<result property="endingDate" column="ending_date" />
|
||
|
<result property="deliveryAddress" column="delivery_address" />
|
||
|
<result property="deliveryProgressRemark" column="delivery_progress_remark" />
|
||
|
<result property="businessMembers" column="business_members" />
|
||
|
<result property="confirmOrNot" column="confirm_or_not" />
|
||
|
<result property="confirmPerson" column="confirm_person" />
|
||
|
<result property="confirmTime" column="confirm_time" />
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectDeliveryProgressInfoVo">
|
||
|
select delivery_progress_id, delivery_progress_code, plan_days, produce_date, enterprise_code, enterprise_name, delivery_factory, beginning_date, ending_date, delivery_address, delivery_progress_remark, business_members, confirm_or_not, confirm_person, confirm_time from delivery_progress_info
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectDeliveryProgressInfoList" parameterType="DeliveryProgressInfo" resultMap="DeliveryProgressInfoResult">
|
||
|
<include refid="selectDeliveryProgressInfoVo"/>
|
||
|
<where>
|
||
|
<if test="deliveryProgressCode != null and deliveryProgressCode != ''"> and delivery_progress_code like concat('%', #{deliveryProgressCode}, '%')</if>
|
||
|
<if test="enterpriseCode != null and enterpriseCode != ''"> and enterprise_code like concat('%', #{enterpriseCode}, '%')</if>
|
||
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
||
|
<if test="confirmOrNot != null and confirmOrNot != ''"> and confirm_or_not = #{confirmOrNot}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectDeliveryProgressInfoById" parameterType="Integer" resultMap="DeliveryProgressInfoResult">
|
||
|
<include refid="selectDeliveryProgressInfoVo"/>
|
||
|
where delivery_progress_id = #{deliveryProgressId}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertDeliveryProgressInfo" parameterType="DeliveryProgressInfo" useGeneratedKeys="true" keyProperty="deliveryProgressId">
|
||
|
insert into delivery_progress_info
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="deliveryProgressCode != null and deliveryProgressCode != ''">delivery_progress_code,</if>
|
||
|
<if test="planDays != null">plan_days,</if>
|
||
|
<if test="produceDate != null">produce_date,</if>
|
||
|
<if test="enterpriseCode != null and enterpriseCode != ''">enterprise_code,</if>
|
||
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if>
|
||
|
<if test="deliveryFactory != null">delivery_factory,</if>
|
||
|
<if test="beginningDate != null">beginning_date,</if>
|
||
|
<if test="endingDate != null">ending_date,</if>
|
||
|
<if test="deliveryAddress != null">delivery_address,</if>
|
||
|
<if test="deliveryProgressRemark != null">delivery_progress_remark,</if>
|
||
|
<if test="businessMembers != null">business_members,</if>
|
||
|
<if test="confirmOrNot != null">confirm_or_not,</if>
|
||
|
<if test="confirmPerson != null">confirm_person,</if>
|
||
|
<if test="confirmTime != null">confirm_time,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="deliveryProgressCode != null and deliveryProgressCode != ''">#{deliveryProgressCode},</if>
|
||
|
<if test="planDays != null">#{planDays},</if>
|
||
|
<if test="produceDate != null">#{produceDate},</if>
|
||
|
<if test="enterpriseCode != null and enterpriseCode != ''">#{enterpriseCode},</if>
|
||
|
<if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if>
|
||
|
<if test="deliveryFactory != null">#{deliveryFactory},</if>
|
||
|
<if test="beginningDate != null">#{beginningDate},</if>
|
||
|
<if test="endingDate != null">#{endingDate},</if>
|
||
|
<if test="deliveryAddress != null">#{deliveryAddress},</if>
|
||
|
<if test="deliveryProgressRemark != null">#{deliveryProgressRemark},</if>
|
||
|
<if test="businessMembers != null">#{businessMembers},</if>
|
||
|
<if test="confirmOrNot != null">#{confirmOrNot},</if>
|
||
|
<if test="confirmPerson != null">#{confirmPerson},</if>
|
||
|
<if test="confirmTime != null">#{confirmTime},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateDeliveryProgressInfo" parameterType="DeliveryProgressInfo">
|
||
|
update delivery_progress_info
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="deliveryProgressCode != null and deliveryProgressCode != ''">delivery_progress_code = #{deliveryProgressCode},</if>
|
||
|
<if test="planDays != null">plan_days = #{planDays},</if>
|
||
|
<if test="produceDate != null">produce_date = #{produceDate},</if>
|
||
|
<if test="enterpriseCode != null and enterpriseCode != ''">enterprise_code = #{enterpriseCode},</if>
|
||
|
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name = #{enterpriseName},</if>
|
||
|
<if test="deliveryFactory != null">delivery_factory = #{deliveryFactory},</if>
|
||
|
<if test="beginningDate != null">beginning_date = #{beginningDate},</if>
|
||
|
<if test="endingDate != null">ending_date = #{endingDate},</if>
|
||
|
<if test="deliveryAddress != null">delivery_address = #{deliveryAddress},</if>
|
||
|
<if test="deliveryProgressRemark != null">delivery_progress_remark = #{deliveryProgressRemark},</if>
|
||
|
<if test="businessMembers != null">business_members = #{businessMembers},</if>
|
||
|
<if test="confirmOrNot != null">confirm_or_not = #{confirmOrNot},</if>
|
||
|
<if test="confirmPerson != null">confirm_person = #{confirmPerson},</if>
|
||
|
<if test="confirmTime != null">confirm_time = #{confirmTime},</if>
|
||
|
</trim>
|
||
|
where delivery_progress_id = #{deliveryProgressId}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteDeliveryProgressInfoById" parameterType="Integer">
|
||
|
delete from delivery_progress_info where delivery_progress_id = #{deliveryProgressId}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteDeliveryProgressInfoByIds" parameterType="String">
|
||
|
delete from delivery_progress_info where delivery_progress_id in
|
||
|
<foreach item="deliveryProgressId" collection="array" open="(" separator="," close=")">
|
||
|
#{deliveryProgressId}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|