
31 changed files with 1051 additions and 284 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesDto implements Dto { |
||||
|
|
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
|
||||
|
private List<AppFirstShelvesGoodsDto> goodsList; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
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.*; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date |
||||
|
* @Description |
||||
|
*/ |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-AppFirstShelves", |
||||
|
name = "anrui-terminal", |
||||
|
path = "v1/firstshelves") |
||||
|
public interface AppFirstShelvesFeign { |
||||
|
|
||||
|
@PostMapping("/list") |
||||
|
@ApiOperation("打印商品标签列表") |
||||
|
ResultBean<AppFirstShelvesVo> list(@RequestBody PagerQuery<AppFirstShelvesQuery> pagerQuery); |
||||
|
|
||||
|
@ApiOperation("标签扫描") |
||||
|
@GetMapping("/scan") |
||||
|
@ResponseBody |
||||
|
public ResultBean<AppFirstShelvesScanVo> scan(@RequestParam("content") String content, @RequestParam("type") String type, @RequestParam("orgPath") String orgPath); |
||||
|
|
||||
|
@ApiOperation("上架保存") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody AppFirstShelvesDto dto); |
||||
|
|
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesGoodsDto implements Dto { |
||||
|
|
||||
|
private String goodsID; |
||||
|
private String houseCode; |
||||
|
private String count; |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesGoodsVo implements Vo { |
||||
|
|
||||
|
private String sid; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String name; |
||||
|
/** |
||||
|
* 商品id |
||||
|
*/ |
||||
|
private String _id; |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private BigDecimal num; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String specs; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesQuery implements Query { |
||||
|
|
||||
|
private String menuSid; |
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String name; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesScanVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("0商品码,1库位码") |
||||
|
private String type; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsName; |
||||
|
@ApiModelProperty("商品id") |
||||
|
private String goodsID; |
||||
|
@ApiModelProperty("商品最大可上架数量") |
||||
|
private String goodsMax; |
||||
|
@ApiModelProperty("库位码") |
||||
|
private String houseCode; |
||||
|
@ApiModelProperty("库区名+库位名") |
||||
|
private String houseName; |
||||
|
@ApiModelProperty("仓库地址") |
||||
|
private String houseAddress; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.yxt.anrui.terminal.api.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppFirstShelvesVo implements Vo { |
||||
|
|
||||
|
private Integer pages = 1; |
||||
|
private List<AppFirstShelvesGoodsVo> goods; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.as.firstshelves; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.as.firstshelves.*; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("v1/firstshelves") |
||||
|
public class AppFirstShelvesRest implements AppFirstShelvesFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private AppFirstShelvesService appFirstShelvesService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<AppFirstShelvesVo> list(PagerQuery<AppFirstShelvesQuery> pagerQuery) { |
||||
|
return appFirstShelvesService.list(pagerQuery); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<AppFirstShelvesScanVo> scan(String content, String type, String orgPath) { |
||||
|
return appFirstShelvesService.scan(content, type, orgPath); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(AppFirstShelvesDto dto) { |
||||
|
return appFirstShelvesService.save(dto); |
||||
|
} |
||||
|
} |
@ -0,0 +1,166 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.as.firstshelves; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.terminal.api.as.firstshelves.*; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsInventory.WmsInventoryFeign; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsInventory.WmsInventorySaveDto; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsgoodstag.GoodsTagListQuery; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsgoodstag.WmsGoodsTag; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsgoodstag.WmsGoodsTagFeign; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsinitialdetail.WmsInitialDetailFeign; |
||||
|
import com.yxt.anrui.terminal.fegin.wmsinitialdetail.WmsInitialDetailVo; |
||||
|
import com.yxt.anrui.terminal.fegin.wmswarehouserack.WmsHouseInfoVo; |
||||
|
import com.yxt.anrui.terminal.fegin.wmswarehouserack.WmsWarehouseRackFeign; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import javax.annotation.Resource; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class AppFirstShelvesService { |
||||
|
|
||||
|
@Resource |
||||
|
private WmsGoodsTagFeign wmsGoodsTagFeign; |
||||
|
@Resource |
||||
|
private WmsInitialDetailFeign wmsInitialDetailFeign; |
||||
|
@Resource |
||||
|
private WmsWarehouseRackFeign wmsWarehouseRackFeign; |
||||
|
@Resource |
||||
|
private WmsInventoryFeign wmsInventoryFeign; |
||||
|
@Autowired |
||||
|
private SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
|
||||
|
public ResultBean<AppFirstShelvesVo> list(PagerQuery<AppFirstShelvesQuery> pagerQuery) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerQuery<GoodsTagListQuery> pagerQuery1 = new PagerQuery<>(); |
||||
|
GoodsTagListQuery params = new GoodsTagListQuery(); |
||||
|
AppFirstShelvesQuery params1 = pagerQuery.getParams(); |
||||
|
params.setUserSid(params1.getUserSid()); |
||||
|
params.setOrgPath(params1.getOrgPath()); |
||||
|
params.setMenuSid(params1.getMenuSid()); |
||||
|
params.setName(params1.getName()); |
||||
|
pagerQuery1.setParams(params); |
||||
|
pagerQuery1.setSize(1000); |
||||
|
PagerVo<WmsGoodsTag> data = wmsGoodsTagFeign.goodsTagList(pagerQuery1).getData(); |
||||
|
AppFirstShelvesVo appFirstShelvesVo = new AppFirstShelvesVo(); |
||||
|
List<AppFirstShelvesGoodsVo> goods = new ArrayList<>(); |
||||
|
List<WmsGoodsTag> list = data.getRecords(); |
||||
|
for (WmsGoodsTag wmsGoodsTag : list) { |
||||
|
AppFirstShelvesGoodsVo appFirstShelvesGoodsVo = new AppFirstShelvesGoodsVo(); |
||||
|
appFirstShelvesGoodsVo.setSid(wmsGoodsTag.getSid()); |
||||
|
appFirstShelvesGoodsVo.setName(wmsGoodsTag.getGoodsSkuTitle()); |
||||
|
appFirstShelvesGoodsVo.set_id(wmsGoodsTag.getGoodsID()); |
||||
|
appFirstShelvesGoodsVo.setNum(wmsGoodsTag.getGoodsCount()); |
||||
|
appFirstShelvesGoodsVo.setUnit(wmsGoodsTag.getUnit()); |
||||
|
appFirstShelvesGoodsVo.setSpecs(wmsGoodsTag.getGoodsSkuOwnSpec()); |
||||
|
goods.add(appFirstShelvesGoodsVo); |
||||
|
} |
||||
|
appFirstShelvesVo.setGoods(goods); |
||||
|
return rb.success().setData(appFirstShelvesVo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<AppFirstShelvesScanVo> scan(String content, String type, String orgPath) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
AppFirstShelvesScanVo appFirstShelvesScanVo = new AppFirstShelvesScanVo(); |
||||
|
if ("0".equals(type)) {//商品码
|
||||
|
if (content.contains("#")) { |
||||
|
return rb.setMsg("请扫描商品码"); |
||||
|
} |
||||
|
WmsInitialDetailVo wmsInitialDetailVo = wmsInitialDetailFeign.selByGoodsID(content).getData(); |
||||
|
if (wmsInitialDetailVo == null){ |
||||
|
return rb.setMsg("该商品不属于期初上架"); |
||||
|
} |
||||
|
BigDecimal count = new BigDecimal(wmsInventoryFeign.selCountByGoodsID(content).getData()); |
||||
|
BigDecimal chae = wmsInitialDetailVo.getNum().subtract(count); |
||||
|
appFirstShelvesScanVo.setType(type); |
||||
|
appFirstShelvesScanVo.setGoodsID(content); |
||||
|
appFirstShelvesScanVo.setGoodsName(wmsInitialDetailVo.getGoodsSpuName()); |
||||
|
appFirstShelvesScanVo.setGoodsMax(chae.setScale(0,BigDecimal.ROUND_DOWN).toString()); |
||||
|
} else if ("1".equals(type)) {//库位码
|
||||
|
if (!content.contains("#")) { |
||||
|
return rb.setMsg("请扫描库位码"); |
||||
|
} |
||||
|
String[] split = content.split("#"); |
||||
|
String houseCode = split[0]; |
||||
|
ResultBean<WmsHouseInfoVo> wmsHouseInfoVoResultBean = wmsWarehouseRackFeign.selHouseInfoByFullCode(houseCode); |
||||
|
if (wmsHouseInfoVoResultBean.getSuccess()) { |
||||
|
WmsHouseInfoVo houseInfoVo = wmsHouseInfoVoResultBean.getData(); |
||||
|
if (null != houseInfoVo) { |
||||
|
String houseName = ""; |
||||
|
String areaName = ""; |
||||
|
String rackName = ""; |
||||
|
String zoneName = ""; |
||||
|
if (StringUtils.isNotBlank(houseInfoVo.getWarehouseName())) { |
||||
|
houseName = houseInfoVo.getWarehouseName(); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(houseInfoVo.getWareAreaName())) { |
||||
|
areaName = houseInfoVo.getWareAreaName(); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(houseInfoVo.getWarehouseRackName())) { |
||||
|
rackName = houseInfoVo.getWarehouseRackName(); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(houseInfoVo.getWarehouseZoneName())) { |
||||
|
zoneName = houseInfoVo.getWarehouseZoneName(); |
||||
|
} |
||||
|
appFirstShelvesScanVo.setHouseName(houseName + "-" + zoneName + "-" + areaName); |
||||
|
appFirstShelvesScanVo.setHouseAddress(houseInfoVo.getWarehouseRackCode()); |
||||
|
appFirstShelvesScanVo.setHouseCode(houseCode); |
||||
|
appFirstShelvesScanVo.setType(type); |
||||
|
} else { |
||||
|
return rb.setMsg("扫描库位码为空"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return rb.success().setData(appFirstShelvesScanVo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean save(AppFirstShelvesDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
List<AppFirstShelvesGoodsDto> goodsList = dto.getGoodsList(); |
||||
|
WmsInventorySaveDto wmsInventorySaveDto = new WmsInventorySaveDto(); |
||||
|
wmsInventorySaveDto.setCreateBySid(dto.getUserSid()); |
||||
|
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(dto.getOrgPath()).getData(); |
||||
|
wmsInventorySaveDto.setCreateOrgSid(useOrgSid); |
||||
|
wmsInventorySaveDto.setUseOrgSid(useOrgSid); |
||||
|
wmsInventorySaveDto.setFirstInDate(DateUtil.today()); |
||||
|
for (AppFirstShelvesGoodsDto appFirstShelvesGoodsDto : goodsList) { |
||||
|
wmsInventorySaveDto.setGoodsID(appFirstShelvesGoodsDto.getGoodsID()); |
||||
|
wmsInventorySaveDto.setWarehouseRackCode(appFirstShelvesGoodsDto.getHouseCode()); |
||||
|
wmsInventorySaveDto.setCount(appFirstShelvesGoodsDto.getCount()); |
||||
|
wmsInventoryFeign.saveWmsInventory(wmsInventorySaveDto).getData(); |
||||
|
} |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsInventory; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/19 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WmsInventorySaveDto { |
||||
|
|
||||
|
private String sid; |
||||
|
@ApiModelProperty("创建者sid") |
||||
|
private String createBySid; |
||||
|
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)") |
||||
|
private String batchNumber; |
||||
|
@ApiModelProperty("商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)") |
||||
|
private String goodsID; |
||||
|
@ApiModelProperty("商品基础信息sid") |
||||
|
private String goodsSpuSid; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; |
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; |
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; |
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("现有量") |
||||
|
private String count; |
||||
|
@ApiModelProperty("分配量") |
||||
|
private String allocateCount; |
||||
|
@ApiModelProperty("拣货量") |
||||
|
private String pickCount; |
||||
|
@ApiModelProperty("冻结量") |
||||
|
private String freezeCount; |
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; |
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; |
||||
|
@ApiModelProperty("库位sid") |
||||
|
private String warehouseRackSid; |
||||
|
@ApiModelProperty("库位编码") |
||||
|
private String warehouseRackCode; |
||||
|
@ApiModelProperty("厂家sid") |
||||
|
private String manufacturerSid; |
||||
|
@ApiModelProperty("厂家名称") |
||||
|
private String manufacturerName; |
||||
|
@ApiModelProperty("首次入库日期") |
||||
|
private String firstInDate; |
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; |
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsgoodstag; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/24 15:02 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GoodsTagListQuery implements Query { |
||||
|
|
||||
|
private String menuSid; |
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String name; |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsgoodstag; |
||||
|
|
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/5/30 13:36 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WmsGoodsTag extends BaseEntity { |
||||
|
@ApiModelProperty("单据sid(收货单sid)") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("单据明细sid") |
||||
|
private String billDetailSid; |
||||
|
@ApiModelProperty("批次号(入库日期+有效日期,如240320-241009)") |
||||
|
private String batchNumber; |
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; |
||||
|
@ApiModelProperty("商品基础信息sid") |
||||
|
private String goodsSpuSid; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; |
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; |
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; |
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal goodsCount; |
||||
|
@ApiModelProperty("标签图片地址") |
||||
|
private String tagPicUrl; |
||||
|
@ApiModelProperty("打印次数") |
||||
|
private Integer printCount; |
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsgoodstag; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date |
||||
|
* @Description |
||||
|
*/ |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-WmsGoodsTag", |
||||
|
name = "yxt-wms", |
||||
|
path = "/apiadmin/WmsTagPrint") |
||||
|
public interface WmsGoodsTagFeign { |
||||
|
|
||||
|
@PostMapping("goodsTagList") |
||||
|
@ApiOperation("商品标签列表") |
||||
|
ResultBean<PagerVo<WmsGoodsTag>> goodsTagList(@RequestBody PagerQuery<GoodsTagListQuery> pagerQuery); |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.anrui.terminal.fegin.wmsinitialdetail; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.fegin.wmsoldinventory.WmsOldGroundConfirmApp; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
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; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date |
||||
|
* @Description |
||||
|
*/ |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-WmsInitialDetail", |
||||
|
name = "yxt-wms", |
||||
|
path = "v1/wmsinitialdetail") |
||||
|
public interface WmsInitialDetailFeign { |
||||
|
|
||||
|
@PostMapping("/selByGoodsID") |
||||
|
@ResponseBody |
||||
|
@ApiOperation(value = "根据商品ID查询") |
||||
|
public ResultBean<WmsInitialDetailVo> selByGoodsID(@RequestParam("goodsID") String goodsID); |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.fegin.wmsinitialdetail; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
@Data |
||||
|
@ApiModel(value = "期初上架-明细 视图数据对象", description = "期初上架-明细 视图数据对象") |
||||
|
public class WmsInitialDetailVo implements Vo { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("商品spu名称") |
||||
|
private String goodsSpuName; |
||||
|
@ApiModelProperty("图号") |
||||
|
private String goodsSkuCode; |
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
@ApiModelProperty("单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal num; |
||||
|
@ApiModelProperty("品牌名称") |
||||
|
private String brandName; |
||||
|
@ApiModelProperty("厂家名称") |
||||
|
private String manufacturerName; |
||||
|
@ApiModelProperty("供应商名称") |
||||
|
private String supplierName; |
||||
|
@ApiModelProperty("销售指导价") |
||||
|
private BigDecimal saleGuidePrice; |
||||
|
@ApiModelProperty("入库单价") |
||||
|
private BigDecimal inCost; |
||||
|
@ApiModelProperty("税率") |
||||
|
private String taxRate; |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
|
@ApiModelProperty("首次入库日期") |
||||
|
private Date firstInDate; |
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; |
||||
|
@ApiModelProperty("已上架数量") |
||||
|
private BigDecimal listNum; |
||||
|
@ApiModelProperty("是否为一物一码") |
||||
|
private Integer isYwym; |
||||
|
@ApiModelProperty("是否已上传商品标签") |
||||
|
private Integer isScbq; |
||||
|
} |
Loading…
Reference in new issue