|
@@ -407,6 +407,47 @@ public class StockInfoServiceImpl extends SuperServiceImpl<StockInfoMapper, Stoc
|
|
|
return R.success(uniqueCode);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public R<String> procedureTrayStockIn(Tray tray, Long storgeId) {
|
|
|
+ StockInfo infoBean = new StockInfo();
|
|
|
+ infoBean.setStorgeId(storgeId);
|
|
|
+ infoBean.setLockStatus("1");
|
|
|
+ //Tray tray = trayService.getById(bomProcedureTray.getTrayId());
|
|
|
+ infoBean.setGoodsId(tray.getId());
|
|
|
+ infoBean.setGoodsType("2");
|
|
|
+ infoBean.setSpecId(tray.getId());
|
|
|
+ infoBean.setNum(1);
|
|
|
+// if(StringUtil.isEmpty(uniqueCode)){
|
|
|
+// //根据编码规则
|
|
|
+// uniqueCode = codeRuleService.getBillCode(CodeRuleModule.CODE_RULE_UNIQUE);
|
|
|
+// }
|
|
|
+ infoBean.setUniqueCode("");
|
|
|
+ infoBean.setCompleteBatchNo("");
|
|
|
+ save(infoBean);
|
|
|
+ //库存日志
|
|
|
+ stockLogService.saveLog(infoBean,BizConstant.STOCK_TYPE_IN);
|
|
|
+ return R.success("");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public R<String> procedureToolClampStockIn(MToolClamp clamp, Long storgeId) {
|
|
|
+ StockInfo infoBean = new StockInfo();
|
|
|
+ infoBean.setStorgeId(storgeId);
|
|
|
+ infoBean.setLockStatus("1");
|
|
|
+ //MToolMeterial meterial = toolMeterialService.getById(bomProcedureTray.getTrayId());
|
|
|
+ infoBean.setGoodsId(clamp.getId());
|
|
|
+ infoBean.setGoodsType("1");
|
|
|
+ infoBean.setSpecId(clamp.getId());
|
|
|
+ infoBean.setNum(1);
|
|
|
+ infoBean.setUniqueCode("");
|
|
|
+ infoBean.setCompleteBatchNo("");
|
|
|
+ save(infoBean);
|
|
|
+ //库存日志
|
|
|
+ stockLogService.saveLog(infoBean,BizConstant.STOCK_TYPE_IN);
|
|
|
+ return R.success("");
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public R<String> meterialStockOut(BomProcedureMeterial bomProcedureMeterial, Long storgeId,String completeBatchNo) {
|
|
|
Map map = new HashMap();
|