|
|
@ -282,9 +282,16 @@ public class WmsPdaApiServiceImpl implements IWmsPdaApiService {
|
|
|
|
|
|
|
|
|
|
|
|
// 查询盘点工单
|
|
|
|
// 查询盘点工单
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public WmsInventoryCheck storeCheckSubmitOrder(Long storeId, List<String> list) {
|
|
|
|
public WmsInventoryCheck storeCheckSubmitOrder(String type, Long storeId, List<String> list) {
|
|
|
|
String tag = DateUtils.dateTime();
|
|
|
|
String tag = DateUtils.dateTime();
|
|
|
|
WmsInventoryCheck wmsInventoryCheck = wmsInventoryCheckMapper.selectInventoryCheckOrder();
|
|
|
|
String tabName=null;
|
|
|
|
|
|
|
|
if (type.equals("原材料盘点")) {
|
|
|
|
|
|
|
|
tabName="wms_inventory_check";
|
|
|
|
|
|
|
|
}else if (type.equals("半成品盘点")){
|
|
|
|
|
|
|
|
tabName="wms_inventory_check_2";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WmsInventoryCheck wmsInventoryCheck = wmsInventoryCheckMapper.selectInventoryCheckOrder(tabName);
|
|
|
|
WmsInventoryCheck insert = new WmsInventoryCheck();
|
|
|
|
WmsInventoryCheck insert = new WmsInventoryCheck();
|
|
|
|
if (wmsInventoryCheck == null) {
|
|
|
|
if (wmsInventoryCheck == null) {
|
|
|
|
insert.setCheckCode("PD" + tag + "001");
|
|
|
|
insert.setCheckCode("PD" + tag + "001");
|
|
|
@ -297,12 +304,13 @@ public class WmsPdaApiServiceImpl implements IWmsPdaApiService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
insert.setPlanWarehouseId(storeId);
|
|
|
|
insert.setPlanWarehouseId(storeId);
|
|
|
|
insert.setCreateBy(LoginHelper.getUserId());
|
|
|
|
insert.setCreateBy(LoginHelper.getUserId());
|
|
|
|
wmsInventoryCheckMapper.insert(insert);
|
|
|
|
insert.setTenantId(LoginHelper.getTenantId());
|
|
|
|
|
|
|
|
wmsInventoryCheckMapper.insertTable(tabName,insert);
|
|
|
|
return insert;
|
|
|
|
return insert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<WmsInventoryVo> storeCheckSelectInventory(String locationCode) {
|
|
|
|
public List<WmsInventoryVo> storeCheckSelectInventory(String locationCode, String type) {
|
|
|
|
MPJLambdaWrapper<WmsInventory> lqw = JoinWrappers.lambda(WmsInventory.class);
|
|
|
|
MPJLambdaWrapper<WmsInventory> lqw = JoinWrappers.lambda(WmsInventory.class);
|
|
|
|
lqw.eq(WmsInventory::getLocationCode, locationCode);
|
|
|
|
lqw.eq(WmsInventory::getLocationCode, locationCode);
|
|
|
|
return wmsInventoryMapper.selectVoList(lqw);
|
|
|
|
return wmsInventoryMapper.selectVoList(lqw);
|
|
|
|