|
...
|
...
|
@@ -20,4 +20,39 @@ |
|
|
|
NOW())>= 0
|
|
|
|
AND STATUS = '生产中'
|
|
|
|
</select>
|
|
|
|
<select id="selectAll" resultType="org.jeecg.modules.erp.order_form.entity.TblOrderForm">
|
|
|
|
SELECT
|
|
|
|
a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.sys_org_code,a.order_id,a.order_company,
|
|
|
|
a.work_order,a.product_name,b.product_type_name as product_type,a.order_date,a.designer,
|
|
|
|
a.dispatch_date,a.delivery_date,a.quantity,a.total_working_hours,a.dispatched_working_hours,a.STATUS,
|
|
|
|
a.finish_date,a.dispatch_status,a.product_design_status,a.verify_status,a.verify_result,a.delivery_date1,a.pics,a.pics2
|
|
|
|
FROM
|
|
|
|
tbl_order_form a
|
|
|
|
LEFT JOIN tbl_product_type b on a.product_type = b.product_type_id
|
|
|
|
</select>
|
|
|
|
<select id="getCountByType" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
|
|
SELECT
|
|
|
|
count(product_type)
|
|
|
|
FROM
|
|
|
|
tbl_order_form
|
|
|
|
WHERE
|
|
|
|
order_id like CONCAT( #{productType}, '%')
|
|
|
|
</select>
|
|
|
|
<select id="selectOneById" resultType="org.jeecg.modules.erp.order_form.entity.TblOrderForm">
|
|
|
|
SELECT
|
|
|
|
a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.sys_org_code,a.order_id,a.order_company,
|
|
|
|
a.work_order,a.product_name,b.product_type_name as product_type,a.order_date,a.designer,
|
|
|
|
a.dispatch_date,a.delivery_date,a.quantity,a.total_working_hours,a.dispatched_working_hours,a.STATUS,
|
|
|
|
a.finish_date,a.dispatch_status,a.product_design_status,a.verify_status,a.verify_result,a.delivery_date1,a.pics,a.pics2
|
|
|
|
FROM
|
|
|
|
tbl_order_form a
|
|
|
|
LEFT JOIN tbl_product_type b on a.product_type = b.product_type_id where a.id =#{id}
|
|
|
|
</select>
|
|
|
|
<update id="updateDesignerByOrderId" parameterType="org.jeecg.modules.erp.order_form.entity.TblOrderForm">
|
|
|
|
update tbl_order_form set designer = #{designer},assign_design_status = #{assignDesignStatus},dispatch_date=#{dispatchDate} where order_id =#{orderId}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<update id="updateProductDesignStatusByOrderId" parameterType="org.jeecg.modules.erp.order_form.entity.TblOrderForm">
|
|
|
|
update tbl_order_form set product_design_status = #{productDesignStatus} where order_id =#{orderId}
|
|
|
|
</update>
|
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|