|
|
@ -1,5 +1,6 @@ |
|
|
package com.spring.ifs.bean; |
|
|
package com.spring.ifs.bean; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
import com.spring.ifs.api.BaseSearchApi; |
|
|
import com.spring.ifs.api.BaseSearchApi; |
|
|
import com.spring.ifs.api.BaseSearchApiTest; |
|
|
import com.spring.ifs.api.BaseSearchApiTest; |
|
|
import com.spring.ifs.api.IfsServer; |
|
|
import com.spring.ifs.api.IfsServer; |
|
|
@ -8,6 +9,8 @@ import com.spring.ifs.data.*; |
|
|
import com.spring.modules.base.entity.WorkCenterCost; |
|
|
import com.spring.modules.base.entity.WorkCenterCost; |
|
|
import com.spring.modules.base.vo.PersonnelLevelVo; |
|
|
import com.spring.modules.base.vo.PersonnelLevelVo; |
|
|
import com.spring.modules.part.entity.APIEntity.PartIfsInventory; |
|
|
import com.spring.modules.part.entity.APIEntity.PartIfsInventory; |
|
|
|
|
|
import com.spring.modules.part.entity.PartInformationEntity; |
|
|
|
|
|
import com.spring.modules.part.vo.InventoryPartUnitCostSumVo; |
|
|
import ifs.fnd.ap.APException; |
|
|
import ifs.fnd.ap.APException; |
|
|
import ifs.fnd.ap.Server; |
|
|
import ifs.fnd.ap.Server; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
@ -166,6 +169,31 @@ public class BaseSearchBeanTest { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @description: 获取库存件的预估成本 |
|
|
|
|
|
* @author HP |
|
|
|
|
|
* @date 2025-12-19 16:25 |
|
|
|
|
|
* @version 1.0 |
|
|
|
|
|
*/ |
|
|
|
|
|
public InventoryPartUnitCostSumVo getInventoryEstimatedMaterialCostByPartNo(BaseSearchData inData) throws APException{ |
|
|
|
|
|
//查询的参数 |
|
|
|
|
|
//查询的参数 |
|
|
|
|
|
String username = inData.getIfsUsername(); |
|
|
|
|
|
String password = inData.getIfsPassword(); |
|
|
|
|
|
String site = inData.getSite(); |
|
|
|
|
|
String partNo = inData.getPartNo(); |
|
|
|
|
|
logger.info("库存件cost value请求参数 域:"+site+",物料编码:"+partNo); |
|
|
|
|
|
//获取连接 |
|
|
|
|
|
Server srv = ifsServer.getIfsServer(username, password); |
|
|
|
|
|
InventoryPartUnitCostSumVo resultRow = BaseSearchApi.getInventoryEstimatedMaterialCostByPartNo(srv, site, partNo); |
|
|
|
|
|
//判断null |
|
|
|
|
|
if(resultRow == null) { |
|
|
|
|
|
throw new APException("库存件按成本不存在!"); |
|
|
|
|
|
} |
|
|
|
|
|
logger.info("返回集合大小:"+resultRow.toString()); |
|
|
|
|
|
return resultRow; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @description: 按照条件查询库存件的成本 |
|
|
* @description: 按照条件查询库存件的成本 |
|
|
* @author LR |
|
|
* @author LR |
|
|
|