|
...
|
...
|
@@ -20,16 +20,16 @@ |
|
|
|
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="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)
|
|
...
|
...
|
@@ -55,4 +55,32 @@ |
|
|
|
<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>
|
|
|
|
<select id="selectList" 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, c.product_type_id as product_type_id,c.product_type_name as product_type,a.order_date,a.design_role,a.designer,a.dispatch_date,
|
|
|
|
a.delivery_date,a.quantity,a.total_working_hours,if(b.dispatched_working_hours != 0,b.dispatched_working_hours,0) dispatched_working_hours,a.STATUS,a.finish_date,a.assign_design_status,
|
|
|
|
a.dispatch_status,a.product_design_status,a.verify_status,a.verify_result,a.delivery_date1,a.pics,a.files,a.pics2
|
|
|
|
FROM
|
|
|
|
tbl_order_form a
|
|
|
|
LEFT JOIN ( SELECT order_number, sum( work_hours ) dispatched_working_hours FROM tbl_production_gongxu GROUP BY order_number ) b ON a.order_id = b.order_number
|
|
|
|
left join tbl_product_type c on a.product_type = c.product_type_id
|
|
|
|
where 1=1
|
|
|
|
<if test="qc.designer!=null and qc.designer !=''">
|
|
|
|
and a.designer like concat('%',#{qc.designer},'%')
|
|
|
|
</if>
|
|
|
|
<if test="qc.orderCompany!=null and qc.orderCompany !=''">
|
|
|
|
and a.order_company like concat('%',#{qc.orderCompany},'%')
|
|
|
|
</if>
|
|
|
|
<if test="qc.workOrder!=null and qc.workOrder !=''">
|
|
|
|
and a.work_order like concat('%',#{qc.workOrder},'%')
|
|
|
|
</if>
|
|
|
|
<if test="qc.workOrder!=null and qc.workOrder !=''">
|
|
|
|
and a.work_order like concat('%', #{biddingShenqForm.workOrder}, '%')
|
|
|
|
</if>
|
|
|
|
<if test="qc.productType!=null and qc.productType !=''">
|
|
|
|
and c.product_type_id like concat('%', #{qc.productType}, '%')
|
|
|
|
</if>
|
|
|
|
order by a.create_time desc
|
|
|
|
</select>
|
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|