|
|
|
@ -267,6 +267,45 @@ public class OdsProductEmbryoInventoryServiceImpl implements IOdsProductEmbryoIn
|
|
|
|
|
return odsProductEmbryoInventoryCorrelationList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<OdsProductEmbryoInventoryCorrelation> selectObtainTheAssociated(OdsProductEmbryoInventory odsProductEmbryoInventory) {
|
|
|
|
|
// DynamicDataSourceContextHolder.push("ds_" + odsProductEmbryoInventory.getSiteCode());
|
|
|
|
|
OdsProductEmbryoInventory odsProductEmbryoInventory1=new OdsProductEmbryoInventory();
|
|
|
|
|
// odsProductEmbryoInventory1.setOrderStatus("1");
|
|
|
|
|
odsProductEmbryoInventory1.setOrderCode(odsProductEmbryoInventory.getOrderCode());
|
|
|
|
|
odsProductEmbryoInventory1.setActive("1");
|
|
|
|
|
List<OdsProductEmbryoInventoryCorrelation> odsProductEmbryoInventoryCorrelationList= odsProductEmbryoInventoryMapper.selectOdsProductEmbryoInventoryCorrelationList(odsProductEmbryoInventory1);
|
|
|
|
|
return odsProductEmbryoInventoryCorrelationList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public String AdjustInventoryList(List<OdsProductEmbryoInventoryCorrelation> odsProductEmbryoInventoryCorrelationList) {
|
|
|
|
|
String result="调整成功";
|
|
|
|
|
OdsProductEmbryoInventory odsProductEmbryoInventory1=new OdsProductEmbryoInventory();
|
|
|
|
|
//修改为调整|
|
|
|
|
|
OdsProductEmbryoInventoryCorrelation odsProductEmbryoInventoryCorrelation= odsProductEmbryoInventoryCorrelationList.get(0);
|
|
|
|
|
odsProductEmbryoInventory1.setOrderCode(odsProductEmbryoInventoryCorrelation.getOrderCode());
|
|
|
|
|
odsProductEmbryoInventory1.setOrderStatus("4");//4是待审核
|
|
|
|
|
odsProductEmbryoInventory1.setUserDefined6(SecurityUtils.getUsername());
|
|
|
|
|
odsProductEmbryoInventory1.setUserDefined7(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
|
|
|
odsProductEmbryoInventory1.setLastUpdateDate(new Date());
|
|
|
|
|
odsProductEmbryoInventory1.setLastUpdateBy(SecurityUtils.getUsername());
|
|
|
|
|
odsProductEmbryoInventoryMapper.updateOdsProductEmbryoInventoryByOrderCode(odsProductEmbryoInventory1);
|
|
|
|
|
//插入调整数量
|
|
|
|
|
for (OdsProductEmbryoInventoryCorrelation odsProductEmbryoInventoryCorrelation1:odsProductEmbryoInventoryCorrelationList){
|
|
|
|
|
OdsProductEmbryoInventory odsProductEmbryoInventory11=new OdsProductEmbryoInventory();
|
|
|
|
|
odsProductEmbryoInventory11.setID(odsProductEmbryoInventoryCorrelation1.getID());
|
|
|
|
|
odsProductEmbryoInventory11.setUserDefined4(odsProductEmbryoInventoryCorrelation1.getAdjustmentAmount());
|
|
|
|
|
odsProductEmbryoInventory11.setLastUpdateDate(new Date());
|
|
|
|
|
odsProductEmbryoInventory11.setLastUpdateBy(SecurityUtils.getUsername());
|
|
|
|
|
odsProductEmbryoInventoryMapper.updateOdsProductEmbryoInventoryCorrelation(odsProductEmbryoInventory11);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
private String getPurcode(String factorycode, String orderType) {
|
|
|
|
|
|
|
|
|
|