Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -94,7 +94,7 @@ public class SpelUtil {
|
|||||||
try {
|
try {
|
||||||
Expression expression = SpelUtil.SPEL_PARSER.parseExpression(skip);
|
Expression expression = SpelUtil.SPEL_PARSER.parseExpression(skip);
|
||||||
String value = expression.getValue(context, String.class);
|
String value = expression.getValue(context, String.class);
|
||||||
if (field.contains("product_area")){
|
if (field.equals("product_area")){
|
||||||
String product_area = Product_Area_Mapping.get(value);
|
String product_area = Product_Area_Mapping.get(value);
|
||||||
if (StringUtils.isEmpty(product_area)){
|
if (StringUtils.isEmpty(product_area)){
|
||||||
throw new BadRequestException("当前业务数据product_area"+value+" 对应的车间数据");
|
throw new BadRequestException("当前业务数据product_area"+value+" 对应的车间数据");
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ public class SyncErpService {
|
|||||||
K3CloudApi cloudApi = new K3CloudApi(identifyInfo);
|
K3CloudApi cloudApi = new K3CloudApi(identifyInfo);
|
||||||
String today = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
String today = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
||||||
//String filterString = "FUseOrgId='750572'";
|
//String filterString = "FUseOrgId='750572'";
|
||||||
String filterString = "FBillNo ='JDSCLLSQ240200009'";
|
String filterString = "FBillNo ='JDSCLLSQ240300033'";
|
||||||
//String filterString = "FCreateDate >= '" + today + " 00:00:00' and FCreateDate <= '" + today + " 23:59:59'";
|
//String filterString = "FCreateDate >= '" + today + " 00:00:00' and FCreateDate <= '" + today + " 23:59:59'";
|
||||||
ErpQuery query = new ErpQuery();
|
ErpQuery query = new ErpQuery();
|
||||||
query.setFilterString(filterString);
|
query.setFilterString(filterString);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class SyncErpBillsScheduleService {
|
|||||||
MDC.put("requestIp", "127.0.0.1");
|
MDC.put("requestIp", "127.0.0.1");
|
||||||
MDC.put("requestTime", DateUtil.now());
|
MDC.put("requestTime", DateUtil.now());
|
||||||
LuceneAppender.traceIdTL.set(BaseCode.intToChars(IdUtil.getLongId()));
|
LuceneAppender.traceIdTL.set(BaseCode.intToChars(IdUtil.getLongId()));
|
||||||
List<SyncFormMapping> list = syncFormMappingServiceImpl.list(new LambdaQueryWrapper<SyncFormMapping>().in(SyncFormMapping::getForm_type, "ka7c19edf9d4b4b39b8cc4a06802163b0", "PRD_PPBOM", "PRD_MO", "PUR_ReceiveBill", "SAL_SaleOrder"));
|
List<SyncFormMapping> list = syncFormMappingServiceImpl.list(new LambdaQueryWrapper<SyncFormMapping>().in(SyncFormMapping::getForm_type, "PRD_PPBOM", "PRD_MO", "PUR_ReceiveBill"));
|
||||||
for (SyncFormMapping m : list) {
|
for (SyncFormMapping m : list) {
|
||||||
JSONArray mappingJson = m.getMapping_json();
|
JSONArray mappingJson = m.getMapping_json();
|
||||||
String mappingString = JSON.toJSONString(mappingJson);
|
String mappingString = JSON.toJSONString(mappingJson);
|
||||||
@@ -166,11 +166,11 @@ public class SyncErpBillsScheduleService {
|
|||||||
BeanUtils.copyProperties(erpSec, identifyInfo);
|
BeanUtils.copyProperties(erpSec, identifyInfo);
|
||||||
K3CloudApi cloudApi = new K3CloudApi(identifyInfo);
|
K3CloudApi cloudApi = new K3CloudApi(identifyInfo);
|
||||||
String today = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
String today = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
||||||
//String filterString = "FBillNo ='CGSL241101132'";
|
|
||||||
String BillOrg = BillOrg_Mapping.get(formType);
|
String BillOrg = BillOrg_Mapping.get(formType);
|
||||||
String filterString = BillOrg + "='750572' AND FDocumentStatus='C' AND FCreateDate >= '2024-12-02 00:00:00' and FCreateDate <= '2024-12-02 23:59:59'";
|
//String filterString = "FBillNo ='CGSL241101132'";
|
||||||
// String filterString = " FDocumentStatus='C' AND FCreateDate >= '2024-12-02 00:00:00' and FCreateDate <= '2024-12-02 23:59:59'";
|
//String filterString = BillOrg + "='750572' AND FDocumentStatus='C' AND FCreateDate >= '2024-12-04 00:00:00' and FCreateDate <= '2024-12-04 23:59:59'";
|
||||||
//String filterString = "FDocumentStatus='C' AND FCreateDate >= '" + today + " 00:00:00' and FCreateDate <= '" + today + " 23:59:59'";
|
//String filterString = " FDocumentStatus='C' AND FCreateDate >= '2024-12-02 00:00:00' and FCreateDate <= '2024-12-02 23:59:59'";
|
||||||
|
String filterString = BillOrg + "='750572' AND FDocumentStatus='C' AND FCreateDate >= '" + today + " 00:00:00' and FCreateDate <= '" + today + " 23:59:59'";
|
||||||
ErpQuery query = new ErpQuery();
|
ErpQuery query = new ErpQuery();
|
||||||
query.setFilterString(filterString);
|
query.setFilterString(filterString);
|
||||||
query.setFormId(formType);
|
query.setFormId(formType);
|
||||||
|
|||||||
Reference in New Issue
Block a user