|
@@ -17,10 +17,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="planStatus" column="plan_status" />
|
|
|
<result property="number" column="number" />
|
|
|
<result property="remark" column="remark" />
|
|
|
- <result property="createbyId" column="createby_id" />
|
|
|
- <result property="createbyName" column="createby_name" />
|
|
|
- <result property="updatebyId" column="updateby_id" />
|
|
|
- <result property="updatebyName" column="updateby_name" />
|
|
|
+ <result property="createbyId" column="create_by_id" />
|
|
|
+ <result property="createbyName" column="create_by" />
|
|
|
+ <result property="updatebyId" column="update_by_id" />
|
|
|
+ <result property="updatebyName" column="update_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="productId" column="product_id" />
|
|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDetailsOfTheRefuelingPlanSpinningVo">
|
|
|
- select id, timestamp_random_code, machine_id, production_digit, current_color_code, current_specification, current_lot_number, start_time, planned_end_time, plan_status, number, remark, createby_id, createby_name, updateby_id, updateby_name, create_time, update_time, product_id, salesman_id from {DBNAME}.details_of_the_refueling_plan_spinning
|
|
|
+ select id, timestamp_random_code, machine_id, production_digit, current_color_code, current_specification, current_lot_number, start_time, planned_end_time, plan_status, number, remark, create_by_id, create_by, update_by, update_by, create_time, update_time, product_id, salesman_id from {DBNAME}.details_of_the_refueling_plan_spinning
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDetailsOfTheRefuelingPlanSpinningList" parameterType="com.zkqy.business.domain.DetailsOfTheRefuelingPlanSpinning" resultMap="DetailsOfTheRefuelingPlanSpinningResult">
|
|
@@ -44,12 +44,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="plannedEndTime != null and plannedEndTime != ''"> and planned_end_time = #{plannedEndTime}</if>
|
|
|
<if test="planStatus != null and planStatus != ''"> and plan_status = #{planStatus}</if>
|
|
|
<if test="number != null and number != ''"> and number = #{number}</if>
|
|
|
- <if test="createbyId != null and createbyId != ''"> and createby_id = #{createbyId}</if>
|
|
|
- <if test="createbyName != null and createbyName != ''"> and createby_name like concat('%', #{createbyName}, '%')</if>
|
|
|
- <if test="updatebyId != null and updatebyId != ''"> and updateby_id = #{updatebyId}</if>
|
|
|
- <if test="updatebyName != null and updatebyName != ''"> and updateby_name like concat('%', #{updatebyName}, '%')</if>
|
|
|
+ <if test="createbyId != null and createbyId != ''"> and create_by_id = #{createbyId}</if>
|
|
|
+ <if test="createbyName != null and createbyName != ''"> and create_by like concat('%', #{createbyName}, '%')</if>
|
|
|
+ <if test="updatebyId != null and updatebyId != ''"> and update_by_id = #{updatebyId}</if>
|
|
|
+ <if test="updatebyName != null and updatebyName != ''"> and update_by like concat('%', #{updatebyName}, '%')</if>
|
|
|
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
|
|
|
<if test="salesmanId != null and salesmanId != ''"> and salesman_id = #{salesmanId}</if>
|
|
|
+ and plan_status != 3
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -73,12 +74,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="startTime != null">start_time,</if>
|
|
|
<if test="plannedEndTime != null">planned_end_time,</if>
|
|
|
<if test="planStatus != null">plan_status,</if>
|
|
|
- <if test="number != null">number,</if>
|
|
|
+ <if test="number != null">`number`,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
- <if test="createbyId != null">createby_id,</if>
|
|
|
- <if test="createbyName != null">createby_name,</if>
|
|
|
- <if test="updatebyId != null">updateby_id,</if>
|
|
|
- <if test="updatebyName != null">updateby_name,</if>
|
|
|
+ <if test="createbyId != null">create_by_id,</if>
|
|
|
+ <if test="createbyName != null">create_by,</if>
|
|
|
+ <if test="updatebyId != null">update_by_id,</if>
|
|
|
+ <if test="updatebyName != null">update_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="productId != null">product_id,</if>
|
|
@@ -119,9 +120,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
|
<if test="plannedEndTime != null">planned_end_time = #{plannedEndTime},</if>
|
|
|
<if test="planStatus != null">plan_status = #{planStatus},</if>
|
|
|
- <if test="number != null">number = #{number},</if>
|
|
|
+ <if test="number != null">`number` = #{number},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
- <if test="createbyId != null">createby_id = #{createbyId},</if>
|
|
|
+ <if test="createbyId != null">create_by_id = #{createbyId},</if>
|
|
|
<if test="createbyName != null">createby_name = #{createbyName},</if>
|
|
|
<if test="updatebyId != null">updateby_id = #{updatebyId},</if>
|
|
|
<if test="updatebyName != null">updateby_name = #{updatebyName},</if>
|