|
|
@ -10,6 +10,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="outsourcePlanCode" column="outsource_plan_code" /> |
|
|
|
<result property="outsourceStaff" column="outsource_staff" /> |
|
|
|
<result property="supplierAmount" column="supplier_amount" /> |
|
|
|
<result property="supplierCode" column="supplier_code" /> |
|
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
|
<result property="materialAmount" column="material_amount" /> |
|
|
|
<result property="outsourceMaterialAmount" column="outsource_material_amount" /> |
|
|
|
<result property="outsourceProcessType" column="outsource_process_type" /> |
|
|
@ -90,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select outsource_order_id, outsource_order_no, outsource_plan_code, outsource_staff, supplier_amount, |
|
|
|
material_amount, outsource_material_amount, outsource_process_type, outsource_process_amount, outsource_total_price, |
|
|
|
outsource_no_price, create_by, create_time, update_by, update_time, use_status, receive_status, warehouse_status, closed_status, |
|
|
|
remit_status, audit_status, actual_material_amount, actual_process_amount, stock_no, stock_name, receive_person, receive_telephone, |
|
|
|
remit_status, audit_status, actual_material_amount, actual_process_amount, stock_no, stock_name, receive_person, receive_telephone,supplier_code, supplier_name, |
|
|
|
receive_address,instance_id, instance_type, submit_instance_id, apply_title, apply_time, apply_user, cancel_instance_id, restore_instance_id, cancel_remark |
|
|
|
from outsource_order |
|
|
|
</sql> |
|
|
@ -98,10 +100,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<select id="selectOutsourceOrderList" parameterType="OutsourceOrderVO" resultMap="OutsourceOrderResult"> |
|
|
|
<include refid="selectOutsourceOrderVo"/> |
|
|
|
<where> |
|
|
|
<if test="outsourceOrderNo != null and outsourceOrderNo != ''"> and outsource_order_no = #{outsourceOrderNo}</if> |
|
|
|
<if test="outsourceOrderNo != null and outsourceOrderNo != ''"> and outsource_order_no like concat('%', #{outsourceOrderNo}, '%')</if> |
|
|
|
<if test="outsourceStaff != null and outsourceStaff != ''"> and outsource_staff = #{outsourceStaff}</if> |
|
|
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> |
|
|
|
<if test="createTime != null "> and create_time = #{createTime}</if> |
|
|
|
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> |
|
|
|
and create_time between #{params.beginCreateTime} and #{params.endCreateTime} |
|
|
|
</if> |
|
|
|
<if test="supplierCode != null and supplierCode != ''"> |
|
|
|
and outsource_order_no in ( select outsource_order_no from outsource_order_detail where supplier_code = #{supplierCode}) |
|
|
|
</if> |
|
|
|
<if test="supplierName != null and supplierName != ''"> |
|
|
|
and outsource_order_no in ( select outsource_order_no from outsource_order_detail where supplier_name = #{supplierName}) |
|
|
|
</if> |
|
|
|
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if> |
|
|
|
<if test="receiveStatus != null and receiveStatus != ''"> and receive_status = #{receiveStatus}</if> |
|
|
|
<if test="warehouseStatus != null and warehouseStatus != ''"> and warehouse_status = #{warehouseStatus}</if> |
|
|
|