新增销售出库单表
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c215761098
commit
ec364dc9bc
@ -0,0 +1,84 @@
|
|||||||
|
package com.ruoyi.quartz.task.CJT;
|
||||||
|
|
||||||
|
import com.ruoyi.common.enums.TableRelationTypeEnum;
|
||||||
|
import org.apache.commons.collections4.map.CaseInsensitiveMap;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 销售出库单
|
||||||
|
* @author yuxiangyong
|
||||||
|
* @create 2023-07-17 21:21
|
||||||
|
*/
|
||||||
|
@Component("SaleDispatchSyncJob")
|
||||||
|
public class SaleDispatchSyncJob extends SyncAccountsJobAbstract{
|
||||||
|
|
||||||
|
private static final String urlPath = "/tplus/api/v2/SaleDispatchOpenApi/FindVoucherList";
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected TableRelationTypeEnum syncLarkType() {
|
||||||
|
return TableRelationTypeEnum.SYNC_CJT_SALE_DISPATCH;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getRequestUrl() {
|
||||||
|
return REQUEST_ROOT_PATH + urlPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<String> getUniqueFields() {
|
||||||
|
return Arrays.asList(
|
||||||
|
"Code",
|
||||||
|
"ManufactureOrderDetails_Inventory_Code");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<String> getQueryFields() {
|
||||||
|
return Arrays.asList(
|
||||||
|
"",//todo yxy 来源单号
|
||||||
|
"RDRecord.VoucherDate",
|
||||||
|
"RDRecord.Code",
|
||||||
|
"RDRecord.Partner.Name",
|
||||||
|
"RDRecord.Partner.Code",
|
||||||
|
"RDRecord.RDRecordDetails.Inventory.Code",
|
||||||
|
"RDRecord.RDRecordDetails.Inventory.Name",
|
||||||
|
"RDRecord.RDRecordDetails.Inventory.Specification",
|
||||||
|
"RDRecord.RDRecordDetails.Unit.Name",
|
||||||
|
"RDRecord.RDRecordDetails.Quantity",
|
||||||
|
"RDRecord.DispatchAddress",
|
||||||
|
"RDRecord.createdtime",
|
||||||
|
"RDRecord.Memo",
|
||||||
|
"RDRecord.RDRecordDetails.OrigSalePrice",
|
||||||
|
"RDRecord.RDRecordDetails.OrigSaleAmount");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Map<String, String> getQueryFieldsMap() {
|
||||||
|
Map<String, String> map = new CaseInsensitiveMap<>();
|
||||||
|
map.put("","来源单号");
|
||||||
|
map.put("VoucherDate","单据日期");
|
||||||
|
map.put("Code","单据编号");
|
||||||
|
map.put("Partner_Name","客户");
|
||||||
|
map.put("Partner_Code","客户编码");
|
||||||
|
map.put("RDRecordDetails_Inventory_Code","存货编码");
|
||||||
|
map.put("RDRecordDetails_Inventory_Name","存货");
|
||||||
|
map.put("RDRecordDetails_Inventory_Specification","规格型号");
|
||||||
|
map.put("RDRecordDetails_Unit_Name","计量单位");
|
||||||
|
map.put("RDRecordDetails_Quantity","数量");
|
||||||
|
map.put("DispatchAddress","送货地址");
|
||||||
|
map.put("createdtime","创建时间");
|
||||||
|
map.put("Memo","备注");
|
||||||
|
map.put("RDRecordDetails_OrigSalePrice","售价");
|
||||||
|
map.put("RDRecordDetails_OrigSaleAmount","销售金额");
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getQueryKey() {
|
||||||
|
return "RDRecord";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue