
10 changed files with 314 additions and 1 deletions
@ -0,0 +1,49 @@ |
|||||
|
package com.yxt.wms.apiadmin.inventroy; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.biz.inventory.wmsgoodstag.app.AppTagInit; |
||||
|
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryService; |
||||
|
import com.yxt.wms.biz.inventory.wmsinventory.appH5.GoodsTagH5Vo; |
||||
|
import com.yxt.wms.biz.inventory.wmsinventory.appH5.HouseRackH5Vo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/26 8:52 |
||||
|
*/ |
||||
|
@Api(tags = "扫描标签") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/WmsH5") |
||||
|
public class WmsH5Rest { |
||||
|
|
||||
|
@Autowired |
||||
|
private WmsInventoryService wmsInventoryService; |
||||
|
|
||||
|
@GetMapping("house") |
||||
|
@ApiOperation("扫描库位标签看详情") |
||||
|
ResultBean<HouseRackH5Vo> scanHouseTag(@RequestParam("sid") String sid) { |
||||
|
ResultBean<HouseRackH5Vo> rb = ResultBean.fireFail(); |
||||
|
HouseRackH5Vo vo = wmsInventoryService.scanHouseTag(sid); |
||||
|
if (null == vo) { |
||||
|
return rb.fail(); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("goods") |
||||
|
@ApiOperation("扫描商品标签看详情") |
||||
|
ResultBean<GoodsTagH5Vo> scanGoodsTag(@RequestParam("sid") String sid) { |
||||
|
ResultBean<GoodsTagH5Vo> rb = ResultBean.fireFail(); |
||||
|
GoodsTagH5Vo vo = wmsInventoryService.scanGoodsTag(sid); |
||||
|
if (null == vo) { |
||||
|
return rb.fail(); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appH5; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/26 10:40 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GoodsListTagH5Vo { |
||||
|
|
||||
|
/** |
||||
|
* 库位编码 |
||||
|
*/ |
||||
|
private String houseAddress; |
||||
|
/** |
||||
|
* 仓库+库区 |
||||
|
*/ |
||||
|
private String houseName; |
||||
|
/** |
||||
|
* 商品数量 |
||||
|
*/ |
||||
|
private String num; |
||||
|
|
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appH5; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/26 10:40 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GoodsTagH5Vo { |
||||
|
|
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsName; |
||||
|
/** |
||||
|
* 规格 |
||||
|
*/ |
||||
|
private String goodsSkuOwnSpec; |
||||
|
/** |
||||
|
* 首次入库日期 |
||||
|
*/ |
||||
|
private String inboundTime; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String numId; |
||||
|
/** |
||||
|
* 供应商 |
||||
|
*/ |
||||
|
private String provider; |
||||
|
/** |
||||
|
* 计量单位 |
||||
|
*/ |
||||
|
private String unit; |
||||
|
|
||||
|
private List<GoodsListTagH5Vo> list; |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appH5; |
||||
|
|
||||
|
import com.yxt.wms.biz.inventory.wmsgoodstag.app.ListElement; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/26 8:54 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class HouseRackH5Vo { |
||||
|
|
||||
|
/** |
||||
|
* 1-2-50 |
||||
|
*/ |
||||
|
private String houseAddress; |
||||
|
/** |
||||
|
* 库区名+库位名 |
||||
|
*/ |
||||
|
private String houseName; |
||||
|
@ApiModelProperty("列表") |
||||
|
public List<HouseRackListVo> list; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.wms.biz.inventory.wmsinventory.appH5; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/6/26 10:12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class HouseRackListVo { |
||||
|
|
||||
|
/** |
||||
|
* 商品id |
||||
|
*/ |
||||
|
private String goodsID; |
||||
|
/** |
||||
|
* 商品名称 |
||||
|
*/ |
||||
|
private String goodsName; |
||||
|
/** |
||||
|
* 首次入库日期 |
||||
|
*/ |
||||
|
private String inboundTime; |
||||
|
/** |
||||
|
* 商品数量 |
||||
|
*/ |
||||
|
private String num; |
||||
|
/** |
||||
|
* 图号 |
||||
|
*/ |
||||
|
private String numId; |
||||
|
/** |
||||
|
* 供应商 |
||||
|
*/ |
||||
|
private String provider; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue