|
|
|
@ -1,13 +1,10 @@ |
|
|
|
package com.spring.ifs.controller; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.spring.ifs.api.InventoryPartApi; |
|
|
|
import com.spring.ifs.bean.BaseSearchBeanTest; |
|
|
|
import com.spring.ifs.bean.InventoryServiceBean; |
|
|
|
import com.spring.ifs.bean.InventoryServiceBeanTest; |
|
|
|
import com.spring.ifs.bean.MasterServiceBeanTest; |
|
|
|
import com.spring.ifs.data.*; |
|
|
|
import ifs.fnd.ap.APException; |
|
|
|
import ifs.fnd.ap.Server; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
@ -27,7 +24,7 @@ public class TestIfsController { |
|
|
|
@Autowired |
|
|
|
private MasterServiceBeanTest masterServiceBeanTest; |
|
|
|
@Autowired |
|
|
|
private InventoryServiceBean inventoryServiceBean; |
|
|
|
private InventoryServiceBeanTest inventoryServiceBeanTest; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -234,7 +231,7 @@ public class TestIfsController { |
|
|
|
public Object getInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart returnRow = inventoryServiceBean.getInventoryPart(inData); |
|
|
|
InventoryPart returnRow = inventoryServiceBeanTest.getInventoryPart(inData); |
|
|
|
resultMap.put("obj", returnRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -255,7 +252,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart resultRow = inventoryServiceBean.syncInventoryPart(inData); |
|
|
|
InventoryPart resultRow = inventoryServiceBeanTest.syncInventoryPart(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -276,7 +273,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPart resultRow = inventoryServiceBean.modifyInventoryPart(inData); |
|
|
|
InventoryPart resultRow = inventoryServiceBeanTest.modifyInventoryPart(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -297,7 +294,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPart(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPart(inData); |
|
|
|
inventoryServiceBeanTest.removeInventoryPart(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -317,7 +314,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartCost(@RequestBody InventoryPartConfig inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartConfig resultRow = inventoryServiceBean.modifyInventoryPartCost(inData); |
|
|
|
InventoryPartConfig resultRow = inventoryServiceBeanTest.modifyInventoryPartCost(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -338,7 +335,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartPlan(@RequestBody InventoryPartPlan inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartPlan resultRow = inventoryServiceBean.modifyInventoryPartPlan(inData); |
|
|
|
InventoryPartPlan resultRow = inventoryServiceBeanTest.modifyInventoryPartPlan(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -359,7 +356,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
List<InventoryPartLocation> resultList = inventoryServiceBean.syncInventoryPartLocations(inDatas); |
|
|
|
List<InventoryPartLocation> resultList = inventoryServiceBeanTest.syncInventoryPartLocations(inDatas); |
|
|
|
resultMap.put("obj", resultList); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -380,7 +377,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartLocation(@RequestBody InventoryPartLocation inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPartLocation(inData); |
|
|
|
inventoryServiceBeanTest.removeInventoryPartLocation(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -390,7 +387,6 @@ public class TestIfsController { |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
/**************************************************************************************************************************/ |
|
|
|
/** |
|
|
|
* @description: 修改库存件的制造商 |
|
|
|
* @author LR |
|
|
|
@ -401,7 +397,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartManufacture(@RequestBody InventoryPartManufacture inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartManufacture resultRow = inventoryServiceBean.modifyInventoryPartManufacture(inData); |
|
|
|
InventoryPartManufacture resultRow = inventoryServiceBeanTest.modifyInventoryPartManufacture(inData); |
|
|
|
resultMap.put("obj", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -422,7 +418,7 @@ public class TestIfsController { |
|
|
|
public Object getInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.getInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.getInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -443,7 +439,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.syncInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.syncInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -465,7 +461,7 @@ public class TestIfsController { |
|
|
|
public Object modifyInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBean.modifyInventoryPartRevision(inData); |
|
|
|
InventoryPartRevision resultRow = inventoryServiceBeanTest.modifyInventoryPartRevision(inData); |
|
|
|
resultMap.put("resultRow", resultRow); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -486,7 +482,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartRevision(@RequestBody InventoryPartRevision inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPartRevision(inData); |
|
|
|
inventoryServiceBeanTest.removeInventoryPartRevision(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -506,7 +502,7 @@ public class TestIfsController { |
|
|
|
public Object syncInventoryPartCharacteristics(@RequestBody List<CharacteristicCode> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
List<CharacteristicCode> resultList = inventoryServiceBean.syncInventoryPartCharacteristics(inDatas); |
|
|
|
List<CharacteristicCode> resultList = inventoryServiceBeanTest.syncInventoryPartCharacteristics(inDatas); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("resultList", resultList); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
@ -527,7 +523,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartCharacteristicsByPartNo(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPartCharacteristicsByPartNo(inData); |
|
|
|
inventoryServiceBeanTest.removeInventoryPartCharacteristicsByPartNo(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -547,7 +543,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartRelationInfo(@RequestBody InventoryPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPartRelationInfo(inData); |
|
|
|
inventoryServiceBeanTest.removeInventoryPartRelationInfo(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -567,7 +563,7 @@ public class TestIfsController { |
|
|
|
public Object removeInventoryPartLocations(@RequestBody List<InventoryPartLocation> inDatas) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.removeInventoryPartLocations(inDatas); |
|
|
|
inventoryServiceBeanTest.removeInventoryPartLocations(inDatas); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
@ -587,7 +583,7 @@ public class TestIfsController { |
|
|
|
public Object syncCopyPartForInventoryPart(@RequestBody CopyPart inData) throws APException { |
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
inventoryServiceBean.syncCopyPartForInventoryPart(inData); |
|
|
|
inventoryServiceBeanTest.syncCopyPartForInventoryPart(inData); |
|
|
|
resultMap.put("code", 200); |
|
|
|
resultMap.put("msg", "操作成功!"); |
|
|
|
} catch (Exception e) { |
|
|
|
|