|
|
|
@ -35,14 +35,14 @@
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="prodType" column="prod_type" />
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
<result property="isEnd" column="is_end" />
|
|
|
|
|
<result property="endFlag" column="end_flag" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectProOrderWorkorderVo">
|
|
|
|
|
select workorder_id, workorder_code, workorder_name, order_id, order_code, product_id, product_code, product_name,
|
|
|
|
|
product_spc, unit, quantity_produced, quantity_split, route_code, prod_line_code, product_date,
|
|
|
|
|
shift_id, parent_order, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time,
|
|
|
|
|
update_by, update_time, prod_type, factory_code , is_end
|
|
|
|
|
update_by, update_time, prod_type, factory_code , end_flag
|
|
|
|
|
from pro_order_workorder
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
|
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
|
|
|
|
<if test="prodType != null and prodType != ''"> and prod_type = #{prodType}</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="isEnd != null and isEnd != ''"> and is_end = #{isEnd}</if>
|
|
|
|
|
<if test="endFlag != null and endFlag != ''"> and end_flag = #{endFlag}</if>
|
|
|
|
|
<if test="productDateStart != null "> and CONVERT(varchar(10),product_date, 120) >= '${productDateStart}'</if>
|
|
|
|
|
<if test="productDateEnd != null "> and '${productDateEnd}%' >= CONVERT(varchar(10),product_date, 120)</if>
|
|
|
|
|
</where>
|
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
|
select workorder_id, workorder_code, workorder_name, order_id, order_code, product_id, product_code, product_name,
|
|
|
|
|
product_spc, unit, quantity_produced, quantity_split, route_code, prod_line_code, product_date,
|
|
|
|
|
shift_id, parent_order, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time,
|
|
|
|
|
update_by, update_time, prod_type, factory_code , is_end
|
|
|
|
|
update_by, update_time, prod_type, factory_code , end_flag
|
|
|
|
|
from pro_order_workorder where workorder_id in
|
|
|
|
|
<foreach item="ids" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{ids}
|
|
|
|
@ -184,7 +184,7 @@
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="prodType != null">prod_type,</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
|
<if test="isEnd != null">is_end,</if>
|
|
|
|
|
<if test="endFlag != null">end_flag,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="workorderId != null">#{workorderId},</if>
|
|
|
|
@ -217,7 +217,7 @@
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="prodType != null">#{prodType},</if>
|
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
|
<if test="isEnd != null">#{isEnd},</if>
|
|
|
|
|
<if test="endFlag != null">#{endFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="createPrepare">
|
|
|
|
@ -363,7 +363,7 @@
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="prodType != null">prod_type = #{prodType},</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="isEnd != null">is_end = #{isEnd},</if>
|
|
|
|
|
<if test="endFlag != null">end_flag = #{endFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where workorder_id = #{workorderId}
|
|
|
|
|
</update>
|
|
|
|
|