|
|
|
|
@ -391,7 +391,7 @@ public class WmsPdaApiServiceImpl implements IWmsPdaApiService {
|
|
|
|
|
public List<WmsBaseLocationVo> storeCheckSelectLocation(String type, Long storeId) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (type.equals("原材料盘点")) {
|
|
|
|
|
if (type.equals("盘点")) {
|
|
|
|
|
return apiMapper.selectRawCheckLocationList(storeId);
|
|
|
|
|
} else if (type.equals("半成品盘点")) {
|
|
|
|
|
return apiMapper.selectSemiCheckLocationList(storeId);
|
|
|
|
|
@ -406,7 +406,7 @@ public class WmsPdaApiServiceImpl implements IWmsPdaApiService {
|
|
|
|
|
public WmsInventoryCheck storeCheckSubmitOrder(String type, Long storeId, List<String> list) {
|
|
|
|
|
String tag = DateUtils.dateTime();
|
|
|
|
|
String tabName = null;
|
|
|
|
|
if (type.equals("原材料盘点")) {
|
|
|
|
|
if (type.equals("盘点")) {
|
|
|
|
|
tabName = "wms_inventory_check";
|
|
|
|
|
} else if (type.equals("半成品盘点")) {
|
|
|
|
|
tabName = "wms_inventory_check_2";
|
|
|
|
|
@ -426,13 +426,14 @@ public class WmsPdaApiServiceImpl implements IWmsPdaApiService {
|
|
|
|
|
insert.setPlanWarehouseId(storeId);
|
|
|
|
|
insert.setCreateBy(LoginHelper.getUserId());
|
|
|
|
|
insert.setTenantId(LoginHelper.getTenantId());
|
|
|
|
|
insert.setBeginTime(new Date());
|
|
|
|
|
wmsInventoryCheckMapper.insertTable(tabName, insert);
|
|
|
|
|
return insert;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<WmsInventoryVo> storeCheckSelectInventory(String locationCode, String type) {
|
|
|
|
|
if (type.equals("原材料盘点")) {
|
|
|
|
|
if (type.equals("盘点")) {
|
|
|
|
|
MPJLambdaWrapper<WmsInventory> lqw = JoinWrappers.lambda(WmsInventory.class);
|
|
|
|
|
lqw.eq(WmsInventory::getLocationCode, locationCode);
|
|
|
|
|
return wmsInventoryMapper.selectVoList(lqw);
|
|
|
|
|
|