提交 eaff6a93 authored 作者: 李炎's avatar 李炎

修改bug

上级 e5fef840
...@@ -48,7 +48,7 @@ public class MaterialinventoryTimed implements Job { ...@@ -48,7 +48,7 @@ public class MaterialinventoryTimed implements Job {
/**设置定时器功能 /**设置定时器功能
* */ * */
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
iMaterialinventoryService.synchronization(null); iMaterialinventoryService.synchronization(null);
} }
......
...@@ -24,7 +24,7 @@ public class PhysicalIDTimed implements Job { ...@@ -24,7 +24,7 @@ public class PhysicalIDTimed implements Job {
/**测试定时*/ /**测试定时*/
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
physicalIDService.synchronization(null); physicalIDService.synchronization(null);
......
...@@ -28,7 +28,7 @@ public class ProductInventoryTimed implements Job { ...@@ -28,7 +28,7 @@ public class ProductInventoryTimed implements Job {
/**测试定时*/ /**测试定时*/
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
productInventoryService.synchronization(null); productInventoryService.synchronization(null);
......
...@@ -16,7 +16,7 @@ public class ProductionOrderTimed { ...@@ -16,7 +16,7 @@ public class ProductionOrderTimed {
@Autowired @Autowired
IProductionOrderService productionOrderService; IProductionOrderService productionOrderService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job() throws ParseException { public void job() throws ParseException {
productionOrderService.synchronization(null); productionOrderService.synchronization(null);
} }
......
...@@ -16,7 +16,7 @@ public class ProductionSchedulingTimed { ...@@ -16,7 +16,7 @@ public class ProductionSchedulingTimed {
@Autowired @Autowired
IProductionSchedulingService productionSchedulingService; IProductionSchedulingService productionSchedulingService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job() throws ParseException { public void job() throws ParseException {
productionSchedulingService.synchronization(null); productionSchedulingService.synchronization(null);
} }
......
...@@ -24,7 +24,7 @@ public class PurchaseorderTimed implements Job { ...@@ -24,7 +24,7 @@ public class PurchaseorderTimed implements Job {
/**测试定时*/ /**测试定时*/
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
JSONObject synchronization = iPurchaseorderService.synchronizationList(null); JSONObject synchronization = iPurchaseorderService.synchronizationList(null);
......
...@@ -30,7 +30,7 @@ public class ReserveStockTimed implements Job { ...@@ -30,7 +30,7 @@ public class ReserveStockTimed implements Job {
* 测试定时 * 测试定时
*/ */
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000 * 60) @Scheduled(fixedDelay = 1000 * 60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
reserveStockService.synchronization(null); reserveStockService.synchronization(null);
......
...@@ -24,7 +24,7 @@ public class SalesOrderTimed { ...@@ -24,7 +24,7 @@ public class SalesOrderTimed {
@Autowired @Autowired
ISalesOrderService salesOrderService; ISalesOrderService salesOrderService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void job() throws ParseException { public void job() throws ParseException {
salesOrderService.synchronization(null); salesOrderService.synchronization(null);
} }
......
...@@ -25,7 +25,7 @@ public class SupplylistTimed implements Job { ...@@ -25,7 +25,7 @@ public class SupplylistTimed implements Job {
@Autowired @Autowired
ISupplyListIService supplyListIService; ISupplyListIService supplyListIService;
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60) @Scheduled(fixedDelay = 1000*60)
public void Materialinventory() throws IOException, ParseException { public void Materialinventory() throws IOException, ParseException {
supplyListIService.synchronization(null); supplyListIService.synchronization(null);
......
...@@ -90,7 +90,7 @@ public class KingdeeJournalController { ...@@ -90,7 +90,7 @@ public class KingdeeJournalController {
Object filterString = null; Object filterString = null;
if (businessNo != null) { if (businessNo != null) {
if (businessNo!=1){ if (businessNo!=1){
...@@ -100,6 +100,9 @@ public class KingdeeJournalController { ...@@ -100,6 +100,9 @@ public class KingdeeJournalController {
case 1: case 1:
String synchronization1 = kingdeeJournalService.synchronizationAdd(businessNo, king); String synchronization1 = kingdeeJournalService.synchronizationAdd(businessNo, king);
jsonObject = JSONObject.fromObject(synchronization1); jsonObject = JSONObject.fromObject(synchronization1);
JSONObject result = JSONObject.fromObject(jsonObject.get("Result"));
Object o = JSONObject.fromObject(result.get("ResponseStatus")).get("IsSuccess");
success= (Boolean) o;
ok = Result.OK(jsonObject); ok = Result.OK(jsonObject);
break; break;
case 2: case 2:
......
...@@ -166,7 +166,7 @@ public class PurchaseorderServiceImpl extends ServiceImpl<PurchaseorderMapper, P ...@@ -166,7 +166,7 @@ public class PurchaseorderServiceImpl extends ServiceImpl<PurchaseorderMapper, P
map.get("amount") == null || Integer.parseInt(map.get("amount").toString()) <= 0) { map.get("amount") == null || Integer.parseInt(map.get("amount").toString()) <= 0) {
} else { } else {
JSONObject model = JSONObject.fromObject(map);//转换数据格式 JSONObject model = JSONObject.fromObject(map);//转换数据格式
Map<String, Object> SAL_SaleOrder = FieldConversion.nameAPI(model);//拼接需要的数据 Map<String, Object> SAL_SaleOrder = FieldConversion.nameAPI(model);//拼接需要的数据 字段转换
String rswebapi = salesOrderWebapi.add(SAL_SaleOrder);//同步到金蝶 String rswebapi = salesOrderWebapi.add(SAL_SaleOrder);//同步到金蝶
System.out.println(rswebapi); System.out.println(rswebapi);
JSONObject Result = JSONObject.fromObject(rswebapi);// JSONObject Result = JSONObject.fromObject(rswebapi);//
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论