
63 changed files with 4843 additions and 0 deletions
@ -0,0 +1,94 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbillaccount.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillaccount.SmsSalesBillAccountRest <br/> |
||||
|
* Description: 销售订单-费用结算账户. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-费用结算账户") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbillaccount.SmsSalesBillAccountRest") |
||||
|
@RequestMapping("v1/smssalesbillaccount") |
||||
|
public class SmsSalesBillAccountRest{ |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillAccountService smsSalesBillAccountService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillAccountVo>> listPage(@RequestBody PagerQuery<SmsSalesBillAccountQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillAccountVo> pv = smsSalesBillAccountService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillAccountDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillAccountService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillAccountService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillAccountDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillAccountDetailsVo vo = smsSalesBillAccountService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbillamount.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillamount.SmsSalesBillAmountRest <br/> |
||||
|
* Description: 销售订单-费用. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-费用") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbillamount.SmsSalesBillAmountRest") |
||||
|
@RequestMapping("v1/smssalesbillamount") |
||||
|
public class SmsSalesBillAmountRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillAmountService smsSalesBillAmountService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillAmountVo>> listPage(@RequestBody PagerQuery<SmsSalesBillAmountQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillAmountVo> pv = smsSalesBillAmountService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillAmountDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillAmountService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillAmountService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillAmountDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillAmountDetailsVo vo = smsSalesBillAmountService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbilldetail.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilldetail.SmsSalesBillDetailRest <br/> |
||||
|
* Description: 销售订单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-商品清单") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbilldetail.SmsSalesBillDetailRest") |
||||
|
@RequestMapping("v1/smssalesbilldetail") |
||||
|
public class SmsSalesBillDetailRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillDetailService smsSalesBillDetailService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillDetailVo>> listPage(@RequestBody PagerQuery<SmsSalesBillDetailQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillDetailVo> pv = smsSalesBillDetailService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillDetailDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillDetailService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillDetailService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillDetailDetailsVo vo = smsSalesBillDetailService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbillinvoice.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillinvoice.SmsSalesBillInvoiceRest <br/> |
||||
|
* Description: 销售订单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-发票") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbillinvoice.SmsSalesBillInvoiceRest") |
||||
|
@RequestMapping("v1/smssalesbillinvoice") |
||||
|
public class SmsSalesBillInvoiceRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillInvoiceService smsSalesBillInvoiceService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillInvoiceVo>> listPage(@RequestBody PagerQuery<SmsSalesBillInvoiceQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillInvoiceVo> pv = smsSalesBillInvoiceService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillInvoiceDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillInvoiceService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillInvoiceService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillInvoiceDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillInvoiceDetailsVo vo = smsSalesBillInvoiceService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbilllogistics.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilllogistics.SmsSalesBillLogisticsRest <br/> |
||||
|
* Description: 销售订单-物流信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-物流信息") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbilllogistics.SmsSalesBillLogisticsRest") |
||||
|
@RequestMapping("v1/smssalesbilllogistics") |
||||
|
public class SmsSalesBillLogisticsRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillLogisticsService smsSalesBillLogisticsService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillLogisticsVo>> listPage(@RequestBody PagerQuery<SmsSalesBillLogisticsQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillLogisticsVo> pv = smsSalesBillLogisticsService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillLogisticsDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillLogisticsService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillLogisticsService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillLogisticsDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillLogisticsDetailsVo vo = smsSalesBillLogisticsService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,93 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbill.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbill.SmsSalesBillRest <br/> |
||||
|
* Description: 销售订单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbill.SmsSalesBillRest") |
||||
|
@RequestMapping("v1/smssalesbill") |
||||
|
public class SmsSalesBillRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillService smsSalesBillService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillVo>> listPage(@RequestBody PagerQuery<SmsSalesBillQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillVo> pv = smsSalesBillService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillDetailsVo vo = smsSalesBillService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.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.sales.biz.smssalesbillshipper.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillshipper.SmsSalesBillshipperRest <br/> |
||||
|
* Description: 销售订单-收货人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售订单-收货人信息") |
||||
|
@RestController("com.yxt.sales.apiadmin.biz.smssalesbillshipper.SmsSalesBillshipperRest") |
||||
|
@RequestMapping("v1/smssalesbillshipper") |
||||
|
public class SmsSalesBillshipperRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillshipperService smsSalesBillshipperService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillshipperVo>> listPage(@RequestBody PagerQuery<SmsSalesBillshipperQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillshipperVo> pv = smsSalesBillshipperService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillshipperDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillshipperService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillshipperService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillshipperDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillshipperDetailsVo vo = smsSalesBillshipperService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBill.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbill.SmsSalesBill <br/> |
||||
|
* Description: 销售订单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单", description = "销售订单") |
||||
|
@TableName("sms_sales_bill") |
||||
|
public class SmsSalesBill extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("制单部门sid") |
||||
|
private String deptSid; // 制单部门sid
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("备注(打印)") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ApiModelProperty("单据类型key(线下订单/预售订单等)") |
||||
|
private String billTypeKey; // 单据类型key(线下订单/预售订单等)
|
||||
|
@ApiModelProperty("单据类型value") |
||||
|
private String billTypeValue; // 单据类型value
|
||||
|
@ApiModelProperty("开单价格Key(标准售价、吊牌价、批发价、上次购买价)") |
||||
|
private String billPriceTypeKey; // 开单价格Key(标准售价、吊牌价、批发价、上次购买价)
|
||||
|
@ApiModelProperty("开单价格value") |
||||
|
private String billPriceTypeValue; // 开单价格value
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,166 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.yxt.sales.biz.smssalesbilldetail.SmsSalesBillDetailDetailsVo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbill.SmsSalesBillVo <br/> |
||||
|
* Description: 销售订单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单 视图数据详情", description = "销售订单 视图数据详情") |
||||
|
public class SmsSalesBillDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("制单人sid") |
||||
|
private String createBySid; // 制单人姓名
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("制单部门sid") |
||||
|
private String deptSid; // 制单部门sid
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("制单日期") |
||||
|
private String createTime; // 制单日期
|
||||
|
@ApiModelProperty("单据类型key(线下订单/预售订单等)") |
||||
|
private String billTypeKey; // 单据类型key(线下订单/预售订单等)
|
||||
|
@ApiModelProperty("单据类型value") |
||||
|
private String billTypeValue; // 单据类型value
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private String isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; // 备注
|
||||
|
@ApiModelProperty("开单价格Key(标准售价、吊牌价、批发价、上次购买价)") |
||||
|
private String billPriceTypeKey; // 开单价格Key(标准售价、吊牌价、批发价、上次购买价)
|
||||
|
@ApiModelProperty("开单价格value") |
||||
|
private String billPriceTypeValue; // 开单价格value
|
||||
|
//-------------- 客户信息 --------------------
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
//---------------发票信息------------
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private String isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("税率") |
||||
|
private String taxRate; // 税率
|
||||
|
//商品信息
|
||||
|
@ApiModelProperty("商品列表") |
||||
|
private List<SmsSalesBillDetailDetailsVo> goodsList; // 商品列表
|
||||
|
|
||||
|
//费用信息
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private String discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private String coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private String discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private String amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private String dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private String freight; // 运费
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private String thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private String thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private String totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private String advanceBalance; // 预收款余额
|
||||
|
//结算
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private String settleAmount; // 结算金额
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,171 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.yxt.sales.biz.smssalesbilldetail.SmsSalesBillDetailDetailsVo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbill.SmsSalesBillDto <br/> |
||||
|
* Description: 销售订单 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单 数据传输对象", description = "销售订单 数据传输对象") |
||||
|
public class SmsSalesBillDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("制单人sid") |
||||
|
private String createBySid; // 制单人姓名
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("制单部门sid") |
||||
|
private String deptSid; // 制单部门sid
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("制单日期") |
||||
|
private String createTime; // 制单日期
|
||||
|
@ApiModelProperty("单据类型key(线下订单/预售订单等)") |
||||
|
private String billTypeKey; // 单据类型key(线下订单/预售订单等)
|
||||
|
@ApiModelProperty("单据类型value") |
||||
|
private String billTypeValue; // 单据类型value
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private String isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; // 备注
|
||||
|
@ApiModelProperty("开单价格Key(标准售价、吊牌价、批发价、上次购买价)") |
||||
|
private String billPriceTypeKey; // 开单价格Key(标准售价、吊牌价、批发价、上次购买价)
|
||||
|
@ApiModelProperty("开单价格value") |
||||
|
private String billPriceTypeValue; // 开单价格value
|
||||
|
//-------------- 客户信息 --------------------
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
//---------------发票信息------------
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private String isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("税率") |
||||
|
private String taxRate; // 税率
|
||||
|
//商品信息
|
||||
|
@ApiModelProperty("商品列表") |
||||
|
private List<SmsSalesBillDetailDetailsVo> goodsList; // 商品列表
|
||||
|
|
||||
|
//费用信息
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private String discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private String coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private String discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private String amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private String dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private String freight; // 运费
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private String thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private String thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private String totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private String advanceBalance; // 预收款余额
|
||||
|
//结算
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private String settleAmount; // 结算金额
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbill.SmsSalesBillMapper <br/> |
||||
|
* Description: 销售订单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillMapper extends BaseMapper<SmsSalesBill> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillVo> voPage(IPage<SmsSalesBill> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBill> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillVo> selectPageVo(IPage<SmsSalesBill> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBill> qw); |
||||
|
|
||||
|
List<SmsSalesBillVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBill> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill") |
||||
|
List<SmsSalesBillVo> 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.sales.biz.smssalesbill.SmsSalesBillMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbill.SmsSalesBillVo"> |
||||
|
SELECT * FROM sms_sales_bill <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbill.SmsSalesBillVo"> |
||||
|
SELECT * FROM sms_sales_bill <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbill.SmsSalesBillQuery <br/> |
||||
|
* Description: 销售订单 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单 查询条件", description = "销售订单 查询条件") |
||||
|
public class SmsSalesBillQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("制单开始日期") |
||||
|
private String startDate; // 制单开始日期
|
||||
|
@ApiModelProperty("制单结束日期") |
||||
|
private String endDate; // 制单结束日期
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("单据类型key(线下订单/预售订单等)") |
||||
|
private String billTypeKey; // 单据类型key(线下订单/预售订单等)
|
||||
|
@ApiModelProperty("配送方式") |
||||
|
private String deliveryTypeKey; // 配送方式
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbill.SmsSalesBillService <br/> |
||||
|
* Description: 销售订单 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper, SmsSalesBill> { |
||||
|
private QueryWrapper<SmsSalesBill> createQueryWrapper(SmsSalesBillQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBill> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillVo> listPageVo(PagerQuery<SmsSalesBillQuery> pq) { |
||||
|
SmsSalesBillQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBill> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBill> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillDto dto){ |
||||
|
SmsSalesBill entity = new SmsSalesBill(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBill entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBill entity = fetchBySid(sid); |
||||
|
SmsSalesBillDetailsVo vo = new SmsSalesBillDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,83 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbill.SmsSalesBillVo <br/> |
||||
|
* Description: 销售订单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单 视图数据对象", description = "销售订单 视图数据对象") |
||||
|
public class SmsSalesBillVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("制单日期") |
||||
|
private String createTime; // 制单日期
|
||||
|
@ApiModelProperty("单据类型value") |
||||
|
private String billTypeValue; // 单据类型value
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("实付") |
||||
|
private String thisPay; // 实付
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private String discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private String dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private String freight; // 运费
|
||||
|
@ApiModelProperty("业务员") |
||||
|
private String salesName; // 业务员
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccount.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillaccount.SmsSalesBillAccount <br/> |
||||
|
* Description: 销售订单-费用结算账户. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用结算账户", description = "销售订单-费用结算账户") |
||||
|
@TableName("sms_sales_bill_account") |
||||
|
public class SmsSalesBillAccount extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal amount; // 结算金额
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillaccount.SmsSalesBillAccountVo <br/> |
||||
|
* Description: 销售订单-费用结算账户 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用结算账户 视图数据详情", description = "销售订单-费用结算账户 视图数据详情") |
||||
|
public class SmsSalesBillAccountDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal amount; // 结算金额
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillaccount.SmsSalesBillAccountDto <br/> |
||||
|
* Description: 销售订单-费用结算账户 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用结算账户 数据传输对象", description = "销售订单-费用结算账户 数据传输对象") |
||||
|
public class SmsSalesBillAccountDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal amount; // 结算金额
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillaccount.SmsSalesBillAccountMapper <br/> |
||||
|
* Description: 销售订单-费用结算账户. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillAccountMapper extends BaseMapper<SmsSalesBillAccount> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_account set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillAccountVo> voPage(IPage<SmsSalesBillAccount> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillAccount> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillAccountVo> selectPageVo(IPage<SmsSalesBillAccount> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillAccount> qw); |
||||
|
|
||||
|
List<SmsSalesBillAccountVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillAccount> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_account") |
||||
|
List<SmsSalesBillAccountVo> 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.sales.biz.smssalesbillaccount.SmsSalesBillAccountMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbillaccount.SmsSalesBillAccountVo"> |
||||
|
SELECT * FROM sms_sales_bill_account <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbillaccount.SmsSalesBillAccountVo"> |
||||
|
SELECT * FROM sms_sales_bill_account <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillaccount.SmsSalesBillAccountQuery <br/> |
||||
|
* Description: 销售订单-费用结算账户 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用结算账户 查询条件", description = "销售订单-费用结算账户 查询条件") |
||||
|
public class SmsSalesBillAccountQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal amount; // 结算金额
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillaccount.SmsSalesBillAccountService <br/> |
||||
|
* Description: 销售订单-费用结算账户 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillAccountService extends MybatisBaseService<SmsSalesBillAccountMapper, SmsSalesBillAccount> { |
||||
|
private QueryWrapper<SmsSalesBillAccount> createQueryWrapper(SmsSalesBillAccountQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillAccount> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillAccountVo> listPageVo(PagerQuery<SmsSalesBillAccountQuery> pq) { |
||||
|
SmsSalesBillAccountQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillAccount> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillAccount> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillAccountVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillAccountVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillAccountDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillAccountDto dto){ |
||||
|
SmsSalesBillAccount entity = new SmsSalesBillAccount(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillAccountDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillAccount entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillAccountDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillAccount entity = fetchBySid(sid); |
||||
|
SmsSalesBillAccountDetailsVo vo = new SmsSalesBillAccountDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillaccount; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAccountVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillaccount.SmsSalesBillAccountVo <br/> |
||||
|
* Description: 销售订单-费用结算账户 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用结算账户 视图数据对象", description = "销售订单-费用结算账户 视图数据对象") |
||||
|
public class SmsSalesBillAccountVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal amount; // 结算金额
|
||||
|
|
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmount.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillamount.SmsSalesBillAmount <br/> |
||||
|
* Description: 销售订单-费用. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用", description = "销售订单-费用") |
||||
|
@TableName("sms_sales_bill_amount") |
||||
|
public class SmsSalesBillAmount extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private BigDecimal amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private BigDecimal dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private BigDecimal freight; // 运费
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private Integer isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private BigDecimal thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private BigDecimal thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private BigDecimal totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private BigDecimal advanceBalance; // 预收款余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillamount.SmsSalesBillAmountVo <br/> |
||||
|
* Description: 销售订单-费用 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用 视图数据详情", description = "销售订单-费用 视图数据详情") |
||||
|
public class SmsSalesBillAmountDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private BigDecimal amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private BigDecimal dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private BigDecimal freight; // 运费
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private Integer isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private BigDecimal thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private BigDecimal thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private BigDecimal totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private BigDecimal advanceBalance; // 预收款余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillamount.SmsSalesBillAmountDto <br/> |
||||
|
* Description: 销售订单-费用 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用 数据传输对象", description = "销售订单-费用 数据传输对象") |
||||
|
public class SmsSalesBillAmountDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private BigDecimal amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private BigDecimal dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private BigDecimal freight; // 运费
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private Integer isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private BigDecimal thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private BigDecimal thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private BigDecimal totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private BigDecimal advanceBalance; // 预收款余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillamount.SmsSalesBillAmountMapper <br/> |
||||
|
* Description: 销售订单-费用. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillAmountMapper extends BaseMapper<SmsSalesBillAmount> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_amount set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillAmountVo> voPage(IPage<SmsSalesBillAmount> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillAmount> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillAmountVo> selectPageVo(IPage<SmsSalesBillAmount> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillAmount> qw); |
||||
|
|
||||
|
List<SmsSalesBillAmountVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillAmount> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_amount") |
||||
|
List<SmsSalesBillAmountVo> 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.sales.biz.smssalesbillamount.SmsSalesBillAmountMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbillamount.SmsSalesBillAmountVo"> |
||||
|
SELECT * FROM sms_sales_bill_amount <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbillamount.SmsSalesBillAmountVo"> |
||||
|
SELECT * FROM sms_sales_bill_amount <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillamount.SmsSalesBillAmountQuery <br/> |
||||
|
* Description: 销售订单-费用 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用 查询条件", description = "销售订单-费用 查询条件") |
||||
|
public class SmsSalesBillAmountQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private BigDecimal amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private BigDecimal dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private BigDecimal freight; // 运费
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private Integer isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private BigDecimal thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private BigDecimal thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private BigDecimal totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private BigDecimal advanceBalance; // 预收款余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillamount.SmsSalesBillAmountService <br/> |
||||
|
* Description: 销售订单-费用 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillAmountService extends MybatisBaseService<SmsSalesBillAmountMapper, SmsSalesBillAmount> { |
||||
|
private QueryWrapper<SmsSalesBillAmount> createQueryWrapper(SmsSalesBillAmountQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillAmount> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillAmountVo> listPageVo(PagerQuery<SmsSalesBillAmountQuery> pq) { |
||||
|
SmsSalesBillAmountQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillAmount> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillAmount> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillAmountVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillAmountVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillAmountDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillAmountDto dto){ |
||||
|
SmsSalesBillAmount entity = new SmsSalesBillAmount(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillAmountDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillAmount entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillAmountDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillAmount entity = fetchBySid(sid); |
||||
|
SmsSalesBillAmountDetailsVo vo = new SmsSalesBillAmountDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillamount; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillAmountVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillamount.SmsSalesBillAmountVo <br/> |
||||
|
* Description: 销售订单-费用 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-费用 视图数据对象", description = "销售订单-费用 视图数据对象") |
||||
|
public class SmsSalesBillAmountVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRate; // 折扣率
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("优惠后金额") |
||||
|
private BigDecimal amount; // 优惠后金额
|
||||
|
@ApiModelProperty("应收合计") |
||||
|
private BigDecimal dueAmount; // 应收合计
|
||||
|
@ApiModelProperty("运费") |
||||
|
private BigDecimal freight; // 运费
|
||||
|
@ApiModelProperty("是否货到付款(1是,0否)") |
||||
|
private Integer isFirstPay; // 是否货到付款(1是,0否)
|
||||
|
@ApiModelProperty("本次收款") |
||||
|
private BigDecimal thisPay; // 本次收款
|
||||
|
@ApiModelProperty("本次欠款") |
||||
|
private BigDecimal thisDebt; // 本次欠款
|
||||
|
@ApiModelProperty("总欠款") |
||||
|
private BigDecimal totalDebt; // 总欠款
|
||||
|
@ApiModelProperty("预收款余额") |
||||
|
private BigDecimal advanceBalance; // 预收款余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetail.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilldetail.SmsSalesBillDetail <br/> |
||||
|
* Description: 销售订单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-商品清单", description = "销售订单-商品清单") |
||||
|
@TableName("sms_sales_bill_detail") |
||||
|
public class SmsSalesBillDetail extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("工单sid") |
||||
|
private String billSid; // 工单sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; // 商品编码
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("重量(kg)") |
||||
|
private BigDecimal weight; // 重量(kg)
|
||||
|
@ApiModelProperty("体积(立方米)") |
||||
|
private BigDecimal volume; // 体积(立方米)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("销售单价") |
||||
|
private BigDecimal price; // 销售单价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRtate; // 折扣率
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("应收款") |
||||
|
private BigDecimal dueAmount; // 应收款
|
||||
|
@ApiModelProperty("商品成本") |
||||
|
private BigDecimal cost; // 商品成本
|
||||
|
@ApiModelProperty("分摊优惠") |
||||
|
private BigDecimal discountAmount; // 分摊优惠
|
||||
|
@ApiModelProperty("惠后金额") |
||||
|
private BigDecimal amount; // 惠后金额
|
||||
|
@ApiModelProperty("库存数量") |
||||
|
private BigDecimal inventoryCount; // 库存数量
|
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilldetail.SmsSalesBillDetailVo <br/> |
||||
|
* Description: 销售订单-商品清单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-商品清单 视图数据详情", description = "销售订单-商品清单 视图数据详情") |
||||
|
public class SmsSalesBillDetailDetailsVo implements Vo { |
||||
|
|
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; // 商品编码
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("重量(kg)") |
||||
|
private String weight; // 重量(kg)
|
||||
|
@ApiModelProperty("体积(立方米)") |
||||
|
private String volume; // 体积(立方米)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("销售单价") |
||||
|
private String price; // 销售单价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private String discountRtate; // 折扣率
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private String discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("应收款") |
||||
|
private String dueAmount; // 应收款
|
||||
|
@ApiModelProperty("商品成本") |
||||
|
private String cost; // 商品成本
|
||||
|
@ApiModelProperty("分摊优惠") |
||||
|
private String discountAmount; // 分摊优惠
|
||||
|
@ApiModelProperty("惠后金额") |
||||
|
private String amount; // 惠后金额
|
||||
|
@ApiModelProperty("库存数量") |
||||
|
private String inventoryCount; // 库存数量
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; // 备注
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilldetail.SmsSalesBillDetailDto <br/> |
||||
|
* Description: 销售订单-商品清单 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-商品清单 数据传输对象", description = "销售订单-商品清单 数据传输对象") |
||||
|
public class SmsSalesBillDetailDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("工单sid") |
||||
|
private String billSid; // 工单sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; // 商品编码
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("重量(kg)") |
||||
|
private BigDecimal weight; // 重量(kg)
|
||||
|
@ApiModelProperty("体积(立方米)") |
||||
|
private BigDecimal volume; // 体积(立方米)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("销售单价") |
||||
|
private BigDecimal price; // 销售单价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRtate; // 折扣率
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("应收款") |
||||
|
private BigDecimal dueAmount; // 应收款
|
||||
|
@ApiModelProperty("商品成本") |
||||
|
private BigDecimal cost; // 商品成本
|
||||
|
@ApiModelProperty("分摊优惠") |
||||
|
private BigDecimal discountAmount; // 分摊优惠
|
||||
|
@ApiModelProperty("惠后金额") |
||||
|
private BigDecimal amount; // 惠后金额
|
||||
|
@ApiModelProperty("库存数量") |
||||
|
private BigDecimal inventoryCount; // 库存数量
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilldetail.SmsSalesBillDetailMapper <br/> |
||||
|
* Description: 销售订单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillDetailMapper extends BaseMapper<SmsSalesBillDetail> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_detail set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillDetailVo> voPage(IPage<SmsSalesBillDetail> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillDetail> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillDetailVo> selectPageVo(IPage<SmsSalesBillDetail> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillDetail> qw); |
||||
|
|
||||
|
List<SmsSalesBillDetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillDetail> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_detail") |
||||
|
List<SmsSalesBillDetailVo> 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.sales.biz.smssalesbilldetail.SmsSalesBillDetailMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbilldetail.SmsSalesBillDetailVo"> |
||||
|
SELECT * FROM sms_sales_bill_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbilldetail.SmsSalesBillDetailVo"> |
||||
|
SELECT * FROM sms_sales_bill_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilldetail.SmsSalesBillDetailQuery <br/> |
||||
|
* Description: 销售订单-商品清单 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-商品清单 查询条件", description = "销售订单-商品清单 查询条件") |
||||
|
public class SmsSalesBillDetailQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("工单sid") |
||||
|
private String billSid; // 工单sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; // 商品编码
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("重量(kg)") |
||||
|
private BigDecimal weight; // 重量(kg)
|
||||
|
@ApiModelProperty("体积(立方米)") |
||||
|
private BigDecimal volume; // 体积(立方米)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("销售单价") |
||||
|
private BigDecimal price; // 销售单价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRtate; // 折扣率
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("应收款") |
||||
|
private BigDecimal dueAmount; // 应收款
|
||||
|
@ApiModelProperty("商品成本") |
||||
|
private BigDecimal cost; // 商品成本
|
||||
|
@ApiModelProperty("分摊优惠") |
||||
|
private BigDecimal discountAmount; // 分摊优惠
|
||||
|
@ApiModelProperty("惠后金额") |
||||
|
private BigDecimal amount; // 惠后金额
|
||||
|
@ApiModelProperty("库存数量") |
||||
|
private BigDecimal inventoryCount; // 库存数量
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilldetail.SmsSalesBillDetailService <br/> |
||||
|
* Description: 销售订单-商品清单 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillDetailService extends MybatisBaseService<SmsSalesBillDetailMapper, SmsSalesBillDetail> { |
||||
|
private QueryWrapper<SmsSalesBillDetail> createQueryWrapper(SmsSalesBillDetailQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillDetail> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillDetailVo> listPageVo(PagerQuery<SmsSalesBillDetailQuery> pq) { |
||||
|
SmsSalesBillDetailQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillDetail> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillDetail> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillDetailVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillDetailVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillDetailDto dto){ |
||||
|
SmsSalesBillDetail entity = new SmsSalesBillDetail(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillDetail entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillDetailDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillDetail entity = fetchBySid(sid); |
||||
|
SmsSalesBillDetailDetailsVo vo = new SmsSalesBillDetailDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilldetail; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilldetail.SmsSalesBillDetailVo <br/> |
||||
|
* Description: 销售订单-商品清单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-商品清单 视图数据对象", description = "销售订单-商品清单 视图数据对象") |
||||
|
public class SmsSalesBillDetailVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("工单sid") |
||||
|
private String billSid; // 工单sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; // 商品编码
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("重量(kg)") |
||||
|
private BigDecimal weight; // 重量(kg)
|
||||
|
@ApiModelProperty("体积(立方米)") |
||||
|
private BigDecimal volume; // 体积(立方米)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("销售单价") |
||||
|
private BigDecimal price; // 销售单价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣率") |
||||
|
private BigDecimal discountRtate; // 折扣率
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("应收款") |
||||
|
private BigDecimal dueAmount; // 应收款
|
||||
|
@ApiModelProperty("商品成本") |
||||
|
private BigDecimal cost; // 商品成本
|
||||
|
@ApiModelProperty("分摊优惠") |
||||
|
private BigDecimal discountAmount; // 分摊优惠
|
||||
|
@ApiModelProperty("惠后金额") |
||||
|
private BigDecimal amount; // 惠后金额
|
||||
|
@ApiModelProperty("库存数量") |
||||
|
private BigDecimal inventoryCount; // 库存数量
|
||||
|
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoice.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillinvoice.SmsSalesBillInvoice <br/> |
||||
|
* Description: 销售订单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-发票", description = "销售订单-发票") |
||||
|
@TableName("sms_sales_bill_invoice") |
||||
|
public class SmsSalesBillInvoice extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票代码") |
||||
|
private String invoiceCode; // 发票代码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillinvoice.SmsSalesBillInvoiceVo <br/> |
||||
|
* Description: 销售订单-发票 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-发票 视图数据详情", description = "销售订单-发票 视图数据详情") |
||||
|
public class SmsSalesBillInvoiceDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票代码") |
||||
|
private String invoiceCode; // 发票代码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillinvoice.SmsSalesBillInvoiceDto <br/> |
||||
|
* Description: 销售订单-发票 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-发票 数据传输对象", description = "销售订单-发票 数据传输对象") |
||||
|
public class SmsSalesBillInvoiceDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票代码") |
||||
|
private String invoiceCode; // 发票代码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillinvoice.SmsSalesBillInvoiceMapper <br/> |
||||
|
* Description: 销售订单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillInvoiceMapper extends BaseMapper<SmsSalesBillInvoice> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_invoice set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillInvoiceVo> voPage(IPage<SmsSalesBillInvoice> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillInvoice> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillInvoiceVo> selectPageVo(IPage<SmsSalesBillInvoice> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillInvoice> qw); |
||||
|
|
||||
|
List<SmsSalesBillInvoiceVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillInvoice> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_invoice") |
||||
|
List<SmsSalesBillInvoiceVo> 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.sales.biz.smssalesbillinvoice.SmsSalesBillInvoiceMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbillinvoice.SmsSalesBillInvoiceVo"> |
||||
|
SELECT * FROM sms_sales_bill_invoice <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbillinvoice.SmsSalesBillInvoiceVo"> |
||||
|
SELECT * FROM sms_sales_bill_invoice <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillinvoice.SmsSalesBillInvoiceQuery <br/> |
||||
|
* Description: 销售订单-发票 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-发票 查询条件", description = "销售订单-发票 查询条件") |
||||
|
public class SmsSalesBillInvoiceQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票代码") |
||||
|
private String invoiceCode; // 发票代码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillinvoice.SmsSalesBillInvoiceService <br/> |
||||
|
* Description: 销售订单-发票 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillInvoiceService extends MybatisBaseService<SmsSalesBillInvoiceMapper, SmsSalesBillInvoice> { |
||||
|
private QueryWrapper<SmsSalesBillInvoice> createQueryWrapper(SmsSalesBillInvoiceQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillInvoice> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillInvoiceVo> listPageVo(PagerQuery<SmsSalesBillInvoiceQuery> pq) { |
||||
|
SmsSalesBillInvoiceQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillInvoice> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillInvoice> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillInvoiceVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillInvoiceVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillInvoiceDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillInvoiceDto dto){ |
||||
|
SmsSalesBillInvoice entity = new SmsSalesBillInvoice(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillInvoiceDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillInvoice entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillInvoiceDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillInvoice entity = fetchBySid(sid); |
||||
|
SmsSalesBillInvoiceDetailsVo vo = new SmsSalesBillInvoiceDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillinvoice; |
||||
|
|
||||
|
|
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillInvoiceVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillinvoice.SmsSalesBillInvoiceVo <br/> |
||||
|
* Description: 销售订单-发票 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-发票 视图数据对象", description = "销售订单-发票 视图数据对象") |
||||
|
public class SmsSalesBillInvoiceVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型Key") |
||||
|
private String invoiceTypeKey; // 发票类型Key
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票代码") |
||||
|
private String invoiceCode; // 发票代码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogistics.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilllogistics.SmsSalesBillLogistics <br/> |
||||
|
* Description: 销售订单-物流信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-物流信息", description = "销售订单-物流信息") |
||||
|
@TableName("sms_sales_bill_logistics") |
||||
|
public class SmsSalesBillLogistics extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("物流单号") |
||||
|
private String logisticsNum; // 物流单号
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计发货时间") |
||||
|
private Date expectSendDate; // 预计发货时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("发货日期") |
||||
|
private Date sendDate; // 发货日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计送达时间") |
||||
|
private Date deliveryDate; // 预计送达时间
|
||||
|
|
||||
|
} |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilllogistics.SmsSalesBillLogisticsVo <br/> |
||||
|
* Description: 销售订单-物流信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-物流信息 视图数据详情", description = "销售订单-物流信息 视图数据详情") |
||||
|
public class SmsSalesBillLogisticsDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("物流单号") |
||||
|
private String logisticsNum; // 物流单号
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计发货时间") |
||||
|
private Date expectSendDateStart; // 预计发货时间
|
||||
|
private Date expectSendDateEnd; // 预计发货时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("发货日期") |
||||
|
private Date sendDateStart; // 发货日期
|
||||
|
private Date sendDateEnd; // 发货日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计送达时间") |
||||
|
private Date deliveryDateStart; // 预计送达时间
|
||||
|
private Date deliveryDateEnd; // 预计送达时间
|
||||
|
|
||||
|
} |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilllogistics.SmsSalesBillLogisticsDto <br/> |
||||
|
* Description: 销售订单-物流信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-物流信息 数据传输对象", description = "销售订单-物流信息 数据传输对象") |
||||
|
public class SmsSalesBillLogisticsDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("物流单号") |
||||
|
private String logisticsNum; // 物流单号
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计发货时间") |
||||
|
private Date expectSendDateStart; // 预计发货时间
|
||||
|
private Date expectSendDateEnd; // 预计发货时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("发货日期") |
||||
|
private Date sendDateStart; // 发货日期
|
||||
|
private Date sendDateEnd; // 发货日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计送达时间") |
||||
|
private Date deliveryDateStart; // 预计送达时间
|
||||
|
private Date deliveryDateEnd; // 预计送达时间
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilllogistics.SmsSalesBillLogisticsMapper <br/> |
||||
|
* Description: 销售订单-物流信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillLogisticsMapper extends BaseMapper<SmsSalesBillLogistics> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_logistics set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillLogisticsVo> voPage(IPage<SmsSalesBillLogistics> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillLogistics> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillLogisticsVo> selectPageVo(IPage<SmsSalesBillLogistics> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillLogistics> qw); |
||||
|
|
||||
|
List<SmsSalesBillLogisticsVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillLogistics> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_logistics") |
||||
|
List<SmsSalesBillLogisticsVo> 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.sales.biz.smssalesbilllogistics.SmsSalesBillLogisticsMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbilllogistics.SmsSalesBillLogisticsVo"> |
||||
|
SELECT * FROM sms_sales_bill_logistics <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbilllogistics.SmsSalesBillLogisticsVo"> |
||||
|
SELECT * FROM sms_sales_bill_logistics <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilllogistics.SmsSalesBillLogisticsQuery <br/> |
||||
|
* Description: 销售订单-物流信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-物流信息 查询条件", description = "销售订单-物流信息 查询条件") |
||||
|
public class SmsSalesBillLogisticsQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String LogisticsName; // 物流公司
|
||||
|
@ApiModelProperty("物流单号") |
||||
|
private String logisticsNum; // 物流单号
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计发货时间") |
||||
|
private Date expectSendDateStart; // 预计发货时间
|
||||
|
private Date expectSendDateEnd; // 预计发货时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("发货日期") |
||||
|
private Date sendDateStart; // 发货日期
|
||||
|
private Date sendDateEnd; // 发货日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计送达时间") |
||||
|
private Date deliveryDateStart; // 预计送达时间
|
||||
|
private Date deliveryDateEnd; // 预计送达时间
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbilllogistics.SmsSalesBillLogisticsService <br/> |
||||
|
* Description: 销售订单-物流信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillLogisticsService extends MybatisBaseService<SmsSalesBillLogisticsMapper, SmsSalesBillLogistics> { |
||||
|
private QueryWrapper<SmsSalesBillLogistics> createQueryWrapper(SmsSalesBillLogisticsQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillLogistics> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillLogisticsVo> listPageVo(PagerQuery<SmsSalesBillLogisticsQuery> pq) { |
||||
|
SmsSalesBillLogisticsQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillLogistics> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillLogistics> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillLogisticsVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillLogisticsVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillLogisticsDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillLogisticsDto dto){ |
||||
|
SmsSalesBillLogistics entity = new SmsSalesBillLogistics(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillLogisticsDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillLogistics entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillLogisticsDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillLogistics entity = fetchBySid(sid); |
||||
|
SmsSalesBillLogisticsDetailsVo vo = new SmsSalesBillLogisticsDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbilllogistics; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillLogisticsVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbilllogistics.SmsSalesBillLogisticsVo <br/> |
||||
|
* Description: 销售订单-物流信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-物流信息 视图数据对象", description = "销售订单-物流信息 视图数据对象") |
||||
|
public class SmsSalesBillLogisticsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String logisticsName; // 物流公司
|
||||
|
@ApiModelProperty("物流单号") |
||||
|
private String logisticsNum; // 物流单号
|
||||
|
@ApiModelProperty("配送方式Key") |
||||
|
private String deliveryTypeKey; // 配送方式Key
|
||||
|
@ApiModelProperty("配送方式Value") |
||||
|
private String deliveryTypeValue; // 配送方式Value
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计发货时间") |
||||
|
private Date expectSendDateStart; // 预计发货时间
|
||||
|
private Date expectSendDateEnd; // 预计发货时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("发货日期") |
||||
|
private Date sendDateStart; // 发货日期
|
||||
|
private Date sendDateEnd; // 发货日期
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("预计送达时间") |
||||
|
private Date deliveryDateStart; // 预计送达时间
|
||||
|
private Date deliveryDateEnd; // 预计送达时间
|
||||
|
|
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillshipper.SmsSalesBillshipper <br/> |
||||
|
* Description: 销售订单-收货人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-收货人信息", description = "销售订单-收货人信息") |
||||
|
@TableName("sms_sales_billshipper") |
||||
|
public class SmsSalesBillshipper extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
@ApiModelProperty("店铺名称") |
||||
|
private String shopName; // 店铺名称
|
||||
|
@ApiModelProperty("买家留言") |
||||
|
private String buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillshipper.SmsSalesBillshipperVo <br/> |
||||
|
* Description: 销售订单-收货人信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-收货人信息 视图数据详情", description = "销售订单-收货人信息 视图数据详情") |
||||
|
public class SmsSalesBillshipperDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
@ApiModelProperty("店铺名称") |
||||
|
private String shopName; // 店铺名称
|
||||
|
@ApiModelProperty("买家留言") |
||||
|
private String buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperDto.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillshipper.SmsSalesBillshipperDto <br/> |
||||
|
* Description: 销售订单-收货人信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-收货人信息 数据传输对象", description = "销售订单-收货人信息 数据传输对象") |
||||
|
public class SmsSalesBillshipperDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
@ApiModelProperty("店铺名称") |
||||
|
private String shopName; // 店铺名称
|
||||
|
@ApiModelProperty("买家留言") |
||||
|
private String buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
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: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperMapper.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillshipper.SmsSalesBillshipperMapper <br/> |
||||
|
* Description: 销售订单-收货人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillshipperMapper extends BaseMapper<SmsSalesBillshipper> { |
||||
|
|
||||
|
//@Update("update sms_sales_billshipper set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillshipperVo> voPage(IPage<SmsSalesBillshipper> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillshipper> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillshipperVo> selectPageVo(IPage<SmsSalesBillshipper> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillshipper> qw); |
||||
|
|
||||
|
List<SmsSalesBillshipperVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillshipper> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_billshipper") |
||||
|
List<SmsSalesBillshipperVo> 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.sales.biz.smssalesbillshipper.SmsSalesBillshipperMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesbillshipper.SmsSalesBillshipperVo"> |
||||
|
SELECT * FROM sms_sales_billshipper <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesbillshipper.SmsSalesBillshipperVo"> |
||||
|
SELECT * FROM sms_sales_billshipper <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperQuery.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillshipper.SmsSalesBillshipperQuery <br/> |
||||
|
* Description: 销售订单-收货人信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-收货人信息 查询条件", description = "销售订单-收货人信息 查询条件") |
||||
|
public class SmsSalesBillshipperQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
@ApiModelProperty("店铺名称") |
||||
|
private String shopName; // 店铺名称
|
||||
|
@ApiModelProperty("买家留言") |
||||
|
private String buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
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 org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperService.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.biz.smssalesbillshipper.SmsSalesBillshipperService <br/> |
||||
|
* Description: 销售订单-收货人信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillshipperService extends MybatisBaseService<SmsSalesBillshipperMapper, SmsSalesBillshipper> { |
||||
|
private QueryWrapper<SmsSalesBillshipper> createQueryWrapper(SmsSalesBillshipperQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillshipper> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillshipperVo> listPageVo(PagerQuery<SmsSalesBillshipperQuery> pq) { |
||||
|
SmsSalesBillshipperQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillshipper> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillshipper> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillshipperVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillshipperVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillshipperDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillshipperDto dto){ |
||||
|
SmsSalesBillshipper entity = new SmsSalesBillshipper(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillshipperDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillshipper entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillshipperDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillshipper entity = fetchBySid(sid); |
||||
|
SmsSalesBillshipperDetailsVo vo = new SmsSalesBillshipperDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesbillshipper; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: ss-sales(ss-sales) <br/> |
||||
|
* File: SmsSalesBillshipperVo.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.api.smssalesbillshipper.SmsSalesBillshipperVo <br/> |
||||
|
* Description: 销售订单-收货人信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-04 15:18:10 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售订单-收货人信息 视图数据对象", description = "销售订单-收货人信息 视图数据对象") |
||||
|
public class SmsSalesBillshipperVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("销售单sid") |
||||
|
private String billSid; // 销售单sid
|
||||
|
@ApiModelProperty("收货人姓名") |
||||
|
private String shipperName; // 收货人姓名
|
||||
|
@ApiModelProperty("收货人手机") |
||||
|
private String shipperMob; // 收货人手机
|
||||
|
@ApiModelProperty("收货省sid") |
||||
|
private String deliveryProvinceSid; // 收货省sid
|
||||
|
@ApiModelProperty("收货省") |
||||
|
private String deliveryProvince; // 收货省
|
||||
|
@ApiModelProperty("收货市sid") |
||||
|
private String deliveryCitySid; // 收货市sid
|
||||
|
@ApiModelProperty("收货市") |
||||
|
private String deliveryCity; // 收货市
|
||||
|
@ApiModelProperty("收货县区sid") |
||||
|
private String deliveryCountySid; // 收货县区sid
|
||||
|
@ApiModelProperty("收货县区") |
||||
|
private String deliveryCounty; // 收货县区
|
||||
|
@ApiModelProperty("收货详细地址") |
||||
|
private String deliveryAddress; // 收货详细地址
|
||||
|
@ApiModelProperty("邮编 ") |
||||
|
private String postCode; // 邮编
|
||||
|
@ApiModelProperty("店铺名称") |
||||
|
private String shopName; // 店铺名称
|
||||
|
@ApiModelProperty("买家留言") |
||||
|
private String buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue