|
|
@ -68,7 +68,7 @@ public class WareHouseController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private StackOrderService stackOrderService;
|
|
|
|
private StackOrderService stackOrderService;
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("warehouse/inout/postOrders")
|
|
|
|
@PostMapping("warehouse/inout/postOrders")
|
|
|
|
public BaseResponse postOrders(@RequestBody PostOrderRequest postOrderRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse postOrders(@RequestBody PostOrderRequest postOrderRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -96,7 +96,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping("warehouse/inout/deleteCodesTempById")
|
|
|
|
@GetMapping("warehouse/inout/deleteCodesTempById")
|
|
|
|
public BaseResponse deleteCodesTempById(String id) {
|
|
|
|
public BaseResponse deleteCodesTempById(String id) {
|
|
|
|
return warehouseTempService.deleteCodesTempById(id);
|
|
|
|
return warehouseTempService.deleteCodesTempById(id);
|
|
|
@ -108,7 +108,7 @@ public class WareHouseController {
|
|
|
|
* @param code
|
|
|
|
* @param code
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping("/warehouse/inout/warehouseUserList")
|
|
|
|
@GetMapping("/warehouse/inout/warehouseUserList")
|
|
|
|
public BaseResponse getWarehouseUserList(FilterInvLinkDataRequest filterInvLinkDataRequest) {
|
|
|
|
public BaseResponse getWarehouseUserList(FilterInvLinkDataRequest filterInvLinkDataRequest) {
|
|
|
|
Page<WarehouseUserEntity> page = warehouseUserService.filterUserList(filterInvLinkDataRequest);
|
|
|
|
Page<WarehouseUserEntity> page = warehouseUserService.filterUserList(filterInvLinkDataRequest);
|
|
|
@ -118,7 +118,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping("/warehouse/inout/warehouseBussniessTypeList")
|
|
|
|
@GetMapping("/warehouse/inout/warehouseBussniessTypeList")
|
|
|
|
public BaseResponse getWarehouseBussniessTypeList(FilterInvLinkDataRequest filterInvLinkDataRequest) {
|
|
|
|
public BaseResponse getWarehouseBussniessTypeList(FilterInvLinkDataRequest filterInvLinkDataRequest) {
|
|
|
|
Page<WarehouseBussinessTypeEntity> page = warehouseBussinessTypeService.filterList(filterInvLinkDataRequest);
|
|
|
|
Page<WarehouseBussinessTypeEntity> page = warehouseBussinessTypeService.filterList(filterInvLinkDataRequest);
|
|
|
@ -128,7 +128,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/saveWarehouseUser")
|
|
|
|
@PostMapping("/warehouse/inout/saveWarehouseUser")
|
|
|
|
public BaseResponse saveWarehouseUser(@RequestBody Map<String, Object> params) {
|
|
|
|
public BaseResponse saveWarehouseUser(@RequestBody Map<String, Object> params) {
|
|
|
|
String code = String.valueOf(params.get("code"));
|
|
|
|
String code = String.valueOf(params.get("code"));
|
|
|
@ -140,7 +140,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/saveWarehouseBussinessType")
|
|
|
|
@PostMapping("/warehouse/inout/saveWarehouseBussinessType")
|
|
|
|
public BaseResponse saveWarehouseBussinessType(@RequestBody Map<String, Object> params) {
|
|
|
|
public BaseResponse saveWarehouseBussinessType(@RequestBody Map<String, Object> params) {
|
|
|
|
String code = String.valueOf(params.get("code"));
|
|
|
|
String code = String.valueOf(params.get("code"));
|
|
|
@ -152,7 +152,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/updateDirector")
|
|
|
|
@PostMapping("/warehouse/inout/updateDirector")
|
|
|
|
public BaseResponse updateDirector(Integer id) {
|
|
|
|
public BaseResponse updateDirector(Integer id) {
|
|
|
|
if (null == id) {
|
|
|
|
if (null == id) {
|
|
|
@ -162,7 +162,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/delWarehouseUser")
|
|
|
|
@PostMapping("/warehouse/inout/delWarehouseUser")
|
|
|
|
public BaseResponse deleteWarehouseUser(Integer id) {
|
|
|
|
public BaseResponse deleteWarehouseUser(Integer id) {
|
|
|
|
if (null == id) {
|
|
|
|
if (null == id) {
|
|
|
@ -172,7 +172,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/delWarehouseBussinessType")
|
|
|
|
@PostMapping("/warehouse/inout/delWarehouseBussinessType")
|
|
|
|
public BaseResponse deleteWarehouseBussinessType(Integer id) {
|
|
|
|
public BaseResponse deleteWarehouseBussinessType(Integer id) {
|
|
|
|
if (null == id) {
|
|
|
|
if (null == id) {
|
|
|
@ -182,7 +182,7 @@ public class WareHouseController {
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/commit")
|
|
|
|
@PostMapping("/warehouse/inout/commit")
|
|
|
|
public BaseResponse commitOrder(@RequestBody CommitRequest commitRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse commitOrder(@RequestBody CommitRequest commitRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -200,7 +200,7 @@ public class WareHouseController {
|
|
|
|
* @param bindingResult
|
|
|
|
* @param bindingResult
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/addCommit")
|
|
|
|
@PostMapping("/warehouse/inout/addCommit")
|
|
|
|
public BaseResponse addCommitOrder(@RequestBody CommitRequest commitRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse addCommitOrder(@RequestBody CommitRequest commitRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -219,7 +219,7 @@ public class WareHouseController {
|
|
|
|
* @param warehouseQueryRequest
|
|
|
|
* @param warehouseQueryRequest
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping("spms/inout/dlcode/findByOrderId")
|
|
|
|
@GetMapping("spms/inout/dlcode/findByOrderId")
|
|
|
|
public BaseResponse downloadCodesByOrderId(WarehouseQueryRequest warehouseQueryRequest) {
|
|
|
|
public BaseResponse downloadCodesByOrderId(WarehouseQueryRequest warehouseQueryRequest) {
|
|
|
|
IPage<WarehouseEntity> page = warehouseService.filterWarehouseByPage(warehouseQueryRequest);
|
|
|
|
IPage<WarehouseEntity> page = warehouseService.filterWarehouseByPage(warehouseQueryRequest);
|
|
|
@ -234,7 +234,7 @@ public class WareHouseController {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/replaceCodes")
|
|
|
|
@PostMapping("/warehouse/inout/replaceCodes")
|
|
|
|
public BaseResponse replaceCodes(@RequestBody CodesReplaceRequest codesReplaceRequest) {
|
|
|
|
public BaseResponse replaceCodes(@RequestBody CodesReplaceRequest codesReplaceRequest) {
|
|
|
|
if (StrUtil.isBlank(codesReplaceRequest.getCode()) || StrUtil.isBlank(codesReplaceRequest.getOrderId())) {
|
|
|
|
if (StrUtil.isBlank(codesReplaceRequest.getCode()) || StrUtil.isBlank(codesReplaceRequest.getOrderId())) {
|
|
|
@ -261,7 +261,7 @@ public class WareHouseController {
|
|
|
|
* @param bindingResult
|
|
|
|
* @param bindingResult
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/code/deleteCodes")
|
|
|
|
@PostMapping("/warehouse/inout/code/deleteCodes")
|
|
|
|
public BaseResponse deleteCodes(@RequestBody DeleteCodeRequest deleteCodeRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse deleteCodes(@RequestBody DeleteCodeRequest deleteCodeRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -283,7 +283,7 @@ public class WareHouseController {
|
|
|
|
* @param bindingResult
|
|
|
|
* @param bindingResult
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/code/updateCodesTime")
|
|
|
|
@PostMapping("/warehouse/inout/code/updateCodesTime")
|
|
|
|
public BaseResponse updateCodesTime(@RequestBody CodeEditRequest codeEditRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse updateCodesTime(@RequestBody CodeEditRequest codeEditRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -300,7 +300,7 @@ public class WareHouseController {
|
|
|
|
* @param bindingResult
|
|
|
|
* @param bindingResult
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/warehouse/inout/addOrderWeb")
|
|
|
|
@PostMapping("/warehouse/inout/addOrderWeb")
|
|
|
|
public BaseResponse addOrderWeb(@RequestBody AddOrderRequest addOrderRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse addOrderWeb(@RequestBody AddOrderRequest addOrderRequest, BindingResult bindingResult) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
@ -571,7 +571,7 @@ public class WareHouseController {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("warehouse/inout/saveOrderWeb")
|
|
|
|
@PostMapping("warehouse/inout/saveOrderWeb")
|
|
|
|
public BaseResponse saveOrderWeb(@RequestBody AddOrderRequest addOrderRequest) {
|
|
|
|
public BaseResponse saveOrderWeb(@RequestBody AddOrderRequest addOrderRequest) {
|
|
|
|
OrderEntity orderEntity = new OrderEntity();
|
|
|
|
OrderEntity orderEntity = new OrderEntity();
|
|
|
|