提交 9412a57d authored 作者: 李炎's avatar 李炎

1.9.0.1

上级 6d9e1e96
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3,8 +3,7 @@ package org.jeecg.modules.iost.API.Dao; ...@@ -3,8 +3,7 @@ package org.jeecg.modules.iost.API.Dao;
import kingdee.bos.webapi.client.K3CloudApiClient; import kingdee.bos.webapi.client.K3CloudApiClient;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.formula.functions.Today; import org.springframework.context.annotation.Scope;
import org.jeecg.modules.iost.API.webapi.Util.ConditionalSplicing;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -15,6 +14,7 @@ import java.util.*; ...@@ -15,6 +14,7 @@ import java.util.*;
*/ */
@Slf4j @Slf4j
@Component @Component
@Scope("prototype")
public class CategoryDao { public class CategoryDao {
static String K3CloudURL = "http://134.175.224.100/k3cloud/";//指定地址 static String K3CloudURL = "http://134.175.224.100/k3cloud/";//指定地址
static String dbId = "6131d9fcd30ee9"; static String dbId = "6131d9fcd30ee9";
......
...@@ -3,6 +3,7 @@ package org.jeecg.modules.iost.API.Dao; ...@@ -3,6 +3,7 @@ package org.jeecg.modules.iost.API.Dao;
import kingdee.bos.webapi.client.K3CloudApiClient; import kingdee.bos.webapi.client.K3CloudApiClient;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -13,6 +14,7 @@ import java.util.*; ...@@ -13,6 +14,7 @@ import java.util.*;
*/ */
@Slf4j @Slf4j
@Component @Component
@Scope("prototype")
public class CategoryExecuteDao { public class CategoryExecuteDao {
static String K3CloudURL = "http://134.175.224.100/k3cloud/";//指定地址 static String K3CloudURL = "http://134.175.224.100/k3cloud/";//指定地址
static String dbId = "6131d9fcd30ee9"; static String dbId = "6131d9fcd30ee9";
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -22,7 +23,7 @@ public class MaterialinventoryApi implements API { ...@@ -22,7 +23,7 @@ public class MaterialinventoryApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>();
Map<String,String> hreader = new HashMap<>(); Map<String,String> hreader = new HashMap<>();
public MaterialinventoryApi(){ public MaterialinventoryApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -24,14 +25,14 @@ public class PhysicalIDApi implements API { ...@@ -24,14 +25,14 @@ public class PhysicalIDApi implements API {
Map<String, String> hreader = new HashMap<>(); Map<String, String> hreader = new HashMap<>();
public PhysicalIDApi() { public PhysicalIDApi() {
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type", "application/json"); hreader.put("Content-Type", "application/json");
} }
@Override @Override
public String add(Map<String, String> map) { public String add(Map<String, String> map) {
hreader.put("operatetype", "add"); hreader.put("operatetype", "ADD");
String result = null; String result = null;
try { try {
result = HttpUtil.post(url + "add", JsonUtil.Mapjson(map), hreader); result = HttpUtil.post(url + "add", JsonUtil.Mapjson(map), hreader);
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -22,7 +23,7 @@ public class ProductInventoryApi implements API { ...@@ -22,7 +23,7 @@ public class ProductInventoryApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>();
Map<String,String> hreader = new HashMap<>(); Map<String,String> hreader = new HashMap<>();
public ProductInventoryApi(){ public ProductInventoryApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -22,7 +23,7 @@ public class ProductionOrderApi implements API { ...@@ -22,7 +23,7 @@ public class ProductionOrderApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>();
private Map<String, String> hreader = new HashMap<>(); private Map<String, String> hreader = new HashMap<>();
public ProductionOrderApi(){ public ProductionOrderApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -27,7 +28,7 @@ public class ProductionSchedulingApi implements API { ...@@ -27,7 +28,7 @@ public class ProductionSchedulingApi implements API {
public ProductionSchedulingApi() public ProductionSchedulingApi()
{ {
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
...@@ -2,6 +2,7 @@ package org.jeecg.modules.iost.API.ExternalInterface; ...@@ -2,6 +2,7 @@ package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.Util.JsonUtil; import org.jeecg.modules.iost.API.Util.JsonUtil;
...@@ -24,7 +25,7 @@ public class PurchaseorderApi implements API { ...@@ -24,7 +25,7 @@ public class PurchaseorderApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String, Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String, Object>>();
private Map<String, String> hreader = new HashMap<>(); private Map<String, String> hreader = new HashMap<>();
public PurchaseorderApi(){ public PurchaseorderApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("X-Access-Token", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjY0MDkyMDAsInVzZXJuYW1lIjoiYWRtaW4ifQ.bERvQx5MmxZdtwcM6NqI9yng95EPmhF9OgtUBBIyOqs"); hreader.put("X-Access-Token", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjY0MDkyMDAsInVzZXJuYW1lIjoiYWRtaW4ifQ.bERvQx5MmxZdtwcM6NqI9yng95EPmhF9OgtUBBIyOqs");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -22,7 +23,7 @@ public class ReserveStockApi implements API { ...@@ -22,7 +23,7 @@ public class ReserveStockApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>();
private Map<String, String> hreader = new HashMap<>(); private Map<String, String> hreader = new HashMap<>();
public ReserveStockApi(){ public ReserveStockApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -24,7 +25,7 @@ public class SalesOrderApi implements API { ...@@ -24,7 +25,7 @@ public class SalesOrderApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String, Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String, Object>>();
private Map<String, String> hreader = new HashMap<>(); private Map<String, String> hreader = new HashMap<>();
public SalesOrderApi(){ public SalesOrderApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface; package org.jeecg.modules.iost.API.ExternalInterface;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.Util.EipUtil;
import org.jeecg.modules.iost.API.Util.HttpUtil; import org.jeecg.modules.iost.API.Util.HttpUtil;
import org.jeecg.modules.iost.API.Util.HttpUtils; import org.jeecg.modules.iost.API.Util.HttpUtils;
import org.jeecg.modules.iost.API.ExternalInterface.Interface.API; import org.jeecg.modules.iost.API.ExternalInterface.Interface.API;
...@@ -22,7 +23,7 @@ public class SupplyListIApi implements API { ...@@ -22,7 +23,7 @@ public class SupplyListIApi implements API {
private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>(); private List<Map<String, Object>> lists = new ArrayList<Map<String,Object>>();
private Map<String, String> hreader = new HashMap<>(); private Map<String, String> hreader = new HashMap<>();
public SupplyListIApi(){ public SupplyListIApi(){
hreader.put("transno", "201910086843218<Az2eV3>"); hreader.put("transno", EipUtil.getTransno());
hreader.put("orisys", "0"); hreader.put("orisys", "0");
hreader.put("Content-Type","application/json"); hreader.put("Content-Type","application/json");
} }
......
package org.jeecg.modules.iost.API.ExternalInterface.Util;
import org.jeecg.modules.iost.API.service.PhysicalidService;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.PostConstruct;
public class ApiLog {
@Autowired
PhysicalidService Journal;
private static ApiLog uploadRooms;
@PostConstruct
public void init() {
uploadRooms = this;
uploadRooms.Journal = this.Journal;
}
public boolean setJournal() {
boolean ny = false;
return ny;
}
}
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.ExternalInterface.MaterialinventoryApi; import org.jeecg.modules.iost.API.ExternalInterface.MaterialinventoryApi;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror; import org.jeecg.modules.iost.API.service.pojo.IMaterialinventoryPojoService;
import org.jeecg.modules.iost.API.service.IMaterialinventoryService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -17,8 +13,6 @@ import org.springframework.stereotype.Component; ...@@ -17,8 +13,6 @@ import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.util.List;
import java.util.Map;
@Slf4j @Slf4j
@Component @Component
...@@ -28,26 +22,13 @@ import java.util.Map; ...@@ -28,26 +22,13 @@ import java.util.Map;
*/ */
public class MaterialinventoryTimed implements Job { public class MaterialinventoryTimed implements Job {
@Autowired @Autowired
IMaterialinventoryService iMaterialinventoryService; private IMaterialinventoryPojoService iMaterialinventoryService;
@Autowired
MaterialinventoryApi materialinventoryApi;
// /**测试定时*/
// // @Scheduled(fixedDelay = 5000)
// public void Materialinventory(){
// List<Materialinventoryerror> list = iMaterialinventoryService.list(new QueryWrapper<Materialinventoryerror>().eq("synchronization", "0"));
// for (int i=0;i<list.size();i++){
// String rs = materialinventoryApi.add((Map) JSON.parse(list.get(i).getJson()));
// JSONObject js = JSONObject.fromObject(rs);
// if( js.get("successful").toString() =="true"){
// iMaterialinventoryService.updateById(list.get(i));
// }
// }
// }
/**设置定时器功能 /**设置定时器功能
* */ * */
@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);
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import org.jeecg.modules.iost.API.service.pojo.IPhysicalidService;
import org.jeecg.modules.iost.API.service.IPhysicalIDerrorService;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -15,18 +13,23 @@ import org.springframework.stereotype.Component; ...@@ -15,18 +13,23 @@ import org.springframework.stereotype.Component;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
/**
* 实物id
*/
@Slf4j @Slf4j
@Component @Component
@EnableScheduling @EnableScheduling
public class PhysicalIDTimed implements Job { public class PhysicalIDTimed implements Job {
@Autowired @Autowired
IPhysicalIDerrorService physicalIDService; IPhysicalidService physicalidService;
/**测试定时*/ /**
@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);
// System.out.println("执行了"); // System.out.println("执行了");
} }
...@@ -34,7 +37,7 @@ public class PhysicalIDTimed implements Job { ...@@ -34,7 +37,7 @@ public class PhysicalIDTimed implements Job {
@Override @Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
try { try {
physicalIDService.synchronization(null); physicalidService.synchronization(null);
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import org.jeecg.modules.iost.API.service.pojo.IProductinventoryPojoService;
import org.jeecg.modules.iost.API.entity.Productinventoryerror;
import org.jeecg.modules.iost.API.service.IProductInventoryService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -21,13 +19,13 @@ import java.text.ParseException; ...@@ -21,13 +19,13 @@ import java.text.ParseException;
@Slf4j @Slf4j
@Component @Component
@EnableScheduling @EnableScheduling
public class ProductInventoryTimed implements Job { public class ProductInventoryTimed implements Job {
@Autowired @Autowired
IProductInventoryService productInventoryService; private IProductinventoryPojoService productInventoryService;
/**测试定时*/ /**测试定时*/
@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);
......
...@@ -2,7 +2,7 @@ package org.jeecg.modules.iost.API.TimedTask; ...@@ -2,7 +2,7 @@ package org.jeecg.modules.iost.API.TimedTask;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.iost.API.service.IProductionOrderService; import org.jeecg.modules.iost.API.service.pojo.IProductionOrderPojoService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -18,8 +18,8 @@ import java.text.ParseException; ...@@ -18,8 +18,8 @@ import java.text.ParseException;
@EnableScheduling @EnableScheduling
public class ProductionOrderTimed implements Job { public class ProductionOrderTimed implements Job {
@Autowired @Autowired
IProductionOrderService productionOrderService; private IProductionOrderPojoService productionOrderService;
@Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60*10) // @Scheduled(fixedDelay = 1000*60*10)
public void job() throws ParseException { public void job() throws ParseException {
productionOrderService.synchronization(null); productionOrderService.synchronization(null);
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.iost.API.service.IProductionOrderService; import org.jeecg.modules.iost.API.service.pojo.IProductionschedulingPojoService;
import org.jeecg.modules.iost.API.service.IProductionSchedulingService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -18,8 +18,9 @@ import java.text.ParseException; ...@@ -18,8 +18,9 @@ import java.text.ParseException;
@EnableScheduling @EnableScheduling
public class ProductionSchedulingTimed implements Job { public class ProductionSchedulingTimed implements Job {
@Autowired @Autowired
IProductionSchedulingService productionSchedulingService; private IProductionschedulingPojoService productionSchedulingService;
@Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60*10) // @Scheduled(fixedDelay = 1000*60*10)
public void job() throws ParseException { public void job() throws ParseException {
productionSchedulingService.synchronization(null); productionSchedulingService.synchronization(null);
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import org.jeecg.modules.iost.API.service.pojo.IPurchaseorderService;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -25,18 +23,19 @@ public class PurchaseorderTimed implements Job { ...@@ -25,18 +23,19 @@ public class PurchaseorderTimed implements Job {
/** /**
* 测试定时 * 测试定时
*/ */
@Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000 * 60 * 10) // @Scheduled(fixedDelay = 1000 * 60 * 10 * 3)
public void Materialinventory() throws IOException, ParseException { public void PurchaseorderTimed() throws IOException, ParseException {
iPurchaseorderService.synchronizationList(null);
// System.out.println("执行了"); iPurchaseorderService.synchronization(null);
System.out.println("执行了");
} }
@Override @Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
try { try {
iPurchaseorderService.synchronizationList(null); iPurchaseorderService.synchronization(null);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} catch (ParseException e) { } catch (ParseException e) {
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import org.jeecg.modules.iost.API.service.pojo.IReservestockPojoService;
import org.jeecg.modules.iost.API.entity.Reservestockerror;
import org.jeecg.modules.iost.API.service.IReserveStockService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -24,12 +22,12 @@ import java.text.ParseException; ...@@ -24,12 +22,12 @@ import java.text.ParseException;
public class ReserveStockTimed implements Job { public class ReserveStockTimed implements Job {
@Autowired @Autowired
IReserveStockService reserveStockService; private IReservestockPojoService reserveStockService;
/** /**
* 测试定时 * 测试定时
*/ */
@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);
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import com.google.api.client.util.Sleeper;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject; import org.jeecg.modules.iost.API.service.pojo.ISalesorderPojoService;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.jeecg.modules.iost.API.service.ISalesOrderService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
import org.springframework.aop.ThrowsAdvice;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.io.IOException;
@Slf4j @Slf4j
@Component @Component
@EnableScheduling @EnableScheduling
public class SalesOrderTimed implements Job { public class SalesOrderTimed implements Job {
@Autowired @Autowired
ISalesOrderService salesOrderService; ISalesorderPojoService salesOrderService;
@Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点 // @Scheduled(cron = "0 0 1 * * ?")//cron表达式每天凌晨一点
// @Scheduled(fixedDelay = 1000*60*10) // @Scheduled(fixedDelay = 1000*60*10)
public void job() throws ParseException { public void job() throws ParseException {
salesOrderService.synchronization(null); salesOrderService.synchronization(null);
......
package org.jeecg.modules.iost.API.TimedTask; package org.jeecg.modules.iost.API.TimedTask;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.iost.API.entity.Productinventoryerror; import org.jeecg.modules.iost.API.service.pojo.ISupplylistPojoService;
import org.jeecg.modules.iost.API.entity.Supplylisterror;
import org.jeecg.modules.iost.API.service.ISupplyListIService;
import org.quartz.Job; import org.quartz.Job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
...@@ -23,8 +21,9 @@ import java.text.ParseException; ...@@ -23,8 +21,9 @@ import java.text.ParseException;
@EnableScheduling @EnableScheduling
public class SupplylistTimed implements Job { public class SupplylistTimed implements Job {
@Autowired @Autowired
ISupplyListIService supplyListIService; ISupplylistPojoService 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);
......
...@@ -12,6 +12,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; ...@@ -12,6 +12,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.GridError; import org.jeecg.modules.iost.API.entity.GridError;
import org.jeecg.modules.iost.API.service.*; import org.jeecg.modules.iost.API.service.*;
import org.jeecg.modules.iost.API.service.pojo.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -27,23 +28,23 @@ import java.util.Map; ...@@ -27,23 +28,23 @@ import java.util.Map;
@Slf4j @Slf4j
public class GridErrorController { public class GridErrorController {
@Autowired @Autowired
GridErrorService gridErrorService; private IGridErrorService gridErrorService;
@Autowired @Autowired
private ISupplyListIService supplyListIService; private ISupplylistPojoService supplylistPojoService;
@Autowired @Autowired
private ISalesOrderService salesOrderService; private ISalesorderPojoService salesorderPojoService;
@Autowired @Autowired
private IProductionOrderService productionOrderService; private IProductionOrderPojoService productionOrderService;
@Autowired @Autowired
private IProductionSchedulingService productionSchedulingService; private IProductionschedulingPojoService productionSchedulingService;
@Autowired @Autowired
private IMaterialinventoryService iMaterialinventoryService; private IMaterialinventoryPojoService iMaterialinventoryService;
@Autowired @Autowired
private IPhysicalIDerrorService physicalIDerrorService; private IPhysicalidService physicalidService;
@Autowired @Autowired
private IProductInventoryService productInventoryService; private IReservestockPojoService reserveStockService;
@Autowired @Autowired
private IReserveStockService reserveStockService; private IProductinventoryPojoService productInventoryService;
/** /**
* 分页列表查询 * 分页列表查询
...@@ -70,18 +71,18 @@ public class GridErrorController { ...@@ -70,18 +71,18 @@ public class GridErrorController {
@PostMapping(value = "manual") @PostMapping(value = "manual")
public Result<?> synchronization(@RequestBody GridError data) throws ParseException { public Result<?> synchronization(@RequestBody GridError data) throws ParseException {
Boolean success = false; Boolean success = false;
String id=data.getId(); String id = data.getId();
Result ok = new Result(); Result ok = new Result();
JSONObject jsonObject = JSONObject.fromObject(data.getRequestjson()); JSONObject jsonObject = JSONObject.fromObject(data.getRequestjson());
Map map = com.alibaba.fastjson.JSONObject.parseObject(String.valueOf(jsonObject), Map.class); Map map = com.alibaba.fastjson.JSONObject.parseObject(String.valueOf(jsonObject), Map.class);
if (data.getBusinessNo() != null) { if (data.getBusinessNo() != null) {
switch (data.getBusinessNo()) { switch (data.getBusinessNo()) {
case 2: case 2:
success = supplyListIService.grid(map); success = supplylistPojoService.grid(map);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 3: case 3:
success = salesOrderService.grid(map); success = salesorderPojoService.grid(map);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 4: case 4:
...@@ -97,15 +98,15 @@ public class GridErrorController { ...@@ -97,15 +98,15 @@ public class GridErrorController {
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 7: case 7:
success = physicalIDerrorService.grid(map); success = physicalidService.grid(map);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 8: case 8:
success = productInventoryService.grid(map); success = reserveStockService.grid(map);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 9: case 9:
success = reserveStockService.grid(map); success = productInventoryService.grid(map);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
...@@ -115,7 +116,7 @@ public class GridErrorController { ...@@ -115,7 +116,7 @@ public class GridErrorController {
} }
editSuccess(success, id); editSuccess(success, id);
return ok; return ok;
} }
public Boolean editSuccess(Boolean success, String id) { public Boolean editSuccess(Boolean success, String id) {
boolean isSuccess = false; boolean isSuccess = false;
......
...@@ -11,11 +11,9 @@ import net.sf.json.JSONObject; ...@@ -11,11 +11,9 @@ import net.sf.json.JSONObject;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.GridError;
import org.jeecg.modules.iost.API.entity.GridErrorReturnProcess; import org.jeecg.modules.iost.API.entity.GridErrorReturnProcess;
import org.jeecg.modules.iost.API.service.GridErrorReturnProcessService; import org.jeecg.modules.iost.API.service.IGridErrorReturnProcessService;
import org.jeecg.modules.iost.API.service.GridErrorService; import org.jeecg.modules.iost.API.service.pojo.IPurchaseorderService;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -24,13 +22,13 @@ import java.io.IOException; ...@@ -24,13 +22,13 @@ import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.util.Map; import java.util.Map;
@Api(tags = "请求国网日志-正序") @Api(tags = "查询国网-日志")
@RestController @RestController
@RequestMapping("/API/gereturnprocess") @RequestMapping("/API/gereturnprocess")
@Slf4j @Slf4j
public class GridErrorReturnProcessController { public class GridErrorReturnProcessController {
@Autowired @Autowired
private GridErrorReturnProcessService gridErrorService; private IGridErrorReturnProcessService gridErrorService;
@Autowired @Autowired
private IPurchaseorderService purchaseorderService; private IPurchaseorderService purchaseorderService;
...@@ -42,8 +40,8 @@ public class GridErrorReturnProcessController { ...@@ -42,8 +40,8 @@ public class GridErrorReturnProcessController {
* @param req * @param req
* @return * @return
*/ */
@AutoLog(value = "国网日志接口-正序-分页列表查询") @AutoLog(value = "查询国网-日志-分页列表查询")
@ApiOperation(value = "国网日志接口-正序-分页列表查询", notes = "国网日志接口-正序-分页列表查询") @ApiOperation(value = "查询国网-日志-分页列表查询", notes = "查询国网-日志-分页列表查询")
@GetMapping(value = "list") @GetMapping(value = "list")
public Result<?> queryPageList(GridErrorReturnProcess gridError, public Result<?> queryPageList(GridErrorReturnProcess gridError,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
...@@ -66,10 +64,14 @@ public class GridErrorReturnProcessController { ...@@ -66,10 +64,14 @@ public class GridErrorReturnProcessController {
if (data.getBusinessNo() != null) { if (data.getBusinessNo() != null) {
switch (data.getBusinessNo()) { switch (data.getBusinessNo()) {
case 1: case 1:
success = purchaseorderService.synchronizationList(map); Map<String,String> synchronization = purchaseorderService.synchronization(map);
if (synchronization.containsKey("success")) {
if ("true".equals(synchronization.get("success"))) {
success=true;
}
}
ok = Result.OK(success); ok = Result.OK(success);
break; break;
} }
} }
......
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.pojo.Materialinventory;
import org.jeecg.modules.iost.API.service.IMaterialinventoryService;
import org.jeecg.modules.iost.API.webapi.MaterialinventoryWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网供应商重点原材料库存API")
@RestController
@RequestMapping("/API/eipmatinventory")
@Slf4j
public class MaterialinventoryController {
@Autowired
IMaterialinventoryService iMaterialinventoryService;
@Autowired
MaterialinventoryWebapi materialinventoryWebapi;
/**
* 分页列表查询
*
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-日志分页列表查询")
@ApiOperation(value = "国网供应商重点原材料库存API-日志分页列表查询", notes = "国网供应商重点原材料库存API-日志分页列表查询")
@GetMapping(value = "list")
public Result<?> queryPageList(Materialinventoryerror materialinventoryerror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Materialinventoryerror> queryWrapper = QueryGenerator.initQueryWrapper(materialinventoryerror, req.getParameterMap());
Page<Materialinventoryerror> page = new Page<Materialinventoryerror>(pageNo, pageSize);
IPage<Materialinventoryerror> pageList = iMaterialinventoryService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
*
*
* @param map
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-添加")
@ApiOperation(value="国网供应商重点原材料库存API-添加", notes="国网供应商重点原材料库存API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Map<String,String> map) {
return Result.OK();
}
/**
* 供应商重点原材料库存-查询
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(iMaterialinventoryService.select(map));
}
/**
* 供应商重点原材料库存web-查询
* @param map
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(@RequestBody Map<String,String> map){
List<Map<String, String>> list = materialinventoryWebapi.select(map,null);
return Result.OK(list);
}
@AutoLog(value = "国网供应商重点原材料库存API-同步")
@ApiOperation(value="国网供应商重点原材料库存API-同步", notes="国网供应商重点原材料库存API-同步")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
Boolean synchronization = iMaterialinventoryService.synchronization(null);
return Result.OK(synchronization);
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Physicalid;
import org.jeecg.modules.iost.API.entity.Physicaliderror;
import org.jeecg.modules.iost.API.service.IPhysicalIDerrorService;
import org.jeecg.modules.iost.API.webapi.PhysicalIDWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* 实物ID信息国网日志
*/
@Api(tags="实物ID信息国网日志")
@RestController
@RequestMapping("/API/physicaliderror-journal")
@Slf4j
public class PhysicalIDerrorController {
@Autowired
IPhysicalIDerrorService physicalIDService;
@Autowired
PhysicalIDWebapi physicalIDWebapi;
/**
* 分页列表查询
*
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "实物ID信息明细-分页列表查询")
@ApiOperation(value = "实物ID信息明细-分页列表查询", notes = "实物ID信息明细-分页列表查询")
@GetMapping(value = "list")
public Result<?> queryPageList(Physicaliderror physicaliderror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Physicaliderror> queryWrapper = QueryGenerator.initQueryWrapper(physicaliderror, req.getParameterMap());
Page<Physicaliderror> page = new Page<Physicaliderror>(pageNo, pageSize);
IPage<Physicaliderror> pageList = physicalIDService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 销售订单-查询
* @param
* @return
*/
@GetMapping(value = "/select")
public Result<?> select() throws ParseException {
return Result.OK(physicalIDService.selectInList(null));
}
/**
* 生产订单web-查询
* @param map
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(@RequestBody Map<String,String> map) throws ParseException {
List<Map<String, String>>list = physicalIDWebapi.select(map,null);
return Result.OK(list);
}
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
Boolean synchronization = physicalIDService.synchronization(null);
return Result.OK(synchronization);
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Productinventoryerror;
import org.jeecg.modules.iost.API.entity.pojo.Productinventory;
import org.jeecg.modules.iost.API.service.IProductInventoryService;
import org.jeecg.modules.iost.API.webapi.ProductInventoryWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* 产成品库存信息
*/
@Api(tags="产成品库存信息")
@RestController
@RequestMapping("/API/eip-prod-store")
@Slf4j
public class ProductInventoryController {
@Autowired
IProductInventoryService productInventoryService;
@Autowired
ProductInventoryWebapi productInventoryWebapi;
/**
* 分页列表查询
*
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网产成品库存信息API-日志分页列表查询")
@ApiOperation(value = "国网产成品库存信息API-日志分页列表查询", notes = "国网产成品库存信息API-日志分页列表查询")
@GetMapping(value = "list")
public Result<?> queryPageList(Productinventoryerror productinventoryerror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Productinventoryerror> queryWrapper = QueryGenerator.initQueryWrapper(productinventoryerror, req.getParameterMap());
Page<Productinventoryerror> page = new Page<Productinventoryerror>(pageNo, pageSize);
IPage<Productinventoryerror> pageList = productInventoryService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 产成品库存-查询
* @param map
* @return
*/
@AutoLog(value = "国网产成品库存信息API-查询所有库存信息")
@ApiOperation(value="国网产成品库存信息API-查询所有库存信息", notes="国网产成品库存信息API-查询所有库存信息")
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(productInventoryService.select(map));
}
/**
* 产成品库存-查询
* @param map
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(@RequestBody Map<String,String> map){
List<Map<String, String>>list = productInventoryWebapi.select(map,null);
return Result.OK(list);
}
/**
* 从金蝶云即时库存中同步今天的产成品
* @return
*/
@AutoLog(value = "国网产成品库存信息API-同步今天的产成品")
@ApiOperation(value="国网产成品库存信息API-同步今天的产成品", notes="国网产成品库存信息API-同步今天的产成品")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
Boolean synchronization = productInventoryService.synchronization(null);
return Result.OK(synchronization);
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Productionordererror;
import org.jeecg.modules.iost.API.service.IProductionOrderService;
import org.jeecg.modules.iost.API.webapi.PhysicalIDWebapi;
import org.jeecg.modules.iost.API.webapi.ProductionOrderWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="生产订单")
@RestController
@RequestMapping("/API/supplier-ipo")
@Slf4j
public class ProductionOrderController {
@Autowired
IProductionOrderService productionOrderService;
@Autowired
ProductionOrderWebapi productionOrderWebapi;
@AutoLog(value = "生产订单API-新增")
@ApiOperation(value="生产订单API-新增", notes="生产订单API-同步至国网")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Map<String,String> map){
JSONObject add = productionOrderService.add(map);
return Result.OK(add);
}
/* *//**
* 生产订单-查询
* @param
* @return
*//*
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(productionOrderService.select(map));
}*/
@AutoLog(value = "国网生产订单日志-生产订单接口-分页列表查询")
@ApiOperation(value = "国网生产订单日志-生产订单接口-分页列表查询", notes = "国网生产订单日志-生产订单接口-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(Productionordererror productionordererror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Productionordererror> queryWrapper = QueryGenerator.initQueryWrapper(productionordererror, req.getParameterMap());
Page<Productionordererror> page = new Page<Productionordererror>(pageNo, pageSize);
IPage<Productionordererror> pageList = productionOrderService.page(page, queryWrapper);
System.out.println(pageList);
return Result.OK(pageList);
}
/**
* 生产订单web-查询
* @param
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(){
List<Map<String, String>>list = productionOrderWebapi.select(null,null);
return Result.OK();
}
@AutoLog(value = "生产订单API-同步至国网")
@ApiOperation(value="生产订单API-同步至国网", notes="生产订单API-同步至国网")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
Boolean synchronization = productionOrderService.synchronization(null);
return Result.OK(synchronization);
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.ExternalInterface.PurchaseorderApi;
import org.jeecg.modules.iost.API.entity.Productionschedulingerror;
import org.jeecg.modules.iost.API.service.IProductionSchedulingService;
import org.jeecg.modules.iost.API.webapi.ProductionSchedulingWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Description: 排产计划
*/
@Api(tags="排产计划")
@RestController
@RequestMapping("/API/supplier-production-schedule")
@Slf4j
public class ProductionSchedulingController {
@Autowired
IProductionSchedulingService productionSchedulingService;
@Autowired
ProductionSchedulingWebapi productionSchedulingWebapi;
@Autowired
PurchaseorderApi purchaseorderApi;
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/** -
* 排产计划-查询webapi
* @param
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectweb(){
List<Map<String, String>> list = productionSchedulingWebapi.select(null, null);
return Result.OK(list);
}
@AutoLog(value = "排产计划API-同步至国网")
@ApiOperation(value="排产计划API-同步至国网", notes="排产计划API-同步至国网")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
Boolean synchronization = productionSchedulingService.synchronization(null);
return Result.OK(synchronization);
}
@AutoLog(value = "国网排产计划日志-排产计划接口-分页列表查询")
@ApiOperation(value = "国网排产计划日志-排产计划接口-分页列表查询", notes = "国网排产计划日志-排产计划接口-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(Productionschedulingerror productionordererror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Productionschedulingerror> queryWrapper = QueryGenerator.initQueryWrapper(productionordererror, req.getParameterMap());
Page<Productionschedulingerror> page = new Page<Productionschedulingerror>(pageNo, pageSize);
IPage<Productionschedulingerror> pageList = productionSchedulingService.page(page, queryWrapper);
System.out.println(pageList);
return Result.OK(pageList);
}
}
package org.jeecg.modules.iost.API.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.iost.API.service.IReportWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* @Description: 报工信息
*/
@Api(tags="报工信息")
@RestController
@RequestMapping("/API/supplier-process-work")
@Slf4j
public class ReportWorkController {
@Autowired
IReportWorkService reportWorkService;
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 销售订单-查询
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(reportWorkService.select(map));
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Reservestockerror;
import org.jeecg.modules.iost.API.entity.pojo.Reservestock;
import org.jeecg.modules.iost.API.service.IReserveStockService;
import org.jeecg.modules.iost.API.webapi.ReserveStockWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* @Description: 备品备件库存
*/
@Api(tags = "备品备件库存")
@RestController
@RequestMapping("/API/eip_spare_product")
@Slf4j
public class ReserveStockController {
@Autowired
IReserveStockService reserveStockService;
@Autowired
ReserveStockWebapi reserveStockWebapi;
/**
* 分页列表查询
*
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网产成品库存信息API-日志分页列表查询")
@ApiOperation(value = "国网产成品库存信息API-日志分页列表查询", notes = "国网产成品库存信息API-日志分页列表查询")
@GetMapping(value = "list")
public Result<?> queryPageList(Reservestockerror reservestockerror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Reservestockerror> queryWrapper = QueryGenerator.initQueryWrapper(reservestockerror, req.getParameterMap());
Page<Reservestockerror> page = new Page<Reservestockerror>(pageNo, pageSize);
IPage<Reservestockerror> pageList = reserveStockService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value = "国网产成品库存信息API-添加", notes = "国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 备品备件库存-查询
*
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String, String> map) {
return Result.OK(reserveStockService.select(map));
}
/**
* 备品备件库存web-查询
*
* @param map
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(@RequestBody Map<String, String> map) {
List<Map<String, String>> list = reserveStockWebapi.select(map, null);
return Result.OK(list);
}
/**
* 从金蝶生产入库单获取备品添加到国网
*
* @return
*/
@AutoLog(value = "国网备品库存信息API-同步")
@ApiOperation(value = "国网备品库存信息API-同步", notes = "国网备品库存信息API-同步")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
return Result.OK(reserveStockService.synchronization(null));
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.ExternalInterface.PurchaseorderApi;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.entity.Salesordererror;
import org.jeecg.modules.iost.API.service.ISalesOrderService;
import org.jeecg.modules.iost.API.webapi.SalesOrderWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Api(tags="销售订单")
@RestController
@RequestMapping("/API/supplier-so")
@Slf4j
public class SalesOrderController {
@Autowired
ISalesOrderService salesOrderService;
@Autowired
SalesOrderWebapi salesOrderWebapi;
@Autowired
PurchaseorderApi purchaseorderApi;
@AutoLog(value = "销售API-新增")
@ApiOperation(value="销售API-新增", notes="销售API-同步至国网")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Map<String,String> map){
System.out.println(map);
JSONObject add = salesOrderService.add(map);
return Result.OK(add);
}
/*销售订单-查询webapi*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectweb()
{
List<Map<String, String>> list = salesOrderWebapi.select(null, null);
return Result.OK(list);
}
@AutoLog(value = "销售API-同步至国网")
@ApiOperation(value="销售API-同步至国网", notes="销售API-同步至国网")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
salesOrderService.synchronization(null);
/*return Result.OK( salesOrderService.synchronization(null));*/
return Result.OK("同步成功");
}
@AutoLog(value = "国网销售订单日志-销售订单接口-分页列表查询")
@ApiOperation(value = "国网销售订单日志-销售订单接口-分页列表查询", notes = "国网销售订单日志-销售订单接口-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(Salesordererror productionordererror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Salesordererror> queryWrapper = QueryGenerator.initQueryWrapper(productionordererror, req.getParameterMap());
Page<Salesordererror> page = new Page<Salesordererror>(pageNo, pageSize);
IPage<Salesordererror> pageList = salesOrderService.page(page, queryWrapper);
System.out.println(pageList);
return Result.OK(pageList);
}
}
package org.jeecg.modules.iost.API.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Supplylisterror;
import org.jeecg.modules.iost.API.entity.pojo.Supplylist;
import org.jeecg.modules.iost.API.service.ISupplyListIService;
import org.jeecg.modules.iost.API.webapi.SupplyListWebapi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
* @Description: 供货单信息
*/
@Api(tags="供货单信息")
@RestController
@RequestMapping("/API/supply-add")
@Slf4j
public class SupplyListController {
@Autowired
ISupplyListIService supplyListIService;
@Autowired
SupplyListWebapi supplyListWebapi;
/**
* 分页列表查询
*
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网供货单信息API-日志分页列表查询")
@ApiOperation(value = "国网供货单信息API-日志分页列表查询", notes = "国网供货单信息API-日志分页列表查询")
@GetMapping(value = "list")
public Result<?> queryPageList(Supplylisterror supplylisterror,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<Supplylisterror> queryWrapper = QueryGenerator.initQueryWrapper(supplylisterror, req.getParameterMap());
Page<Supplylisterror> page = new Page<Supplylisterror>(pageNo, pageSize);
IPage<Supplylisterror> pageList = supplyListIService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 供货单-查询
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(supplyListIService.select(map));
}
/**
* 供货单web-查询
* @param map
* @return
*/
@GetMapping(value = "/selectwebapi")
public Result<?> selectwebapi(@RequestBody Map<String,String> map) throws ParseException {
List<Map<String, String>>list = supplyListWebapi.select(map,null);
return Result.OK(list);
}
/**
* 同步今天金蝶云新增的销售出货单到国网
* @return
*/
@AutoLog(value = "国网供货单信息API-同步")
@ApiOperation(value="国网供货单信息API-同步", notes="国网供货单信息API-同步")
@PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException {
return Result.OK(supplyListIService.synchronization(null));
}
}
package org.jeecg.modules.iost.API.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.iost.API.service.IWorkOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* @Description: 工单信息
*/
@Api(tags="工单信息")
@RestController
@RequestMapping("/API/Eipsupplier-wo")
@Slf4j
public class WorkOrderController {
@Autowired
IWorkOrderService workOrderService;
/**
* 添加
*
* @param object
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK("添加成功!");
}
/**
* 销售订单-查询
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(workOrderService.select(map));
}
}
...@@ -13,12 +13,14 @@ import org.jeecg.common.aspect.annotation.AutoLog; ...@@ -13,12 +13,14 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.kingdeejournal.KingdeeJournal; import org.jeecg.modules.iost.API.entity.kingdeejournal.KingdeeJournal;
import org.jeecg.modules.iost.API.service.*; import org.jeecg.modules.iost.API.service.*;
import org.jeecg.modules.iost.API.service.pojo.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.text.ParseException; import java.text.ParseException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
@Api(tags = "请求金蝶日志") @Api(tags = "请求金蝶日志")
@RestController @RestController
...@@ -27,23 +29,23 @@ import java.util.HashMap; ...@@ -27,23 +29,23 @@ import java.util.HashMap;
public class KingdeeJournalController { public class KingdeeJournalController {
@Autowired @Autowired
private KingdeeJournalService kingdeeJournalService; private IKingdeeJournalService kingdeeJournalService;
@Autowired @Autowired
private ISupplyListIService supplyListIService; private ISupplylistPojoService supplylistPojoService;
@Autowired @Autowired
private ISalesOrderService salesOrderService; private ISalesorderPojoService salesorderPojoService;
@Autowired @Autowired
private IProductionOrderService productionOrderService; private IProductionOrderPojoService productionOrderService;
@Autowired @Autowired
private IProductionSchedulingService productionSchedulingService; private IProductionschedulingPojoService productionSchedulingService;
@Autowired @Autowired
private IMaterialinventoryService iMaterialinventoryService; private IMaterialinventoryPojoService iMaterialinventoryService;
@Autowired @Autowired
private IPhysicalIDerrorService physicalIDerrorService; private IPhysicalidService physicalIDerrorService;
@Autowired @Autowired
private IReserveStockService reserveStockService; private IReservestockPojoService reserveStockService;
@Autowired @Autowired
private IProductInventoryService productInventoryService; private IProductinventoryPojoService productInventoryService;
/** /**
* 分页列表查询 * 分页列表查询
...@@ -71,42 +73,29 @@ public class KingdeeJournalController { ...@@ -71,42 +73,29 @@ public class KingdeeJournalController {
* *
*/ */
@PostMapping(value = "manual") @PostMapping(value = "manual")
public Result<?> synchronization(@RequestBody HashMap<String, String> data) throws ParseException { public Result<?> synchronization(@RequestBody Map<String, String> data) throws ParseException {
Boolean success = false; Boolean success = false;
Result ok = new Result(); Result ok = new Result();
JSONObject jsonObject = null;
String king;
String id = null; String id = null;
Integer businessNo = null; Integer businessNo = null;
String request = null; String request = null;
id = data.get("id"); id = data.get("id");
businessNo = Integer.parseInt(data.get("businessNo")); businessNo = Integer.parseInt(data.get("businessNo"));
request = data.get("request"); request = data.get("request");
king = request;
Object filterString = null; Object filterString = null;
if (businessNo != null) { if (businessNo != null) {
if (businessNo!=1){
filterString = JSONObject.fromObject(request).get("FilterString"); filterString = JSONObject.fromObject(request).get("FilterString");
}
switch (businessNo) { switch (businessNo) {
case 1:
String synchronization1 = kingdeeJournalService.synchronizationAdd(businessNo, king);
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);
break;
case 2: case 2:
success = supplyListIService.synchronization(filterString); success = supplylistPojoService.synchronization(filterString);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 3: case 3:
success = salesOrderService.synchronization(filterString); success = salesorderPojoService.synchronization(filterString);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 4: case 4:
...@@ -126,11 +115,11 @@ public class KingdeeJournalController { ...@@ -126,11 +115,11 @@ public class KingdeeJournalController {
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 8: case 8:
success = productInventoryService.synchronization(filterString); success = reserveStockService.synchronization(filterString);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
case 9: case 9:
success = reserveStockService.synchronization(filterString); success = productInventoryService.synchronization(filterString);
ok = Result.OK(success); ok = Result.OK(success);
break; break;
} }
......
...@@ -11,24 +11,22 @@ import org.jeecg.common.api.vo.Result; ...@@ -11,24 +11,22 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.kingdeejournal.KingdeeJournalReturnProcess; import org.jeecg.modules.iost.API.entity.kingdeejournal.KingdeeJournalReturnProcess;
import org.jeecg.modules.iost.API.entity.kingdeejournal.KingdeeJournalReturnProcess; import org.jeecg.modules.iost.API.service.pojo.IPurchaseorderService;
import org.jeecg.modules.iost.API.service.IPurchaseorderService; import org.jeecg.modules.iost.API.service.IKingdeeJournalReturnProcessService;
import org.jeecg.modules.iost.API.service.KingdeeJournalReturnProcessService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.text.ParseException; import java.text.ParseException;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
@Api(tags = "金蝶日志-正序 ") @Api(tags = "保存金蝶-日志")
@RestController @RestController
@RequestMapping("/API/kingdeejournalrp") @RequestMapping("/API/kingdeejournalrp")
@Slf4j @Slf4j
public class KingdeeJournalReturnProcessController { public class KingdeeJournalReturnProcessController {
@Autowired @Autowired
private KingdeeJournalReturnProcessService kingdeeJournalReturnProcessService; private IKingdeeJournalReturnProcessService kingdeeJournalReturnProcessService;
@Autowired @Autowired
private IPurchaseorderService purchaseorderService; private IPurchaseorderService purchaseorderService;
...@@ -40,8 +38,8 @@ public class KingdeeJournalReturnProcessController { ...@@ -40,8 +38,8 @@ public class KingdeeJournalReturnProcessController {
* @param req * @param req
* @return * @return
*/ */
@AutoLog(value = "金蝶日志-正序-分页列表查询") @AutoLog(value = "保存金蝶-日志-分页列表查询")
@ApiOperation(value = "金蝶日志-正序-分页列表查询", notes = "金蝶日志-正序-分页列表查询") @ApiOperation(value = "保存金蝶-日志-分页列表查询", notes = "保存金蝶-日志-分页列表查询")
@GetMapping(value = "list") @GetMapping(value = "list")
public Result<?> queryPageList(KingdeeJournalReturnProcess kingdeeJournal, public Result<?> queryPageList(KingdeeJournalReturnProcess kingdeeJournal,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
...@@ -69,7 +67,12 @@ public class KingdeeJournalReturnProcessController { ...@@ -69,7 +67,12 @@ public class KingdeeJournalReturnProcessController {
if (businessNo != null) { if (businessNo != null) {
switch (businessNo) { switch (businessNo) {
case 1: case 1:
success = purchaseorderService.manual(jsonObject1, ReturnProcessId); Map<String,String> manual = purchaseorderService.manual(jsonObject1, ReturnProcessId);
if (manual.containsKey("success")) {
if ("true".equals(manual.get("success"))) {
success=true;
}
}
ok = Result.OK(success); ok = Result.OK(success);
break; break;
......
...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result; ...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Materialinventory; import org.jeecg.modules.iost.API.entity.pojo.Materialinventory;
import org.jeecg.modules.iost.API.service.IMaterialinventoryService; import org.jeecg.modules.iost.API.service.pojo.IMaterialinventoryPojoService;
import org.jeecg.modules.iost.API.service.pojo.MaterialinventoryPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -24,9 +23,7 @@ import java.text.ParseException; ...@@ -24,9 +23,7 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class MaterialinventoryPojoController { public class MaterialinventoryPojoController {
@Autowired @Autowired
MaterialinventoryPojoService materialinventoryPojoService; private IMaterialinventoryPojoService iMaterialinventoryService;
@Autowired
IMaterialinventoryService iMaterialinventoryService;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -45,7 +42,7 @@ public class MaterialinventoryPojoController { ...@@ -45,7 +42,7 @@ public class MaterialinventoryPojoController {
QueryWrapper<Materialinventory> queryWrapper = QueryGenerator.initQueryWrapper(materialinventory, req.getParameterMap()); QueryWrapper<Materialinventory> queryWrapper = QueryGenerator.initQueryWrapper(materialinventory, req.getParameterMap());
Page<Materialinventory> page = new Page<Materialinventory>(pageNo, pageSize); Page<Materialinventory> page = new Page<Materialinventory>(pageNo, pageSize);
IPage<Materialinventory> pageList = materialinventoryPojoService.page(page, queryWrapper); IPage<Materialinventory> pageList = iMaterialinventoryService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
} }
@AutoLog(value = "国网供应商重点原材料库存API-同步") @AutoLog(value = "国网供应商重点原材料库存API-同步")
......
...@@ -6,15 +6,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -6,15 +6,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.Physicalid; import org.jeecg.modules.iost.API.entity.pojo.Physicalid;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.service.IPhysicalIDerrorService; import org.jeecg.modules.iost.API.service.pojo.IPhysicalidService;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.jeecg.modules.iost.API.service.PhysicalidService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -27,9 +24,7 @@ import java.text.ParseException; ...@@ -27,9 +24,7 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class PhysicalidController { public class PhysicalidController {
@Autowired @Autowired
PhysicalidService physicalidService; private IPhysicalidService physicalidService;
@Autowired
IPhysicalIDerrorService physicalIDService;
/** /**
* 分页列表查询 * 分页列表查询
...@@ -57,7 +52,7 @@ public class PhysicalidController { ...@@ -57,7 +52,7 @@ public class PhysicalidController {
@PostMapping(value = "/synchronization") @PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException { public Result<?> synchronization() throws ParseException {
Boolean synchronization = physicalIDService.synchronization(null); Boolean synchronization = physicalidService.synchronization(null);
return Result.OK(synchronization); return Result.OK(synchronization);
} }
} }
...@@ -9,10 +9,8 @@ import lombok.extern.slf4j.Slf4j; ...@@ -9,10 +9,8 @@ import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Materialinventory;
import org.jeecg.modules.iost.API.entity.pojo.Productinventory; import org.jeecg.modules.iost.API.entity.pojo.Productinventory;
import org.jeecg.modules.iost.API.service.IProductInventoryService; import org.jeecg.modules.iost.API.service.pojo.IProductinventoryPojoService;
import org.jeecg.modules.iost.API.service.pojo.ProductinventoryPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -26,9 +24,7 @@ import java.text.ParseException; ...@@ -26,9 +24,7 @@ import java.text.ParseException;
public class ProductInventoryPojoController { public class ProductInventoryPojoController {
@Autowired @Autowired
ProductinventoryPojoService productinventoryPojoService; private IProductinventoryPojoService productInventoryService;
@Autowired
IProductInventoryService productInventoryService;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -47,7 +43,7 @@ public class ProductInventoryPojoController { ...@@ -47,7 +43,7 @@ public class ProductInventoryPojoController {
QueryWrapper<Productinventory> queryWrapper = QueryGenerator.initQueryWrapper(productinventory, req.getParameterMap()); QueryWrapper<Productinventory> queryWrapper = QueryGenerator.initQueryWrapper(productinventory, req.getParameterMap());
Page<Productinventory> page = new Page<Productinventory>(pageNo, pageSize); Page<Productinventory> page = new Page<Productinventory>(pageNo, pageSize);
IPage<Productinventory> pageList = productinventoryPojoService.page(page, queryWrapper); IPage<Productinventory> pageList = productInventoryService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
} }
......
...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result; ...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.ProductionOrder; import org.jeecg.modules.iost.API.entity.pojo.ProductionOrder;
import org.jeecg.modules.iost.API.service.IProductionOrderService; import org.jeecg.modules.iost.API.service.pojo.IProductionOrderPojoService;
import org.jeecg.modules.iost.API.service.pojo.ProductionOrderPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -24,9 +23,8 @@ import java.text.ParseException; ...@@ -24,9 +23,8 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class ProductionOrderPojoController { public class ProductionOrderPojoController {
@Autowired @Autowired
ProductionOrderPojoService productionOrderPojoService; private IProductionOrderPojoService productionOrderPojoService;
@Autowired
IProductionOrderService productionOrderService;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -52,7 +50,7 @@ public class ProductionOrderPojoController { ...@@ -52,7 +50,7 @@ public class ProductionOrderPojoController {
@ApiOperation(value="生产订单API-同步至国网", notes="生产订单API-同步至国网") @ApiOperation(value="生产订单API-同步至国网", notes="生产订单API-同步至国网")
@PostMapping(value = "/synchronization") @PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException { public Result<?> synchronization() throws ParseException {
Boolean synchronization = productionOrderService.synchronization(null); Boolean synchronization = productionOrderPojoService.synchronization(null);
return Result.OK(synchronization); return Result.OK(synchronization);
} }
} }
...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result; ...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Productionscheduling; import org.jeecg.modules.iost.API.entity.pojo.Productionscheduling;
import org.jeecg.modules.iost.API.service.IProductionSchedulingService; import org.jeecg.modules.iost.API.service.pojo.IProductionschedulingPojoService;
import org.jeecg.modules.iost.API.service.pojo.ProductionschedulingPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -24,9 +23,8 @@ import java.text.ParseException; ...@@ -24,9 +23,8 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class ProductionSchedulingPojoController { public class ProductionSchedulingPojoController {
@Autowired @Autowired
ProductionschedulingPojoService productionschedulingPojoService; private IProductionschedulingPojoService productionSchedulingService;
@Autowired
IProductionSchedulingService productionSchedulingService;
@AutoLog(value = "排产计划明细信息接口-分页列表查询") @AutoLog(value = "排产计划明细信息接口-分页列表查询")
@ApiOperation(value = "排产计划明细信息接口-分页列表查询", notes = "排产计划明细信息接口-分页列表查询") @ApiOperation(value = "排产计划明细信息接口-分页列表查询", notes = "排产计划明细信息接口-分页列表查询")
@GetMapping(value = "list") @GetMapping(value = "list")
...@@ -37,7 +35,7 @@ public class ProductionSchedulingPojoController { ...@@ -37,7 +35,7 @@ public class ProductionSchedulingPojoController {
QueryWrapper<Productionscheduling> queryWrapper = QueryGenerator.initQueryWrapper(productinventory, req.getParameterMap()); QueryWrapper<Productionscheduling> queryWrapper = QueryGenerator.initQueryWrapper(productinventory, req.getParameterMap());
Page<Productionscheduling> page = new Page<Productionscheduling>(pageNo, pageSize); Page<Productionscheduling> page = new Page<Productionscheduling>(pageNo, pageSize);
IPage<Productionscheduling> pageList = productionschedulingPojoService.page(page, queryWrapper); IPage<Productionscheduling> pageList = productionSchedulingService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
} }
@AutoLog(value = "排产计划API-同步至国网") @AutoLog(value = "排产计划API-同步至国网")
......
...@@ -6,36 +6,27 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -6,36 +6,27 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSONObject;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.ExternalInterface.PurchaseorderApi; import org.jeecg.modules.iost.API.entity.pojo.Purchaseorder;
import org.jeecg.modules.iost.API.dto.PurchaseordeRequest; import org.jeecg.modules.iost.API.service.pojo.IPurchaseorderService;
import org.jeecg.modules.iost.API.dto.RequestAnalysis;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.service.IPurchaseorderService;
import org.jeecg.modules.iost.API.webapi.SalesOrderWebapi;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
@Api(tags="采购订单明细接口") @Api(tags = "采购订单明细接口")
@RestController @RestController
@RequestMapping("/API/supplier-send-purchaseorder") @RequestMapping("/API/supplier-send-purchaseorder")
@Slf4j @Slf4j
public class PurchaseorderController { public class PurchaseorderController {
@Autowired @Autowired
IPurchaseorderService iPurchaseorderService; IPurchaseorderService iPurchaseorderService;
@Autowired
SalesOrderWebapi salesOrderWebapi;
@Autowired
private PurchaseorderApi purchaseorderApi;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -44,8 +35,8 @@ public class PurchaseorderController { ...@@ -44,8 +35,8 @@ public class PurchaseorderController {
* @param req * @param req
* @return * @return
*/ */
@AutoLog(value = "国网数据同步金蝶成功日志-采购订单接口-分页列表查询") @AutoLog(value = "采购订单明细接口-分页列表查询")
@ApiOperation(value = "国网数据同步金蝶成功日志-采购订单接口-分页列表查询", notes = "国网数据同步金蝶成功日志-采购订单接口-分页列表查询") @ApiOperation(value = "采购订单明细接口-分页列表查询", notes = "采购订单明细接口-分页列表查询")
@GetMapping(value = "list") @GetMapping(value = "list")
public Result<?> queryPageList(Purchaseorder purchaseorder, public Result<?> queryPageList(Purchaseorder purchaseorder,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
...@@ -62,80 +53,26 @@ public class PurchaseorderController { ...@@ -62,80 +53,26 @@ public class PurchaseorderController {
@ApiOperation(value = "同步生成销售订单接口-同步至金蝶", notes = "同步生成销售订单接口-同步至金蝶") @ApiOperation(value = "同步生成销售订单接口-同步至金蝶", notes = "同步生成销售订单接口-同步至金蝶")
@PostMapping(value = "/synchronization") @PostMapping(value = "/synchronization")
public Result<?> synchronizationList() throws IOException, ParseException { public Result<?> synchronizationList() throws IOException, ParseException {
Boolean aBoolean = iPurchaseorderService.synchronizationList(null); boolean success = false;
return Result.OK(aBoolean); Map<String, String> synchronization = iPurchaseorderService.synchronization(null);
if (synchronization.containsKey("success")) {
if ("true".equals(synchronization.get("success"))) {
success = true;
}
}
return Result.OK(success);
} }
@GetMapping("")
public void test() {
@AutoLog(value = "测试生成销售订单接口-添加") QueryWrapper<Purchaseorder> queryWrapper = new QueryWrapper<>();
@ApiOperation(value = "测试生成销售订单接口-添加", notes = "测试生成销售订单接口-添加") queryWrapper.select("F_Id");
@GetMapping(value = "/selectTEST") queryWrapper.select("po_Item_Id");
public Result<?> o() throws IOException { // Object SaleOrderId = l.get(i++).get(0);//销售订单id,可匹配过滤是否平台生成订单获取采购订单行项目号
/** queryWrapper.eq("F_Id", "183867");
* 拆解获取国网返回数据 //查询是否为集成平台生成的订单,并过滤
* Purchaseorder purchaseorders1 = iPurchaseorderService.getBaseMapper().selectOne(queryWrapper);
*/ System.out.println(purchaseorders1);
String s = purchaseorderApi.select();
RequestAnalysis requestAnalysis = com.alibaba.fastjson.JSONObject.parseObject(s, RequestAnalysis.class);
PurchaseordeRequest resultValue = requestAnalysis.getResultValue();
Object data = resultValue.getData();
Map<String, Object> map = (HashMap) com.alibaba.fastjson.JSONObject.parseObject(data.toString(), HashMap.class);
StringBuffer content = new StringBuffer();
content.append("{\"FSaleOrgId\":{\"FNUMBER\":\"100.1.06\"},");
content.append("\"FCustId\":{\"FNUMBER\":\"0000\"},");//“客户”是必填项"
content.append("\"FSaleDeptId\":{\"FNUMBER\":\"BM000037\"},");
content.append("\"FSalerId\":{\"FNUMBER\":\"21000035_GW000913_102018\"},");//“销售员”是必填项
content.append("\"F_PAEZ_Remarks\":\"" + map.get("prjname") + "\",");
content.append("\"F_PAEZ_Combo\":\"A\",");
content.append("\"F_PAEZ_Combo3\":\"B\",");
content.append("\"F_PAEZ_Combo31\":\"F\",");
content.append("\"F_PAEZ_Base2\":{\"FNUMBER\":\"AT.600G\"},");
content.append("\"F_PAEZ_Base4\":{\"FSTAFFNUMBER\":\"001\"},");
content.append("\"F_PAEZ_Combo2\":\"A\",");
content.append("\"F_PAEZ_Combo1\":\"A\",");
content.append("\"F_CYGC_Base\":{\"FNUMBER\":\"0000\"},");
content.append("\"F_PAEZ_Base3\":{\"FNUMBER\":\"01.106026\"},");
/**
* 单据体“订单明细”
* FMaterialId“物料编码”是必填项"" + map.get("materialcode") + "
* FUnitID“销售单位”是必填项
* FPriceUnitId“计价单位”是必填项"
* FStockUnitID 库存单位”是必填项"
*/
content.append("\"FSaleOrderEntry\":[{\"FMaterialId\":{\"FNumber\":\"CMKCHLB05_SYS0030\"},\"FUnitID\":{\"FNumber\": \"Pcs\"},\"FPriceUnitId\":{\"FNumber\":\"Pcs\"},\"FQty\":" + map.get("amount") + ",\"FStockUnitID\":{\"FNumber\":\"Pcs\"}}]}");
String result1 = String.valueOf(content);
System.out.println(result1);
JSONObject jsonObject = JSONObject.fromObject(result1);
String webreq = salesOrderWebapi.add(jsonObject);
System.out.println(webreq);
return Result.OK(s);
} }
/**
* 同步
*
* @param object
* @return
*/
@AutoLog(value = "采购订单接口-添加")
@ApiOperation(value="采购订单接口-添加", notes="采购订单接口-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Object object) {
return Result.OK(salesOrderWebapi.add(object));
}
/**
* 采购订单-查询
* @param map
* @return
*/
@GetMapping(value = "/select")
public Result<?> select(@RequestBody Map<String,String> map){
return Result.OK(iPurchaseorderService.select(map));
}
} }
...@@ -9,26 +9,23 @@ import lombok.extern.slf4j.Slf4j; ...@@ -9,26 +9,23 @@ import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Productinventory;
import org.jeecg.modules.iost.API.entity.pojo.Reservestock; import org.jeecg.modules.iost.API.entity.pojo.Reservestock;
import org.jeecg.modules.iost.API.service.IReserveStockService;
import org.jeecg.modules.iost.API.service.pojo.ReservestockPojoService; import org.jeecg.modules.iost.API.service.pojo.IReservestockPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.text.ParseException; import java.text.ParseException;
@Api(tags="存放国网备品数据信息") @Api(tags = "存放国网备品数据信息")
@RestController @RestController
@RequestMapping("/API/seserveStockPojo") @RequestMapping("/API/seserveStockPojo")
@Slf4j @Slf4j
public class ReserveStockPojoController { public class ReserveStockPojoController {
@Autowired @Autowired
ReservestockPojoService reservestockPojoService; private IReservestockPojoService reserveStockService;
@Autowired
IReserveStockService reserveStockService;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -47,7 +44,7 @@ public class ReserveStockPojoController { ...@@ -47,7 +44,7 @@ public class ReserveStockPojoController {
QueryWrapper<Reservestock> queryWrapper = QueryGenerator.initQueryWrapper(reservestock, req.getParameterMap()); QueryWrapper<Reservestock> queryWrapper = QueryGenerator.initQueryWrapper(reservestock, req.getParameterMap());
Page<Reservestock> page = new Page<Reservestock>(pageNo, pageSize); Page<Reservestock> page = new Page<Reservestock>(pageNo, pageSize);
IPage<Reservestock> pageList = reservestockPojoService.page(page, queryWrapper); IPage<Reservestock> pageList = reserveStockService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
} }
......
...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result; ...@@ -10,8 +10,7 @@ import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Salesorder; import org.jeecg.modules.iost.API.entity.pojo.Salesorder;
import org.jeecg.modules.iost.API.service.ISalesOrderService; import org.jeecg.modules.iost.API.service.pojo.ISalesorderPojoService;
import org.jeecg.modules.iost.API.service.pojo.SalesorderPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -24,9 +23,8 @@ import java.text.ParseException; ...@@ -24,9 +23,8 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class SalesOrderPojoController { public class SalesOrderPojoController {
@Autowired @Autowired
SalesorderPojoService salesorderPojoService; private ISalesorderPojoService salesorderPojoService;
@Autowired
ISalesOrderService salesOrderService;
@AutoLog(value = "销售订单明细信息接口-分页列表查询") @AutoLog(value = "销售订单明细信息接口-分页列表查询")
@ApiOperation(value = "销售订单明细信息接口-分页列表查询", notes = "销售订单明细信息接口-分页列表查询") @ApiOperation(value = "销售订单明细信息接口-分页列表查询", notes = "销售订单明细信息接口-分页列表查询")
@GetMapping(value = "list") @GetMapping(value = "list")
...@@ -44,7 +42,7 @@ public class SalesOrderPojoController { ...@@ -44,7 +42,7 @@ public class SalesOrderPojoController {
@ApiOperation(value="销售API-同步至国网", notes="销售API-同步至国网") @ApiOperation(value="销售API-同步至国网", notes="销售API-同步至国网")
@PostMapping(value = "/synchronization") @PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException { public Result<?> synchronization() throws ParseException {
Boolean synchronization = salesOrderService.synchronization(null); Boolean synchronization = salesorderPojoService.synchronization(null);
return Result.OK(synchronization); return Result.OK(synchronization);
} }
......
...@@ -9,10 +9,8 @@ import lombok.extern.slf4j.Slf4j; ...@@ -9,10 +9,8 @@ import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.iost.API.entity.pojo.Reservestock;
import org.jeecg.modules.iost.API.entity.pojo.Supplylist; import org.jeecg.modules.iost.API.entity.pojo.Supplylist;
import org.jeecg.modules.iost.API.service.ISupplyListIService; import org.jeecg.modules.iost.API.service.pojo.ISupplylistPojoService;
import org.jeecg.modules.iost.API.service.pojo.SupplylistPojoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -25,9 +23,8 @@ import java.text.ParseException; ...@@ -25,9 +23,8 @@ import java.text.ParseException;
@Slf4j @Slf4j
public class SupplyListPojoController { public class SupplyListPojoController {
@Autowired @Autowired
SupplylistPojoService supplylistPojoService; private ISupplylistPojoService supplylistPojoService;
@Autowired
ISupplyListIService supplyListIService;
/** /**
* 分页列表查询 * 分页列表查询
* *
...@@ -58,7 +55,7 @@ public class SupplyListPojoController { ...@@ -58,7 +55,7 @@ public class SupplyListPojoController {
@ApiOperation(value="国网供货单信息API-同步", notes="国网供货单信息API-同步") @ApiOperation(value="国网供货单信息API-同步", notes="国网供货单信息API-同步")
@PostMapping(value = "/synchronization") @PostMapping(value = "/synchronization")
public Result<?> synchronization() throws ParseException { public Result<?> synchronization() throws ParseException {
Boolean synchronization = supplyListIService.synchronization(null); Boolean synchronization = supplylistPojoService.synchronization(null);
return Result.OK(synchronization); return Result.OK(synchronization);
} }
} }
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("materialinventoryerro_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="materialinventory对象", description="国网供应商重点原材料库存API")
public class Materialinventoryerror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 实物ID信息明细
* @Author: jeecg-boot
* @Date: 2021-07-09
* @Version: V1.0
*/
@Data
@TableName("supplier_end_physicalid")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "physicalid对象", description = "实物ID信息明细")
public class Physicalid implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**
* 供应商编码
*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**
* 供应商名称
*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**
* 实物ID
*/
@Excel(name = "实物ID", width = 15)
@ApiModelProperty(value = "实物ID")
private String entitycode;
/**
* 采购订单行项目id
*/
@Excel(name = "采购订单行项目id", width = 15)
@ApiModelProperty(value = "采购订单行项目id")
private String poitemid;
/**
* 实物生产状态:0:未生产 1:生产中 2:生产完成
*/
@Excel(name = "实物生产状态:0:未生产 1:生产中 2:生产完成", width = 15)
@ApiModelProperty(value = "实物生产状态:0:未生产 1:生产中 2:生产完成")
private String entitystatus;
/**
* 数据来源:0:供应商, 1:网关, 2:代理
*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private String datasource;
/**
* 来源数据创建时间
*/
@Excel(name = "来源数据创建时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "来源数据创建时间")
private Date datasourcecreatetime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**
* 数据拥有方:取值:供应商编码
*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private String ownerid;
/**
* 数据可见方:取值:采购方编码
*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private String openid;
/**
* 审核日期记录
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss.SSS")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
@ApiModelProperty(value = "审核日期记录")
private Date fapprovedate;
//*实物ID编码*//
private String fbillno;
/**单据编号**/
private String fid;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("physicalid_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="physicalid_api对象", description="国网实物ID信息API")
public class Physicaliderror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createtime;
//传入国网数据
private String requestjson;
//国网响应数据
private String responsejson;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Data
@TableName("productinventory_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productinventory_api对象", description="国网产成品库存信息API")
public class Productinventoryerror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("productionorder_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productionorder_api对象", description="国网生产订单API")
public class Productionordererror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("productionscheduling_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productionscheduling_api对象", description="排产计划")
public class Productionschedulingerror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 采购订单明细
* @Author: jeecg-boot
* @Date: 2021-07-09
* @Version: V1.0
*/
@Data
@TableName("supplier_end_purchaseorder")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "purchaseorder对象", description = "采购订单明细")
public class Purchaseorder implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**
* 采购订单编码
*/
private String poNo;
/**
* 采购订单行项目号
*/
private String poItemNo;
/**
* 采购订单行项目id
*/
private String poItemId;
/**
* 合同编号
*/
private String conCode;
/**
* 合同名称
*/
private String conName;
/**
* 采购方公司名称
*/
private String buyerName;
/**
* 采购方公司编码
*/
private String buyerCode;
/**
* 采购方物料编码
*/
private String materialCode;
/**
* 采购方物料描述
*/
private String materialDesc;
/**
* 采购数量
*/
private String amount;
/**
* 合同编号(国网经法)
*/
private String sellerConCode;
/**
* 技术规范流水号
*/
private String serialNumber;
/**
* 合同签订日期
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date sellerSignTime;
/**
* 合同类型:1标准合同;2协议库存;3采购供货单
*/
private int conType;
/**
* 项目编号
*/
private String prjCode;
/**
* 工程项目名称
*/
private String prjName;
/**
* 物资编码
*/
private String matCode;
/**
* 采购技术固化ID
*/
private String fixedTechId;
// 合同包号
private String pkgNo;
/**招标批次号
*/
private String bidBatCode;
/**
* 固化ID描述
*/
private String extDes;
/**
* 物资大类编码
*/
private String matMaxCode;
/**
* 物资中类编码
*/
private String matMedCode;
/**
* 物资小类编码
*/
private String matMinCode;
/**
* 物资大类名称
*/
private String matMaxName;
/**
* 物资中类名称
*/
private String matMedName;
/**
* 物资小类名称
*/
private String matMinName;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date modifyTime;
/**
* 销售订单内码
*/
private String FId;
/**
* 销售订单编码
*/
private String FNumber;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 采购订单国网日志
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("Purchaseorder_errors")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="purchaseorder_error对象", description="采购订单国网日志")
public class Purchaseordererror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createtime;
//传入国网数据
// private String requestjson;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("reportwork_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="reportwork对象", description="国网报工信息API")
public class Reportworkerror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Data
@TableName("reservestock_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="reservestock_api对象", description="国网备品备件库存API")
public class Reservestockerror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 销售订单
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("salesorder_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="salesorder_api对象", description="国网销售订单API")
public class Salesordererror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("supplylist_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="supplylist_api对象", description="供货单信息")
public class Supplylisterror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
package org.jeecg.modules.iost.API.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("workorder_error")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="workorder_api对象", description="国网工单Api")
public class Workordererror implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**报错代码*/
private Integer status;
/**返回信息*/
private String message;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createtime;
/**数据*/
private String json;
/**数据同步:失败:0,成功:1*/
private Integer synchronization;
}
...@@ -48,4 +48,5 @@ public class KingdeeJournal { ...@@ -48,4 +48,5 @@ public class KingdeeJournal {
private Integer successagain; private Integer successagain;
/**业务编号**/ /**业务编号**/
private Integer businessNo; private Integer businessNo;
} }
...@@ -14,7 +14,6 @@ import org.jeecgframework.poi.excel.annotation.Excel; ...@@ -14,7 +14,6 @@ import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* @Description: 国网产成品库存信息API * @Description: 国网产成品库存信息API
......
...@@ -11,6 +11,7 @@ import lombok.experimental.Accessors; ...@@ -11,6 +11,7 @@ import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable; import java.io.Serializable;
@Data @Data
@TableName("productionorder") @TableName("productionorder")
@Accessors(chain = true) @Accessors(chain = true)
......
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
public interface MaterialinventoryMapeer extends BaseMapper<Materialinventoryerror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Physicalid;
public interface PhysicalidMapper extends BaseMapper<Physicalid> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Physicaliderror;
public interface PhysicaliderrorMapper extends BaseMapper<Physicaliderror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Productinventoryerror;
public interface ProductInventoryMapper extends BaseMapper<Productinventoryerror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Productionordererror;
public interface ProductionOrderMapper extends BaseMapper<Productionordererror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Productionschedulingerror;
public interface ProductionSchedulingMapper extends BaseMapper<Productionschedulingerror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
/**
* @Description: 采购订单接口
* @Author: jeecg-boot
* @Date: 2021-07-09
* @Version: V1.0
*/
public interface PurchaseorderMapper extends BaseMapper<Purchaseorder> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Purchaseordererror;
public interface PurchaseordererrorMapper extends BaseMapper<Purchaseordererror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Reportworkerror;
public interface ReportWorkMapper extends BaseMapper<Reportworkerror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Reservestockerror;
public interface ReserveStrockMapper extends BaseMapper<Reservestockerror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Salesordererror;
public interface SalesOrderMapper extends BaseMapper<Salesordererror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Supplylisterror;
public interface SupplyListIMapper extends BaseMapper<Supplylisterror> {
}
package org.jeecg.modules.iost.API.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.iost.API.entity.Workordererror;
public interface WorkOrderMapper extends BaseMapper<Workordererror> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.MaterialinventoryMapeer">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.PhysicaliderrorMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.PhysicalidMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.ProductInventoryMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.ProductionOrderMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.ProductionSchedulingMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.PurchaseorderMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.PurchaseordererrorMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.ReportWorkMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.ReserveStrockMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.SalesOrderMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.SupplyListIMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.iost.API.mapper.WorkOrderMapper">
</mapper>
\ No newline at end of file
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.GridErrorReturnProcess;
import java.text.ParseException;
import java.util.Map;
public interface GridErrorReturnProcessService extends IService<GridErrorReturnProcess> {
Map<Boolean, String> setGridError(JSONObject jsonObject, String requestJson, Integer BusinessNo) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.GridError;
import java.text.ParseException;
import java.util.Map;
public interface GridErrorService extends IService<GridError> {
Boolean setGridError(JSONObject jsonObject, Map<String, String> json, Integer BusinessNo) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import java.text.ParseException;
import java.util.Map;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IMaterialinventoryService extends IService<Materialinventoryerror> {
/**
* 重点材料添加到库存
* @param map
* @return
*/
public JSONObject add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
Boolean grid(Map<String, String> stringStringMap) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Physicaliderror;
import java.text.ParseException;
import java.util.Map;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IPhysicalIDerrorService extends IService<Physicaliderror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map) throws ParseException;
public JSONObject selectInList(Map<String, String> map) throws ParseException;
public Boolean synchronization(Object object) throws ParseException;
Boolean grid(Map<String, String> stringStringMap) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Productinventoryerror;
import java.text.ParseException;
import java.util.Map;
/**
* 产成品库存信息
*/
public interface IProductInventoryService extends IService<Productinventoryerror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
Boolean grid(Map<String, String> stringStringMap) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Productionordererror;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Map;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface IProductionOrderService extends IService<Productionordererror> {
public JSONObject add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
public Boolean grid(Map<String, String> data) throws ParseException;
public void addProductionOrder(String rs, Map<String, String> stringStringMap, ArrayList<Productionordererror> Productionordererrors);
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Productionordererror;
import org.jeecg.modules.iost.API.entity.Productionschedulingerror;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Map;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IProductionSchedulingService extends IService<Productionschedulingerror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
public Boolean grid(Map<String, String> stringStringMap) throws ParseException;
public void addProductionscheduling(String rs, Map<String, String> stringStringMap, ArrayList<Productionschedulingerror> productionschedulingerrors);
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import java.io.IOException;
import java.text.ParseException;
import java.util.Map;
/**
* @Description: 采购订单接口
* @Author: jeecg-boot
* @Date: 2021-07-09
* @Version: V1.0
*/
public interface IPurchaseorderService extends IService<Purchaseorder> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronizationList(Map object) throws IOException, ParseException;
public Purchaseorder synchronization(Object object);
public Boolean manual(Map<String, Object> map, String ReturnProcessId) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Reportworkerror;
import java.util.Map;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IReportWorkService extends IService<Reportworkerror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Reportworkerror synchronization(Object object);
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Reservestockerror;
import java.text.ParseException;
import java.util.Map;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface IReserveStockService extends IService<Reservestockerror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
Boolean grid(Map<String, String> stringStringMap) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Salesordererror;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Map;
/**
* @Description: 销售订单
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ISalesOrderService extends IService<Salesordererror> {
public JSONObject add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
public void addSalesOrder(String rs, Map<String, String> stringStringMap, ArrayList<Salesordererror> salesordererrors);
public Boolean grid(Map<String, String> data) throws ParseException;
}
\ No newline at end of file
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Supplylisterror;
import java.text.ParseException;
import java.util.Map;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ISupplyListIService extends IService<Supplylisterror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Boolean synchronization(Object object) throws ParseException;
public Boolean grid(Map<String, String> data) throws ParseException;
}
package org.jeecg.modules.iost.API.service;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.json.JSONObject;
import org.jeecg.modules.iost.API.entity.Materialinventoryerror;
import org.jeecg.modules.iost.API.entity.Workordererror;
import java.util.Map;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IWorkOrderService extends IService<Workordererror> {
public String add(Map<String, String> map);
public JSONObject select(Map<String, String> map);
public Workordererror synchronization(Object object);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论