提交 8ffabf74 authored 作者: 000516's avatar 000516

axmr005添加资料录入日期 起运日期 运输方式说明 批号 增加重客

...@@ -39,7 +39,7 @@ public class ErpAxmr005ServiceImpl implements ErpAxmr005Service { ...@@ -39,7 +39,7 @@ public class ErpAxmr005ServiceImpl implements ErpAxmr005Service {
/** /**
* 将结果推送到飞书表格,每次推100条 * 将结果推送到飞书表格,每次推100条
*/ */
String range = recordDto.getSheetId() + "!A:H"; String range = recordDto.getSheetId() + "!A:L";
String tenantAccessToken = feiShuUtil.getBotToken1(); String tenantAccessToken = feiShuUtil.getBotToken1();
int batchSize = 100; int batchSize = 100;
for (int i = 0; i < zhanquDataset.size(); i+=batchSize) { for (int i = 0; i < zhanquDataset.size(); i+=batchSize) {
......
...@@ -114,44 +114,12 @@ ...@@ -114,44 +114,12 @@
<result property="quantity" column="quantity" jdbcType="INTEGER"/> <result property="quantity" column="quantity" jdbcType="INTEGER"/>
<result property="shippingUnit" column="shipping_unit" jdbcType="VARCHAR"/> <result property="shippingUnit" column="shipping_unit" jdbcType="VARCHAR"/>
<result property="thirdPartySystemCode" column="third_party_system_code" jdbcType="VARCHAR"/> <result property="thirdPartySystemCode" column="third_party_system_code" jdbcType="VARCHAR"/>
<result property="dataEntryDate" column="data_entry_date" jdbcType="DATE"/>
<result property="shippingDate" column="shipping_date" jdbcType="DATE"/>
<result property="transportationMethodDescription" column="transportation_method_description" jdbcType="VARCHAR"/>
<result property="batchNumber" column="batch_number" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List">
shipping_order_number,item_sequence,operating_site,
document_date,debit_date,shipping_date,
shipping_nature,status,sales_return_method,
sales_staff,sales_staff_name,sales_department,
sales_department_abbr,order_customer,customer_abbr,
receiving_customer,receiving_customer_abbr,payment_customer,
payment_customer_abbr,country,country_description,
province,province_description,county_city,
county_city_description,administrative_region,administrative_region_description,
delivery_address,address,transportation_method,
transportation_method_description,express_number,order_number,
item_sequence_again,order_status,item_order,
batch_sequence,customer_order_number,customer_material_number,
customer_material_name,customer_material_specification,sub_part_feature,
product_category,product_category_description,sales_group,
sales_group_description,material_number,product_name,
product_specification,brand,weight_gram,
taste_description,weight_gram_again,weight_gram_description,
product_feature,product_feature_description,quantity,
shipping_unit,accepted_quantity,signed_back_quantity,
unsigned_quantity,storage_location,storage_location_name,
storage_position,storage_position_name,batch_number,
inventory_management_feature,remarks,unit_price,
amount_with_tax,tax_amount,currency,
exchange_rate,local_pre_tax_amount,local_amount_with_tax,
local_tax_amount,discount_amount,discount_amount_invoice,
multi_angle_sequence_number,customer_category,customer_category_description,
sales_channel,sales_channel_description,order_type,
type_description,remarks_again,logistics_remarks,
third_party_system_code,data_entry_date,payment_type_description,
order_split_status,base_unit,order_base_unit_quantity,
standard_cost,actual_cost,collection_batch,
collection_time
</sql>
<select id="getZhanquDataset" resultMap="ZhanquMap"> <select id="getZhanquDataset" resultMap="ZhanquMap">
select (@row_number := @row_number + 1) as id, select (@row_number := @row_number + 1) as id,
shipping_order_number, shipping_order_number,
...@@ -161,12 +129,16 @@ ...@@ -161,12 +129,16 @@
product_name, product_name,
quantity, quantity,
third_party_system_code third_party_system_code
,data_entry_date
,shipping_date
,transportation_method_description
,batch_number
from erp_axmr005_shipping_details, from erp_axmr005_shipping_details,
(SELECT @row_number := 0) AS r (SELECT @row_number := 0) AS r
where operating_site = 'AHSD' where operating_site = 'AHSD'
and customer_category = 'A' and customer_category = 'A'
and debit_date = DATE(#{date}) and debit_date = DATE(#{date})
and shipping_unit = '箱' and shipping_unit = '箱'
and (sales_department_abbr like '%战区' or sales_department_abbr like '北京%') and (sales_department_abbr like '%战区' or sales_department_abbr like '北京%' or sales_department_abbr like '重客%')
</select> </select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论