
19 changed files with 826 additions and 8 deletions
@ -0,0 +1,39 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitin.AppInventoryProfitinDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitin.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitin.flowable.InventInDto; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitin.flowable.InventInQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitin.flowable.InventInTaskQuery; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Api(tags = "库存查询") |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-AppInventorySearch", |
||||
|
name = "anrui-terminal", |
||||
|
path = "v1/search") |
||||
|
public interface AppInventorySearchFeign { |
||||
|
|
||||
|
@ApiOperation("app库存查询") |
||||
|
@PostMapping("/storage") |
||||
|
public ResultBean<PagerVo<StorageVo>> appStorage(@RequestBody PagerQuery<InventorySearchQuery> pq); |
||||
|
|
||||
|
@ApiOperation("app旧件库存查询") |
||||
|
@PostMapping("/oldParts") |
||||
|
public ResultBean<PagerVo<OldStorageVo>> appOldStorage(@RequestBody PagerQuery<InventorySearchQuery> pq); |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 8:50 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class InventorySearchQuery implements Query { |
||||
|
|
||||
|
private String name; |
||||
|
private String userSid; |
||||
|
private String menuSid; |
||||
|
private String orgPath; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OldStorageListVo { |
||||
|
|
||||
|
/** |
||||
|
* 车架号/车牌号 |
||||
|
*/ |
||||
|
private String carCodeInfo; |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private String count; |
||||
|
/** |
||||
|
* 厂家 |
||||
|
*/ |
||||
|
private String factory; |
||||
|
/** |
||||
|
* 商品ID |
||||
|
*/ |
||||
|
private String goodsID; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String goodsSkuCode; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String goodsSkuOwnSpec; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsSpuName; |
||||
|
/** |
||||
|
* 维修单号 |
||||
|
*/ |
||||
|
private String repairId; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
private String title; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OldStorageVo { |
||||
|
|
||||
|
private String title; |
||||
|
private List<OldStorageListVo> list = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class StorageListVo { |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private String count; |
||||
|
/** |
||||
|
* 厂家 |
||||
|
*/ |
||||
|
private String factory; |
||||
|
/** |
||||
|
* 商品ID |
||||
|
*/ |
||||
|
private String goodsID; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String goodsSkuCode; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String goodsSkuOwnSpec; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsSpuName; |
||||
|
/** |
||||
|
* 库龄 |
||||
|
*/ |
||||
|
private String inventoryAge; |
||||
|
/** |
||||
|
* 入库单价 |
||||
|
*/ |
||||
|
private String price; |
||||
|
/** |
||||
|
* 供应商 |
||||
|
*/ |
||||
|
private String provider; |
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
private String rate; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
private String title; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.anrui.terminal.api.wms.inventorySearch; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class StorageVo { |
||||
|
|
||||
|
private String title; |
||||
|
private List<StorageListVo> list = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.wms.inventorySearch; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.AppInventorySearchFeign; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.InventorySearchQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.OldStorageVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.StorageVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.AppInventoryProfitoutDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.AppInventoryProfitoutFeign; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutDto; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutTaskQuery; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsInventory.WmsInventoryFeign; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
@Api(tags = "库存查询") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/search") |
||||
|
public class AppInventorySearchRest implements AppInventorySearchFeign { |
||||
|
|
||||
|
@Resource |
||||
|
private WmsInventoryFeign wmsInventoryFeign; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<StorageVo>> appStorage(PagerQuery<InventorySearchQuery> pq) { |
||||
|
return wmsInventoryFeign.appStorage(pq); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<OldStorageVo>> appOldStorage(PagerQuery<InventorySearchQuery> pq) { |
||||
|
return wmsInventoryFeign.appOldStorage(pq); |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.wms.inventorySearch; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.AppInventoryProfitoutDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.AppDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutDto; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventoryprofitout.flowable.InventOutTaskQuery; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsinventoryprofitout.WmsInventoryProfitoutDetailsVo; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsinventoryprofitout.WmsInventoryProfitoutFeign; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsinventoryprofitout.flowable.*; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class AppInventorySearchService { |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsInventory; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.InventorySearchQuery; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.OldStorageVo; |
||||
|
import com.yxt.anrui.terminal.api.wms.inventorySearch.StorageVo; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
|
||||
|
/** |
||||
|
* @description: 商品基础信息 |
||||
|
* @author: fzz |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "yxt-wms-WmsInventory", |
||||
|
name = "yxt-wms", |
||||
|
path = "apiadmin/inventory/wmsinventory" |
||||
|
) |
||||
|
public interface WmsInventoryFeign { |
||||
|
|
||||
|
@ApiOperation("app库存查询") |
||||
|
@PostMapping("/appStorage") |
||||
|
public ResultBean<PagerVo<StorageVo>> appStorage(@RequestBody PagerQuery<InventorySearchQuery> pq); |
||||
|
|
||||
|
@ApiOperation("app旧件库存查询") |
||||
|
@PostMapping("/appOldStorage") |
||||
|
public ResultBean<PagerVo<OldStorageVo>> appOldStorage(@RequestBody PagerQuery<InventorySearchQuery> pq); |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appInventory; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 8:50 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class InventorySearchQuery implements Query { |
||||
|
|
||||
|
private String name; |
||||
|
private String userSid; |
||||
|
private String menuSid; |
||||
|
private String orgPath; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appInventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OldStorageListVo { |
||||
|
|
||||
|
/** |
||||
|
* 车架号/车牌号 |
||||
|
*/ |
||||
|
private String carCodeInfo; |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private String count; |
||||
|
/** |
||||
|
* 厂家 |
||||
|
*/ |
||||
|
private String factory; |
||||
|
/** |
||||
|
* 商品ID |
||||
|
*/ |
||||
|
private String goodsID; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String goodsSkuCode; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String goodsSkuOwnSpec; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsSpuName; |
||||
|
/** |
||||
|
* 维修单号 |
||||
|
*/ |
||||
|
private String repairId; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
private String title; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appInventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:15 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OldStorageVo { |
||||
|
|
||||
|
private String title; |
||||
|
private List<OldStorageListVo> list = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appInventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class StorageListVo { |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private String count; |
||||
|
/** |
||||
|
* 厂家 |
||||
|
*/ |
||||
|
private String factory; |
||||
|
/** |
||||
|
* 商品ID |
||||
|
*/ |
||||
|
private String goodsID; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String goodsSkuCode; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String goodsSkuOwnSpec; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsSpuName; |
||||
|
/** |
||||
|
* 库龄 |
||||
|
*/ |
||||
|
private String inventoryAge; |
||||
|
/** |
||||
|
* 入库单价 |
||||
|
*/ |
||||
|
private String price; |
||||
|
/** |
||||
|
* 供应商 |
||||
|
*/ |
||||
|
private String provider; |
||||
|
/** |
||||
|
* 税率 |
||||
|
*/ |
||||
|
private String rate; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
private String title; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appInventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/8/23 9:11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class StorageVo { |
||||
|
|
||||
|
private String title; |
||||
|
private List<StorageListVo> list = new ArrayList<>(); |
||||
|
} |
Loading…
Reference in new issue