|
|
|
@ -8,7 +8,9 @@ import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.admin.annotation.Log;
|
|
|
|
|
import com.glxp.api.admin.constant.BasicProcessStatus;
|
|
|
|
|
import com.glxp.api.admin.constant.BusinessType;
|
|
|
|
|
import com.glxp.api.admin.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.BasicExportStatusEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.info.SystemParamConfigEntity;
|
|
|
|
@ -74,7 +76,7 @@ public class InvWarehouseController {
|
|
|
|
|
@Resource
|
|
|
|
|
InvProductDetailService invProductDetailService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filter")
|
|
|
|
|
public BaseResponse filterInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -85,6 +87,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(restMap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取所有仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterAll")
|
|
|
|
|
public BaseResponse filterAllInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -94,7 +97,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(invWarehouseEntities);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterNext")
|
|
|
|
|
public BaseResponse filterNext(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -105,7 +108,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(invWarehouseEntities);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "根据用户获取仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterByUser")
|
|
|
|
|
public BaseResponse filterByUser(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -117,7 +120,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(mInvWarehouseEntities);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取所有本地库存信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterAllLocInv")
|
|
|
|
|
public BaseResponse filterAllLocInv(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -146,7 +149,7 @@ public class InvWarehouseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取本地仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterUplLocInv")
|
|
|
|
|
public BaseResponse filterUplLocInv(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -174,7 +177,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(invWarehouseEntities);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "根据用户获取仓库信息列表")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("spms/inv/warehouse/filterAllByUser")
|
|
|
|
|
public BaseResponse filterAllByUser(FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -202,6 +205,7 @@ public class InvWarehouseController {
|
|
|
|
|
return invWarehouseResponses;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "保存仓库信息",businessType = BusinessType.INSERT)
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/save")
|
|
|
|
|
public BaseResponse save(@RequestBody @Valid InvWarehouseEntity invWarehouseEntity,
|
|
|
|
@ -270,6 +274,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success("添加成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "编辑仓库信息",businessType = BusinessType.UPDATE)
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/edit")
|
|
|
|
|
public BaseResponse edit(@RequestBody @Valid InvWarehouseEntity invWarehouseEntity,
|
|
|
|
@ -301,6 +306,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "删除仓库信息",businessType = BusinessType.DELETE)
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/delete")
|
|
|
|
|
public BaseResponse delete(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
@ -326,6 +332,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Log(title = "禁用仓库")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/disable")
|
|
|
|
|
public BaseResponse disable(@RequestBody InvWarehouseEntity request) {
|
|
|
|
@ -344,6 +351,7 @@ public class InvWarehouseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//仓库信息文件导出
|
|
|
|
|
@Log(title = "仓库信息文件导出")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/exportJson")
|
|
|
|
|
public void exportJson(@RequestBody DeleteRequest deleteRequest, HttpServletResponse res) {
|
|
|
|
@ -362,7 +370,7 @@ public class InvWarehouseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "上传仓库信息")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/upload")
|
|
|
|
|
public BaseResponse uploadStatus(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
@ -385,7 +393,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success("上传成功,等待中继服务下载!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取仓库状态")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/spms/inv/warehouse/getStatus")
|
|
|
|
|
public BaseResponse getStatus(BasicExportStatusRequest basicExportStatusRequest) {
|
|
|
|
@ -394,7 +402,7 @@ public class InvWarehouseController {
|
|
|
|
|
return ResultVOUtils.success(basicExportStatusEntities);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Log(title = "通过状态下载仓库信息")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/downloadByStatus")
|
|
|
|
|
public BaseResponse downloadByStatus(@RequestBody FilterInvWarehouseRequest filterInvWarehouseRequest) {
|
|
|
|
@ -407,6 +415,7 @@ public class InvWarehouseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//仓库信息文件导入
|
|
|
|
|
@Log(title = "仓库信息文件导入")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/uploadJson")
|
|
|
|
|
public BaseResponse uploadOrders(@RequestParam("file") List<MultipartFile> files) {
|
|
|
|
@ -447,6 +456,7 @@ public class InvWarehouseController {
|
|
|
|
|
* @param thridWarehouseId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "绑定第三方仓库ID")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/bindThrWarehouse")
|
|
|
|
|
public BaseResponse bindThrWarehouse(String id, String thridWarehouseId, String sysId) {
|
|
|
|
@ -463,6 +473,7 @@ public class InvWarehouseController {
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "解绑第三方仓库ID")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/unbindThrWarehouse")
|
|
|
|
|
public BaseResponse unbindThrWarehouse(String id, String sysId) {
|
|
|
|
@ -478,6 +489,7 @@ public class InvWarehouseController {
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "查询第三方系统和仓库数据关联信息")
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/spms/inv/warehouse/thridSys/detail")
|
|
|
|
|
public BaseResponse getThirdSysDetail(FilterInvWarehouseRequest request) {
|
|
|
|
@ -498,6 +510,7 @@ public class InvWarehouseController {
|
|
|
|
|
@Resource
|
|
|
|
|
ThrSubInvWarehouseService thrSubInvWarehouseService;
|
|
|
|
|
|
|
|
|
|
@Log(title = "获取仓库信息")
|
|
|
|
|
@GetMapping("/spms/sub/inv/warehouse/filterThridInv")
|
|
|
|
|
public BaseResponse filterInvWarehouse(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest) {
|
|
|
|
|
|
|
|
|
|