
155 changed files with 10775 additions and 1 deletions
@ -0,0 +1,2 @@ |
|||||
|
yxt-sms-biz |
||||
|
销售管理后台程序及接口 |
@ -0,0 +1,134 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
|
|
||||
|
<parent> |
||||
|
<groupId>com.yxt</groupId> |
||||
|
<artifactId>yxt-parent</artifactId> |
||||
|
<version>0.0.1</version> |
||||
|
<relativePath/> |
||||
|
</parent> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
|
<artifactId>yxt-sms-biz</artifactId> |
||||
|
<groupId>com.yxt.sms</groupId> |
||||
|
<version>2.0.1</version> |
||||
|
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.yxt</groupId> |
||||
|
<artifactId>yxt-common-base</artifactId> |
||||
|
<version>0.0.1</version> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>org.springframework.boot</groupId> |
||||
|
<artifactId>spring-boot-starter-web</artifactId> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>com.alibaba.cloud</groupId> |
||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>org.springframework.cloud</groupId> |
||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||
|
</dependency> |
||||
|
|
||||
|
<!--mysql--> |
||||
|
<dependency> |
||||
|
<groupId>mysql</groupId> |
||||
|
<artifactId>mysql-connector-java</artifactId> |
||||
|
<scope>runtime</scope> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>com.baomidou</groupId> |
||||
|
<artifactId>mybatis-plus-boot-starter</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.baomidou</groupId> |
||||
|
<artifactId>mybatis-plus-annotation</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<scope>compile</scope> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>org.projectlombok</groupId> |
||||
|
<artifactId>lombok</artifactId> |
||||
|
<version>1.18.26</version> |
||||
|
<optional>true</optional> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.springframework.boot</groupId> |
||||
|
<artifactId>spring-boot-starter-test</artifactId> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
|
||||
|
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc --> |
||||
|
<dependency> |
||||
|
<groupId>cn.dev33</groupId> |
||||
|
<artifactId>sa-token-spring-boot-starter</artifactId> |
||||
|
<version>1.37.0</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>cn.hutool</groupId> |
||||
|
<artifactId>hutool-all</artifactId> |
||||
|
<version>5.8.23</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>cn.hutool</groupId> |
||||
|
<artifactId>hutool-core</artifactId> |
||||
|
<version>5.8.23</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.google.zxing</groupId> |
||||
|
<artifactId>core</artifactId> |
||||
|
<version>3.5.2</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.alibaba</groupId> |
||||
|
<artifactId>easyexcel</artifactId> |
||||
|
<version>3.3.2</version> |
||||
|
</dependency> |
||||
|
|
||||
|
</dependencies> |
||||
|
|
||||
|
<build> |
||||
|
<plugins> |
||||
|
<plugin> |
||||
|
<groupId>org.springframework.boot</groupId> |
||||
|
<artifactId>spring-boot-maven-plugin</artifactId> |
||||
|
<version>2.5.6</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<goals> |
||||
|
<goal>repackage</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
<resources> |
||||
|
<resource> |
||||
|
<directory>src/main/java</directory> |
||||
|
<includes> |
||||
|
<include>**/*Mapper.xml</include> |
||||
|
</includes> |
||||
|
</resource> |
||||
|
<resource> |
||||
|
<directory>src/main/resources</directory> |
||||
|
<includes> |
||||
|
<include>**/*.*</include> |
||||
|
</includes> |
||||
|
<filtering>false</filtering> |
||||
|
</resource> |
||||
|
</resources> |
||||
|
</build> |
||||
|
|
||||
|
</project> |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.sms; |
||||
|
|
||||
|
import org.springframework.boot.SpringApplication; |
||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
|
import org.springframework.cloud.openfeign.EnableFeignClients; |
||||
|
import org.springframework.scheduling.annotation.EnableScheduling; |
||||
|
|
||||
|
@SpringBootApplication(scanBasePackages = { |
||||
|
"com.yxt.sms.config", |
||||
|
"com.yxt.common.base.config", |
||||
|
"com.yxt.sms" |
||||
|
}) |
||||
|
// 启用自带定时任务
|
||||
|
@EnableScheduling |
||||
|
@EnableFeignClients(basePackages = {}) |
||||
|
public class YxtSmsBizApplication { |
||||
|
|
||||
|
public static void main(String[] args) { |
||||
|
SpringApplication.run(YxtSmsBizApplication.class, args); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
package com.yxt.sms.apiadmin; |
||||
|
|
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController("com.yxt.sms.apiadmin.AdminHomeRest") |
||||
|
@RequestMapping("/apiadmin/home") |
||||
|
public class AdminHomeRest { |
||||
|
|
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smspricestrategybilldetail.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailRest <br/> |
||||
|
* Description: 价格策略申请明细. <br/> |
||||
|
* Copyright: Copyright (c) 20ll <br/> |
||||
|
* Company: https://gitee.com/liuzp3l5 <br/>
|
||||
|
* Makedate: 2024-03-28 l4:29:38 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version l.0 |
||||
|
* @since l.0 |
||||
|
*/ |
||||
|
@Api(tags = "价格策略申请明细") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/sms/smspricestrategybilldetail") |
||||
|
public class SmsPricestrategyBillDetailRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsPricestrategyBillDetailService smsPricestrategyBillDetailService; |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsPricestrategyBillDetailVo>> listPage(@RequestBody PagerQuery<SmsPricestrategyBillDetailQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsPricestrategyBillDetailVo> pv = smsPricestrategyBillDetailService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsPricestrategyBillDetailDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillDetailService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillDetailService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsPricestrategyBillDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsPricestrategyBillDetailDetailsVo vo = smsPricestrategyBillDetailService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smspricestrategybillgoodstypedetail.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailRest <br/> |
||||
|
* Description: 价格策略商品类别明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "价格策略商品类别明细") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/sms/smspricestrategybillgoodstypedetail") |
||||
|
public class SmsPricestrategyBillGoodstypedetailRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsPricestrategyBillGoodstypedetailService smsPricestrategyBillGoodstypedetailService; |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsPricestrategyBillGoodstypedetailVo>> listPage(@RequestBody PagerQuery<SmsPricestrategyBillGoodstypedetailQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsPricestrategyBillGoodstypedetailVo> pv = smsPricestrategyBillGoodstypedetailService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsPricestrategyBillGoodstypedetailDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillGoodstypedetailService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillGoodstypedetailService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsPricestrategyBillGoodstypedetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsPricestrategyBillGoodstypedetailDetailsVo vo = smsPricestrategyBillGoodstypedetailService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smspricestrategybill.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillRest <br/> |
||||
|
* Description: 价格策略申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:29:38 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "价格策略申请") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/sms/smspricestrategybill") |
||||
|
public class SmsPricestrategyBillRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsPricestrategyBillService smsPricestrategyBillService; |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsPricestrategyBillVo>> listPage(@RequestBody PagerQuery<SmsPricestrategyBillQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsPricestrategyBillVo> pv = smsPricestrategyBillService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsPricestrategyBillDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyBillService.delAll(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsPricestrategyBillDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsPricestrategyBillDetailsVo vo = smsPricestrategyBillService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smspricestrategy.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategy.SmsPricestrategyRest <br/> |
||||
|
* Description: 价格策略. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:29:38 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "价格策略") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/sms/smspricestrategy") |
||||
|
public class SmsPricestrategyRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsPricestrategyService smsPricestrategyService; |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsPricestrategyVo>> listPage(@RequestBody PagerQuery<SmsPricestrategyQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsPricestrategyVo> pv = smsPricestrategyService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsPricestrategyDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsPricestrategyService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsPricestrategyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsPricestrategyDetailsVo vo = smsPricestrategyService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.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.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesBillDetailRest <br/> |
||||
|
* Description: 销售单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售单-商品清单") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/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,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smssalesbillextend.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesBillExtendRest <br/> |
||||
|
* Description: 销售单扩展. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售单扩展") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesbillextend") |
||||
|
public class SmsSalesBillExtendRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillExtendService smsSalesBillExtendService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillExtendVo>> listPage(@RequestBody PagerQuery<SmsSalesBillExtendQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillExtendVo> pv = smsSalesBillExtendService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillExtendDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillExtendService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillExtendService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillExtendDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillExtendDetailsVo vo = smsSalesBillExtendService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.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.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesBillInvoiceRest <br/> |
||||
|
* Description: 销售单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售单-发票") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/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,169 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.base.utils.ExportExcelUtils; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.sms.biz.smssalesbill.*; |
||||
|
import com.yxt.sms.biz.smssalesbill.report.*; |
||||
|
import com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetailService; |
||||
|
import com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceService; |
||||
|
import com.yxt.sms.feign.wms.wmsinventory.WmsInventorySalesQuery; |
||||
|
import com.yxt.sms.feign.wms.wmsinventory.WmsInventorySalesVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.io.UnsupportedEncodingException; |
||||
|
import java.net.URLEncoder; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesBillRest <br/> |
||||
|
* Description: 销售单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售单") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesbill") |
||||
|
public class SmsSalesBillRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillService smsSalesBillService; |
||||
|
@Autowired |
||||
|
private SmsSalesBillDetailService smsSalesBillDetailService; |
||||
|
@Autowired |
||||
|
private SmsSalesBillInvoiceService smsSalesBillInvoiceService; |
||||
|
@Autowired |
||||
|
HttpServletResponse response; |
||||
|
|
||||
|
@ApiOperation("销售价趋势报表") |
||||
|
@PostMapping("/goodsTrendReport") |
||||
|
public ResultBean<PagerVo<SmsSalesTrendVo>> goodsTrendReport(@RequestBody PagerQuery<SmsSalesTrendQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesTrendVo> pv = smsSalesBillService.goodsTrendReport(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("销售明细-商品") |
||||
|
@PostMapping("/goodsDetailsReport") |
||||
|
public ResultBean<PagerVo<SmsSalesBillGoodsDetailsReportVo>> goodsDetailsReport(@RequestBody PagerQuery<SmsSalesBillGoodsDetailsReportQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillGoodsDetailsReportVo> pv = smsSalesBillService.goodsDetailsReport(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("销售汇总-商品") |
||||
|
@PostMapping("/goodsTotalsReport") |
||||
|
public ResultBean<PagerVo<SmsSalesGoodsTotalsVo>> goodsTotalsReport(@RequestBody PagerQuery<SmsSalesGoodsTotalsQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesGoodsTotalsVo> pv = smsSalesBillService.goodsTotalsReport(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("销售开单选择商品分页列表") |
||||
|
@PostMapping("/listPageSales") |
||||
|
public ResultBean<PagerVo<SmsWmsInventorySalesVo>> listPageSales(@RequestBody PagerQuery<SmsWmsInventorySalesQuery> pq) { |
||||
|
return smsSalesBillService.listPageSales(pq); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@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<String> save(@RequestBody SmsSalesBillDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String sid = smsSalesBillService.saveOrUpdateDto(dto); |
||||
|
return rb.success().setData(sid); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillService.delBySids(sids); |
||||
|
for (String sid : sids) { |
||||
|
smsSalesBillInvoiceService.delByMainSid(sid); |
||||
|
smsSalesBillDetailService.delByMainSid(sid); |
||||
|
} |
||||
|
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); |
||||
|
} |
||||
|
|
||||
|
@PostMapping("/exportExcel") |
||||
|
@ApiOperation(value = "导出") |
||||
|
public void exportExcel(@RequestBody SmsSalesBillQuery query) { |
||||
|
//得到所有要导出的数据
|
||||
|
List<SmsSalesBillExportVo> exportVoList = smsSalesBillService.listExcel(query); |
||||
|
//定义导出的excel名字
|
||||
|
String excelName = "销售单列表"; |
||||
|
String fileNameURL = ""; |
||||
|
try { |
||||
|
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
||||
|
} catch (UnsupportedEncodingException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
ExportExcelUtils.export(fileNameURL, exportVoList, SmsSalesBillExportVo.class, response); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@ApiOperation("结算") |
||||
|
@PostMapping("/settlement") |
||||
|
public ResultBean settlement(@RequestBody SmsSalesBillDto dto) { |
||||
|
return smsSalesBillService.settlement(dto); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smssalesbillsettle.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettleFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesBillSettleRest <br/> |
||||
|
* Description: 采购单-结算. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "采购单-结算") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesbillsettle") |
||||
|
public class SmsSalesBillSettleRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillSettleService smsSalesBillSettleService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesBillSettleVo>> listPage(@RequestBody PagerQuery<SmsSalesBillSettleQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillSettleVo> pv = smsSalesBillSettleService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesBillSettleDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillSettleService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesBillSettleService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesBillSettleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesBillSettleDetailsVo vo = smsSalesBillSettleService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smssalesreturndetail.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesReturnDetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesReturnDetailRest <br/> |
||||
|
* Description: 销售退货单据明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售退货单据明细") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesreturndetail") |
||||
|
public class SmsSalesReturnDetailRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesReturnDetailService smsSalesReturnDetailService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesReturnDetailVo>> listPage(@RequestBody PagerQuery<SmsSalesReturnDetailQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesReturnDetailVo> pv = smsSalesReturnDetailService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesReturnDetailDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnDetailService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnDetailService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesReturnDetailDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesReturnDetailDetailsVo vo = smsSalesReturnDetailService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,148 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.base.utils.ExportExcelUtils; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.sms.biz.smssalesbill.SmsSalesBillExportVo; |
||||
|
import com.yxt.sms.biz.smssalesbill.SmsSalesBillQuery; |
||||
|
import com.yxt.sms.biz.smssalesreturn.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.io.UnsupportedEncodingException; |
||||
|
import java.net.URLEncoder; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesReturnFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sms.apiadmin.SmsSalesReturnRest <br/> |
||||
|
* Description: 销售退货单据. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售退货单据") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesreturn") |
||||
|
public class SmsSalesReturnRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesReturnService smsSalesReturnService; |
||||
|
@Autowired |
||||
|
HttpServletResponse response; |
||||
|
|
||||
|
@ApiOperation("退货单查询原单列表") |
||||
|
@PostMapping("/listPageReturn") |
||||
|
public ResultBean<PagerVo<SmsSalesBillReturnVo>> listPageReturn(@RequestBody PagerQuery<SmsSalesBillReturnQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesBillReturnVo> pv = smsSalesReturnService.listPageReturn(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesReturnVo>> listPage(@RequestBody PagerQuery<SmsSalesReturnQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesReturnVo> pv = smsSalesReturnService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@PostMapping("/exportExcel") |
||||
|
@ApiOperation(value = "导出") |
||||
|
public void exportExcel(@RequestBody SmsSalesReturnQuery query) { |
||||
|
//得到所有要导出的数据
|
||||
|
List<SmsSalesBillReturnExportVo> exportVoList = smsSalesReturnService.listExcel(query); |
||||
|
//定义导出的excel名字
|
||||
|
String excelName = "销售退货单列表"; |
||||
|
String fileNameURL = ""; |
||||
|
try { |
||||
|
fileNameURL = URLEncoder.encode(excelName, "UTF-8"); |
||||
|
} catch (UnsupportedEncodingException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
ExportExcelUtils.export(fileNameURL, exportVoList, SmsSalesBillReturnExportVo.class, response); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesReturnDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("作废") |
||||
|
@PostMapping("/invalid") |
||||
|
public ResultBean invalid(@RequestParam("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnService.invalid(sid); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesReturnDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesReturnDetailsVo vo = smsSalesReturnService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("退货开单初始化") |
||||
|
@GetMapping("/returnBillInit/{sid}") |
||||
|
public ResultBean<SmsSalesInsertVo> returnBillInit(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesInsertVo vo = smsSalesReturnService.returnBillInit(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.sms.biz.smssalesreturnsettle.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* Project: sdad(asdgag) <br/> |
||||
|
* File: SmsSalesReturnSettleFeignFallback.java <br/> |
||||
|
* Class: sms.biz.smssalesreturnsettle.SmsSalesReturnSettleRest <br/> |
||||
|
* Description: 退货单-结算. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-27 09:58:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "退货单-结算") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/v1/smssalesreturnsettle") |
||||
|
public class SmsSalesReturnSettleRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesReturnSettleService smsSalesReturnSettleService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SmsSalesReturnSettleVo>> listPage(@RequestBody PagerQuery<SmsSalesReturnSettleQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsSalesReturnSettleVo> pv = smsSalesReturnSettleService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesReturnSettleDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnSettleService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnSettleService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SmsSalesReturnSettleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SmsSalesReturnSettleDetailsVo vo = smsSalesReturnSettleService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,4 @@ |
|||||
|
/** |
||||
|
* 宇信通 仓库管理 项目后台逻辑和接口 |
||||
|
*/ |
||||
|
package com.yxt.sms.biz; |
@ -0,0 +1,74 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategy.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategy.SmsPricestrategy <br/> |
||||
|
* Description: 价格策略. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略", description = "价格策略") |
||||
|
@TableName("sms_pricestrategy") |
||||
|
public class SmsPricestrategy extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangestart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategy.SmsPricestrategyVo <br/> |
||||
|
* Description: 价格策略 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略 视图数据详情", description = "价格策略 视图数据详情") |
||||
|
public class SmsPricestrategyDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangestart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategy.SmsPricestrategyDto <br/> |
||||
|
* Description: 价格策略 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略 数据传输对象", description = "价格策略 数据传输对象") |
||||
|
public class SmsPricestrategyDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangestart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategy.SmsPricestrategyMapper <br/> |
||||
|
* Description: 价格策略. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsPricestrategyMapper extends BaseMapper<SmsPricestrategy> { |
||||
|
|
||||
|
IPage<SmsPricestrategyVo> selectPageVo(IPage<SmsPricestrategy> page, @Param(Constants.WRAPPER) Wrapper<SmsPricestrategy> qw); |
||||
|
|
||||
|
List<SmsPricestrategyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsPricestrategy> qw); |
||||
|
|
||||
|
@Select("select * from sms_pricestrategy") |
||||
|
List<SmsPricestrategyVo> 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.sms.biz.smspricestrategy.SmsPricestrategyMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smspricestrategy.SmsPricestrategyVo"> |
||||
|
SELECT * FROM sms_pricestrategy <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smspricestrategy.SmsPricestrategyVo"> |
||||
|
SELECT * FROM sms_pricestrategy <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategy.SmsPricestrategyQuery <br/> |
||||
|
* Description: 价格策略 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略 查询条件", description = "价格策略 查询条件") |
||||
|
public class SmsPricestrategyQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangestart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategy.SmsPricestrategyService <br/> |
||||
|
* Description: 价格策略 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsPricestrategyService extends MybatisBaseService<SmsPricestrategyMapper, SmsPricestrategy> { |
||||
|
|
||||
|
public PagerVo<SmsPricestrategyVo> listPageVo(PagerQuery<SmsPricestrategyQuery> pq) { |
||||
|
SmsPricestrategyQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsPricestrategy> qw = new QueryWrapper<>(); |
||||
|
IPage<SmsPricestrategy> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsPricestrategyVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsPricestrategyVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsPricestrategyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsPricestrategyDto dto){ |
||||
|
SmsPricestrategy entity = new SmsPricestrategy(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsPricestrategyDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsPricestrategy entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsPricestrategyDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsPricestrategy entity = fetchBySid(sid); |
||||
|
SmsPricestrategyDetailsVo vo = new SmsPricestrategyDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategy; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategy.SmsPricestrategyVo <br/> |
||||
|
* Description: 价格策略 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略 视图数据对象", description = "价格策略 视图数据对象") |
||||
|
public class SmsPricestrategyVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangestart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBill.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybill.SmsPricestrategyBill <br/> |
||||
|
* Description: 价格策略申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请", description = "价格策略申请") |
||||
|
@TableName("sms_pricestrategy_bill") |
||||
|
public class SmsPricestrategyBill extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("发起部门sid") |
||||
|
private String createDeptsid; // 发起部门sid
|
||||
|
@ApiModelProperty("发起部门名称") |
||||
|
private String createDeptName; // 发起部门名称
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailDetailsVo; |
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybill.SmsPricestrategyBillVo <br/> |
||||
|
* Description: 价格策略申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请 视图数据详情", description = "价格策略申请 视图数据详情") |
||||
|
public class SmsPricestrategyBillDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("发起部门sid") |
||||
|
private String createDeptsid; // 发起部门sid
|
||||
|
@ApiModelProperty("发起部门名称") |
||||
|
private String createDeptName; // 发起部门名称
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
@ApiModelProperty("价格策略明细") |
||||
|
private List<SmsPricestrategyBillDetailDetailsVo> smsPricestrategyBillDetailList; |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybill.SmsPricestrategyBillDto <br/> |
||||
|
* Description: 价格策略申请 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请 数据传输对象", description = "价格策略申请 数据传输对象") |
||||
|
public class SmsPricestrategyBillDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("发起部门sid") |
||||
|
private String createDeptsid; // 发起部门sid
|
||||
|
@ApiModelProperty("发起部门名称") |
||||
|
private String createDeptName; // 发起部门名称
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
@ApiModelProperty("价格策略明细") |
||||
|
private List<SmsPricestrategyBillDetailDto> smsPricestrategyBillDetailList; |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillMapper <br/> |
||||
|
* Description: 价格策略申请. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsPricestrategyBillMapper extends BaseMapper<SmsPricestrategyBill> { |
||||
|
|
||||
|
IPage<SmsPricestrategyBillVo> selectPageVo(IPage<SmsPricestrategyBill> page, @Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBill> qw); |
||||
|
|
||||
|
List<SmsPricestrategyBillVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBill> qw); |
||||
|
|
||||
|
@Select("select * from sms_pricestrategy_bill") |
||||
|
List<SmsPricestrategyBillVo> 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.sms.biz.smspricestrategybill.SmsPricestrategyBillMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,67 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybill.SmsPricestrategyBillQuery <br/> |
||||
|
* Description: 价格策略申请 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请 查询条件", description = "价格策略申请 查询条件") |
||||
|
public class SmsPricestrategyBillQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("发起部门sid") |
||||
|
private String createDeptsid; // 发起部门sid
|
||||
|
@ApiModelProperty("发起部门名称") |
||||
|
private String createDeptName; // 发起部门名称
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailDetailsVo; |
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailDto; |
||||
|
import com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailService; |
||||
|
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.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillService <br/> |
||||
|
* Description: 价格策略申请 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsPricestrategyBillService extends MybatisBaseService<SmsPricestrategyBillMapper, SmsPricestrategyBill> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsPricestrategyBillDetailService smsPricestrategyBillDetailService; |
||||
|
|
||||
|
public PagerVo<SmsPricestrategyBillVo> listPageVo(PagerQuery<SmsPricestrategyBillQuery> pq) { |
||||
|
SmsPricestrategyBillQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsPricestrategyBill> qw = new QueryWrapper<>(); |
||||
|
IPage<SmsPricestrategyBill> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsPricestrategyBillVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsPricestrategyBillVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsPricestrategyBillDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
List<SmsPricestrategyBillDetailDto> smsPricestrategyBillDetailList = dto.getSmsPricestrategyBillDetailList(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
String sid = this.insertByDto(dto); |
||||
|
for (SmsPricestrategyBillDetailDto smsPricestrategyBillDetailDto : smsPricestrategyBillDetailList) { |
||||
|
smsPricestrategyBillDetailDto.setMainSid(sid); |
||||
|
smsPricestrategyBillDetailService.saveOrUpdateDto(smsPricestrategyBillDetailDto); |
||||
|
} |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
smsPricestrategyBillDetailService.delByMainSid(dtoSid); |
||||
|
for (SmsPricestrategyBillDetailDto smsPricestrategyBillDetailDto : smsPricestrategyBillDetailList) { |
||||
|
smsPricestrategyBillDetailDto.setMainSid(dtoSid); |
||||
|
smsPricestrategyBillDetailService.saveOrUpdateDto(smsPricestrategyBillDetailDto); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public String insertByDto(SmsPricestrategyBillDto dto){ |
||||
|
SmsPricestrategyBill entity = new SmsPricestrategyBill(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
return entity.getSid(); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsPricestrategyBillDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsPricestrategyBill entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsPricestrategyBillDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsPricestrategyBill entity = fetchBySid(sid); |
||||
|
SmsPricestrategyBillDetailsVo vo = new SmsPricestrategyBillDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
List<SmsPricestrategyBillDetailDetailsVo> smsPricestrategyBillDetailDetailsVos = smsPricestrategyBillDetailService.selByMainSid(sid); |
||||
|
vo.setSmsPricestrategyBillDetailList(smsPricestrategyBillDetailDetailsVos); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void delAll(String[] sids) { |
||||
|
delBySids(sids); |
||||
|
for (String sid : sids) { |
||||
|
smsPricestrategyBillDetailService.delByMainSid(sid); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybill.SmsPricestrategyBillVo <br/> |
||||
|
* Description: 价格策略申请 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请 视图数据对象", description = "价格策略申请 视图数据对象") |
||||
|
public class SmsPricestrategyBillVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("发起部门sid") |
||||
|
private String createDeptsid; // 发起部门sid
|
||||
|
@ApiModelProperty("发起部门名称") |
||||
|
private String createDeptName; // 发起部门名称
|
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String useOrgSid; // 组织sid
|
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String useOrgName; // 组织名称
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgSidPath; // 组织全路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetail.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybilldetail.SmsPricestrategyBillDetail <br/> |
||||
|
* Description: 价格策略申请明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请明细", description = "价格策略申请明细") |
||||
|
@TableName("sms_pricestrategy_bill_detail") |
||||
|
public class SmsPricestrategyBillDetail extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("申请单sid") |
||||
|
private String mainSid; // 申请单sid
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybilldetail.SmsPricestrategyBillDetailVo <br/> |
||||
|
* Description: 价格策略申请明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请明细 视图数据详情", description = "价格策略申请明细 视图数据详情") |
||||
|
public class SmsPricestrategyBillDetailDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("申请单sid") |
||||
|
private String mainSid; // 申请单sid
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybilldetail.SmsPricestrategyBillDetailDto <br/> |
||||
|
* Description: 价格策略申请明细 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请明细 数据传输对象", description = "价格策略申请明细 数据传输对象") |
||||
|
public class SmsPricestrategyBillDetailDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("申请单sid") |
||||
|
private String mainSid; // 申请单sid
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
|
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
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.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailMapper <br/> |
||||
|
* Description: 价格策略申请明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsPricestrategyBillDetailMapper extends BaseMapper<SmsPricestrategyBillDetail> { |
||||
|
|
||||
|
IPage<SmsPricestrategyBillDetailVo> selectPageVo(IPage<SmsPricestrategyBillDetail> page, @Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBillDetail> qw); |
||||
|
|
||||
|
List<SmsPricestrategyBillDetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBillDetail> qw); |
||||
|
|
||||
|
@Select("select * from sms_pricestrategy_bill_detail") |
||||
|
List<SmsPricestrategyBillDetailVo> selectListVo(); |
||||
|
|
||||
|
@Delete("delete from sms_pricestrategy_bill_detail where mainSid = #{mainSid}") |
||||
|
void delByMainSid(String mainSid); |
||||
|
|
||||
|
@Select("select * from sms_pricestrategy_bill_detail where mainSid = #{mainSid}") |
||||
|
List<SmsPricestrategyBillDetailDetailsVo> selByMainSid(String mainSid); |
||||
|
} |
@ -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.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybilldetail.SmsPricestrategyBillDetailQuery <br/> |
||||
|
* Description: 价格策略申请明细 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请明细 查询条件", description = "价格策略申请明细 查询条件") |
||||
|
public class SmsPricestrategyBillDetailQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("申请单sid") |
||||
|
private String mainSid; // 申请单sid
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
|
||||
|
} |
@ -0,0 +1,105 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybilldetail.SmsPricestrategyBillDetailService <br/> |
||||
|
* Description: 价格策略申请明细 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsPricestrategyBillDetailService extends MybatisBaseService<SmsPricestrategyBillDetailMapper, SmsPricestrategyBillDetail> { |
||||
|
|
||||
|
public PagerVo<SmsPricestrategyBillDetailVo> listPageVo(PagerQuery<SmsPricestrategyBillDetailQuery> pq) { |
||||
|
SmsPricestrategyBillDetailQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsPricestrategyBillDetail> qw = new QueryWrapper<>(); |
||||
|
IPage<SmsPricestrategyBillDetail> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsPricestrategyBillDetailVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsPricestrategyBillDetailVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsPricestrategyBillDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsPricestrategyBillDetailDto dto){ |
||||
|
SmsPricestrategyBillDetail entity = new SmsPricestrategyBillDetail(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsPricestrategyBillDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsPricestrategyBillDetail entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsPricestrategyBillDetailDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsPricestrategyBillDetail entity = fetchBySid(sid); |
||||
|
SmsPricestrategyBillDetailDetailsVo vo = new SmsPricestrategyBillDetailDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void delByMainSid(String mainSid) { |
||||
|
baseMapper.delByMainSid(mainSid); |
||||
|
} |
||||
|
|
||||
|
public List<SmsPricestrategyBillDetailDetailsVo> selByMainSid(String mainSid) { |
||||
|
return baseMapper.selByMainSid(mainSid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybilldetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybilldetail.SmsPricestrategyBillDetailVo <br/> |
||||
|
* Description: 价格策略申请明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略申请明细 视图数据对象", description = "价格策略申请明细 视图数据对象") |
||||
|
public class SmsPricestrategyBillDetailVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("申请单sid") |
||||
|
private String mainSid; // 申请单sid
|
||||
|
@ApiModelProperty("商品类别sid") |
||||
|
private String goodsTypeSid; // 商品类别sid
|
||||
|
@ApiModelProperty("商品类别名称") |
||||
|
private String goodsTypeName; // 商品类别名称
|
||||
|
@ApiModelProperty("价格策略类别(固定比例0、价格区间1)") |
||||
|
private Integer strategyType; // 价格策略类别(固定比例0、价格区间1)
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetail.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetail <br/> |
||||
|
* Description: 价格策略商品类别明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略商品类别明细", description = "价格策略商品类别明细") |
||||
|
@TableName("sms_pricestrategy_bill_goodstypedetail") |
||||
|
public class SmsPricestrategyBillGoodstypedetail extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String detailSid; // 业务sid
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangeStart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailVo <br/> |
||||
|
* Description: 价格策略商品类别明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略商品类别明细 视图数据详情", description = "价格策略商品类别明细 视图数据详情") |
||||
|
public class SmsPricestrategyBillGoodstypedetailDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String detailSid; // 业务sid
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangeStart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailDto <br/> |
||||
|
* Description: 价格策略商品类别明细 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略商品类别明细 数据传输对象", description = "价格策略商品类别明细 数据传输对象") |
||||
|
public class SmsPricestrategyBillGoodstypedetailDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String detailSid; // 业务sid
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangeStart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailMapper <br/> |
||||
|
* Description: 价格策略商品类别明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsPricestrategyBillGoodstypedetailMapper extends BaseMapper<SmsPricestrategyBillGoodstypedetail> { |
||||
|
|
||||
|
IPage<SmsPricestrategyBillGoodstypedetailVo> selectPageVo(IPage<SmsPricestrategyBillGoodstypedetail> page, @Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBillGoodstypedetail> qw); |
||||
|
|
||||
|
List<SmsPricestrategyBillGoodstypedetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsPricestrategyBillGoodstypedetail> qw); |
||||
|
|
||||
|
@Select("select * from sms_pricestrategy_bill_goodstypedetail") |
||||
|
List<SmsPricestrategyBillGoodstypedetailVo> 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.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill_goodstypedetail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailVo"> |
||||
|
SELECT * FROM sms_pricestrategy_bill_goodstypedetail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailQuery <br/> |
||||
|
* Description: 价格策略商品类别明细 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略商品类别明细 查询条件", description = "价格策略商品类别明细 查询条件") |
||||
|
public class SmsPricestrategyBillGoodstypedetailQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String detailSid; // 业务sid
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangeStart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
|
||||
|
} |
@ -0,0 +1,101 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
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: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailService <br/> |
||||
|
* Description: 价格策略商品类别明细 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsPricestrategyBillGoodstypedetailService extends MybatisBaseService<SmsPricestrategyBillGoodstypedetailMapper, SmsPricestrategyBillGoodstypedetail> { |
||||
|
private QueryWrapper<SmsPricestrategyBillGoodstypedetail> createQueryWrapper(SmsPricestrategyBillGoodstypedetailQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsPricestrategyBillGoodstypedetail> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsPricestrategyBillGoodstypedetailVo> listPageVo(PagerQuery<SmsPricestrategyBillGoodstypedetailQuery> pq) { |
||||
|
SmsPricestrategyBillGoodstypedetailQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsPricestrategyBillGoodstypedetail> qw = createQueryWrapper(query); |
||||
|
IPage<SmsPricestrategyBillGoodstypedetail> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsPricestrategyBillGoodstypedetailVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsPricestrategyBillGoodstypedetailVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsPricestrategyBillGoodstypedetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsPricestrategyBillGoodstypedetailDto dto){ |
||||
|
SmsPricestrategyBillGoodstypedetail entity = new SmsPricestrategyBillGoodstypedetail(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsPricestrategyBillGoodstypedetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsPricestrategyBillGoodstypedetail entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsPricestrategyBillGoodstypedetailDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsPricestrategyBillGoodstypedetail entity = fetchBySid(sid); |
||||
|
SmsPricestrategyBillGoodstypedetailDetailsVo vo = new SmsPricestrategyBillGoodstypedetailDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt-sms(价格策略) <br/> |
||||
|
* File: SmsPricestrategyBillGoodstypedetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailVo <br/> |
||||
|
* Description: 价格策略商品类别明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-28 14:32:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "价格策略商品类别明细 视图数据对象", description = "价格策略商品类别明细 视图数据对象") |
||||
|
public class SmsPricestrategyBillGoodstypedetailVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String detailSid; // 业务sid
|
||||
|
@ApiModelProperty("区间起始") |
||||
|
private Integer rangeStart; // 区间起始
|
||||
|
@ApiModelProperty("区间截止") |
||||
|
private Integer rangeEnd; // 区间截止
|
||||
|
@ApiModelProperty("加价比例") |
||||
|
private Integer markupRate; // 加价比例
|
||||
|
|
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/19 15:18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SalesGoodsVo { |
||||
|
|
||||
|
@ApiModelProperty("商品库存sid") |
||||
|
private String inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private String currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private String price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private String discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private String discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private String amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private String outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/19 15:14 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SalesInvoiceVo { |
||||
|
|
||||
|
@ApiModelProperty("是否需要开发票(是1,否0)") |
||||
|
private String isInvoicing; // 是否需要开发票(是1,否0)
|
||||
|
@ApiModelProperty("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private String taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/20 15:42 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SettlementVo { |
||||
|
@ApiModelProperty("结算人姓名") |
||||
|
private String createByName; // 结算人姓名
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号") |
||||
|
private String sourceBillNo; // 来源单编号
|
||||
|
@ApiModelProperty("应收金额(总计金额-优惠-优惠券-积分抵扣)") |
||||
|
private String receivableAmount; // 应收金额(总计金额-优惠-优惠券-积分抵扣)
|
||||
|
@ApiModelProperty("订金抵扣") |
||||
|
private String depositdeductAmount; // 订金抵扣
|
||||
|
@ApiModelProperty("结算方式key") |
||||
|
private String settleKey; // 结算方式key
|
||||
|
@ApiModelProperty("结算方式value") |
||||
|
private String settleValue; // 结算方式value
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private String settleAmount; // 结算金额
|
||||
|
@ApiModelProperty("其他结算方式") |
||||
|
private String otherSettleKey; // 其他结算方式
|
||||
|
@ApiModelProperty("其他结算金额") |
||||
|
private String otherSettleValue; // 其他结算金额
|
||||
|
@ApiModelProperty("欠款金额") |
||||
|
private String debts; // 欠款金额
|
||||
|
@ApiModelProperty("结算时间") |
||||
|
private String settleTime; // 结算时间
|
||||
|
@ApiModelProperty("付款人编号") |
||||
|
private String payerNo; // 付款人编号
|
||||
|
@ApiModelProperty("付款人名称") |
||||
|
private String payerName; // 付款人名称
|
||||
|
} |
@ -0,0 +1,98 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBill.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbill.SmsSalesBill <br/> |
||||
|
* Description: 销售单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目") |
||||
|
private String subject; // 科目
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("条形码") |
||||
|
private String barCode; // 条形码
|
||||
|
@ApiModelProperty("快捷备注(选择)") |
||||
|
private String shotRemarks; // 快捷备注(选择)
|
||||
|
@ApiModelProperty("备注(打印)") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private BigDecimal discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private BigDecimal coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("积分抵扣") |
||||
|
private BigDecimal scoreDeduct; // 积分抵扣
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ApiModelProperty("车辆牌照") |
||||
|
private String vehMark; // 车辆牌照
|
||||
|
@ApiModelProperty("客户单位") |
||||
|
private String customerOrg; // 客户单位
|
||||
|
@ApiModelProperty("会员卡sid") |
||||
|
private String memberCardSid; // 会员卡sid
|
||||
|
@ApiModelProperty("会员卡号") |
||||
|
private String memberCardNumber; // 会员卡号
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbill.SmsSalesBillVo <br/> |
||||
|
* Description: 销售单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单 视图数据详情", description = "销售单 视图数据详情") |
||||
|
public class SmsSalesBillDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("创建者") |
||||
|
private String createBySid; |
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目") |
||||
|
private String subject; // 科目
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("条形码") |
||||
|
private String barCode; // 条形码
|
||||
|
@ApiModelProperty("快捷备注(选择)") |
||||
|
private String shotRemarks; // 快捷备注(选择)
|
||||
|
@ApiModelProperty("备注(打印)") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private String discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private String coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("积分抵扣") |
||||
|
private String scoreDeduct; // 积分抵扣
|
||||
|
private SalesInvoiceVo invoiceVo = new SalesInvoiceVo(); //发票信息
|
||||
|
private List<SalesGoodsVo> goodsVos = new ArrayList<>(); //商品信息
|
||||
|
private SettlementVo settlementVo = new SettlementVo(); //结算信息
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbill.SmsSalesBillDto <br/> |
||||
|
* Description: 销售单 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单 数据传输对象", description = "销售单 数据传输对象") |
||||
|
public class SmsSalesBillDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("创建者") |
||||
|
private String createBySid; |
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目") |
||||
|
private String subject; // 科目
|
||||
|
@ApiModelProperty("销售用户sid单选)(销售用户sid)") |
||||
|
private String salesUserSid; // 销售用户sid单选)(销售用户sid)
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("条形码") |
||||
|
private String barCode; // 条形码
|
||||
|
@ApiModelProperty("快捷备注(选择)") |
||||
|
private String shotRemarks; // 快捷备注(选择)
|
||||
|
@ApiModelProperty("备注(打印)") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ApiModelProperty("整体优惠金额") |
||||
|
private String discountAmount; // 整体优惠金额
|
||||
|
@ApiModelProperty("整体优惠券") |
||||
|
private String coupon; // 整体优惠券
|
||||
|
@ApiModelProperty("积分抵扣") |
||||
|
private String scoreDeduct; // 积分抵扣
|
||||
|
private SalesInvoiceVo invoiceVo = new SalesInvoiceVo(); //发票信息
|
||||
|
private List<SalesGoodsVo> goodsVos = new ArrayList<>(); //商品信息
|
||||
|
private SettlementVo settlementVo = new SettlementVo(); //结算信息
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import com.yxt.common.core.utils.ExportEntityMap; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/20 9:52 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesBillExportVo { |
||||
|
|
||||
|
@ExportEntityMap(CnName = "序号", EnName = "rankNo") |
||||
|
private Integer rankNo; |
||||
|
@ExportEntityMap(CnName = "单据状态", EnName = "state") |
||||
|
private String state; |
||||
|
@ExportEntityMap(CnName = "制单时间", EnName = "createTime") |
||||
|
private String createTime; |
||||
|
@ExportEntityMap(CnName = "制单人姓名", EnName = "createByName") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ExportEntityMap(CnName = "单据编号", EnName = "billNo") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ExportEntityMap(CnName = "服务顾问", EnName = "salesName") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ExportEntityMap(CnName = "快捷备注", EnName = "shotRemarks") |
||||
|
private String shotRemarks; // 快捷备注(选择)
|
||||
|
@ExportEntityMap(CnName = "备注(打印)", EnName = "printRemarks") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ExportEntityMap(CnName = "客户名称", EnName = "customerName") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ExportEntityMap(CnName = "联系电话", EnName = "mobile") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ExportEntityMap(CnName = "车辆牌照", EnName = "vehMark") |
||||
|
private String vehMark; // 车辆牌照
|
||||
|
|
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.sms.biz.smssalesbill.report.SmsSalesBillGoodsDetailsReportVo; |
||||
|
import com.yxt.sms.biz.smssalesbill.report.SmsSalesGoodsTotalsVo; |
||||
|
import com.yxt.sms.biz.smssalesbill.report.SmsSalesTrendVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbill.SmsSalesBillMapper <br/> |
||||
|
* Description: 销售单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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(); |
||||
|
|
||||
|
List<SmsSalesBillExportVo> listExcel(@Param(Constants.WRAPPER)QueryWrapper<SmsSalesBill> qw); |
||||
|
|
||||
|
IPage<SmsSalesBillGoodsDetailsReportVo> goodsDetailsReport(IPage<SmsSalesBill> page,@Param(Constants.WRAPPER) QueryWrapper<SmsSalesBill> qw); |
||||
|
|
||||
|
IPage<SmsSalesGoodsTotalsVo> goodsTotalsReport(IPage<SmsSalesBill> page,@Param(Constants.WRAPPER) QueryWrapper<SmsSalesBill> qw); |
||||
|
|
||||
|
IPage<SmsSalesTrendVo> goodsTrendReport(IPage<SmsSalesBill> page,@Param(Constants.WRAPPER) QueryWrapper<SmsSalesBill> qw); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
<?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.sms.biz.smssalesbill.SmsSalesBillMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smssalesbill.SmsSalesBillVo"> |
||||
|
SELECT |
||||
|
sid, |
||||
|
createTime, |
||||
|
-- date_format(createTime, '%Y-%m-%d') as createTime, |
||||
|
createByName, |
||||
|
billNo, |
||||
|
salesName, |
||||
|
shotRemarks, |
||||
|
printRemarks, |
||||
|
customerName, |
||||
|
mobile, |
||||
|
vehMark, |
||||
|
`state` |
||||
|
FROM sms_sales_bill |
||||
|
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smssalesbill.SmsSalesBillVo"> |
||||
|
SELECT * FROM sms_sales_bill |
||||
|
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
<select id="listExcel" resultType="com.yxt.sms.biz.smssalesbill.SmsSalesBillExportVo"> |
||||
|
SELECT |
||||
|
a.sid, |
||||
|
a.createTime, |
||||
|
a.createByName, |
||||
|
a.billNo, |
||||
|
a.salesName, |
||||
|
a.shotRemarks, |
||||
|
a.printRemarks, |
||||
|
a.customerName, |
||||
|
a.mobile, |
||||
|
a.vehMark, |
||||
|
CASE |
||||
|
a.`state` |
||||
|
WHEN 1 THEN |
||||
|
'登记' |
||||
|
WHEN 0 THEN |
||||
|
'结算' |
||||
|
END AS state, |
||||
|
( @rank := @rank + 1 ) rankNo |
||||
|
FROM |
||||
|
( SELECT @rank := 0 ) t, |
||||
|
sms_sales_bill AS a |
||||
|
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
<select id="goodsDetailsReport" |
||||
|
resultType="com.yxt.sms.biz.smssalesbill.report.SmsSalesBillGoodsDetailsReportVo"> |
||||
|
SELECT |
||||
|
d.* |
||||
|
FROM |
||||
|
sms_sales_bill_detail AS d |
||||
|
LEFT JOIN sms_sales_bill AS s ON d.billSid = s.sid |
||||
|
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
<select id="goodsTotalsReport" resultType="com.yxt.sms.biz.smssalesbill.report.SmsSalesGoodsTotalsVo"> |
||||
|
SELECT |
||||
|
d.inventorySid, |
||||
|
d.goodsSpuName, |
||||
|
d.goodsSkuTitle, |
||||
|
d.goodsSkuCode, |
||||
|
d.unit, |
||||
|
d.warehouse, |
||||
|
d.`subject`, |
||||
|
d.count, |
||||
|
d.amount, |
||||
|
rd.backCount, |
||||
|
rd.backAmount |
||||
|
FROM |
||||
|
sms_sales_bill_detail AS d |
||||
|
LEFT JOIN sms_sales_bill AS s ON d.billSid = s.sid |
||||
|
LEFT JOIN sms_sales_return AS r ON s.sid = r.sourceBillSid |
||||
|
AND r.state = '0' |
||||
|
LEFT JOIN sms_sales_return_detail AS rd ON r.sid = rd.billSid |
||||
|
AND d.goodSpuSid = rd.goodSpuSid |
||||
|
AND d.inventorySid = rd.inventorySid |
||||
|
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
<select id="goodsTrendReport" resultType="com.yxt.sms.biz.smssalesbill.report.SmsSalesTrendVo"> |
||||
|
SELECT |
||||
|
s.createTime, |
||||
|
s.customerName, |
||||
|
s.vehMark, |
||||
|
d.price, |
||||
|
d.count, |
||||
|
d.amount |
||||
|
FROM |
||||
|
sms_sales_bill_detail AS d |
||||
|
LEFT JOIN sms_sales_bill AS s ON d.billSid = s.sid |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
|
||||
|
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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbill.SmsSalesBillQuery <br/> |
||||
|
* Description: 销售单 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 billNo; // 单据编号
|
||||
|
// @ApiModelProperty("销售姓名")
|
||||
|
// private String salesName; // 销售姓名
|
||||
|
// @ApiModelProperty("客户名称")
|
||||
|
// private String customerName; // 客户名称
|
||||
|
// @ApiModelProperty("联系电话")
|
||||
|
// private String mobile; // 联系电话
|
||||
|
|
||||
|
private String queryName; |
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,367 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.sms.biz.smssalesbill.report.*; |
||||
|
import com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetail; |
||||
|
import com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetailService; |
||||
|
import com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoice; |
||||
|
import com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceService; |
||||
|
import com.yxt.sms.biz.smssalesbillsettle.SmsSalesBillSettle; |
||||
|
import com.yxt.sms.biz.smssalesbillsettle.SmsSalesBillSettleService; |
||||
|
import com.yxt.sms.feign.fms.fmsreceivesettle.FmsReceivesettle; |
||||
|
import com.yxt.sms.feign.fms.fmsreceivesettle.FmsReceivesettleDto; |
||||
|
import com.yxt.sms.feign.fms.fmsreceivesettle.FmsReceivesettleFeign; |
||||
|
import com.yxt.sms.feign.wms.wmsinventory.*; |
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbill.SmsSalesBillService <br/> |
||||
|
* Description: 销售单 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper, SmsSalesBill> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesBillDetailService smsSalesBillDetailService; |
||||
|
@Autowired |
||||
|
private SmsSalesBillInvoiceService smsSalesBillInvoiceService; |
||||
|
@Resource |
||||
|
private WmsInventoryFeign wmsInventoryFeign; |
||||
|
@Autowired |
||||
|
private SmsSalesBillSettleService smsSalesBillSettleService; |
||||
|
@Resource |
||||
|
private FmsReceivesettleFeign fmsReceivesettleFeign; |
||||
|
|
||||
|
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<>(); |
||||
|
if (StringUtils.isNotBlank(query.getQueryName())) { |
||||
|
qw.and(wrapper -> wrapper.like("createByName", query.getQueryName()) |
||||
|
.or().like("billNo", query.getQueryName()) |
||||
|
.or().like("salesName", query.getQueryName()) |
||||
|
.or().like("customerName", query.getQueryName()) |
||||
|
.or().like("mobile", query.getQueryName()) |
||||
|
.or().like("vehMark", query.getQueryName()) |
||||
|
); |
||||
|
} |
||||
|
String startDate = query.getStartDate(); |
||||
|
String endDate = query.getEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(startDate), "date_format (createTime,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(endDate), "date_format (createTime,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.eq("1", "1"); |
||||
|
qw.orderByDesc("createTime"); |
||||
|
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; |
||||
|
} |
||||
|
|
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public String saveOrUpdateDto(SmsSalesBillDto dto) { |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
SmsSalesBill entity = new SmsSalesBill(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
SalesInvoiceVo invoiceVo = dto.getInvoiceVo(); |
||||
|
if (null != invoiceVo) { |
||||
|
SmsSalesBillInvoice invoice = new SmsSalesBillInvoice(); |
||||
|
BeanUtil.copyProperties(invoiceVo, invoice, "id", "sid"); |
||||
|
invoice.setBillSid(entity.getSid()); |
||||
|
smsSalesBillInvoiceService.insert(invoice); |
||||
|
} |
||||
|
List<SalesGoodsVo> goodsVos = dto.getGoodsVos(); |
||||
|
if (!goodsVos.isEmpty()) { |
||||
|
for (SalesGoodsVo goodsVo : goodsVos) { |
||||
|
SmsSalesBillDetail salesBillDetail = new SmsSalesBillDetail(); |
||||
|
BeanUtil.copyProperties(goodsVo, salesBillDetail, "id", "sid"); |
||||
|
salesBillDetail.setBillSid(entity.getSid()); |
||||
|
smsSalesBillDetailService.insert(salesBillDetail); |
||||
|
} |
||||
|
} |
||||
|
return entity.getSid(); |
||||
|
} |
||||
|
SmsSalesBill smsSalesBill = fetchBySid(dtoSid); |
||||
|
if (null != smsSalesBill) { |
||||
|
BeanUtil.copyProperties(dto, smsSalesBill, "id", "sid"); |
||||
|
baseMapper.updateById(smsSalesBill); |
||||
|
smsSalesBillDetailService.delByMainSid(dtoSid); |
||||
|
smsSalesBillInvoiceService.delByMainSid(dtoSid); |
||||
|
SalesInvoiceVo invoiceVo = dto.getInvoiceVo(); |
||||
|
if (null != invoiceVo) { |
||||
|
SmsSalesBillInvoice invoice = new SmsSalesBillInvoice(); |
||||
|
BeanUtil.copyProperties(invoiceVo, invoice, "id", "sid"); |
||||
|
invoice.setBillSid(dtoSid); |
||||
|
smsSalesBillInvoiceService.insert(invoice); |
||||
|
} |
||||
|
List<SalesGoodsVo> goodsVos = dto.getGoodsVos(); |
||||
|
if (!goodsVos.isEmpty()) { |
||||
|
for (SalesGoodsVo goodsVo : goodsVos) { |
||||
|
SmsSalesBillDetail salesBillDetail = new SmsSalesBillDetail(); |
||||
|
BeanUtil.copyProperties(goodsVo, salesBillDetail, "id", "sid"); |
||||
|
salesBillDetail.setBillSid(dtoSid); |
||||
|
smsSalesBillDetailService.insert(salesBillDetail); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return dtoSid; |
||||
|
} |
||||
|
|
||||
|
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(); |
||||
|
List<SalesGoodsVo> goodsVos = new ArrayList<>(); //商品信息
|
||||
|
if (null != entity) { |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
List<SmsSalesBillDetail> billDetailList = smsSalesBillDetailService.fetchByMainSid(sid); |
||||
|
if (!billDetailList.isEmpty()) { |
||||
|
for (SmsSalesBillDetail smsSalesBillDetail : billDetailList) { |
||||
|
SalesGoodsVo salesGoodsVo = new SalesGoodsVo(); |
||||
|
BeanUtil.copyProperties(smsSalesBillDetail, salesGoodsVo); |
||||
|
goodsVos.add(salesGoodsVo); |
||||
|
} |
||||
|
vo.setGoodsVos(goodsVos); |
||||
|
} |
||||
|
SalesInvoiceVo invoiceVo = new SalesInvoiceVo(); |
||||
|
SmsSalesBillInvoice smsSalesBillInvoice = smsSalesBillInvoiceService.fetchByMainSid(sid); |
||||
|
if (null != smsSalesBillInvoice) { |
||||
|
BeanUtil.copyProperties(smsSalesBillInvoice, invoiceVo); |
||||
|
vo.setInvoiceVo(invoiceVo); |
||||
|
} |
||||
|
SettlementVo settlementVo = new SettlementVo(); |
||||
|
FmsReceivesettle receivesettle = fmsReceivesettleFeign.fetchBySourceSid(sid).getData(); |
||||
|
if (null != receivesettle) { |
||||
|
BeanUtil.copyProperties(receivesettle, settlementVo); |
||||
|
vo.setSettlementVo(settlementVo); |
||||
|
} |
||||
|
} |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public List<SmsSalesBillExportVo> listExcel(SmsSalesBillQuery query) { |
||||
|
QueryWrapper<SmsSalesBill> qw = createQueryWrapper(query); |
||||
|
List<SmsSalesBillExportVo> list = baseMapper.listExcel(qw); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
public ResultBean<PagerVo<SmsWmsInventorySalesVo>> listPageSales(PagerQuery<SmsWmsInventorySalesQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SmsWmsInventorySalesVo> pagerVo = new PagerVo<>(); |
||||
|
PagerQuery<WmsInventorySalesQuery> pagerQuery = new PagerQuery<>(); |
||||
|
BeanUtil.copyProperties(pq, pagerQuery); |
||||
|
PagerVo<WmsInventorySalesVo> voPagerVo = wmsInventoryFeign.listPageSales(pagerQuery).getData(); |
||||
|
if (null != voPagerVo) { |
||||
|
BeanUtil.copyProperties(voPagerVo, pagerVo); |
||||
|
} |
||||
|
return rb.success().setData(pagerVo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean settlement(SmsSalesBillDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String sid = saveOrUpdateDto(dto); |
||||
|
if (StringUtils.isNotBlank(sid)) { |
||||
|
SettlementVo settlementVo = dto.getSettlementVo(); |
||||
|
FmsReceivesettleDto settle = new FmsReceivesettleDto(); |
||||
|
BeanUtil.copyProperties(settlementVo, settle, "id", "sid"); |
||||
|
if (StringUtils.isNotBlank(dto.getBillNo())) { |
||||
|
settle.setSourceBillNo(dto.getBillNo()); |
||||
|
} |
||||
|
settle.setBusTypeKey("001"); |
||||
|
settle.setBusTypeValue("销售出库"); |
||||
|
settle.setSourceBillSid(sid); |
||||
|
fmsReceivesettleFeign.save(settle); |
||||
|
SmsSalesBill smsSalesBill = fetchBySid(sid); |
||||
|
smsSalesBill.setState(0); |
||||
|
baseMapper.updateById(smsSalesBill); |
||||
|
List<SmsSalesBillDetail> billDetailList = smsSalesBillDetailService.fetchByMainSid(sid); |
||||
|
if (!billDetailList.isEmpty()) { |
||||
|
for (SmsSalesBillDetail salesBillDetail : billDetailList) { |
||||
|
WmsUpdateCountQuery countQuery = new WmsUpdateCountQuery(); |
||||
|
countQuery.setSid(salesBillDetail.getInventorySid()); |
||||
|
countQuery.setCount(salesBillDetail.getCount()); |
||||
|
countQuery.setAddOrReduce(1); |
||||
|
wmsInventoryFeign.updateInventoryCount(countQuery); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillGoodsDetailsReportVo> goodsDetailsReport(PagerQuery<SmsSalesBillGoodsDetailsReportQuery> pq) { |
||||
|
SmsSalesBillGoodsDetailsReportQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBill> qw = new QueryWrapper<>(); |
||||
|
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
||||
|
qw.eq("s.useOrgSid",query.getUseOrgSid()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) { |
||||
|
qw.like("d.goodsSkuCode",query.getGoodsSkuCode()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSkuTitle())) { |
||||
|
qw.like("d.goodsSkuTitle",query.getGoodsSkuTitle()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSpuName())) { |
||||
|
qw.like("d.goodsSpuName",query.getGoodsSpuName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getWarehouse())) { |
||||
|
qw.like("d.warehouse",query.getWarehouse()); |
||||
|
} |
||||
|
String startDate = query.getStartDate(); |
||||
|
String endDate = query.getEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(startDate), "date_format (s.createTime,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(endDate), "date_format (s.createTime,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.eq("s.state","0"); |
||||
|
qw.orderByDesc("s.createTime"); |
||||
|
IPage<SmsSalesBill> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillGoodsDetailsReportVo> pagging = baseMapper.goodsDetailsReport(page, qw); |
||||
|
PagerVo<SmsSalesBillGoodsDetailsReportVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesGoodsTotalsVo> goodsTotalsReport(PagerQuery<SmsSalesGoodsTotalsQuery> pq) { |
||||
|
SmsSalesGoodsTotalsQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBill> qw = new QueryWrapper<>(); |
||||
|
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
||||
|
qw.eq("s.useOrgSid",query.getUseOrgSid()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) { |
||||
|
qw.like("d.goodsSkuCode",query.getGoodsSkuCode()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSkuTitle())) { |
||||
|
qw.like("d.goodsSkuTitle",query.getGoodsSkuTitle()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSpuName())) { |
||||
|
qw.like("d.goodsSpuName",query.getGoodsSpuName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getWarehouse())) { |
||||
|
qw.like("d.warehouse",query.getWarehouse()); |
||||
|
} |
||||
|
String startDate = query.getStartDate(); |
||||
|
String endDate = query.getEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(startDate), "date_format (s.createTime,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(endDate), "date_format (s.createTime,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.eq("s.state","0"); |
||||
|
qw.orderByDesc("s.createTime"); |
||||
|
IPage<SmsSalesBill> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesGoodsTotalsVo> pagging = baseMapper.goodsTotalsReport(page, qw); |
||||
|
List<SmsSalesGoodsTotalsVo> records = pagging.getRecords(); |
||||
|
records.removeAll(Collections.singleton(null)); |
||||
|
if (!records.isEmpty()) { |
||||
|
for (SmsSalesGoodsTotalsVo record : records) { |
||||
|
WmsInventory inventory = wmsInventoryFeign.fetchEntityBySid(record.getInventorySid()).getData(); |
||||
|
if (null != inventory) { |
||||
|
if (null != inventory.getCount()) { |
||||
|
record.setNowCount(inventory.getCount().toString()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(inventory.getGoodsSkuOwnSpec())) { |
||||
|
record.setGoodsSkuOwnSpec(inventory.getGoodsSkuOwnSpec()); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
PagerVo<SmsSalesGoodsTotalsVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesTrendVo> goodsTrendReport(PagerQuery<SmsSalesTrendQuery> pq) { |
||||
|
SmsSalesTrendQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBill> qw = new QueryWrapper<>(); |
||||
|
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
||||
|
qw.eq("s.useOrgSid",query.getUseOrgSid()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getGoodsSpuName())) { |
||||
|
qw.like("d.goodsSpuName",query.getGoodsSpuName()); |
||||
|
} else { |
||||
|
PagerVo<SmsSalesTrendVo> pagerVo = new PagerVo<>(); |
||||
|
return pagerVo; |
||||
|
} |
||||
|
String startDate = query.getStartDate(); |
||||
|
String endDate = query.getEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(startDate), "date_format (s.createTime,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(endDate), "date_format (s.createTime,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.eq("s.state","0"); |
||||
|
qw.orderByDesc("s.createTime"); |
||||
|
IPage<SmsSalesBill> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesTrendVo> pagging = baseMapper.goodsTrendReport(page, qw); |
||||
|
PagerVo<SmsSalesTrendVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbill.SmsSalesBillVo <br/> |
||||
|
* Description: 销售单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单 视图数据对象", description = "销售单 视图数据对象") |
||||
|
public class SmsSalesBillVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
private String createTime; |
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("销售姓名") |
||||
|
private String salesName; // 销售姓名
|
||||
|
@ApiModelProperty("快捷备注(选择)") |
||||
|
private String shotRemarks; // 快捷备注(选择)
|
||||
|
@ApiModelProperty("备注(打印)") |
||||
|
private String printRemarks; // 备注(打印)
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String mobile; // 联系电话
|
||||
|
@ApiModelProperty("车辆牌照") |
||||
|
private String vehMark; // 车辆牌照
|
||||
|
private String state; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/20 15:14 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsWmsInventorySalesQuery implements Query { |
||||
|
|
||||
|
private String queryName; //名称
|
||||
|
private String useOrgSid; |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/3/20 15:14 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsWmsInventorySalesVo implements Vo { |
||||
|
|
||||
|
private String inventorySid; |
||||
|
private String goodsID; |
||||
|
private String goodSpuSid;//商品基础信息sid
|
||||
|
private String goodsSpuName;//商品名称
|
||||
|
private String goodsSkuSid;//商品Skusid
|
||||
|
private String goodsSkuTitle;//商品Sku名称
|
||||
|
private String goodsSkuCode;//商品编码(图号)
|
||||
|
private String unit;//计量单位
|
||||
|
private String currentCount;//库存数量
|
||||
|
private String warehouseSid;//仓库sid
|
||||
|
private String warehouse;//仓库名称
|
||||
|
private String price;//销售价
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/7 15:29 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesBillGoodsDetailsReportQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
private String useOrgSid; |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/7 15:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesBillGoodsDetailsReportVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private String currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private String price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private String discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private String discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private String amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private String outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 16:17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesGoodsTotalsQuery implements Query { |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
private String useOrgSid; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 16:17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesGoodsTotalsVo implements Vo { |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private String amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private String backCount; // 退货数量
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private String backAmount; // 退货金额
|
||||
|
private String goodsSkuOwnSpec;//规格型号
|
||||
|
private String nowCount;//库存数量
|
||||
|
private String inventorySid; |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 17:06 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesTrendQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
private String useOrgSid; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.yxt.sms.biz.smssalesbill.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 17:06 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsSalesTrendVo implements Vo { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("车辆牌照") |
||||
|
private String vehMark; // 车辆牌照
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private String price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private String amount; // 金额(销售价-优惠金额)
|
||||
|
private String createTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetail.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbilldetail.SmsSalesBillDetail <br/> |
||||
|
* Description: 销售单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private BigDecimal currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private BigDecimal price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private Integer discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private BigDecimal discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private BigDecimal amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private BigDecimal outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbilldetail.SmsSalesBillDetailVo <br/> |
||||
|
* Description: 销售单-商品清单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单-商品清单 视图数据详情", description = "销售单-商品清单 视图数据详情") |
||||
|
public class SmsSalesBillDetailDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("工单sid") |
||||
|
private String billSid; // 工单sid
|
||||
|
@ApiModelProperty("商品库存sid") |
||||
|
private String inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private BigDecimal currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private BigDecimal price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private Integer discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private BigDecimal discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private BigDecimal amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private BigDecimal outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbilldetail.SmsSalesBillDetailDto <br/> |
||||
|
* Description: 销售单-商品清单 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private BigDecimal currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private BigDecimal price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private Integer discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private BigDecimal discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private BigDecimal amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private BigDecimal outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetailMapper <br/> |
||||
|
* Description: 销售单-商品清单. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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(); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_detail where billSid =#{mainSid}") |
||||
|
List<SmsSalesBillDetail> fetchByMainSid(@Param("mainSid") String mainSid); |
||||
|
|
||||
|
@Delete("DELETE FROM sms_sales_bill_detail WHERE billSid =#{mainSid}") |
||||
|
void delByMainSid(@Param("mainSid") String mainSid); |
||||
|
} |
@ -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.sms.biz.smssalesbilldetail.SmsSalesBillDetailMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetailVo"> |
||||
|
SELECT * FROM sms_sales_bill_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.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.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbilldetail.SmsSalesBillDetailQuery <br/> |
||||
|
* Description: 销售单-商品清单 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private BigDecimal currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private BigDecimal price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private Integer discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private BigDecimal discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private BigDecimal amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private BigDecimal outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbilldetail.SmsSalesBillDetailService <br/> |
||||
|
* Description: 销售单-商品清单 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 List<SmsSalesBillDetail> fetchByMainSid(String mainSid) { |
||||
|
return baseMapper.fetchByMainSid(mainSid); |
||||
|
} |
||||
|
|
||||
|
public void delByMainSid(String mainSid) { |
||||
|
baseMapper.delByMainSid(mainSid); |
||||
|
} |
||||
|
|
||||
|
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.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillDetailVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbilldetail.SmsSalesBillDetailVo <br/> |
||||
|
* Description: 销售单-商品清单 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 inventorySid; // 商品库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@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 unit; // 计量单位
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouse; // 仓库名称
|
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; // 科目sid
|
||||
|
@ApiModelProperty("科目(自费、保内等)") |
||||
|
private String subject; // 科目(自费、保内等)
|
||||
|
@ApiModelProperty("销售前库存数量") |
||||
|
private BigDecimal currentCount; // 销售前库存数量
|
||||
|
@ApiModelProperty("销售价") |
||||
|
private BigDecimal price; // 销售价
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("折扣(0-10,0免费,10不打折)") |
||||
|
private Integer discount; // 折扣(0-10,0免费,10不打折)
|
||||
|
@ApiModelProperty("优惠金额(=销售价*(折扣*0.1))") |
||||
|
private BigDecimal discountAmount; // 优惠金额(=销售价*(折扣*0.1))
|
||||
|
@ApiModelProperty("金额(销售价-优惠金额)") |
||||
|
private BigDecimal amount; // 金额(销售价-优惠金额)
|
||||
|
@ApiModelProperty("已出库数量(仓储中具体出库数量)") |
||||
|
private BigDecimal outboundCount; // 已出库数量(仓储中具体出库数量)
|
||||
|
|
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtend.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillextend.SmsSalesBillExtend <br/> |
||||
|
* Description: 销售单扩展. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单扩展", description = "销售单扩展") |
||||
|
@TableName("sms_sales_bill_extend") |
||||
|
public class SmsSalesBillExtend 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 buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillextend.SmsSalesBillExtendVo <br/> |
||||
|
* Description: 销售单扩展 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单扩展 视图数据详情", description = "销售单扩展 视图数据详情") |
||||
|
public class SmsSalesBillExtendDetailsVo 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 buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillextend.SmsSalesBillExtendDto <br/> |
||||
|
* Description: 销售单扩展 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单扩展 数据传输对象", description = "销售单扩展 数据传输对象") |
||||
|
public class SmsSalesBillExtendDto 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 buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbillextend.SmsSalesBillExtendMapper <br/> |
||||
|
* Description: 销售单扩展. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillExtendMapper extends BaseMapper<SmsSalesBillExtend> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_extend set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillExtendVo> voPage(IPage<SmsSalesBillExtend> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillExtend> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillExtendVo> selectPageVo(IPage<SmsSalesBillExtend> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillExtend> qw); |
||||
|
|
||||
|
List<SmsSalesBillExtendVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillExtend> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_extend") |
||||
|
List<SmsSalesBillExtendVo> 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.sms.biz.smssalesbillextend.SmsSalesBillExtendMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smssalesbillextend.SmsSalesBillExtendVo"> |
||||
|
SELECT * FROM sms_sales_bill_extend <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smssalesbillextend.SmsSalesBillExtendVo"> |
||||
|
SELECT * FROM sms_sales_bill_extend <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillextend.SmsSalesBillExtendQuery <br/> |
||||
|
* Description: 销售单扩展 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单扩展 查询条件", description = "销售单扩展 查询条件") |
||||
|
public class SmsSalesBillExtendQuery 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 buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbillextend.SmsSalesBillExtendService <br/> |
||||
|
* Description: 销售单扩展 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesBillExtendService extends MybatisBaseService<SmsSalesBillExtendMapper, SmsSalesBillExtend> { |
||||
|
private QueryWrapper<SmsSalesBillExtend> createQueryWrapper(SmsSalesBillExtendQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesBillExtend> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesBillExtendVo> listPageVo(PagerQuery<SmsSalesBillExtendQuery> pq) { |
||||
|
SmsSalesBillExtendQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesBillExtend> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesBillExtend> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesBillExtendVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesBillExtendVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesBillExtendDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesBillExtendDto dto){ |
||||
|
SmsSalesBillExtend entity = new SmsSalesBillExtend(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesBillExtendDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesBillExtend entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesBillExtendDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesBillExtend entity = fetchBySid(sid); |
||||
|
SmsSalesBillExtendDetailsVo vo = new SmsSalesBillExtendDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillextend; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillExtendVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillextend.SmsSalesBillExtendVo <br/> |
||||
|
* Description: 销售单扩展 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售单扩展 视图数据对象", description = "销售单扩展 视图数据对象") |
||||
|
public class SmsSalesBillExtendVo 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 buyerMessage; // 买家留言
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoice.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillinvoice.SmsSalesBillInvoice <br/> |
||||
|
* Description: 销售单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillinvoice.SmsSalesBillInvoiceVo <br/> |
||||
|
* Description: 销售单-发票 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <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("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillinvoice.SmsSalesBillInvoiceDto <br/> |
||||
|
* Description: 销售单-发票 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceMapper <br/> |
||||
|
* Description: 销售单-发票. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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(); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_invoice where billSid =#{mainSid}") |
||||
|
SmsSalesBillInvoice fetchByMainSid(@Param("mainSid") String mainSid); |
||||
|
|
||||
|
@Delete("DELETE FROM sms_sales_bill_invoice WHERE billSid =#{mainSid}") |
||||
|
void delByMainSid(@Param("mainSid") String mainSid); |
||||
|
} |
@ -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.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceVo"> |
||||
|
SELECT * FROM sms_sales_bill_invoice <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceVo"> |
||||
|
SELECT * FROM sms_sales_bill_invoice <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillinvoice.SmsSalesBillInvoiceQuery <br/> |
||||
|
* Description: 销售单-发票 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceService.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbillinvoice.SmsSalesBillInvoiceService <br/> |
||||
|
* Description: 销售单-发票 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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 SmsSalesBillInvoice fetchByMainSid(String mainSid) { |
||||
|
return baseMapper.fetchByMainSid(mainSid); |
||||
|
} |
||||
|
|
||||
|
public void delByMainSid(String mainSid) { |
||||
|
baseMapper.delByMainSid(mainSid); |
||||
|
} |
||||
|
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,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillInvoiceVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillinvoice.SmsSalesBillInvoiceVo <br/> |
||||
|
* Description: 销售单-发票 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:44 <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("发票类型") |
||||
|
private String invoiceType; // 发票类型
|
||||
|
@ApiModelProperty("开票名称") |
||||
|
private String invoiceTitle; // 开票名称
|
||||
|
@ApiModelProperty("税号") |
||||
|
private String taxpayerNo; // 税号
|
||||
|
@ApiModelProperty("发票号码") |
||||
|
private String invoiceCode; // 发票号码
|
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal taxRate; // 税率
|
||||
|
|
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillsettle; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettle.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillsettle.SmsSalesBillSettle <br/> |
||||
|
* Description: 采购单-结算. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "采购单-结算", description = "采购单-结算") |
||||
|
@TableName("sms_sales_bill_settle") |
||||
|
public class SmsSalesBillSettle extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("结算人姓名") |
||||
|
private String createByName; // 结算人姓名
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号") |
||||
|
private String sourceBillNo; // 来源单编号
|
||||
|
@ApiModelProperty("应收金额(总计金额-优惠-优惠券-积分抵扣)") |
||||
|
private BigDecimal receivableAmount; // 应收金额(总计金额-优惠-优惠券-积分抵扣)
|
||||
|
@ApiModelProperty("订金抵扣") |
||||
|
private BigDecimal depositdeductAmount; // 订金抵扣
|
||||
|
@ApiModelProperty("结算方式key") |
||||
|
private String settleKey; // 结算方式key
|
||||
|
@ApiModelProperty("结算方式value") |
||||
|
private String settleValue; // 结算方式value
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal settleAmount; // 结算金额
|
||||
|
@ApiModelProperty("其他结算方式") |
||||
|
private String otherSettleKey; // 其他结算方式
|
||||
|
@ApiModelProperty("其他结算金额") |
||||
|
private String otherSettleValue; // 其他结算金额
|
||||
|
@ApiModelProperty("欠款金额") |
||||
|
private BigDecimal debts; // 欠款金额
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("结算时间") |
||||
|
private Date settleTime; // 结算时间
|
||||
|
@ApiModelProperty("付款人编号") |
||||
|
private String payerNo; // 付款人编号
|
||||
|
@ApiModelProperty("付款人名称") |
||||
|
private String payerName; // 付款人名称
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillsettle; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettleVo.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillsettle.SmsSalesBillSettleVo <br/> |
||||
|
* Description: 采购单-结算 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "采购单-结算 视图数据详情", description = "采购单-结算 视图数据详情") |
||||
|
public class SmsSalesBillSettleDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("结算人姓名") |
||||
|
private String createByName; // 结算人姓名
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号") |
||||
|
private String sourceBillNo; // 来源单编号
|
||||
|
@ApiModelProperty("应收金额(总计金额-优惠-优惠券-积分抵扣)") |
||||
|
private BigDecimal receivableAmount; // 应收金额(总计金额-优惠-优惠券-积分抵扣)
|
||||
|
@ApiModelProperty("订金抵扣") |
||||
|
private BigDecimal depositdeductAmount; // 订金抵扣
|
||||
|
@ApiModelProperty("结算方式key") |
||||
|
private String settleKey; // 结算方式key
|
||||
|
@ApiModelProperty("结算方式value") |
||||
|
private String settleValue; // 结算方式value
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal settleAmount; // 结算金额
|
||||
|
@ApiModelProperty("其他结算方式") |
||||
|
private String otherSettleKey; // 其他结算方式
|
||||
|
@ApiModelProperty("其他结算金额") |
||||
|
private String otherSettleValue; // 其他结算金额
|
||||
|
@ApiModelProperty("欠款金额") |
||||
|
private BigDecimal debts; // 欠款金额
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("结算时间") |
||||
|
private Date settleTimeStart; // 结算时间
|
||||
|
private Date settleTimeEnd; // 结算时间
|
||||
|
@ApiModelProperty("付款人编号") |
||||
|
private String payerNo; // 付款人编号
|
||||
|
@ApiModelProperty("付款人名称") |
||||
|
private String payerName; // 付款人名称
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillsettle; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettleDto.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillsettle.SmsSalesBillSettleDto <br/> |
||||
|
* Description: 采购单-结算 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "采购单-结算 数据传输对象", description = "采购单-结算 数据传输对象") |
||||
|
public class SmsSalesBillSettleDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("结算人姓名") |
||||
|
private String createByName; // 结算人姓名
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号") |
||||
|
private String sourceBillNo; // 来源单编号
|
||||
|
@ApiModelProperty("应收金额(总计金额-优惠-优惠券-积分抵扣)") |
||||
|
private BigDecimal receivableAmount; // 应收金额(总计金额-优惠-优惠券-积分抵扣)
|
||||
|
@ApiModelProperty("订金抵扣") |
||||
|
private BigDecimal depositdeductAmount; // 订金抵扣
|
||||
|
@ApiModelProperty("结算方式key") |
||||
|
private String settleKey; // 结算方式key
|
||||
|
@ApiModelProperty("结算方式value") |
||||
|
private String settleValue; // 结算方式value
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal settleAmount; // 结算金额
|
||||
|
@ApiModelProperty("其他结算方式") |
||||
|
private String otherSettleKey; // 其他结算方式
|
||||
|
@ApiModelProperty("其他结算金额") |
||||
|
private String otherSettleValue; // 其他结算金额
|
||||
|
@ApiModelProperty("欠款金额") |
||||
|
private BigDecimal debts; // 欠款金额
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("结算时间") |
||||
|
private Date settleTimeStart; // 结算时间
|
||||
|
private Date settleTimeEnd; // 结算时间
|
||||
|
@ApiModelProperty("付款人编号") |
||||
|
private String payerNo; // 付款人编号
|
||||
|
@ApiModelProperty("付款人名称") |
||||
|
private String payerName; // 付款人名称
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillsettle; |
||||
|
|
||||
|
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: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettleMapper.java <br/> |
||||
|
* Class: com.yxt.sms.biz.smssalesbillsettle.SmsSalesBillSettleMapper <br/> |
||||
|
* Description: 采购单-结算. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesBillSettleMapper extends BaseMapper<SmsSalesBillSettle> { |
||||
|
|
||||
|
//@Update("update sms_sales_bill_settle set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesBillSettleVo> voPage(IPage<SmsSalesBillSettle> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesBillSettle> qw);
|
||||
|
|
||||
|
IPage<SmsSalesBillSettleVo> selectPageVo(IPage<SmsSalesBillSettle> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesBillSettle> qw); |
||||
|
|
||||
|
List<SmsSalesBillSettleVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesBillSettle> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_bill_settle") |
||||
|
List<SmsSalesBillSettleVo> selectListVo(); |
||||
|
@Select("select * from sms_sales_bill_settle where sourceBillSid =#{sid}") |
||||
|
SmsSalesBillSettle fetchByMainSid(String sid); |
||||
|
} |
@ -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.sms.biz.smssalesbillsettle.SmsSalesBillSettleMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sms.biz.smssalesbillsettle.SmsSalesBillSettleVo"> |
||||
|
SELECT * FROM sms_sales_bill_settle <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sms.biz.smssalesbillsettle.SmsSalesBillSettleVo"> |
||||
|
SELECT * FROM sms_sales_bill_settle <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,83 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sms.biz.smssalesbillsettle; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(sms) <br/> |
||||
|
* File: SmsSalesBillSettleQuery.java <br/> |
||||
|
* Class: com.yxt.sms.api.smssalesbillsettle.SmsSalesBillSettleQuery <br/> |
||||
|
* Description: 采购单-结算 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:24:45 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "采购单-结算 查询条件", description = "采购单-结算 查询条件") |
||||
|
public class SmsSalesBillSettleQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("结算人姓名") |
||||
|
private String createByName; // 结算人姓名
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号") |
||||
|
private String sourceBillNo; // 来源单编号
|
||||
|
@ApiModelProperty("应收金额(总计金额-优惠-优惠券-积分抵扣)") |
||||
|
private BigDecimal receivableAmount; // 应收金额(总计金额-优惠-优惠券-积分抵扣)
|
||||
|
@ApiModelProperty("预付款抵扣") |
||||
|
private BigDecimal prepaymentdeductAmount; // 预付款抵扣
|
||||
|
@ApiModelProperty("结算方式key") |
||||
|
private String settleKey; // 结算方式key
|
||||
|
@ApiModelProperty("结算方式value") |
||||
|
private String settleValue; // 结算方式value
|
||||
|
@ApiModelProperty("结算金额") |
||||
|
private BigDecimal settleAmount; // 结算金额
|
||||
|
@ApiModelProperty("其他结算方式") |
||||
|
private String otherSettleKey; // 其他结算方式
|
||||
|
@ApiModelProperty("其他结算金额") |
||||
|
private String otherSettleValue; // 其他结算金额
|
||||
|
@ApiModelProperty("欠款金额") |
||||
|
private BigDecimal debts; // 欠款金额
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("结算时间") |
||||
|
private Date settleTimeStart; // 结算时间
|
||||
|
private Date settleTimeEnd; // 结算时间
|
||||
|
|
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue