6/6
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebill.*;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailDtoNew;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailQuery;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailService;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(调拨单) <br/>
|
||||
* File: WmsInventoryAllocatebillDetailFeignFallback.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailRest <br/>
|
||||
* Description: (调拨单-明细). <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-25 16:04:08 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "(调拨单-明细)")
|
||||
@RestController
|
||||
@RequestMapping("v1/wmsinventoryallocatebilldetail")
|
||||
public class WmsInventoryAllocatebillDetailRest {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryAllocateBillDetailService wmsInventoryAllocateBillDetailService;
|
||||
|
||||
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventoryAllocateBillDetailVo>> listPage(@RequestBody PagerQuery<WmsInventoryAllocateBillDetailQuery> pq){
|
||||
return wmsInventoryAllocateBillDetailService.listPage(pq);
|
||||
}
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventoryAllocateBillDetailDtoNew dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryAllocateBillDetailService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryAllocateBillDetailService.delAll(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventoryAllocateBillDetailsVoNew> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetailsVoNew vo = wmsInventoryAllocateBillDetailService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebill.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(调拨单) <br/>
|
||||
* File: WmsInventoryAllocatebillFeignFallback.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventoryallocatebill.WmsInventoryAllocatebillRest <br/>
|
||||
* Description: (调拨单)-调出方操作. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-25 16:04:08 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "(调拨单)-调出方操作")
|
||||
@RestController
|
||||
@RequestMapping("/apiadmin/inventory/wmsinventoryallocatebill")
|
||||
public class WmsInventoryAllocatebillRest {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryAllocateBillService wmsInventoryAllocateBillService;
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventoryAllocateBillVoNew>> listPage(@RequestBody PagerQuery<WmsInventoryAllocateBillQueryNew> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventoryAllocateBillVoNew> pv = wmsInventoryAllocateBillService.listPageVo(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventoryAllocateBillDtoNew dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryAllocateBillService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryAllocateBillService.delAll(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventoryAllocateBillDetailsVoNew> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetailsVoNew vo = wmsInventoryAllocateBillService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
@ApiOperation("调拨")
|
||||
@PostMapping("/allocation")
|
||||
public ResultBean allocation(@RequestBody WmsInventoryAllocateBillDtoNew dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryAllocateBillService.allocation(dto);
|
||||
return rb.success();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorybatch.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/6/4 16:56
|
||||
*/
|
||||
@Api(tags = "(商品库存-批次属性)")
|
||||
@RestController
|
||||
@RequestMapping("/apiadmin/base/inventorybatch")
|
||||
public class WmsInventoryBatchRest {
|
||||
|
||||
@Autowired
|
||||
WmsInventoryBatchService wmsInventoryBatchService;
|
||||
|
||||
|
||||
@ApiOperation("分页列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventoryBatchVo>> listPage(@RequestBody PagerQuery<WmsInventoryBatchQuery> pq) {
|
||||
return new ResultBean(wmsInventoryBatchService.listPageVo(pq));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("保存修改")
|
||||
@PostMapping("/saveOrUpdate")
|
||||
public void saveOrUpdate(@RequestBody WmsInventoryBatchDto dto) {
|
||||
wmsInventoryBatchService.saveOrUpdateDto(dto);
|
||||
}
|
||||
|
||||
@ApiOperation("初始化")
|
||||
@GetMapping("/initialization/{sid}")
|
||||
public ResultBean<WmsInventoryBatchDetailsVo> initialization(@PathVariable("sid") String sid) {
|
||||
return new ResultBean<>(wmsInventoryBatchService.fetchDetailsVoBySid(sid));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryBatchService.delBySids(sids);
|
||||
return rb.success();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetailFeignFallback.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailRest <br/>
|
||||
* Description: 库存盘点-明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "库存盘点-明细")
|
||||
@RestController
|
||||
@RequestMapping("wmsinventorycheckbilldetail")
|
||||
public class WmsInventoryCheckbillDetailRest {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryCheckbillDetailService wmsInventoryCheckbillDetailService;
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventoryCheckbillDetailVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillDetailQuery> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventoryCheckbillDetailVo> pv = wmsInventoryCheckbillDetailService.listPageVo(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventoryCheckbillDetailDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryCheckbillDetailService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryCheckbillDetailService.delBySids(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventoryCheckbillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryCheckbillDetailDetailsVo vo = wmsInventoryCheckbillDetailService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbill.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillFeignFallback.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorycheckbill.WmsInventoryCheckbillRest <br/>
|
||||
* Description: 库存盘点. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "库存盘点")
|
||||
@RestController
|
||||
@RequestMapping("v1/wmsinventorycheckbill")
|
||||
public class WmsInventoryCheckbillRest {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryCheckbillService wmsInventoryCheckbillService;
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventoryCheckbillVo>> listPage(@RequestBody PagerQuery<WmsInventoryCheckbillQuery> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventoryCheckbillVo> pv = wmsInventoryCheckbillService.listPageVo(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventoryCheckbillDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryCheckbillService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryCheckbillService.delBySids(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventoryCheckbillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryCheckbillDetailsVo vo = wmsInventoryCheckbillService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
@ApiOperation("盘点")
|
||||
@PostMapping("/inven")
|
||||
public ResultBean inven(@RequestBody WmsInventoryCheckbillDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventoryCheckbillService.inven(dto);
|
||||
return rb.success();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.base.utils.ExportExcelUtils;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorysettlebilldetail.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailFeignFallback.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailRest <br/>
|
||||
* Description: 库存结算明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "库存结算明细")
|
||||
@RestController
|
||||
@RequestMapping("/apiadmin/inventory/wmsinventorysettlebilldetail")
|
||||
public class WmsInventorySettlebillDetailRest{
|
||||
|
||||
@Autowired
|
||||
private WmsInventorySettlebillDetailService wmsInventorySettlebillDetailService;
|
||||
@Autowired
|
||||
HttpServletResponse response;
|
||||
|
||||
@PostMapping("/exportExcel")
|
||||
@ApiOperation(value = "导出")
|
||||
public void exportExcel(@RequestBody WmsInventorySettlebillDetailQuery query) {
|
||||
//得到所有要导出的数据
|
||||
List<WmsInventorySettlebillExportVo> exportVoList = wmsInventorySettlebillDetailService.listExcel(query);
|
||||
//定义导出的excel名字
|
||||
String excelName = "结转库存列表";
|
||||
String fileNameURL = "";
|
||||
try {
|
||||
fileNameURL = URLEncoder.encode(excelName, "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
ExportExcelUtils.export(fileNameURL, exportVoList, WmsInventorySettlebillExportVo.class, response);
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventorySettlebillDetailVo>> listPage(@RequestBody PagerQuery<WmsInventorySettlebillDetailQuery> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventorySettlebillDetailVo> pv = wmsInventorySettlebillDetailService.listPageVo(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventorySettlebillDetailDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventorySettlebillDetailService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@PostMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventorySettlebillDetailService.delBySids(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventorySettlebillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventorySettlebillDetailDetailsVo vo = wmsInventorySettlebillDetailService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorysettlebill.*;
|
||||
import com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillFeignFallback.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebill.WmsInventorySettlebillRest <br/>
|
||||
* Description: 库存结算单. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Api(tags = "库存结算单")
|
||||
@RestController
|
||||
@RequestMapping("/apiadmin/inventory/wmsinventorysettlebill")
|
||||
public class WmsInventorySettlebillRest {
|
||||
|
||||
@Autowired
|
||||
private WmsInventorySettlebillService wmsInventorySettlebillService;
|
||||
@Autowired
|
||||
private WmsInventorySettlebillDetailService wmsInventorySettlebillDetailService;
|
||||
|
||||
@ApiOperation("库存结转")
|
||||
@PostMapping("/saveSettlebill")
|
||||
public ResultBean saveSettlebill(@RequestBody WmsInventorySettlebillDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventorySettlebillService.saveSettlebill(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("结转记录查询")
|
||||
@PostMapping("/carryForwardList")
|
||||
public ResultBean<PagerVo<WmsInventorySettleRecordVo>> carryForwardList(@RequestBody PagerQuery<WmsInventorySettleRecordQuery> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventorySettleRecordVo> pv = wmsInventorySettlebillService.carryForwardList(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsInventorySettlebillVo>> listPage(@RequestBody PagerQuery<WmsInventorySettlebillQuery> pq){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
PagerVo<WmsInventorySettlebillVo> pv = wmsInventorySettlebillService.listPageVo(pq);
|
||||
return rb.success().setData(pv);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsInventorySettlebillDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventorySettlebillService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsInventorySettlebillService.delBySids(sids);
|
||||
for (String sid : sids) {
|
||||
wmsInventorySettlebillDetailService.delByMainSid(sid);
|
||||
}
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsInventorySettlebillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventorySettlebillDetailsVo vo = wmsInventorySettlebillService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.yxt.warehouse.apiadmin;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsreportlose.WmsReportLoseDto;
|
||||
import com.yxt.warehouse.biz.wmsreportlose.WmsReportLoseQuery;
|
||||
import com.yxt.warehouse.biz.wmsreportlose.WmsReportLoseService;
|
||||
import com.yxt.warehouse.biz.wmsreportlose.WmsReportLoseVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/6/5 16:48
|
||||
*/
|
||||
@Api(tags = "库存结算单")
|
||||
@RestController
|
||||
@RequestMapping("/apiadmin/inventory/wmsreportlose")
|
||||
public class WmsReportLoseRest {
|
||||
@Autowired
|
||||
private WmsReportLoseService wmsReportLoseService;
|
||||
|
||||
@ApiOperation("根据条件分页查询数据的列表")
|
||||
@PostMapping("/listPage")
|
||||
public ResultBean<PagerVo<WmsReportLoseVo>> listPage(@RequestBody PagerQuery<WmsReportLoseQuery> pq){
|
||||
return wmsReportLoseService.listPage(pq);
|
||||
}
|
||||
|
||||
@ApiOperation("新增或修改")
|
||||
@PostMapping("/save")
|
||||
public ResultBean save(@RequestBody WmsReportLoseDto dto){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsReportLoseService.saveOrUpdateDto(dto);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据sid批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
public ResultBean delBySids(@RequestBody String[] sids){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
wmsReportLoseService.delAll(sids);
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
@ApiOperation("根据SID获取一条记录")
|
||||
@GetMapping("/fetchDetailsBySid/{sid}")
|
||||
public ResultBean<WmsReportLoseVo> fetchDetailsBySid(@PathVariable("sid") String sid){
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsReportLoseVo vo = wmsReportLoseService.fetchDetailsVoBySid(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,6 @@ import com.yxt.warehouse.biz.warehousereceiptbilldetail.WarehouseReceiptBillDeta
|
||||
import com.yxt.warehouse.biz.warehousereceiptbilldetailbatch.WarehouseReceiptBillDetailBatch;
|
||||
import com.yxt.warehouse.biz.warehousereceiptbilldetailbatch.WarehouseReceiptBillDetailBatchService;
|
||||
import com.yxt.warehouse.biz.warehouseshelfbilldetail.*;
|
||||
import com.yxt.warehouse.feign.goods.basegoodssku.BaseGoodsSkuDetailsVo;
|
||||
import com.yxt.warehouse.feign.goods.basegoodssku.BaseGoodsSkuFeign;
|
||||
import com.yxt.warehouse.utils.Rule;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -48,8 +46,6 @@ public class WarehouseShelfBillService extends MybatisBaseService<WarehouseShelf
|
||||
|
||||
@Autowired
|
||||
private WarehouseInventoryService wmsInventoryService;
|
||||
@Resource
|
||||
private BaseGoodsSkuFeign baseGoodsSkuFeign;
|
||||
|
||||
@Autowired
|
||||
private WarehouseInventoryRecordService wmsInventoryRecordService;
|
||||
@@ -125,7 +121,7 @@ public class WarehouseShelfBillService extends MybatisBaseService<WarehouseShelf
|
||||
WarehouseInventorySaveDto dto = new WarehouseInventorySaveDto();
|
||||
dto.setCreateBySid(wmsShelfBill.getCreateBySid());
|
||||
dto.setBatchNumber(s.getBatchNumber());
|
||||
dto.setGoodsID(getGoodsId(s.getGoodsSkuSid()));
|
||||
// dto.setGoodsID(getGoodsId(s.getGoodsSkuSid()));
|
||||
dto.setGoodSpuSid(s.getGoodSpuSid());
|
||||
dto.setGoodsSpuName(s.getGoodsSpuName());
|
||||
dto.setGoodsSkuSid(s.getGoodsSkuSid());
|
||||
@@ -174,23 +170,23 @@ public class WarehouseShelfBillService extends MybatisBaseService<WarehouseShelf
|
||||
* @param goodsSkuSid
|
||||
* @return
|
||||
*/
|
||||
private String getGoodsId(String goodsSkuSid) {
|
||||
String goodsId = "";
|
||||
ResultBean<BaseGoodsSkuDetailsVo> resultBean = baseGoodsSkuFeign.getDetails(goodsSkuSid);
|
||||
if (resultBean.getSuccess()) {
|
||||
BaseGoodsSkuDetailsVo baseGoodsSkuDetailsVo = resultBean.getData();
|
||||
goodsId = baseGoodsSkuDetailsVo.getGoodsCode();
|
||||
String date = DateUtil.format(DateUtil.date(), "yyyyMM");
|
||||
goodsId = goodsId + date;
|
||||
String i = baseMapper.selectNum(goodsId);
|
||||
if (StringUtils.isNotBlank(i)) {
|
||||
goodsId = Rule.getBillNo(goodsId, Integer.valueOf(i).intValue());
|
||||
} else {
|
||||
goodsId = Rule.getBillNo(goodsId, 0);
|
||||
}
|
||||
}
|
||||
return goodsId;
|
||||
}
|
||||
// private String getGoodsId(String goodsSkuSid) {
|
||||
// String goodsId = "";
|
||||
// ResultBean<BaseGoodsSkuDetailsVo> resultBean = baseGoodsSkuFeign.getDetails(goodsSkuSid);
|
||||
// if (resultBean.getSuccess()) {
|
||||
// BaseGoodsSkuDetailsVo baseGoodsSkuDetailsVo = resultBean.getData();
|
||||
// goodsId = baseGoodsSkuDetailsVo.getGoodsCode();
|
||||
// String date = DateUtil.format(DateUtil.date(), "yyyyMM");
|
||||
// goodsId = goodsId + date;
|
||||
// String i = baseMapper.selectNum(goodsId);
|
||||
// if (StringUtils.isNotBlank(i)) {
|
||||
// goodsId = Rule.getBillNo(goodsId, Integer.valueOf(i).intValue());
|
||||
// } else {
|
||||
// goodsId = Rule.getBillNo(goodsId, 0);
|
||||
// }
|
||||
// }
|
||||
// return goodsId;
|
||||
// }
|
||||
|
||||
public ResultBean delAllBySids(String[] sids) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/28 8:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBill extends BaseEntity {
|
||||
|
||||
private String billNo;//单据编号
|
||||
private String createDate;//制单日期
|
||||
private String createUserSid;//制单人sid
|
||||
private String createByName;//制单人姓名
|
||||
private String outOrgSid;//调出分公司sid
|
||||
private String inOrgSid;//调入分公司sid
|
||||
private String count;//调拨数量
|
||||
private String amount;//调拨金额
|
||||
private String confirmSid;//确认人sid
|
||||
private String confirmName;//确认人姓名
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date finishTime;//完成时间
|
||||
private String useOrgSid;//使用组织sid
|
||||
private String createOrgSid;//创建组织sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailDetailsVoNew;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(调拨单) <br/>
|
||||
* File: WmsInventoryAllocatebillVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventoryallocatebill.WmsInventoryAllocatebillVo <br/>
|
||||
* Description: (调拨单)-调出方操作 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-25 16:04:08 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "(调拨单)-调出方操作 视图数据详情", description = "(调拨单)-调出方操作 视图数据详情")
|
||||
public class WmsInventoryAllocateBillDetailsVoNew implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createBySid;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("调出分公司sid")
|
||||
private String outOrgSid;
|
||||
@ApiModelProperty("调入分公司sid")
|
||||
private String inOrgSid;
|
||||
@ApiModelProperty("调拨数量")
|
||||
private BigDecimal count;
|
||||
@ApiModelProperty("调拨金额")
|
||||
private BigDecimal amount;
|
||||
@ApiModelProperty("确认人sid")
|
||||
private String confirmSid;
|
||||
@ApiModelProperty("确认人姓名")
|
||||
private String confirmName;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("完成时间")
|
||||
private Date finishTime;
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid;
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid;
|
||||
@ApiModelProperty("调拨单商品明细")
|
||||
private List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocateBillDetailNewList;
|
||||
|
||||
/*
|
||||
* 页面展示
|
||||
* */
|
||||
@ApiModelProperty("调出分公司名称")
|
||||
private String outOrgName;
|
||||
@ApiModelProperty("调入分公司名称")
|
||||
private String inOrgName;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDto implements Dto {
|
||||
private String id;
|
||||
private String sid;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成)
|
||||
private String goodsSid;//商品sid
|
||||
private String billSid;//入库单sid
|
||||
private String billDetailSid;//入库单明细sid
|
||||
private String price1;//销售价格1
|
||||
private String price2;//销售价格2
|
||||
private String price3;//销售价格3
|
||||
private String price4;//销售价格4
|
||||
private String price5;//销售价格5
|
||||
private String unit;//计量单位
|
||||
private String count;//库存数量
|
||||
private String minimumPrice;//销售底价
|
||||
private String freePrice;//三包价格
|
||||
private String firstMaintainPrice;//首保价格
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseArea;//货位
|
||||
private String isShowDiscount;//是否显示折扣标志
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date firstInDate;//首次入库日期-计算库龄的依据
|
||||
private String lockCount;//锁定数量,计算字段,出库申请通过,但未实际出库
|
||||
private String sortNo;//排序
|
||||
private String useOrgSid;//使用组织sid
|
||||
private String createOrgSid;//创建组织sid
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailDtoNew;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDtoNew implements Dto {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createBySid;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("调出分公司sid")
|
||||
private String outOrgSid;
|
||||
@ApiModelProperty("调入分公司sid")
|
||||
private String inOrgSid;
|
||||
@ApiModelProperty("调拨数量")
|
||||
private BigDecimal count;
|
||||
@ApiModelProperty("调拨金额")
|
||||
private BigDecimal amount;
|
||||
@ApiModelProperty("确认人sid")
|
||||
private String confirmSid;
|
||||
@ApiModelProperty("确认人姓名")
|
||||
private String confirmName;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("完成时间")
|
||||
private Date finishTime;
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid;
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid;
|
||||
@ApiModelProperty("调拨单商品明细")
|
||||
private List<WmsInventoryAllocateBillDetailDtoNew> wmsInventoryAllocateBillDetailNewList;
|
||||
|
||||
/*
|
||||
* 页面展示
|
||||
* */
|
||||
@ApiModelProperty("调出分公司名称")
|
||||
private String outOrgName;
|
||||
@ApiModelProperty("调入分公司名称")
|
||||
private String inOrgName;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventoryAllocateBillMapper extends BaseMapper<WmsInventoryAllocateBill> {
|
||||
IPage<WmsInventoryAllocateBillVo> listPage(IPage<WmsInventoryAllocateBill> page, @Param(Constants.WRAPPER) QueryWrapper<WmsInventoryAllocateBill> qw);
|
||||
WmsInventoryAllocateBillVo initialization (@Param("sid") String sid);
|
||||
|
||||
IPage<WmsInventoryAllocateBillVoNew> selectPageVo(IPage<WmsInventoryAllocateBill> page, @Param(Constants.WRAPPER) QueryWrapper<WmsInventoryAllocateBill> qw);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBillMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
|
||||
<select id="listPage" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBillVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
<select id="initialization" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBillVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
where a.sid =#{sid}
|
||||
</select>
|
||||
|
||||
<select id="selectPageVo"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBillVoNew">
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillQuery implements Query {
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillQueryNew implements Query {
|
||||
|
||||
@ApiModelProperty("创建开始日期")
|
||||
private String createStartTime;
|
||||
@ApiModelProperty("创建结束日期")
|
||||
private String createEndTime;
|
||||
@ApiModelProperty("门店")
|
||||
private String createOrgSid;
|
||||
@ApiModelProperty("状态")
|
||||
private String state;
|
||||
@ApiModelProperty("单据范围")
|
||||
private String billFW;
|
||||
@ApiModelProperty("其他查询条件")
|
||||
private String otherQuery;
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
import com.yxt.common.base.utils.StringUtils;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailDtoNew;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailService;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailDetailsVoNew;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Service
|
||||
public class WmsInventoryAllocateBillService extends MybatisBaseService<WmsInventoryAllocateBillMapper, WmsInventoryAllocateBill> {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryAllocateBillDetailService wmsInventoryAllocateBillDetailService;
|
||||
|
||||
public ResultBean<PagerVo<WmsInventoryAllocateBillVo>> listPage(PagerQuery<WmsInventoryAllocateBillQuery> pq) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventoryAllocateBill> qw = new QueryWrapper<>();
|
||||
if (StringUtils.isNotBlank(query.getName())) {
|
||||
qw.like("rackName", query.getName());
|
||||
}
|
||||
|
||||
IPage<WmsInventoryAllocateBill> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventoryAllocateBillVo> pagging = baseMapper.listPage(page, qw);
|
||||
PagerVo<WmsInventoryAllocateBillVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
List<WmsInventoryAllocateBillVo> records = pagging.getRecords();
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
|
||||
|
||||
public PagerVo<WmsInventoryAllocateBillVoNew> listPageVo(PagerQuery<WmsInventoryAllocateBillQueryNew> pq) {
|
||||
WmsInventoryAllocateBillQueryNew query = pq.getParams();
|
||||
QueryWrapper<WmsInventoryAllocateBill> qw = new QueryWrapper<>();
|
||||
IPage<WmsInventoryAllocateBill> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventoryAllocateBillVoNew> pagging = baseMapper.selectPageVo(page, qw);
|
||||
PagerVo<WmsInventoryAllocateBillVoNew> p = PagerUtil.pageToVo(pagging, null);
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
// public ResultBean<WmsInventoryAllocateBill> warehousing(WmsInventoryAllocateBillDto dto) {
|
||||
// ResultBean rb = ResultBean.fireFail();
|
||||
// WmsInventoryAllocateBill wmsInventory=baseMapper.selectOne(new QueryWrapper<WmsInventoryAllocateBill>().eq("goodsSid",dto.getGoodsSid()).eq("warehouseSid",dto.getWarehouseSid()));
|
||||
// if(null==wmsInventory){
|
||||
// WmsInventoryAllocateBill wms=new WmsInventoryAllocateBill();
|
||||
// BeanUtil.copyProperties(dto,wms,"sid","id");
|
||||
// wms.setFirstInDate(new Date());
|
||||
// baseMapper.insert(wms);
|
||||
// return rb.success().setData(wms);
|
||||
// }else{
|
||||
// wmsInventory.setCount(String.valueOf(Double.valueOf(dto.getCount())+Double.valueOf(wmsInventory.getCount())));
|
||||
// baseMapper.updateById(wmsInventory);
|
||||
// }
|
||||
// return rb.success().setData(wmsInventory);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 出库
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public ResultBean<WmsInventoryAllocateBill> outWarehousing(WmsInventoryAllocateBillDto dto) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBill wmsInventory = baseMapper.selectOne(new QueryWrapper<WmsInventoryAllocateBill>().eq("goodsSid", dto.getGoodsSid()).eq("warehouseSid", dto.getWarehouseSid()));
|
||||
double exisInventory = Double.valueOf(wmsInventory.getCount());
|
||||
double out = Double.valueOf(dto.getCount());
|
||||
if (null == wmsInventory) {
|
||||
return rb.setMsg("此仓库没有相应的商品库存");
|
||||
}
|
||||
if (exisInventory < -out) {
|
||||
return rb.setMsg("库存不足");
|
||||
}
|
||||
wmsInventory.setCount(String.valueOf(exisInventory + out));
|
||||
baseMapper.updateById(wmsInventory);
|
||||
return rb.success().setData(wmsInventory);
|
||||
}
|
||||
|
||||
public ResultBean<String> saveOrUpdate(WmsInventoryAllocateBillDto dto) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
String sid = "";
|
||||
if (StringUtils.isNotBlank(dto.getSid())) {
|
||||
sid = dto.getSid();
|
||||
WmsInventoryAllocateBill wmsWarehouseRack = fetchBySid(dto.getSid());
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
} else {
|
||||
WmsInventoryAllocateBill wmsWarehouseRack = new WmsInventoryAllocateBill();
|
||||
sid = wmsWarehouseRack.getSid();
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
wmsWarehouseRack.setCreateTime(new DateTime());
|
||||
baseMapper.insert(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public ResultBean<WmsInventoryAllocateBillVo> initialization(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillVo vo = baseMapper.initialization(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
|
||||
public ResultBean delete(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBill wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
baseMapper.deleteById(wmsWarehouseRack.getId());
|
||||
}
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
public ResultBean updateIsEnable(String sid, String isEnable) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBill wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
wmsWarehouseRack.setIsEnable(Integer.parseInt(isEnable));
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public WmsInventoryAllocateBillDetailsVoNew fetchDetailsVoBySid(String sid) {
|
||||
WmsInventoryAllocateBill entity = fetchBySid(sid);
|
||||
WmsInventoryAllocateBillDetailsVoNew vo = new WmsInventoryAllocateBillDetailsVoNew();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
List<WmsInventoryAllocatebillDetailDetailsVoNew> wmsInventoryAllocatebillDetailDetailsVoNews = wmsInventoryAllocateBillDetailService.selByMainSid(sid);
|
||||
vo.setWmsInventoryAllocateBillDetailNewList(wmsInventoryAllocatebillDetailDetailsVoNews);
|
||||
return vo;
|
||||
}
|
||||
|
||||
public void delAll(String[] sids) {
|
||||
delBySids(sids);
|
||||
for (String sid : sids) {
|
||||
wmsInventoryAllocateBillDetailService.delByMainSid(sid);
|
||||
}
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsInventoryAllocateBillDtoNew dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
List<WmsInventoryAllocateBillDetailDtoNew> wmsInventoryAllocateBillDetailNewList = dto.getWmsInventoryAllocateBillDetailNewList();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
String sid = this.insertByDto(dto);
|
||||
for (WmsInventoryAllocateBillDetailDtoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocateBillDetailNewList) {
|
||||
wmsInventoryAllocateBillDetailDtoNew.setBillSid(sid);
|
||||
wmsInventoryAllocateBillDetailService.saveOrUpdateDto(wmsInventoryAllocateBillDetailDtoNew);
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
wmsInventoryAllocateBillDetailService.delByMainSid(dtoSid);
|
||||
for (WmsInventoryAllocateBillDetailDtoNew wmsInventoryAllocateBillDetailDtoNew : wmsInventoryAllocateBillDetailNewList) {
|
||||
wmsInventoryAllocateBillDetailDtoNew.setBillSid(dtoSid);
|
||||
wmsInventoryAllocateBillDetailService.saveOrUpdateDto(wmsInventoryAllocateBillDetailDtoNew);
|
||||
}
|
||||
}
|
||||
|
||||
public String insertByDto(WmsInventoryAllocateBillDtoNew dto) {
|
||||
WmsInventoryAllocateBill entity = new WmsInventoryAllocateBill();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
return entity.getSid();
|
||||
}
|
||||
|
||||
public void updateByDto(WmsInventoryAllocateBillDtoNew dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public void allocation(WmsInventoryAllocateBillDtoNew dto) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillVo implements Vo {
|
||||
private String id;
|
||||
private String sid;
|
||||
private String lockVersion;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date modifyTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String state;
|
||||
private String isDelete;
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成)
|
||||
private String goodsSid;//商品sid
|
||||
private String billSid;//入库单sid
|
||||
private String billDetailSid;//入库单明细sid
|
||||
private String price1;//销售价格1
|
||||
private String price2;//销售价格2
|
||||
private String price3;//销售价格3
|
||||
private String price4;//销售价格4
|
||||
private String price5;//销售价格5
|
||||
private String unit;//计量单位
|
||||
private String count;//库存数量
|
||||
private String minimumPrice;//销售底价
|
||||
private String freePrice;//三包价格
|
||||
private String firstMaintainPrice;//首保价格
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseArea;//货位
|
||||
private String isShowDiscount;//是否显示折扣标志
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date firstInDate;//首次入库日期-计算库龄的依据
|
||||
private String lockCount;//锁定数量,计算字段,出库申请通过,但未实际出库
|
||||
private String sortNo;//排序
|
||||
private String useOrgSid;//使用组织sid
|
||||
private String createOrgSid;//创建组织sid
|
||||
private String goodsName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebill;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(调拨单) <br/>
|
||||
* File: WmsInventoryAllocatebillVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventoryallocatebill.WmsInventoryAllocatebillVo <br/>
|
||||
* Description: (调拨单)-调出方操作 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-25 16:04:08 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "(调拨单)-调出方操作 视图数据对象", description = "(调拨单)-调出方操作 视图数据对象")
|
||||
public class WmsInventoryAllocateBillVoNew implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createDate;
|
||||
@ApiModelProperty("完成标志")
|
||||
private String state;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("完成时间")
|
||||
private Date finishTime;
|
||||
@ApiModelProperty("调出门店")
|
||||
private String outOrg;
|
||||
@ApiModelProperty("调入门店")
|
||||
private String inOrg;
|
||||
@ApiModelProperty("调拨数量")
|
||||
private BigDecimal count;
|
||||
@ApiModelProperty("调拨金额")
|
||||
private BigDecimal amount;
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("门店")
|
||||
private String createOrgName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/28 8:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDetail extends BaseEntity {
|
||||
// private String id;
|
||||
// private String sid= UUID.randomUUID().toString();
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
// private Date createTime;
|
||||
// private String remarks;
|
||||
// private String isEnable;
|
||||
private String billSid;//商品ID(唯一编码,入库时生成)
|
||||
private String inventorySid;//商品sid
|
||||
private String goodsSid;//入库单sid
|
||||
private String goodsName;//入库单明细sid
|
||||
private String goodsCode;//销售价格1
|
||||
private String specification;//销售价格2
|
||||
private String goodsModel;//销售价格3
|
||||
private String unit;//销售价格4
|
||||
private String outWarehouseSid;//销售价格5
|
||||
private String outWarehouseName;//计量单位
|
||||
private String warehouseAreasid;//库存数量
|
||||
private String warehouseArea;//销售底价
|
||||
private String taxPrice;//三包价格
|
||||
private String stockCount;//首保价格
|
||||
private String inWarehouseSid;//仓库sid
|
||||
private String inWarehouseName;//仓库名称
|
||||
private String count;//货位
|
||||
private String amount;//是否显示折扣标志
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDetailDto implements Dto {
|
||||
private String id;
|
||||
private String sid;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成)
|
||||
private String goodsSid;//商品sid
|
||||
private String billSid;//入库单sid
|
||||
private String billDetailSid;//入库单明细sid
|
||||
private String price1;//销售价格1
|
||||
private String price2;//销售价格2
|
||||
private String price3;//销售价格3
|
||||
private String price4;//销售价格4
|
||||
private String price5;//销售价格5
|
||||
private String unit;//计量单位
|
||||
private String count;//库存数量
|
||||
private String minimumPrice;//销售底价
|
||||
private String freePrice;//三包价格
|
||||
private String firstMaintainPrice;//首保价格
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseArea;//货位
|
||||
private String isShowDiscount;//是否显示折扣标志
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date firstInDate;//首次入库日期-计算库龄的依据
|
||||
private String lockCount;//锁定数量,计算字段,出库申请通过,但未实际出库
|
||||
private String sortNo;//排序
|
||||
private String useOrgSid;//使用组织sid
|
||||
private String createOrgSid;//创建组织sid
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDetailDtoNew implements Dto {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("盘点单sid")
|
||||
private String billSid;
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid;
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid;
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
@ApiModelProperty("库位sid")
|
||||
private String warehouseRackSid;
|
||||
@ApiModelProperty("库位编码")
|
||||
private String warehouseRackCode;
|
||||
@ApiModelProperty("含税价")
|
||||
private BigDecimal taxPrice;
|
||||
@ApiModelProperty("库存数量")
|
||||
private BigDecimal stockCount;
|
||||
@ApiModelProperty("调入仓库sid")
|
||||
private String inWarehouseSid;
|
||||
@ApiModelProperty("调入仓库名称")
|
||||
private String inWarehouseName;
|
||||
@ApiModelProperty("调入库位sid")
|
||||
private String inWarehouseRackSid;
|
||||
@ApiModelProperty("调入库位编码")
|
||||
private String inWarehouseRackCode;
|
||||
@ApiModelProperty("调拨数量")
|
||||
private BigDecimal count;
|
||||
@ApiModelProperty("调拨金额(调拨数量*含税价)")
|
||||
private BigDecimal amount;
|
||||
|
||||
/*
|
||||
* 页面展示
|
||||
* */
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsSpuName;
|
||||
@ApiModelProperty("零件号")
|
||||
private String goodsSkuCode;
|
||||
@ApiModelProperty("规格")
|
||||
private String goodsSkuOwnSpec;
|
||||
@ApiModelProperty("车型")
|
||||
private String carModel;
|
||||
@ApiModelProperty("商品单位")
|
||||
private String unit;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventoryAllocateBillDetailMapper extends BaseMapper<WmsInventoryAllocateBillDetail> {
|
||||
IPage<WmsInventoryAllocateBillDetailVo> listPage(IPage<WmsInventoryAllocateBillDetail> page, @Param(Constants.WRAPPER) QueryWrapper<WmsInventoryAllocateBillDetail> qw);
|
||||
WmsInventoryAllocateBillDetailVo initialization (@Param("sid") String sid);
|
||||
|
||||
@Delete("delete from wms_inventory_allocatebill_detail where billSid = #{billSid}")
|
||||
void delByMainSid(String billSid);
|
||||
|
||||
List<WmsInventoryAllocatebillDetailDetailsVoNew> selByMainSid(String billSid);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
|
||||
<select id="listPage" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill_detail a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
<select id="initialization" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill_detail a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
where a.sid =#{sid}
|
||||
</select>
|
||||
|
||||
<select id="selByMainSid"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailDetailsVoNew">
|
||||
SELECT
|
||||
wiad.*,
|
||||
wi.goodsSpuName,
|
||||
wi.goodsSkuCode,
|
||||
wi.goodsSkuOwnSpec,
|
||||
wi.unit
|
||||
FROM
|
||||
wms_inventory_allocatebill_detail wiad
|
||||
LEFT JOIN wms_inventory wi
|
||||
ON wiad.inventorySid = wi.`sid`
|
||||
WHERE billSid = #{billSid}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDetailQuery implements Query {
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
import com.yxt.common.base.utils.StringUtils;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBill;
|
||||
import com.yxt.warehouse.biz.wmsinventoryallocatebill.WmsInventoryAllocateBillDetailsVoNew;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Service
|
||||
public class WmsInventoryAllocateBillDetailService extends MybatisBaseService<WmsInventoryAllocateBillDetailMapper, WmsInventoryAllocateBillDetail> {
|
||||
|
||||
|
||||
public ResultBean<PagerVo<WmsInventoryAllocateBillDetailVo>> listPage(PagerQuery<WmsInventoryAllocateBillDetailQuery> pq) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetailQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventoryAllocateBillDetail> qw = new QueryWrapper<>();
|
||||
if (StringUtils.isNotBlank(query.getName())) {
|
||||
qw.like("rackName", query.getName());
|
||||
}
|
||||
|
||||
IPage<WmsInventoryAllocateBillDetail> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventoryAllocateBillDetailVo> pagging = baseMapper.listPage(page, qw);
|
||||
PagerVo<WmsInventoryAllocateBillDetailVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
List<WmsInventoryAllocateBillDetailVo> records = pagging.getRecords();
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 出库
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public ResultBean<WmsInventoryAllocateBillDetail> outWarehousing(WmsInventoryAllocateBillDetailDto dto) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetail wmsInventory = baseMapper.selectOne(new QueryWrapper<WmsInventoryAllocateBillDetail>().eq("goodsSid", dto.getGoodsSid()).eq("warehouseSid", dto.getWarehouseSid()));
|
||||
double exisInventory = Double.valueOf(wmsInventory.getCount());
|
||||
double out = Double.valueOf(dto.getCount());
|
||||
if (null == wmsInventory) {
|
||||
return rb.setMsg("此仓库没有相应的商品库存");
|
||||
}
|
||||
if (exisInventory < -out) {
|
||||
return rb.setMsg("库存不足");
|
||||
}
|
||||
wmsInventory.setCount(String.valueOf(exisInventory + out));
|
||||
baseMapper.updateById(wmsInventory);
|
||||
return rb.success().setData(wmsInventory);
|
||||
}
|
||||
|
||||
public ResultBean<String> saveOrUpdate(WmsInventoryAllocateBillDetailDto dto) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
String sid = "";
|
||||
if (StringUtils.isNotBlank(dto.getSid())) {
|
||||
sid = dto.getSid();
|
||||
WmsInventoryAllocateBillDetail wmsWarehouseRack = fetchBySid(dto.getSid());
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
} else {
|
||||
WmsInventoryAllocateBillDetail wmsWarehouseRack = new WmsInventoryAllocateBillDetail();
|
||||
sid = wmsWarehouseRack.getSid();
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
wmsWarehouseRack.setCreateTime(new DateTime());
|
||||
baseMapper.insert(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public ResultBean<WmsInventoryAllocateBillDetailVo> initialization(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetailVo vo = baseMapper.initialization(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
public void delAll(String[] sids) {
|
||||
delBySids(sids);
|
||||
}
|
||||
|
||||
public ResultBean delete(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetail wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
baseMapper.deleteById(wmsWarehouseRack.getId());
|
||||
}
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
public ResultBean updateIsEnable(String sid, String isEnable) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsInventoryAllocateBillDetail wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
wmsWarehouseRack.setIsEnable(Integer.parseInt(isEnable));
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public void delByMainSid(String billSid) {
|
||||
baseMapper.delByMainSid(billSid);
|
||||
}
|
||||
|
||||
public List<WmsInventoryAllocatebillDetailDetailsVoNew> selByMainSid(String billSid) {
|
||||
return baseMapper.selByMainSid(billSid);
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsInventoryAllocateBillDetailDtoNew dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
this.insertByDto(dto);
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
}
|
||||
|
||||
public void insertByDto(WmsInventoryAllocateBillDetailDtoNew dto) {
|
||||
WmsInventoryAllocateBillDetail entity = new WmsInventoryAllocateBillDetail();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
}
|
||||
|
||||
public void updateByDto(WmsInventoryAllocateBillDetailDtoNew dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
public WmsInventoryAllocateBillDetailsVoNew fetchDetailsVoBySid(String sid) {
|
||||
WmsInventoryAllocateBillDetail entity = fetchBySid(sid);
|
||||
WmsInventoryAllocateBillDetailsVoNew vo = new WmsInventoryAllocateBillDetailsVoNew();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventoryAllocateBillDetailVo implements Vo {
|
||||
private String id;
|
||||
private String sid;
|
||||
private String lockVersion;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date modifyTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String state;
|
||||
private String isDelete;
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成)
|
||||
private String goodsSid;//商品sid
|
||||
private String billSid;//入库单sid
|
||||
private String billDetailSid;//入库单明细sid
|
||||
private String price1;//销售价格1
|
||||
private String price2;//销售价格2
|
||||
private String price3;//销售价格3
|
||||
private String price4;//销售价格4
|
||||
private String price5;//销售价格5
|
||||
private String unit;//计量单位
|
||||
private String count;//库存数量
|
||||
private String minimumPrice;//销售底价
|
||||
private String freePrice;//三包价格
|
||||
private String firstMaintainPrice;//首保价格
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseArea;//货位
|
||||
private String isShowDiscount;//是否显示折扣标志
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date firstInDate;//首次入库日期-计算库龄的依据
|
||||
private String lockCount;//锁定数量,计算字段,出库申请通过,但未实际出库
|
||||
private String sortNo;//排序
|
||||
private String useOrgSid;//使用组织sid
|
||||
private String createOrgSid;//创建组织sid
|
||||
private String goodsName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventoryallocatebilldetail;
|
||||
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(调拨单) <br/>
|
||||
* File: WmsInventoryAllocatebillDetailVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailVo <br/>
|
||||
* Description: (调拨单-明细) 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-25 16:04:08 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "(调拨单-明细) 视图数据详情", description = "(调拨单-明细) 视图数据详情")
|
||||
public class WmsInventoryAllocatebillDetailDetailsVoNew implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("盘点单sid")
|
||||
private String billSid;
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid;
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid;
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
@ApiModelProperty("库位sid")
|
||||
private String warehouseRackSid;
|
||||
@ApiModelProperty("库位编码")
|
||||
private String warehouseRackCode;
|
||||
@ApiModelProperty("含税价")
|
||||
private BigDecimal taxPrice;
|
||||
@ApiModelProperty("库存数量")
|
||||
private BigDecimal stockCount;
|
||||
@ApiModelProperty("调入仓库sid")
|
||||
private String inWarehouseSid;
|
||||
@ApiModelProperty("调入仓库名称")
|
||||
private String inWarehouseName;
|
||||
@ApiModelProperty("调入库位sid")
|
||||
private String inWarehouseRackSid;
|
||||
@ApiModelProperty("调入库位编码")
|
||||
private String inWarehouseRackCode;
|
||||
@ApiModelProperty("调拨数量")
|
||||
private BigDecimal count;
|
||||
@ApiModelProperty("调拨金额(调拨数量*含税价)")
|
||||
private BigDecimal amount;
|
||||
|
||||
/*
|
||||
* 页面展示
|
||||
* */
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsSpuName;
|
||||
@ApiModelProperty("零件号")
|
||||
private String goodsSkuCode;
|
||||
@ApiModelProperty("规格")
|
||||
private String goodsSkuOwnSpec;
|
||||
@ApiModelProperty("车型")
|
||||
private String carModel;
|
||||
@ApiModelProperty("商品单位")
|
||||
private String unit;
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatch.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorybatch.WmsInventoryBatch <br/>
|
||||
* Description: 商品库存-批次属性. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "商品库存-批次属性", description = "商品库存-批次属性")
|
||||
@TableName("wms_inventory_batch")
|
||||
public class WmsInventoryBatch extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)")
|
||||
private String batchNumber; // 批次号(入库日期+生产日期,如240320-240109)
|
||||
@ApiModelProperty("库存sid")
|
||||
private String inventorySid; // 库存sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("收货日期")
|
||||
private Date deliveryDate; // 收货日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDate; // 生产日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("有效期(根据spu中有效天数、生产日期计算)")
|
||||
private Date expirationDate; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
@ApiModelProperty("商品质检状态(良品、残品等)")
|
||||
private Integer qualityState; // 商品质检状态(良品、残品等)
|
||||
@ApiModelProperty("货主sid")
|
||||
private String goodsOwnerSid; // 货主sid
|
||||
@ApiModelProperty("货主名称")
|
||||
private String goodsOwner; // 货主名称
|
||||
@ApiModelProperty("供应商sid")
|
||||
private String supplierSid; // 供应商sid
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName; // 供应商名称
|
||||
@ApiModelProperty("入库单sid")
|
||||
private String billSid; // 入库单sid
|
||||
@ApiModelProperty("入库单号")
|
||||
private String billNo; // 入库单号
|
||||
@ApiModelProperty("入库单明细sid")
|
||||
private String billDetailSid; // 入库单明细sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
|
||||
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.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatchVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorybatch.WmsInventoryBatchVo <br/>
|
||||
* Description: 商品库存-批次属性 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "商品库存-批次属性 视图数据详情", description = "商品库存-批次属性 视图数据详情")
|
||||
public class WmsInventoryBatchDetailsVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)")
|
||||
private String batchNumber; // 批次号(入库日期+生产日期,如240320-240109)
|
||||
@ApiModelProperty("库存sid")
|
||||
private String inventorySid; // 库存sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("收货日期")
|
||||
private Date deliveryDateStart; // 收货日期
|
||||
private Date deliveryDateEnd; // 收货日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDateStart; // 生产日期
|
||||
private Date manufactureDateEnd; // 生产日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("有效期(根据spu中有效天数、生产日期计算)")
|
||||
private Date expirationDateStart; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
private Date expirationDateEnd; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
@ApiModelProperty("商品质检状态(良品、残品等)")
|
||||
private Integer qualityState; // 商品质检状态(良品、残品等)
|
||||
@ApiModelProperty("货主sid")
|
||||
private String goodsOwnerSid; // 货主sid
|
||||
@ApiModelProperty("货主名称")
|
||||
private String goodsOwner; // 货主名称
|
||||
@ApiModelProperty("供应商sid")
|
||||
private String supplierSid; // 供应商sid
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName; // 供应商名称
|
||||
@ApiModelProperty("入库单sid")
|
||||
private String billSid; // 入库单sid
|
||||
@ApiModelProperty("入库单号")
|
||||
private String billNo; // 入库单号
|
||||
@ApiModelProperty("入库单明细sid")
|
||||
private String billDetailSid; // 入库单明细sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatchDto.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorybatch.WmsInventoryBatchDto <br/>
|
||||
* Description: 商品库存-批次属性 数据传输对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "商品库存-批次属性 数据传输对象", description = "商品库存-批次属性 数据传输对象")
|
||||
public class WmsInventoryBatchDto implements Dto {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)")
|
||||
private String batchNumber; // 批次号(入库日期+生产日期,如240320-240109)
|
||||
@ApiModelProperty("库存sid")
|
||||
private String inventorySid; // 库存sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("收货日期")
|
||||
private Date deliveryDateStart; // 收货日期
|
||||
private Date deliveryDateEnd; // 收货日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDateStart; // 生产日期
|
||||
private Date manufactureDateEnd; // 生产日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("有效期(根据spu中有效天数、生产日期计算)")
|
||||
private Date expirationDateStart; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
private Date expirationDateEnd; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
@ApiModelProperty("商品质检状态(良品、残品等)")
|
||||
private Integer qualityState; // 商品质检状态(良品、残品等)
|
||||
@ApiModelProperty("货主sid")
|
||||
private String goodsOwnerSid; // 货主sid
|
||||
@ApiModelProperty("货主名称")
|
||||
private String goodsOwner; // 货主名称
|
||||
@ApiModelProperty("供应商sid")
|
||||
private String supplierSid; // 供应商sid
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName; // 供应商名称
|
||||
@ApiModelProperty("入库单sid")
|
||||
private String billSid; // 入库单sid
|
||||
@ApiModelProperty("入库单号")
|
||||
private String billNo; // 入库单号
|
||||
@ApiModelProperty("入库单明细sid")
|
||||
private String billDetailSid; // 入库单明细sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatchMapper.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorybatch.WmsInventoryBatchMapper <br/>
|
||||
* Description: 商品库存-批次属性. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventoryBatchMapper extends BaseMapper<WmsInventoryBatch> {
|
||||
|
||||
IPage<WmsInventoryBatchVo> selectPageVo(IPage<WmsInventoryBatch> page, @Param(Constants.WRAPPER) Wrapper<WmsInventoryBatch> qw);
|
||||
|
||||
List<WmsInventoryBatchVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WmsInventoryBatch> qw);
|
||||
|
||||
@Select("select * from wms_inventory_batch")
|
||||
List<WmsInventoryBatchVo> selectListVo();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventorybatch.WmsInventoryBatchMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
<select id="selectPageVo" resultType="com.yxt.warehouse.biz.wmsinventorybatch.WmsInventoryBatchVo">
|
||||
SELECT * FROM wms_inventory_batch <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
|
||||
<select id="selectListAllVo" resultType="com.yxt.warehouse.biz.wmsinventorybatch.WmsInventoryBatchVo">
|
||||
SELECT * FROM wms_inventory_batch <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,87 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatchQuery.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorybatch.WmsInventoryBatchQuery <br/>
|
||||
* Description: 商品库存-批次属性 查询条件. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "商品库存-批次属性 查询条件", description = "商品库存-批次属性 查询条件")
|
||||
public class WmsInventoryBatchQuery implements Query {
|
||||
|
||||
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)")
|
||||
private String batchNumber; // 批次号(入库日期+生产日期,如240320-240109)
|
||||
@ApiModelProperty("库存sid")
|
||||
private String inventorySid; // 库存sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("收货日期")
|
||||
private Date deliveryDateStart; // 收货日期
|
||||
private Date deliveryDateEnd; // 收货日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDateStart; // 生产日期
|
||||
private Date manufactureDateEnd; // 生产日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("有效期(根据spu中有效天数、生产日期计算)")
|
||||
private Date expirationDateStart; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
private Date expirationDateEnd; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
@ApiModelProperty("商品质检状态(良品、残品等)")
|
||||
private Integer qualityState; // 商品质检状态(良品、残品等)
|
||||
@ApiModelProperty("货主sid")
|
||||
private String goodsOwnerSid; // 货主sid
|
||||
@ApiModelProperty("货主名称")
|
||||
private String goodsOwner; // 货主名称
|
||||
@ApiModelProperty("供应商sid")
|
||||
private String supplierSid; // 供应商sid
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName; // 供应商名称
|
||||
@ApiModelProperty("入库单sid")
|
||||
private String billSid; // 入库单sid
|
||||
@ApiModelProperty("入库单号")
|
||||
private String billNo; // 入库单号
|
||||
@ApiModelProperty("入库单明细sid")
|
||||
private String billDetailSid; // 入库单明细sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorybatch;
|
||||
|
||||
|
||||
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.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(库存) <br/>
|
||||
* File: WmsInventoryBatchVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorybatch.WmsInventoryBatchVo <br/>
|
||||
* Description: 商品库存-批次属性 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-30 14:05:11 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "商品库存-批次属性 视图数据对象", description = "商品库存-批次属性 视图数据对象")
|
||||
public class WmsInventoryBatchVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("批次号(入库日期+生产日期,如240320-240109)")
|
||||
private String batchNumber; // 批次号(入库日期+生产日期,如240320-240109)
|
||||
@ApiModelProperty("库存sid")
|
||||
private String inventorySid; // 库存sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("收货日期")
|
||||
private Date deliveryDateStart; // 收货日期
|
||||
private Date deliveryDateEnd; // 收货日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDateStart; // 生产日期
|
||||
private Date manufactureDateEnd; // 生产日期
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("有效期(根据spu中有效天数、生产日期计算)")
|
||||
private Date expirationDateStart; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
private Date expirationDateEnd; // 有效期(根据spu中有效天数、生产日期计算)
|
||||
@ApiModelProperty("商品质检状态(良品、残品等)")
|
||||
private Integer qualityState; // 商品质检状态(良品、残品等)
|
||||
@ApiModelProperty("货主sid")
|
||||
private String goodsOwnerSid; // 货主sid
|
||||
@ApiModelProperty("货主名称")
|
||||
private String goodsOwner; // 货主名称
|
||||
@ApiModelProperty("供应商sid")
|
||||
private String supplierSid; // 供应商sid
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName; // 供应商名称
|
||||
@ApiModelProperty("入库单sid")
|
||||
private String billSid; // 入库单sid
|
||||
@ApiModelProperty("入库单号")
|
||||
private String billNo; // 入库单号
|
||||
@ApiModelProperty("入库单明细sid")
|
||||
private String billDetailSid; // 入库单明细sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbill.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbill.WmsInventoryCheckbill <br/>
|
||||
* Description: 库存盘点. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:01 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点", description = "库存盘点")
|
||||
@TableName("wms_inventory_checkbill")
|
||||
public class WmsInventoryCheckbill extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo; // 单据编号
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("盘点类型")
|
||||
private String checkType; // 盘点类型
|
||||
@ApiModelProperty("盘点状态(盘点中1,盘点完成2)")
|
||||
private Integer checkState; // 盘点状态(盘点中1,盘点完成2)
|
||||
@ApiModelProperty("盘盈数量")
|
||||
private BigDecimal profitCount; // 盘盈数量
|
||||
@ApiModelProperty("盘盈金额")
|
||||
private BigDecimal profitAmount; // 盘盈金额
|
||||
@ApiModelProperty("盘亏数量")
|
||||
private BigDecimal lossCount; // 盘亏数量
|
||||
@ApiModelProperty("盈亏金额")
|
||||
private BigDecimal lossAmount; // 盈亏金额
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid; // 使用组织sid
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid; // 创建组织sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDetailsVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbill.WmsInventoryCheckbillVo <br/>
|
||||
* Description: 库存盘点 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点 视图数据详情", description = "库存盘点 视图数据详情")
|
||||
public class WmsInventoryCheckbillDetailsVo implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createBySid;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("盘点类型")
|
||||
private String checkType;
|
||||
@ApiModelProperty("盘点状态(盘点中1,盘点完成2)")
|
||||
private Integer checkState;
|
||||
@ApiModelProperty("盘盈数量")
|
||||
private BigDecimal profitCount;
|
||||
@ApiModelProperty("盘盈金额")
|
||||
private BigDecimal profitAmount;
|
||||
@ApiModelProperty("盘亏数量")
|
||||
private BigDecimal lossCount;
|
||||
@ApiModelProperty("盘亏金额")
|
||||
private BigDecimal lossAmount;
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid;
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid;
|
||||
@ApiModelProperty("盘库明细")
|
||||
private List<WmsInventoryCheckbillDetailDetailsVo> wmsInventoryCheckbillDetailList;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDto.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbill.WmsInventoryCheckbillDto <br/>
|
||||
* Description: 库存盘点 数据传输对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:01 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点 数据传输对象", description = "库存盘点 数据传输对象")
|
||||
public class WmsInventoryCheckbillDto implements Dto {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createBySid;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("盘点类型")
|
||||
private String checkType;
|
||||
@ApiModelProperty("盘点状态(盘点中1,盘点完成2)")
|
||||
private Integer checkState;
|
||||
@ApiModelProperty("盘盈数量")
|
||||
private BigDecimal profitCount;
|
||||
@ApiModelProperty("盘盈金额")
|
||||
private BigDecimal profitAmount;
|
||||
@ApiModelProperty("盘亏数量")
|
||||
private BigDecimal lossCount;
|
||||
@ApiModelProperty("盘亏金额")
|
||||
private BigDecimal lossAmount;
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid;
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid;
|
||||
@ApiModelProperty("盘库明细")
|
||||
private List<WmsInventoryCheckbillDetailDto> wmsInventoryCheckbillDetailList;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillMapper.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorycheckbill.WmsInventoryCheckbillMapper <br/>
|
||||
* Description: 库存盘点. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventoryCheckbillMapper extends BaseMapper<WmsInventoryCheckbill> {
|
||||
|
||||
IPage<WmsInventoryCheckbillVo> selectPageVo(IPage<WmsInventoryCheckbill> page, @Param(Constants.WRAPPER) Wrapper<WmsInventoryCheckbill> qw);
|
||||
|
||||
List<WmsInventoryCheckbillVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WmsInventoryCheckbill> qw);
|
||||
|
||||
@Select("select * from wms_inventory_checkbill")
|
||||
List<WmsInventoryCheckbillVo> selectListVo();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventorycheckbill.WmsInventoryCheckbillMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
<select id="selectPageVo" resultType="com.yxt.warehouse.biz.wmsinventorycheckbill.WmsInventoryCheckbillVo">
|
||||
SELECT * FROM wms_inventory_checkbill <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
|
||||
<select id="selectListAllVo" resultType="com.yxt.warehouse.biz.wmsinventorycheckbill.WmsInventoryCheckbillVo">
|
||||
SELECT * FROM wms_inventory_checkbill <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,57 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillQuery.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbill.WmsInventoryCheckbillQuery <br/>
|
||||
* Description: 库存盘点 查询条件. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:01 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点 查询条件", description = "库存盘点 查询条件")
|
||||
public class WmsInventoryCheckbillQuery implements Query {
|
||||
|
||||
@ApiModelProperty("创建开始日期")
|
||||
private String createStartTime;
|
||||
@ApiModelProperty("创建结束日期")
|
||||
private String createEndTime;
|
||||
@ApiModelProperty("其他查询条件")
|
||||
private String otherQuery;
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDetailsVo;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDto;
|
||||
import com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillService.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorycheckbill.WmsInventoryCheckbillService <br/>
|
||||
* Description: 库存盘点 业务逻辑. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Service
|
||||
public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventoryCheckbillMapper, WmsInventoryCheckbill> {
|
||||
|
||||
@Autowired
|
||||
private WmsInventoryCheckbillDetailService wmsInventoryCheckbillDetailService;
|
||||
|
||||
public PagerVo<WmsInventoryCheckbillVo> listPageVo(PagerQuery<WmsInventoryCheckbillQuery> pq) {
|
||||
WmsInventoryCheckbillQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventoryCheckbill> qw = new QueryWrapper<>();
|
||||
if (StringUtils.isNotBlank(query.getOtherQuery())){
|
||||
qw.and(wrapper -> wrapper.like("pb.billNo", query.getOtherQuery()));
|
||||
}
|
||||
String createStartTime = query.getCreateStartTime();
|
||||
String createEndTime = query.getCreateEndTime();
|
||||
qw.apply(StringUtils.isNotEmpty(createStartTime), "date_format (pb.createTime,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')").
|
||||
apply(StringUtils.isNotEmpty(createEndTime), "date_format (pb.createTime,'%Y-%m-%d') <= date_format('" + createEndTime + "','%Y-%m-%d')"
|
||||
);
|
||||
IPage<WmsInventoryCheckbill> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventoryCheckbillVo> pagging = baseMapper.selectPageVo(page, qw);
|
||||
for (WmsInventoryCheckbillVo record : pagging.getRecords()) {
|
||||
Integer checkState = record.getCheckState();
|
||||
if (checkState == 1){
|
||||
record.setCheckStateName("盘点中");
|
||||
}else if (checkState == 2){
|
||||
record.setCheckStateName("盘点完成");
|
||||
}
|
||||
}
|
||||
PagerVo<WmsInventoryCheckbillVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
return p;
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsInventoryCheckbillDto dto){
|
||||
String dtoSid = dto.getSid();
|
||||
List<WmsInventoryCheckbillDetailDto> wmsInventoryCheckbillDetailList = dto.getWmsInventoryCheckbillDetailList();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
String sid = this.insertByDto(dto);
|
||||
for (WmsInventoryCheckbillDetailDto wmsInventoryCheckbillDetailDto : wmsInventoryCheckbillDetailList) {
|
||||
wmsInventoryCheckbillDetailDto.setBillSid(sid);
|
||||
wmsInventoryCheckbillDetailService.saveOrUpdateDto(wmsInventoryCheckbillDetailDto);
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
wmsInventoryCheckbillDetailService.delByMainSid(dtoSid);
|
||||
for (WmsInventoryCheckbillDetailDto wmsInventoryCheckbillDetailDto : wmsInventoryCheckbillDetailList) {
|
||||
wmsInventoryCheckbillDetailDto.setBillSid(dtoSid);
|
||||
wmsInventoryCheckbillDetailService.saveOrUpdateDto(wmsInventoryCheckbillDetailDto);
|
||||
}
|
||||
}
|
||||
|
||||
public String insertByDto(WmsInventoryCheckbillDto dto){
|
||||
WmsInventoryCheckbill entity = new WmsInventoryCheckbill();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
return entity.getSid();
|
||||
}
|
||||
|
||||
public void updateByDto(WmsInventoryCheckbillDto dto){
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
WmsInventoryCheckbill entity = fetchBySid(dtoSid);
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.updateById(entity);
|
||||
}
|
||||
|
||||
public WmsInventoryCheckbillDetailsVo fetchDetailsVoBySid(String sid){
|
||||
WmsInventoryCheckbill entity = fetchBySid(sid);
|
||||
WmsInventoryCheckbillDetailsVo vo = new WmsInventoryCheckbillDetailsVo();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
List<WmsInventoryCheckbillDetailDetailsVo> wmsInventoryCheckbillDetailDetailsVos = wmsInventoryCheckbillDetailService.selByMainSid(sid);
|
||||
vo.setWmsInventoryCheckbillDetailList(wmsInventoryCheckbillDetailDetailsVos);
|
||||
return vo;
|
||||
}
|
||||
|
||||
public void inven(WmsInventoryCheckbillDto dto) {
|
||||
saveOrUpdateDto(dto);
|
||||
List<WmsInventoryCheckbillDetailDto> wmsInventoryCheckbillDetailList = dto.getWmsInventoryCheckbillDetailList();
|
||||
for (WmsInventoryCheckbillDetailDto wmsInventoryCheckbillDetailDto : wmsInventoryCheckbillDetailList) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbill;
|
||||
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbill.WmsInventoryCheckbillVo <br/>
|
||||
* Description: 库存盘点 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:01 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点 视图数据对象", description = "库存盘点 视图数据对象")
|
||||
public class WmsInventoryCheckbillVo implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("单据编号")
|
||||
private String billNo;
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName;
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createDate;
|
||||
@ApiModelProperty("盘点状态(盘点中1,盘点完成2)")
|
||||
private Integer checkState;
|
||||
@ApiModelProperty("盘点状态(盘点中1,盘点完成2)")
|
||||
private String checkStateName;
|
||||
@ApiModelProperty("完成时间")
|
||||
private String completeDate;
|
||||
@ApiModelProperty("盘盈数量")
|
||||
private BigDecimal profitCount;
|
||||
@ApiModelProperty("盘盈金额")
|
||||
private BigDecimal profitAmount;
|
||||
@ApiModelProperty("盘亏数量")
|
||||
private BigDecimal lossCount;
|
||||
@ApiModelProperty("盈亏金额")
|
||||
private BigDecimal lossAmount;
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("门店")
|
||||
private String createOrgName;
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbilldetail;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetail.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetail <br/>
|
||||
* Description: 库存盘点-明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点-明细", description = "库存盘点-明细")
|
||||
@TableName("wms_inventory_checkbill_detail")
|
||||
public class WmsInventoryCheckbillDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("盘点单sid")
|
||||
private String billSid; // 盘点单sid
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid; // 商品库存sid
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid; // 仓库sid
|
||||
@ApiModelProperty("仓库")
|
||||
private String warehouseName; // 仓库
|
||||
@ApiModelProperty("库位sid")
|
||||
private String warehouseRackSid;
|
||||
@ApiModelProperty("库位编码")
|
||||
private String warehouseRackCode;
|
||||
@ApiModelProperty("含税价")
|
||||
private BigDecimal taxPrice; // 含税价
|
||||
@ApiModelProperty("账面数量")
|
||||
private BigDecimal bookCount; // 账面数量
|
||||
@ApiModelProperty("实盘数量")
|
||||
private BigDecimal realCount; // 实盘数量
|
||||
@ApiModelProperty("现场照片(多张中间用英文逗号分隔)")
|
||||
private String picUrl; // 现场照片(多张中间用英文逗号分隔)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbilldetail;
|
||||
|
||||
|
||||
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.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetailVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo <br/>
|
||||
* Description: 库存盘点-明细 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点-明细 视图数据详情", description = "库存盘点-明细 视图数据详情")
|
||||
public class WmsInventoryCheckbillDetailDetailsVo implements Vo {
|
||||
|
||||
private String sid;
|
||||
|
||||
/*
|
||||
* 数据库字段
|
||||
* */
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("盘点状态(0正常、2盘亏、1盘盈)")
|
||||
private String state;
|
||||
@ApiModelProperty("盘点单sid")
|
||||
private String billSid;
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid;
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid;
|
||||
@ApiModelProperty("仓库")
|
||||
private String warehouseName;
|
||||
@ApiModelProperty("库位sid")
|
||||
private String warehouseRackSid;
|
||||
@ApiModelProperty("库位编码")
|
||||
private String warehouseRackCode;
|
||||
@ApiModelProperty("含税价")
|
||||
private BigDecimal taxPrice;
|
||||
@ApiModelProperty("账面数量")
|
||||
private BigDecimal bookCount;
|
||||
@ApiModelProperty("实盘数量")
|
||||
private BigDecimal realCount;
|
||||
@ApiModelProperty("现场照片")
|
||||
private List<String> picUrls = new ArrayList<>();
|
||||
|
||||
/*
|
||||
* 页面展示字段
|
||||
* */
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsSpuName;
|
||||
@ApiModelProperty("零件号")
|
||||
private String goodsSkuCode;
|
||||
@ApiModelProperty("车型")
|
||||
private String carModel;
|
||||
@ApiModelProperty("商品单位")
|
||||
private String unit;
|
||||
|
||||
/*
|
||||
* 盘点接口需要字段
|
||||
* */
|
||||
@ApiModelProperty("盈亏数")
|
||||
private BigDecimal proAndLossCount;
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbilldetail;
|
||||
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetailDto.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDto <br/>
|
||||
* Description: 库存盘点-明细 数据传输对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点-明细 数据传输对象", description = "库存盘点-明细 数据传输对象")
|
||||
public class WmsInventoryCheckbillDetailDto implements Dto {
|
||||
|
||||
private String sid;
|
||||
|
||||
/*
|
||||
* 数据库字段
|
||||
* */
|
||||
@ApiModelProperty("备注")
|
||||
private String remarks;
|
||||
@ApiModelProperty("盘点状态(0正常、2盘亏、1盘盈)")
|
||||
private String state;
|
||||
@ApiModelProperty("盘点单sid")
|
||||
private String billSid;
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid;
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid;
|
||||
@ApiModelProperty("仓库")
|
||||
private String warehouseName;
|
||||
@ApiModelProperty("库位sid")
|
||||
private String warehouseRackSid;
|
||||
@ApiModelProperty("库位编码")
|
||||
private String warehouseRackCode;
|
||||
@ApiModelProperty("含税价")
|
||||
private BigDecimal taxPrice;
|
||||
@ApiModelProperty("账面数量")
|
||||
private BigDecimal bookCount;
|
||||
@ApiModelProperty("实盘数量")
|
||||
private BigDecimal realCount;
|
||||
@ApiModelProperty("现场照片")
|
||||
private List<String> picUrls = new ArrayList<>();
|
||||
|
||||
/*
|
||||
* 页面展示字段
|
||||
* */
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsSpuName;
|
||||
@ApiModelProperty("零件号")
|
||||
private String goodsSkuCode;
|
||||
@ApiModelProperty("车型")
|
||||
private String carModel;
|
||||
@ApiModelProperty("商品单位")
|
||||
private String unit;
|
||||
|
||||
/*
|
||||
* 盘点接口需要字段
|
||||
* */
|
||||
@ApiModelProperty("盈亏数")
|
||||
private BigDecimal proAndLossCount;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbilldetail;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetailMapper.java <br/>
|
||||
* Class: com.yxt.wms.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailMapper <br/>
|
||||
* Description: 库存盘点-明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventoryCheckbillDetailMapper extends BaseMapper<WmsInventoryCheckbillDetail> {
|
||||
|
||||
IPage<WmsInventoryCheckbillDetailVo> selectPageVo(IPage<WmsInventoryCheckbillDetail> page, @Param(Constants.WRAPPER) Wrapper<WmsInventoryCheckbillDetail> qw);
|
||||
|
||||
List<WmsInventoryCheckbillDetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WmsInventoryCheckbillDetail> qw);
|
||||
|
||||
@Select("select * from wms_inventory_checkbill_detail")
|
||||
List<WmsInventoryCheckbillDetailVo> selectListVo();
|
||||
|
||||
@Delete("delete from wms_inventory_checkbill_detail where billSid = #{dtoSid}")
|
||||
void delByMainSid(String dtoSid);
|
||||
|
||||
List<WmsInventoryCheckbillDetailDetailsVo> selByMainSid(String billSid);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
<select id="selectPageVo" resultType="com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo">
|
||||
SELECT * FROM wms_inventory_checkbill_detail <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
|
||||
<select id="selectListAllVo" resultType="com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo">
|
||||
SELECT * FROM wms_inventory_checkbill_detail <where> ${ew.sqlSegment} </where>
|
||||
</select>
|
||||
|
||||
<select id="selByMainSid"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailDetailsVo">
|
||||
SELECT
|
||||
wicd.*,
|
||||
wi.goodsSpuName,
|
||||
wi.goodsSkuCode,
|
||||
wi.goodsSkuOwnSpec,
|
||||
wi.unit
|
||||
FROM
|
||||
wms_inventory_checkbill_detail wicd
|
||||
LEFT JOIN wms_inventory wi
|
||||
ON wicd.inventorySid = wi.`sid`
|
||||
WHERE billSid = #{billSid}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,50 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorycheckbilldetail;
|
||||
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(仓储) <br/>
|
||||
* File: WmsInventoryCheckbillDetailVo.java <br/>
|
||||
* Class: com.yxt.wms.api.wmsinventorycheckbilldetail.WmsInventoryCheckbillDetailVo <br/>
|
||||
* Description: 库存盘点-明细 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-03-22 09:25:02 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存盘点-明细 视图数据对象", description = "库存盘点-明细 视图数据对象")
|
||||
public class WmsInventoryCheckbillDetailVo implements Vo {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Fan
|
||||
* @description
|
||||
* @date 2024/4/1 16:20
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventorySettleRecordQuery implements Query {
|
||||
|
||||
private String startDate;
|
||||
private String endDate;
|
||||
private String useOrgName;
|
||||
private String orgPath;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author Fan
|
||||
* @description
|
||||
* @date 2024/4/1 16:19
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventorySettleRecordVo implements Vo {
|
||||
|
||||
private String sid;
|
||||
private String createByName;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
private String useOrgName;
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebill.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebill.WmsInventorySettlebill <br/>
|
||||
* Description: 库存结算单. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算单", description = "库存结算单")
|
||||
@TableName("wms_inventory_settlebill")
|
||||
public class WmsInventorySettlebill extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("结算单编号")
|
||||
private String billNo; // 结算单编号
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("库存结算状态(1进行中 2已完成)")
|
||||
private Integer settleState; // 库存结算状态(1进行中 2已完成)
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Integer settleType; // 库存结算类型(1月结 2年结)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("开始时间")
|
||||
private Date settleStartTime; // 开始时间
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date settleEndTime; // 结束时间
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid; // 使用组织sid
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid; // 创建组织sid
|
||||
@ApiModelProperty("使用组织")
|
||||
private String useOrgName; // 使用组织
|
||||
@ApiModelProperty("创建组织")
|
||||
private String createOrgName; // 创建组织
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
|
||||
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.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillVo.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebill.WmsInventorySettlebillVo <br/>
|
||||
* Description: 库存结算单 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算单 视图数据详情", description = "库存结算单 视图数据详情")
|
||||
public class WmsInventorySettlebillDetailsVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("结算单编号")
|
||||
private String billNo; // 结算单编号
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createDate; // 制单日期
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createUserSid; // 制单人sid
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("库存结算状态(1进行中 2已完成)")
|
||||
private Integer settleState; // 库存结算状态(1进行中 2已完成)
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Integer settleType; // 库存结算类型(1月结 2年结)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("开始时间")
|
||||
private Date settle_startTimeStart; // 开始时间
|
||||
private Date settle_startTimeEnd; // 开始时间
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date settle_endTimeStart; // 结束时间
|
||||
private Date settle_endTimeEnd; // 结束时间
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid; // 使用组织sid
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid; // 创建组织sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDto.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebill.WmsInventorySettlebillDto <br/>
|
||||
* Description: 库存结算单 数据传输对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算单 数据传输对象", description = "库存结算单 数据传输对象")
|
||||
public class WmsInventorySettlebillDto implements Dto {
|
||||
|
||||
private String sid;
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createTime; // 制单日期
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createBySid; // 制单人sid
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("库存结算状态(1进行中 2已完成)")
|
||||
private String settleState; // 库存结算状态(1进行中 2已完成)
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private String settleType; // 库存结算类型(1月结 2年结)
|
||||
@ApiModelProperty("开始时间")
|
||||
private String settleStartTime; // 开始时间
|
||||
@ApiModelProperty("结束时间")
|
||||
private String settleEndTime; // 结束时间
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid; // 使用组织sid
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid; // 创建组织sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.yxt.warehouse.biz.warehouseinventory.WarehouseInventory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillMapper.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebill.WmsInventorySettlebillMapper <br/>
|
||||
* Description: 库存结算单. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventorySettlebillMapper extends BaseMapper<WmsInventorySettlebill> {
|
||||
|
||||
//@Update("update wms_inventory_settlebill set name=#{msg} where id=#{id}")
|
||||
//IPage<WmsInventorySettlebillVo> voPage(IPage<WmsInventorySettlebill> page, @Param(Constants.WRAPPER) QueryWrapper<WmsInventorySettlebill> qw);
|
||||
|
||||
IPage<WmsInventorySettlebillVo> selectPageVo(IPage<WmsInventorySettlebill> page, @Param(Constants.WRAPPER) Wrapper<WmsInventorySettlebill> qw);
|
||||
|
||||
List<WmsInventorySettlebillVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WmsInventorySettlebill> qw);
|
||||
|
||||
@Select("select * from wms_inventory_settlebill")
|
||||
List<WmsInventorySettlebillVo> selectListVo();
|
||||
|
||||
List<WarehouseInventory> selInventoryForStettleBill(@Param("useOrgSid") String useOrgSid);
|
||||
|
||||
String selLastNum(@Param("inventorySid") String inventorySid);
|
||||
|
||||
IPage<WmsInventorySettleRecordVo> carryForwardList(IPage<WmsInventorySettlebill> page,@Param(Constants.WRAPPER) QueryWrapper<WmsInventorySettlebill> qw);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventorysettlebill.WmsInventorySettlebillMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
<select id="selectPageVo" resultType="com.yxt.warehouse.biz.wmsinventorysettlebill.WmsInventorySettlebillVo">
|
||||
SELECT * FROM wms_inventory_settlebill
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
|
||||
<select id="selectListAllVo" resultType="com.yxt.warehouse.biz.wmsinventorysettlebill.WmsInventorySettlebillVo">
|
||||
SELECT * FROM wms_inventory_settlebill
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
<select id="selInventoryForStettleBill" resultType="com.yxt.warehouse.biz.warehouseinventory.WarehouseInventory">
|
||||
SELECT * FROM wms_inventory
|
||||
<where>
|
||||
<!-- test:判断表达式(OGNL)
|
||||
遇见特殊符号应该去写转义字符:&&、''等字符
|
||||
-->
|
||||
<if test="useOrgSid!=null and useOrgSid!=''">
|
||||
useOrgSid = #{useOrgSid}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selLastNum" resultType="java.lang.String">
|
||||
SELECT
|
||||
d.currentBalance
|
||||
FROM
|
||||
wms_inventory_settlebill_detail AS d
|
||||
LEFT JOIN wms_inventory_settlebill AS s ON d.billSid = s.sid
|
||||
WHERE
|
||||
d.inventorySid = #{inventorySid}
|
||||
ORDER BY
|
||||
s.createTime DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
<select id="carryForwardList"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventorysettlebill.WmsInventorySettleRecordVo">
|
||||
SELECT * FROM wms_inventory_settlebill
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,76 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillQuery.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebill.WmsInventorySettlebillQuery <br/>
|
||||
* Description: 库存结算单 查询条件. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算单 查询条件", description = "库存结算单 查询条件")
|
||||
public class WmsInventorySettlebillQuery implements Query {
|
||||
|
||||
@ApiModelProperty("结算单编号")
|
||||
private String billNo; // 结算单编号
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createDate; // 制单日期
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createUserSid; // 制单人sid
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("库存结算状态(1进行中 2已完成)")
|
||||
private Integer settleState; // 库存结算状态(1进行中 2已完成)
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Integer settleType; // 库存结算类型(1月结 2年结)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiModelProperty("开始时间")
|
||||
private Date settle_startTimeStart; // 开始时间
|
||||
private Date settle_startTimeEnd; // 开始时间
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date settle_endTimeStart; // 结束时间
|
||||
private Date settle_endTimeEnd; // 结束时间
|
||||
private String orgPath;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.warehouse.biz.warehouseinventory.WarehouseInventory;
|
||||
import com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetail;
|
||||
import com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillService.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebill.WmsInventorySettlebillService <br/>
|
||||
* Description: 库存结算单 业务逻辑. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Service
|
||||
public class WmsInventorySettlebillService extends MybatisBaseService<WmsInventorySettlebillMapper, WmsInventorySettlebill> {
|
||||
|
||||
@Autowired
|
||||
private WmsInventorySettlebillDetailService wmsInventorySettlebillDetailService;
|
||||
|
||||
private QueryWrapper<WmsInventorySettlebill> createQueryWrapper(WmsInventorySettlebillQuery query) {
|
||||
// todo: 这里根据具体业务调整查询条件
|
||||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
QueryWrapper<WmsInventorySettlebill> qw = new QueryWrapper<>();
|
||||
return qw;
|
||||
}
|
||||
|
||||
public PagerVo<WmsInventorySettlebillVo> listPageVo(PagerQuery<WmsInventorySettlebillQuery> pq) {
|
||||
WmsInventorySettlebillQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventorySettlebill> qw = createQueryWrapper(query);
|
||||
IPage<WmsInventorySettlebill> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventorySettlebillVo> pagging = baseMapper.selectPageVo(page, qw);
|
||||
PagerVo<WmsInventorySettlebillVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
return p;
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsInventorySettlebillDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
this.insertByDto(dto);
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
}
|
||||
|
||||
public void insertByDto(WmsInventorySettlebillDto dto) {
|
||||
WmsInventorySettlebill entity = new WmsInventorySettlebill();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
}
|
||||
|
||||
public void updateByDto(WmsInventorySettlebillDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
WmsInventorySettlebill entity = fetchBySid(dtoSid);
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.updateById(entity);
|
||||
}
|
||||
|
||||
public WmsInventorySettlebillDetailsVo fetchDetailsVoBySid(String sid) {
|
||||
WmsInventorySettlebill entity = fetchBySid(sid);
|
||||
WmsInventorySettlebillDetailsVo vo = new WmsInventorySettlebillDetailsVo();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
return vo;
|
||||
}
|
||||
|
||||
public void saveSettlebill(WmsInventorySettlebillDto dto) {
|
||||
WmsInventorySettlebill entity = new WmsInventorySettlebill();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
String mainSid = entity.getSid();
|
||||
List<WarehouseInventory> wmsInventories = baseMapper.selInventoryForStettleBill(dto.getUseOrgSid());
|
||||
if (!wmsInventories.isEmpty()) {
|
||||
for (WarehouseInventory w : wmsInventories) {
|
||||
WmsInventorySettlebillDetail d = new WmsInventorySettlebillDetail();
|
||||
BeanUtil.copyProperties(w, d, "id", "sid");
|
||||
d.setBillSid(mainSid);
|
||||
if (StringUtils.isNotBlank(dto.getSettleState())) {
|
||||
d.setSettleType(Integer.parseInt(dto.getSettleType()));
|
||||
}
|
||||
d.setInventorySid(w.getSid());
|
||||
//查询上期库存
|
||||
String lastNum = baseMapper.selLastNum(w.getSid());
|
||||
if (StringUtils.isNotBlank(lastNum)) {
|
||||
d.setPreBalance(new BigDecimal(lastNum));
|
||||
}
|
||||
if (null != w.getCount()) {
|
||||
d.setCurrentBalance(w.getCount());
|
||||
}
|
||||
wmsInventorySettlebillDetailService.insert(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public PagerVo<WmsInventorySettleRecordVo> carryForwardList(PagerQuery<WmsInventorySettleRecordQuery> pq) {
|
||||
WmsInventorySettleRecordQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventorySettlebill> qw = new QueryWrapper<>();
|
||||
// if (com.yxt.common.base.utils.StringUtils.isNotBlank(query.getOrgPath())) {
|
||||
// String orgPath = query.getOrgPath();
|
||||
// ResultBean<String> orgSidByPath = sysStaffOrgFeign.getOrgSidByPath(orgPath);
|
||||
// if (orgSidByPath.getSuccess()) {
|
||||
// String useOrgSid = orgSidByPath.getData();
|
||||
// qw.eq("useOrgSid", useOrgSid);
|
||||
// }
|
||||
// }
|
||||
if (StringUtils.isNotBlank(query.getUseOrgName())) {
|
||||
qw.like("useOrgName",query.getUseOrgName());
|
||||
}
|
||||
qw.apply(com.yxt.common.base.utils.StringUtils.isNotBlank(query.getStartDate()), "date_format (createTime,'%Y-%m-%d') >= date_format('" + query.getStartDate() + "','%Y-%m-%d')").
|
||||
apply(com.yxt.common.base.utils.StringUtils.isNotBlank(query.getEndDate()), "date_format (createTime,'%Y-%m-%d') <= date_format('" + query.getEndDate() + "','%Y-%m-%d')"
|
||||
);
|
||||
qw.orderByDesc("createTime");
|
||||
IPage<WmsInventorySettlebill> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventorySettleRecordVo> pagging = baseMapper.carryForwardList(page, qw);
|
||||
PagerVo<WmsInventorySettleRecordVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
return p;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebill;
|
||||
|
||||
|
||||
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.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillVo.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebill.WmsInventorySettlebillVo <br/>
|
||||
* Description: 库存结算单 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算单 视图数据对象", description = "库存结算单 视图数据对象")
|
||||
public class WmsInventorySettlebillVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("结算单编号")
|
||||
private String billNo; // 结算单编号
|
||||
@ApiModelProperty("制单日期")
|
||||
private String createDate; // 制单日期
|
||||
@ApiModelProperty("制单人sid")
|
||||
private String createUserSid; // 制单人sid
|
||||
@ApiModelProperty("制单人姓名")
|
||||
private String createByName; // 制单人姓名
|
||||
@ApiModelProperty("库存结算状态(1进行中 2已完成)")
|
||||
private Integer settleState; // 库存结算状态(1进行中 2已完成)
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Integer settleType; // 库存结算类型(1月结 2年结)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("开始时间")
|
||||
private Date settle_startTimeStart; // 开始时间
|
||||
private Date settle_startTimeEnd; // 开始时间
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date settle_endTimeStart; // 结束时间
|
||||
private Date settle_endTimeEnd; // 结束时间
|
||||
@ApiModelProperty("使用组织sid")
|
||||
private String useOrgSid; // 使用组织sid
|
||||
@ApiModelProperty("创建组织sid")
|
||||
private String createOrgSid; // 创建组织sid
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetail.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebilldetail.WmsInventorySettlebillDetail <br/>
|
||||
* Description: 库存结算明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算明细", description = "库存结算明细")
|
||||
@TableName("wms_inventory_settlebill_detail")
|
||||
public class WmsInventorySettlebillDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("结算单sid")
|
||||
private String billSid; // 结算单sid
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Integer settleType; // 库存结算类型(1月结 2年结)
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid; // 商品库存sid
|
||||
private String goodSpuSid;//商品基础信息sid
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuSid;//商品Skusid
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackSid;//库位Sid
|
||||
private String warehouseRackCode;//库位编码
|
||||
@ApiModelProperty("上期结存")
|
||||
private BigDecimal preBalance; // 上期结存
|
||||
@ApiModelProperty("本期结存")
|
||||
private BigDecimal currentBalance; // 本期结存
|
||||
@ApiModelProperty("本期入库")
|
||||
private BigDecimal currentEnter; // 本期入库
|
||||
@ApiModelProperty("本期出库")
|
||||
private BigDecimal currentOut; // 本期出库
|
||||
@ApiModelProperty("本期盘点")
|
||||
private BigDecimal currentCheck; // 本期盘点
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailVo.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailVo <br/>
|
||||
* Description: 库存结算明细 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算明细 视图数据详情", description = "库存结算明细 视图数据详情")
|
||||
public class WmsInventorySettlebillDetailDetailsVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("结算单sid")
|
||||
private String billSid; // 结算单sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Date settleTypeStart; // 库存结算类型(1月结 2年结)
|
||||
private Date settleTypeEnd; // 库存结算类型(1月结 2年结)
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid; // 商品库存sid
|
||||
@ApiModelProperty("商品sid")
|
||||
private String goodsSid; // 商品sid
|
||||
@ApiModelProperty("商品编码")
|
||||
private String goodsCode; // 商品编码
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsName; // 商品名称
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid; // 仓库sid
|
||||
@ApiModelProperty("仓库编码")
|
||||
private String warehouseCode; // 仓库编码
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName; // 仓库名称
|
||||
@ApiModelProperty("货位sid")
|
||||
private String warehouseAreasid; // 货位sid
|
||||
@ApiModelProperty("货位编码")
|
||||
private String warehouseAreaCode; // 货位编码
|
||||
@ApiModelProperty("货位名称")
|
||||
private String warehouseAreaName; // 货位名称
|
||||
@ApiModelProperty("上期结存")
|
||||
private BigDecimal preBalance; // 上期结存
|
||||
@ApiModelProperty("本期结存")
|
||||
private BigDecimal currentBalance; // 本期结存
|
||||
@ApiModelProperty("本期入库")
|
||||
private BigDecimal currentEnter; // 本期入库
|
||||
@ApiModelProperty("本期出库")
|
||||
private BigDecimal currentOut; // 本期出库
|
||||
@ApiModelProperty("本期盘点")
|
||||
private BigDecimal currentCheck; // 本期盘点
|
||||
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailDto.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailDto <br/>
|
||||
* Description: 库存结算明细 数据传输对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算明细 数据传输对象", description = "库存结算明细 数据传输对象")
|
||||
public class WmsInventorySettlebillDetailDto implements Dto {
|
||||
|
||||
private String sid; // sid
|
||||
|
||||
@ApiModelProperty("结算单sid")
|
||||
private String billSid; // 结算单sid
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private Date settleTypeStart; // 库存结算类型(1月结 2年结)
|
||||
private Date settleTypeEnd; // 库存结算类型(1月结 2年结)
|
||||
@ApiModelProperty("商品库存sid")
|
||||
private String inventorySid; // 商品库存sid
|
||||
@ApiModelProperty("商品sid")
|
||||
private String goodsSid; // 商品sid
|
||||
@ApiModelProperty("商品编码")
|
||||
private String goodsCode; // 商品编码
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsName; // 商品名称
|
||||
@ApiModelProperty("仓库sid")
|
||||
private String warehouseSid; // 仓库sid
|
||||
@ApiModelProperty("仓库编码")
|
||||
private String warehouseCode; // 仓库编码
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName; // 仓库名称
|
||||
@ApiModelProperty("货位sid")
|
||||
private String warehouseAreasid; // 货位sid
|
||||
@ApiModelProperty("货位编码")
|
||||
private String warehouseAreaCode; // 货位编码
|
||||
@ApiModelProperty("货位名称")
|
||||
private String warehouseAreaName; // 货位名称
|
||||
@ApiModelProperty("上期结存")
|
||||
private BigDecimal preBalance; // 上期结存
|
||||
@ApiModelProperty("本期结存")
|
||||
private BigDecimal currentBalance; // 本期结存
|
||||
@ApiModelProperty("本期入库")
|
||||
private BigDecimal currentEnter; // 本期入库
|
||||
@ApiModelProperty("本期出库")
|
||||
private BigDecimal currentOut; // 本期出库
|
||||
@ApiModelProperty("本期盘点")
|
||||
private BigDecimal currentCheck; // 本期盘点
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailMapper.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailMapper <br/>
|
||||
* Description: 库存结算明细. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsInventorySettlebillDetailMapper extends BaseMapper<WmsInventorySettlebillDetail> {
|
||||
|
||||
//@Update("update wms_inventory_settlebill_detail set name=#{msg} where id=#{id}")
|
||||
//IPage<WmsInventorySettlebillDetailVo> voPage(IPage<WmsInventorySettlebillDetail> page, @Param(Constants.WRAPPER) QueryWrapper<WmsInventorySettlebillDetail> qw);
|
||||
|
||||
IPage<WmsInventorySettlebillDetailVo> selectPageVo(IPage<WmsInventorySettlebillDetail> page, @Param(Constants.WRAPPER) Wrapper<WmsInventorySettlebillDetail> qw);
|
||||
|
||||
List<WmsInventorySettlebillDetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WmsInventorySettlebillDetail> qw);
|
||||
|
||||
@Select("select * from wms_inventory_settlebill_detail")
|
||||
List<WmsInventorySettlebillDetailVo> selectListVo();
|
||||
|
||||
@Delete("delete from wms_inventory_settlebill_detail where billSid = #{sid}")
|
||||
void delByMainSid(String sid);
|
||||
|
||||
List<WmsInventorySettlebillExportVo> listExcel(@Param(Constants.WRAPPER) QueryWrapper<WmsInventorySettlebillDetail> qw);
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
<select id="selectPageVo"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailVo">
|
||||
SELECT
|
||||
d.sid,
|
||||
date_format (s.createTime,'%Y-%m-%d') as createTime,
|
||||
d.currentBalance,
|
||||
d.preBalance,
|
||||
d.settleType,
|
||||
d.goodsSpuName,
|
||||
d.goodsSkuCode,
|
||||
d.goodsSkuOwnSpec,
|
||||
d.goodsSkuTitle,
|
||||
d.warehouseName,
|
||||
d.warehouseRackCode
|
||||
FROM
|
||||
wms_inventory_settlebill_detail AS d
|
||||
LEFT JOIN wms_inventory_settlebill AS s ON d.billSid = s.sid
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
|
||||
<select id="selectListAllVo"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailVo">
|
||||
SELECT * FROM wms_inventory_settlebill_detail
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
<select id="listExcel"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillExportVo">
|
||||
SELECT
|
||||
d.sid,
|
||||
date_format (s.createTime,'%Y-%m-%d') as createTime,
|
||||
CASE
|
||||
d.settleType
|
||||
WHEN '1' THEN
|
||||
'月结'
|
||||
WHEN '2' THEN
|
||||
'年结'
|
||||
END AS settleType,
|
||||
d.currentBalance,
|
||||
d.preBalance,
|
||||
d.goodsSpuName,
|
||||
d.goodsSkuCode,
|
||||
d.goodsSkuOwnSpec,
|
||||
d.goodsSkuTitle,
|
||||
d.warehouseName,
|
||||
d.warehouseRackCode,
|
||||
( @rank := @rank + 1 ) rankNo
|
||||
FROM
|
||||
wms_inventory_settlebill_detail AS d
|
||||
LEFT JOIN wms_inventory_settlebill AS s ON d.billSid = s.sid,
|
||||
( SELECT @rank := 0 ) t
|
||||
<where>${ew.sqlSegment}</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,60 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailQuery.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailQuery <br/>
|
||||
* Description: 库存结算明细 查询条件. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算明细 查询条件", description = "库存结算明细 查询条件")
|
||||
public class WmsInventorySettlebillDetailQuery implements Query {
|
||||
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackCode;//库位编码
|
||||
private String orgPath;
|
||||
private String startDate;
|
||||
private String endDate;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
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 java.util.List;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailService.java <br/>
|
||||
* Class: wms.biz.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailService <br/>
|
||||
* Description: 库存结算明细 业务逻辑. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Service
|
||||
public class WmsInventorySettlebillDetailService extends MybatisBaseService<WmsInventorySettlebillDetailMapper, WmsInventorySettlebillDetail> {
|
||||
|
||||
|
||||
private QueryWrapper<WmsInventorySettlebillDetail> createQueryWrapper(WmsInventorySettlebillDetailQuery query) {
|
||||
// todo: 这里根据具体业务调整查询条件
|
||||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
QueryWrapper<WmsInventorySettlebillDetail> qw = new QueryWrapper<>();
|
||||
// if (com.yxt.common.base.utils.StringUtils.isNotBlank(query.getOrgPath())) {
|
||||
// String orgPath = query.getOrgPath();
|
||||
// ResultBean<String> orgSidByPath = sysStaffOrgFeign.getOrgSidByPath(orgPath);
|
||||
// if (orgSidByPath.getSuccess()) {
|
||||
// String useOrgSid = orgSidByPath.getData();
|
||||
// qw.eq("s.useOrgSid", useOrgSid);
|
||||
// }
|
||||
// }
|
||||
if (com.yxt.common.base.utils.StringUtils.isNotBlank(query.getGoodsSpuName())) {
|
||||
qw.like("d.goodsSpuName", query.getGoodsSpuName());
|
||||
}
|
||||
if (com.yxt.common.base.utils.StringUtils.isNotBlank(query.getWarehouseName())) {
|
||||
qw.like("d.warehouseName", query.getWarehouseName());
|
||||
}
|
||||
if (com.yxt.common.base.utils.StringUtils.isNotBlank(query.getGoodsSkuCode())) {
|
||||
qw.like("d.goodsSkuCode", query.getGoodsSkuCode());
|
||||
}
|
||||
qw.apply(com.yxt.common.base.utils.StringUtils.isNotBlank(query.getStartDate()), "date_format (s.createTime,'%Y-%m-%d') >= date_format('" + query.getStartDate() + "','%Y-%m-%d')").
|
||||
apply(com.yxt.common.base.utils.StringUtils.isNotBlank(query.getEndDate()), "date_format (s.createTime,'%Y-%m-%d') <= date_format('" + query.getEndDate() + "','%Y-%m-%d')"
|
||||
);
|
||||
qw.orderByDesc("s.createTime");
|
||||
return qw;
|
||||
}
|
||||
|
||||
public PagerVo<WmsInventorySettlebillDetailVo> listPageVo(PagerQuery<WmsInventorySettlebillDetailQuery> pq) {
|
||||
WmsInventorySettlebillDetailQuery query = pq.getParams();
|
||||
QueryWrapper<WmsInventorySettlebillDetail> qw = createQueryWrapper(query);
|
||||
IPage<WmsInventorySettlebillDetail> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsInventorySettlebillDetailVo> pagging = baseMapper.selectPageVo(page, qw);
|
||||
PagerVo<WmsInventorySettlebillDetailVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
return p;
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsInventorySettlebillDetailDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
this.insertByDto(dto);
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
}
|
||||
|
||||
public void insertByDto(WmsInventorySettlebillDetailDto dto) {
|
||||
WmsInventorySettlebillDetail entity = new WmsInventorySettlebillDetail();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
}
|
||||
|
||||
public void updateByDto(WmsInventorySettlebillDetailDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
WmsInventorySettlebillDetail entity = fetchBySid(dtoSid);
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.updateById(entity);
|
||||
}
|
||||
|
||||
public WmsInventorySettlebillDetailDetailsVo fetchDetailsVoBySid(String sid) {
|
||||
WmsInventorySettlebillDetail entity = fetchBySid(sid);
|
||||
WmsInventorySettlebillDetailDetailsVo vo = new WmsInventorySettlebillDetailDetailsVo();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
return vo;
|
||||
}
|
||||
|
||||
public void delByMainSid(String sid) {
|
||||
baseMapper.delByMainSid(sid);
|
||||
}
|
||||
|
||||
public List<WmsInventorySettlebillExportVo> listExcel(WmsInventorySettlebillDetailQuery query) {
|
||||
QueryWrapper<WmsInventorySettlebillDetail> qw = createQueryWrapper(query);
|
||||
List<WmsInventorySettlebillExportVo> list = baseMapper.listExcel(qw);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
/*********************************************************
|
||||
*********************************************************
|
||||
******************** *******************
|
||||
************* ************
|
||||
******* _oo0oo_ *******
|
||||
*** o8888888o ***
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* 0\ = /0 *
|
||||
* ___/`---'\___ *
|
||||
* .' \\| |// '. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' |_/ | *
|
||||
* \ .-\__ '-' ___/-. / *
|
||||
* ___'. .' /--.--\ `. .'___ *
|
||||
* ."" '< `.___\_<|>_/___.' >' "". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / *
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== *
|
||||
* `=---=' *
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
|
||||
*********************************************************/
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Project: yxt-wms(yxt-wms) <br/>
|
||||
* File: WmsInventorySettlebillDetailVo.java <br/>
|
||||
* Class: wms.api.wmsinventorysettlebilldetail.WmsInventorySettlebillDetailVo <br/>
|
||||
* Description: 库存结算明细 视图数据对象. <br/>
|
||||
* Copyright: Copyright (c) 2011 <br/>
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
||||
* Makedate: 2024-04-01 14:22:38 <br/>
|
||||
*
|
||||
* @author liupopo
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "库存结算明细 视图数据对象", description = "库存结算明细 视图数据对象")
|
||||
public class WmsInventorySettlebillDetailVo implements Vo {
|
||||
|
||||
private String sid; // sid
|
||||
private String createTime; //结转日期
|
||||
@ApiModelProperty("库存结算类型(1月结 2年结)")
|
||||
private String settleType; // 库存结算类型(1月结 2年结)
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackCode;//库位编码
|
||||
@ApiModelProperty("上期结存")
|
||||
private String preBalance; // 上期结存
|
||||
@ApiModelProperty("本期结存")
|
||||
private String currentBalance; // 本期结存
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yxt.warehouse.biz.wmsinventorysettlebilldetail;
|
||||
|
||||
import com.yxt.common.core.utils.ExportEntityMap;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Fan
|
||||
* @description
|
||||
* @date 2024/4/1 16:42
|
||||
*/
|
||||
@Data
|
||||
public class WmsInventorySettlebillExportVo {
|
||||
@ExportEntityMap(CnName = "序号", EnName = "rankNo")
|
||||
private Integer rankNo;
|
||||
@ExportEntityMap(CnName = "结转日期", EnName = "createTime")
|
||||
private String createTime; //结转日期
|
||||
@ExportEntityMap(CnName = "库存结算类型", EnName = "settleType")
|
||||
private String settleType; // 库存结算类型(1月结 2年结)
|
||||
@ExportEntityMap(CnName = "商品名称", EnName = "goodsSpuName")
|
||||
private String goodsSpuName;//商品名称
|
||||
@ExportEntityMap(CnName = "商品Sku名称", EnName = "goodsSkuTitle")
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
@ExportEntityMap(CnName = "零件号", EnName = "goodsSkuCode")
|
||||
private String goodsSkuCode;//零件号
|
||||
@ExportEntityMap(CnName = "规格型号", EnName = "goodsSkuOwnSpec")
|
||||
private String goodsSkuOwnSpec; //规格型号
|
||||
@ExportEntityMap(CnName = "仓库名称", EnName = "warehouseName")
|
||||
private String warehouseName;//仓库名称
|
||||
@ExportEntityMap(CnName = "库位编码", EnName = "warehouseRackCode")
|
||||
private String warehouseRackCode;//货架名称
|
||||
@ExportEntityMap(CnName = "上期结存", EnName = "preBalance")
|
||||
private String preBalance; // 上期结存
|
||||
@ExportEntityMap(CnName = "本期结存", EnName = "currentBalance")
|
||||
private String currentBalance; // 本期结存
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/28 8:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsReportLose extends BaseEntity {
|
||||
|
||||
|
||||
private String inventorySid;//商品库存sid
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)
|
||||
private String goodSpuSid;//商品基础信息Sid
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuSid;//、、商品Skusid
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String unit;//计量单位
|
||||
private String count;//数量
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackSid;//、库位sid
|
||||
private String warehouseRackCode;//库位编码
|
||||
private String loseCount;//损费量
|
||||
private String reportTime;//上报时间
|
||||
private String reportUserSid;//上报人
|
||||
private String picUrl;//现场拍照,多个照片用逗号分隔
|
||||
private String isSyncInventory;//是否同步到系统库存
|
||||
private String confirmUserSid;//损废确认人
|
||||
private String confirmTime;//损废确认时间
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:38
|
||||
*/
|
||||
@Data
|
||||
public class WmsReportLoseDto implements Dto {
|
||||
private String id;
|
||||
private String sid;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String inventorySid;//商品库存sid
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)
|
||||
private String goodSpuSid;//商品基础信息Sid
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuSid;//、、商品Skusid
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String unit;//计量单位
|
||||
private String count;//数量
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackSid;//、库位sid
|
||||
private String warehouseRackCode;//库位编码
|
||||
private String loseCount;//损费量
|
||||
private String reportTime;//上报时间
|
||||
private String reportUserSid;//上报人
|
||||
private String picUrl;//现场拍照,多个照片用逗号分隔
|
||||
private String isSyncInventory;//是否同步到系统库存
|
||||
private String confirmUserSid;//损废确认人
|
||||
private String confirmTime;//损废确认时间
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Mapper
|
||||
public interface WmsReportLoseMapper extends BaseMapper<WmsReportLose> {
|
||||
IPage<WmsReportLoseVo> listPage(IPage<WmsReportLose> page, @Param(Constants.WRAPPER) QueryWrapper<WmsReportLose> qw);
|
||||
WmsReportLoseVo initialization (@Param("sid") String sid);
|
||||
|
||||
@Delete("delete from wms_reportlose where sid = #{sid}")
|
||||
void delByMainSid(String billSid);
|
||||
|
||||
List<WmsReportLoseVo> selByMainSid(String billSid);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yxt.warehouse.biz.wmsreportlose.WmsReportLoseMapper">
|
||||
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||
<!-- ${ew.customSqlSegment} -->
|
||||
|
||||
<select id="listPage" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill_detail a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
<select id="initialization" resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocateBillDetailVo">
|
||||
select
|
||||
a.*,b.goodsName as goodsName
|
||||
from wms_inventory_allocate_bill_detail a
|
||||
left join wms_goods b on b.sid =a.goodsSid
|
||||
where a.sid =#{sid}
|
||||
</select>
|
||||
|
||||
<select id="selByMainSid"
|
||||
resultType="com.yxt.warehouse.biz.wmsinventoryallocatebilldetail.WmsInventoryAllocatebillDetailDetailsVoNew">
|
||||
SELECT
|
||||
wiad.*,
|
||||
wi.goodsSpuName,
|
||||
wi.goodsSkuCode,
|
||||
wi.goodsSkuOwnSpec,
|
||||
wi.unit
|
||||
FROM
|
||||
wms_inventory_allocatebill_detail wiad
|
||||
LEFT JOIN wms_inventory wi
|
||||
ON wiad.inventorySid = wi.`sid`
|
||||
WHERE billSid = #{billSid}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsReportLoseQuery implements Query {
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.yxt.common.base.service.MybatisBaseService;
|
||||
import com.yxt.common.base.utils.PagerUtil;
|
||||
import com.yxt.common.base.utils.StringUtils;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:40
|
||||
*/
|
||||
@Service
|
||||
public class WmsReportLoseService extends MybatisBaseService<WmsReportLoseMapper, WmsReportLose> {
|
||||
|
||||
|
||||
public ResultBean<PagerVo<WmsReportLoseVo>> listPage(PagerQuery<WmsReportLoseQuery> pq) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsReportLoseQuery query = pq.getParams();
|
||||
QueryWrapper<WmsReportLose> qw = new QueryWrapper<>();
|
||||
if (StringUtils.isNotBlank(query.getName())) {
|
||||
qw.like("rackName", query.getName());
|
||||
}
|
||||
|
||||
IPage<WmsReportLose> page = PagerUtil.queryToPage(pq);
|
||||
IPage<WmsReportLoseVo> pagging = baseMapper.listPage(page, qw);
|
||||
PagerVo<WmsReportLoseVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
List<WmsReportLoseVo> records = pagging.getRecords();
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public ResultBean<String> saveOrUpdate(WmsReportLoseDto dto) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
String sid = "";
|
||||
if (StringUtils.isNotBlank(dto.getSid())) {
|
||||
sid = dto.getSid();
|
||||
WmsReportLose wmsWarehouseRack = fetchBySid(dto.getSid());
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
} else {
|
||||
WmsReportLose wmsWarehouseRack = new WmsReportLose();
|
||||
sid = wmsWarehouseRack.getSid();
|
||||
BeanUtil.copyProperties(dto, wmsWarehouseRack, "id", "sid");
|
||||
wmsWarehouseRack.setCreateTime(new DateTime());
|
||||
baseMapper.insert(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public ResultBean<WmsReportLoseVo> initialization(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsReportLoseVo vo = baseMapper.initialization(sid);
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
public void delAll(String[] sids) {
|
||||
delBySids(sids);
|
||||
}
|
||||
|
||||
public ResultBean delete(String sid) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsReportLose wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
baseMapper.deleteById(wmsWarehouseRack.getId());
|
||||
}
|
||||
return rb.success();
|
||||
}
|
||||
|
||||
public ResultBean updateIsEnable(String sid, String isEnable) {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
WmsReportLose wmsWarehouseRack = fetchBySid(sid);
|
||||
if (null != wmsWarehouseRack) {
|
||||
wmsWarehouseRack.setIsEnable(Integer.parseInt(isEnable));
|
||||
baseMapper.updateById(wmsWarehouseRack);
|
||||
}
|
||||
return rb.success().setMsg("成功");
|
||||
}
|
||||
|
||||
public void delByMainSid(String billSid) {
|
||||
baseMapper.delByMainSid(billSid);
|
||||
}
|
||||
|
||||
public List<WmsReportLoseVo> selByMainSid(String billSid) {
|
||||
return baseMapper.selByMainSid(billSid);
|
||||
}
|
||||
|
||||
public void saveOrUpdateDto(WmsReportLoseDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
this.insertByDto(dto);
|
||||
return;
|
||||
}
|
||||
this.updateByDto(dto);
|
||||
}
|
||||
|
||||
public void insertByDto(WmsReportLoseDto dto) {
|
||||
WmsReportLose entity = new WmsReportLose();
|
||||
BeanUtil.copyProperties(dto, entity, "id", "sid");
|
||||
baseMapper.insert(entity);
|
||||
}
|
||||
|
||||
public void updateByDto(WmsReportLoseDto dto) {
|
||||
String dtoSid = dto.getSid();
|
||||
if (StringUtils.isBlank(dtoSid)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
public WmsReportLoseVo fetchDetailsVoBySid(String sid) {
|
||||
WmsReportLose entity = fetchBySid(sid);
|
||||
WmsReportLoseVo vo = new WmsReportLoseVo();
|
||||
BeanUtil.copyProperties(entity, vo);
|
||||
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.yxt.warehouse.biz.wmsreportlose;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:37
|
||||
*/
|
||||
@Data
|
||||
public class WmsReportLoseVo implements Vo {
|
||||
private String id;
|
||||
private String sid;
|
||||
private String lockVersion;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date modifyTime;
|
||||
private String remarks;
|
||||
private String isEnable;
|
||||
private String state;
|
||||
private String isDelete;
|
||||
private String inventorySid;//商品库存sid
|
||||
private String goodsID;//商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)
|
||||
private String goodSpuSid;//商品基础信息Sid
|
||||
private String goodsSpuName;//商品名称
|
||||
private String goodsSkuSid;//、、商品Skusid
|
||||
private String goodsSkuTitle;//商品Sku名称
|
||||
private String goodsSkuCode;//商品编码(图号)
|
||||
private String goodsSkuOwnSpec;//规格型号
|
||||
private String unit;//计量单位
|
||||
private String count;//数量
|
||||
private String warehouseSid;//仓库sid
|
||||
private String warehouseName;//仓库名称
|
||||
private String warehouseRackSid;//、库位sid
|
||||
private String warehouseRackCode;//库位编码
|
||||
private String loseCount;//损费量
|
||||
private String reportTime;//上报时间
|
||||
private String reportUserSid;//上报人
|
||||
private String picUrl;//现场拍照,多个照片用逗号分隔
|
||||
private String isSyncInventory;//是否同步到系统库存
|
||||
private String confirmUserSid;//损废确认人
|
||||
private String confirmTime;//损废确认时间
|
||||
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
package com.yxt.warehouse.feign.goods.basegoodssku;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/3/20
|
||||
**/
|
||||
@Data
|
||||
public class BaseGoodsSkuDetailsVo {
|
||||
|
||||
@ApiModelProperty("商品代码")
|
||||
private String goodsCode;
|
||||
@ApiModelProperty("条形码")
|
||||
private String barCode;
|
||||
@ApiModelProperty("商品名称")
|
||||
private String goodsName;
|
||||
@ApiModelProperty("副标题")
|
||||
private String subTitle;
|
||||
@ApiModelProperty("拼音缩写")
|
||||
private String goodsPY;
|
||||
@ApiModelProperty("商品简称")
|
||||
private String goodsShortName;
|
||||
@ApiModelProperty("商品分类sid")
|
||||
private String goodsTypeSid;
|
||||
@ApiModelProperty("品牌sid")
|
||||
private String brandSid;
|
||||
@ApiModelProperty("厂家sid")
|
||||
private String manufacturersid;
|
||||
@ApiModelProperty("商品单位sid")
|
||||
private String goodsUnitSid;
|
||||
@ApiModelProperty("商品单位名称")
|
||||
private String goodsUnitName;
|
||||
|
||||
@ApiModelProperty("商品Sku代码")
|
||||
private String goodsSkuCode;
|
||||
@ApiModelProperty("商品标题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty("是否一品一码(goodID),0否,1是")
|
||||
@JsonProperty("isGoodsID")
|
||||
private int isGoodsID;
|
||||
@ApiModelProperty("商品类别名称")
|
||||
private String goodsTypeName;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package com.yxt.warehouse.feign.goods.basegoodssku;
|
||||
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/3/20
|
||||
**/
|
||||
@FeignClient(
|
||||
contextId = "yxt-base-BaseGoodsSku",
|
||||
name = "yxt-base",
|
||||
path = "/apiadmin/base/basegoodssku",
|
||||
fallback = BaseGoodsSkuFeignFallback.class)
|
||||
public interface BaseGoodsSkuFeign {
|
||||
|
||||
@ApiOperation("获取商品信息")
|
||||
@GetMapping("/getDetails")
|
||||
ResultBean<BaseGoodsSkuDetailsVo> getDetails(@RequestParam("sid") String sid);
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.yxt.warehouse.feign.goods.basegoodssku;
|
||||
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/3/20
|
||||
**/
|
||||
@Component
|
||||
public class BaseGoodsSkuFeignFallback implements BaseGoodsSkuFeign {
|
||||
@Override
|
||||
public ResultBean<BaseGoodsSkuDetailsVo> getDetails(String sid) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user