
47 changed files with 2373 additions and 45 deletions
@ -0,0 +1 @@ |
|||||
|
/ss-common-sales.iml |
@ -0,0 +1,41 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.apiadmin; |
||||
|
|
||||
|
import com.yxt.sales.biz.smsappendix.SmsAppendixService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@Api(tags = "附件表") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/smsappendix") |
||||
|
public class SmsAppendixRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsAppendixService smsAppendixService; |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.sales.biz.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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.SmsSalesReturnDetailRest <br/> |
||||
|
* Description: 销售退货单据明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售退货单据明细") |
||||
|
@RestController("com.yxt.sales.apiadmin.SmsSalesReturnDetailRest") |
||||
|
@RequestMapping("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,101 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.sales.biz.smssalesreturn.*; |
||||
|
import com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnFeignFallback.java <br/> |
||||
|
* Class: com.yxt.sales.apiadmin.SmsSalesReturnRest <br/> |
||||
|
* Description: 销售退货单据. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "销售退货单据") |
||||
|
@RestController("com.yxt.sales.apiadmin.SmsSalesReturnRest") |
||||
|
@RequestMapping("v1/smssalesreturn") |
||||
|
public class SmsSalesReturnRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesReturnService smsSalesReturnService; |
||||
|
@Autowired |
||||
|
private SmsSalesReturnDetailService smsSalesReturnDetailService; |
||||
|
|
||||
|
@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); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SmsSalesReturnDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String sid = smsSalesReturnService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@Delete("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
smsSalesReturnService.delBySids(sids); |
||||
|
for (String sid : sids) { |
||||
|
smsSalesReturnDetailService.delByBillSid(sid); |
||||
|
} |
||||
|
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); |
||||
|
} |
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
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: caigou(采购) <br/> |
||||
|
* File: PurchaseAppendix.java <br/> |
||||
|
* Class: com.yxt.purchase.api.purchaseappendix.PurchaseAppendix <br/> |
||||
|
* Description: 附件表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-03 14:44:55 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "附件表", description = "附件表") |
||||
|
@TableName("sms_appendix") |
||||
|
public class SmsAppendix extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("文件名") |
||||
|
private String fileName; // 文件名
|
||||
|
@ApiModelProperty("文件类型") |
||||
|
private String fileType; // 文件类型
|
||||
|
@ApiModelProperty("关联业务对象sid") |
||||
|
private String linkSid; // 关联业务对象sid
|
||||
|
@ApiModelProperty("附件类型") |
||||
|
private String attachType; // 附件类型
|
||||
|
@ApiModelProperty("文件大小") |
||||
|
private String fileSize; // 文件大小
|
||||
|
@ApiModelProperty("文件的路径") |
||||
|
private String filePath; // 文件的路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: caigou(采购) <br/> |
||||
|
* File: PurchaseAppendixVo.java <br/> |
||||
|
* Class: com.yxt.purchase.api.purchaseappendix.PurchaseAppendixVo <br/> |
||||
|
* Description: 附件表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-03 14:44:55 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "附件表 视图数据详情", description = "附件表 视图数据详情") |
||||
|
public class SmsAppendixDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("文件名") |
||||
|
private String fileName; // 文件名
|
||||
|
@ApiModelProperty("文件类型") |
||||
|
private String fileType; // 文件类型
|
||||
|
@ApiModelProperty("关联业务对象sid") |
||||
|
private String linkSid; // 关联业务对象sid
|
||||
|
@ApiModelProperty("附件类型") |
||||
|
private String attachType; // 附件类型
|
||||
|
@ApiModelProperty("文件大小") |
||||
|
private String fileSize; // 文件大小
|
||||
|
@ApiModelProperty("文件的路径") |
||||
|
private String filePath; // 文件的路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: caigou(采购) <br/> |
||||
|
* File: PurchaseAppendixDto.java <br/> |
||||
|
* Class: com.yxt.purchase.api.purchaseappendix.PurchaseAppendixDto <br/> |
||||
|
* Description: 附件表 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-03 14:44:55 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "附件表 数据传输对象", description = "附件表 数据传输对象") |
||||
|
public class SmsAppendixDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("文件名") |
||||
|
private String fileName; // 文件名
|
||||
|
@ApiModelProperty("文件类型") |
||||
|
private String fileType; // 文件类型
|
||||
|
@ApiModelProperty("关联业务对象sid") |
||||
|
private String linkSid; // 关联业务对象sid
|
||||
|
@ApiModelProperty("附件类型") |
||||
|
private String attachType; // 附件类型
|
||||
|
@ApiModelProperty("文件大小") |
||||
|
private String fileSize; // 文件大小
|
||||
|
@ApiModelProperty("文件的路径") |
||||
|
private String filePath; // 文件的路径
|
||||
|
|
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface SmsAppendixMapper extends BaseMapper<SmsAppendix> { |
||||
|
|
||||
|
@Delete("delete from sms_appendix where linkSid = #{dtoSid}") |
||||
|
void delByLinkSid(String dtoSid); |
||||
|
|
||||
|
@Select("select * from sms_appendix where linkSid = #{dtoSid}") |
||||
|
List<SmsAppendixDetailsVo> selByLinkSid(String sid); |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.sales.biz.smsappendix.SmsAppendixMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
</mapper> |
@ -0,0 +1,50 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class SmsAppendixService extends MybatisBaseService<SmsAppendixMapper, SmsAppendix> { |
||||
|
|
||||
|
public void insertByDto(SmsAppendixDto dto){ |
||||
|
SmsAppendix entity = new SmsAppendix(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void delByLinkSid(String dtoSid) { |
||||
|
baseMapper.delByLinkSid(dtoSid); |
||||
|
} |
||||
|
|
||||
|
public List<SmsAppendixDetailsVo> selByLinkSid(String sid) { |
||||
|
return baseMapper.selByLinkSid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.sales.biz.smsappendix; |
||||
|
|
||||
|
/** |
||||
|
* @Author fan |
||||
|
* @Date 2022/11/14 22:46 |
||||
|
* @Description |
||||
|
*/ |
||||
|
public enum SmsFileEnum { |
||||
|
|
||||
|
SMSSALESBILL("001", "付款凭证"), |
||||
|
; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 附件类型 |
||||
|
*/ |
||||
|
private final String attachType; |
||||
|
|
||||
|
/** |
||||
|
* 代号 |
||||
|
*/ |
||||
|
private final String mark; |
||||
|
|
||||
|
SmsFileEnum(String attachType, String mark) { |
||||
|
this.attachType = attachType; |
||||
|
this.mark = mark; |
||||
|
} |
||||
|
|
||||
|
public String getAttachType() { |
||||
|
return attachType; |
||||
|
} |
||||
|
|
||||
|
public String getMark() { |
||||
|
return mark; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/19 17:23 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GoodsList { |
||||
|
private String auxiliaryUnit; |
||||
|
private String backAmount; |
||||
|
private String backCount; |
||||
|
private String discountRtate; |
||||
|
private String goodSpuSid; |
||||
|
private String goodsSkuCode; |
||||
|
private String goodsSkuOwnSpec; |
||||
|
private String goodsSkuSid; |
||||
|
private String goodsSkuTitle; |
||||
|
private String goodsSpuName; |
||||
|
private String maxPrice; |
||||
|
private String remarks; |
||||
|
private String tradePrice; |
||||
|
private String unit; |
||||
|
private String warehouseRackCode; |
||||
|
private String warehouseRackSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturn.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturn <br/> |
||||
|
* Description: 销售退货单据. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据", description = "销售退货单据") |
||||
|
@TableName("sms_sales_return") |
||||
|
public class SmsSalesReturn extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; // 制单人姓名
|
||||
|
@ApiModelProperty("制单部门sid") |
||||
|
private String deptSid; // 制单部门sid
|
||||
|
@ApiModelProperty("制单部门") |
||||
|
private String deptName; // 制单部门
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("来源单sid(销售单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(销售单sid)
|
||||
|
@ApiModelProperty("来源单编号(订单编号)") |
||||
|
private String sourceBillNo; // 来源单编号(订单编号)
|
||||
|
@ApiModelProperty("业务员sid") |
||||
|
private String salesUserSid; // 业务员sid
|
||||
|
@ApiModelProperty("业务员姓名") |
||||
|
private String salesName; // 业务员姓名
|
||||
|
@ApiModelProperty("单据类型key(销售退货等)") |
||||
|
private String billTypeKey; // 单据类型key(销售退货等)
|
||||
|
@ApiModelProperty("单据类型value") |
||||
|
private String billTypeValue; // 单据类型value
|
||||
|
@ApiModelProperty("物流公司") |
||||
|
private String LogisticsName; // 物流公司
|
||||
|
@ApiModelProperty("快递单号") |
||||
|
private String logisticsNum; // 快递单号
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; // 客户名称
|
||||
|
@ApiModelProperty("退误差调整金额") |
||||
|
private BigDecimal backErrorAmount; // 退误差调整金额
|
||||
|
@ApiModelProperty("退优惠金额") |
||||
|
private BigDecimal backDiscountAmount; // 退优惠金额
|
||||
|
@ApiModelProperty("抵扣欠款") |
||||
|
private BigDecimal deductDebts; // 抵扣欠款
|
||||
|
@ApiModelProperty("结算账户") |
||||
|
private String bankAccount; // 结算账户
|
||||
|
@ApiModelProperty("抵扣单号") |
||||
|
private String deductBillNo; // 抵扣单号
|
||||
|
@ApiModelProperty("是否记预收款(1是,0否)") |
||||
|
private Integer isTotoPrepayment; // 是否记预收款(1是,0否)
|
||||
|
@ApiModelProperty("转入预付款") |
||||
|
private BigDecimal toPrepayment; // 转入预付款
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
|
||||
|
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.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnVo.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnVo <br/> |
||||
|
* Description: 销售退货单据 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据 视图数据详情", description = "销售退货单据 视图数据详情") |
||||
|
public class SmsSalesReturnDetailsVo implements Vo { |
||||
|
|
||||
|
private String amount; |
||||
|
private String billTypeKey; |
||||
|
private String billTypeValue; |
||||
|
private String createByName; |
||||
|
private String createBySid; |
||||
|
private String createOrgSid; |
||||
|
private String createTime; |
||||
|
private String customerName; |
||||
|
private String customerSid; |
||||
|
private String deliveryTypeKey; |
||||
|
private String deptName; |
||||
|
private String deptSid; |
||||
|
private List<GoodsList> goodsList; |
||||
|
private String isFirstPay; |
||||
|
private String isTotoPrepayment; |
||||
|
private String logisticsName; |
||||
|
private String logisticsNum; |
||||
|
private String remarks; |
||||
|
private String salesName; |
||||
|
private String salesUserSid; |
||||
|
private String sid; |
||||
|
private String sourceBillNo; |
||||
|
private String sourceBillSid; |
||||
|
private String useOrgSid; |
||||
|
private String warehouseName; |
||||
|
private String warehouseSid; |
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
|
||||
|
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.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDto.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnDto <br/> |
||||
|
* Description: 销售退货单据 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据 数据传输对象", description = "销售退货单据 数据传输对象") |
||||
|
public class SmsSalesReturnDto implements Dto { |
||||
|
|
||||
|
private String amount; |
||||
|
private String billTypeKey; |
||||
|
private String billTypeValue; |
||||
|
private String createByName; |
||||
|
private String createBySid; |
||||
|
private String createOrgSid; |
||||
|
private String createTime; |
||||
|
private String customerName; |
||||
|
private String customerSid; |
||||
|
private String deliveryTypeKey; |
||||
|
private String deptName; |
||||
|
private String deptSid; |
||||
|
private List<GoodsList> goodsList; |
||||
|
private String isFirstPay; |
||||
|
private String isTotoPrepayment; |
||||
|
private String logisticsName; |
||||
|
private String logisticsNum; |
||||
|
private String remarks; |
||||
|
private String salesName; |
||||
|
private String salesUserSid; |
||||
|
private String sid; |
||||
|
private String sourceBillNo; |
||||
|
private String sourceBillSid; |
||||
|
private String useOrgSid; |
||||
|
private String warehouseName; |
||||
|
private String warehouseSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnMapper.java <br/> |
||||
|
* Class: com.yxt.sales.biz.smssalesreturn.SmsSalesReturnMapper <br/> |
||||
|
* Description: 销售退货单据. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesReturnMapper extends BaseMapper<SmsSalesReturn> { |
||||
|
|
||||
|
//@Update("update sms_sales_return set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesReturnVo> voPage(IPage<SmsSalesReturn> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesReturn> qw);
|
||||
|
|
||||
|
IPage<SmsSalesReturnVo> selectPageVo(IPage<SmsSalesReturn> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesReturn> qw); |
||||
|
|
||||
|
List<SmsSalesReturnVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesReturn> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_return") |
||||
|
List<SmsSalesReturnVo> selectListVo(); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.sales.biz.smssalesreturn.SmsSalesReturnMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesreturn.SmsSalesReturnVo"> |
||||
|
SELECT * FROM sms_sales_return <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesreturn.SmsSalesReturnVo"> |
||||
|
SELECT * FROM sms_sales_return <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,103 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnQuery.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnQuery <br/> |
||||
|
* Description: 销售退货单据 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据 查询条件", description = "销售退货单据 查询条件") |
||||
|
public class SmsSalesReturnQuery implements Query { |
||||
|
|
||||
|
/** |
||||
|
* 单据编号 |
||||
|
*/ |
||||
|
private String billNo; |
||||
|
/** |
||||
|
* 单据类型key |
||||
|
*/ |
||||
|
private String billTypeKey; |
||||
|
/** |
||||
|
* 制单人姓名 |
||||
|
*/ |
||||
|
private String createByName; |
||||
|
/** |
||||
|
* 创建组织sid |
||||
|
*/ |
||||
|
private String createOrgSid; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
/** |
||||
|
* 制单部门 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
/** |
||||
|
* 制单结束日期 |
||||
|
*/ |
||||
|
private String endDate; |
||||
|
/** |
||||
|
* 销售姓名(业务员) |
||||
|
*/ |
||||
|
private String salesName; |
||||
|
/** |
||||
|
* 订单编号 |
||||
|
*/ |
||||
|
private String sourceBillNo; |
||||
|
/** |
||||
|
* 制单开始日期 |
||||
|
*/ |
||||
|
private String startDate; |
||||
|
/** |
||||
|
* 使用组织sid |
||||
|
*/ |
||||
|
private String useOrgSid; |
||||
|
/** |
||||
|
* 仓库名称 |
||||
|
*/ |
||||
|
private String warehouseName; |
||||
|
|
||||
|
} |
@ -0,0 +1,176 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.sales.biz.smssalesbill.SmsSalesBill; |
||||
|
import com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetail; |
||||
|
import com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailService; |
||||
|
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 java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnService.java <br/> |
||||
|
* Class: com.yxt.sales.biz.smssalesreturn.SmsSalesReturnService <br/> |
||||
|
* Description: 销售退货单据 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesReturnService extends MybatisBaseService<SmsSalesReturnMapper, SmsSalesReturn> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SmsSalesReturnDetailService smsSalesReturnDetailService; |
||||
|
|
||||
|
private QueryWrapper<SmsSalesReturn> createQueryWrapper(SmsSalesReturnQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesReturn> qw = new QueryWrapper<>(); |
||||
|
|
||||
|
if (StringUtils.isNotBlank(query.getBillNo())) { |
||||
|
qw.like("s.billNo", query.getBillNo()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getBillTypeKey())) { |
||||
|
qw.like("s.billTypeKey", query.getBillTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCreateByName())) { |
||||
|
qw.like("s.createByName", query.getCreateByName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCreateOrgSid())) { |
||||
|
qw.eq("s.createOrgSid", query.getCreateOrgSid()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getDeptName())) { |
||||
|
qw.like("s.deptName", query.getDeptName()); |
||||
|
} |
||||
|
String createStartTime = query.getStartDate(); |
||||
|
String createEndTime = query.getEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(createStartTime), "date_format (s.createTime,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(createEndTime), "date_format (s.createTime,'%Y-%m-%d') <= date_format('" + createEndTime + "','%Y-%m-%d')" |
||||
|
); |
||||
|
if (StringUtils.isNotBlank(query.getCustomerName())) { |
||||
|
qw.like("s.customerName", query.getCustomerName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getSalesName())) { |
||||
|
qw.like("s.salesName", query.getSalesName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getSourceBillNo())) { |
||||
|
qw.like("s.sourceBillNo", query.getSourceBillNo()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getWarehouseName())) { |
||||
|
qw.like("s.warehouseName", query.getWarehouseName()); |
||||
|
} |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesReturnVo> listPageVo(PagerQuery<SmsSalesReturnQuery> pq) { |
||||
|
SmsSalesReturnQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesReturn> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesReturn> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesReturnVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesReturnVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public String saveOrUpdateDto(SmsSalesReturnDto dto) { |
||||
|
String sid = ""; |
||||
|
if (StringUtils.isNotBlank(dto.getSid())) { |
||||
|
sid = dto.getSid(); |
||||
|
smsSalesReturnDetailService.delByBillSid(sid); |
||||
|
SmsSalesReturn smsSalesReturn = fetchBySid(sid); |
||||
|
BeanUtil.copyProperties(dto, smsSalesReturn, "id", "sid"); |
||||
|
baseMapper.updateById(smsSalesReturn); |
||||
|
} else { |
||||
|
SmsSalesReturn entity = new SmsSalesReturn(); |
||||
|
sid = entity.getSid(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
if (!dto.getGoodsList().isEmpty()) { |
||||
|
List<GoodsList> goodsList = dto.getGoodsList(); |
||||
|
for (GoodsList list : goodsList) { |
||||
|
SmsSalesReturnDetail detail = new SmsSalesReturnDetail(); |
||||
|
BeanUtil.copyProperties(list, detail, "id", "sid"); |
||||
|
detail.setBillSid(sid); |
||||
|
smsSalesReturnDetailService.insert(detail); |
||||
|
} |
||||
|
} |
||||
|
return sid; |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesReturnDto dto) { |
||||
|
SmsSalesReturn entity = new SmsSalesReturn(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesReturnDto dto) { |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesReturn entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesReturnDetailsVo fetchDetailsVoBySid(String sid) { |
||||
|
SmsSalesReturnDetailsVo vo = new SmsSalesReturnDetailsVo(); |
||||
|
List<GoodsList> goodsList = new ArrayList<>(); |
||||
|
SmsSalesReturn entity = fetchBySid(sid); |
||||
|
if (null != entity) { |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
List<SmsSalesReturnDetail> smsSalesReturnDetails = smsSalesReturnDetailService.selByBillSid(sid); |
||||
|
if (!smsSalesReturnDetails.isEmpty()) { |
||||
|
for (SmsSalesReturnDetail smsSalesReturnDetail : smsSalesReturnDetails) { |
||||
|
GoodsList goods = new GoodsList(); |
||||
|
BeanUtil.copyProperties(smsSalesReturnDetail, goods); |
||||
|
goodsList.add(goods); |
||||
|
} |
||||
|
vo.setGoodsList(goodsList); |
||||
|
} |
||||
|
} |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturn; |
||||
|
|
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnVo.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturn.SmsSalesReturnVo <br/> |
||||
|
* Description: 销售退货单据 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据 视图数据对象", description = "销售退货单据 视图数据对象") |
||||
|
public class SmsSalesReturnVo implements Vo { |
||||
|
|
||||
|
/** |
||||
|
* 总金额 |
||||
|
*/ |
||||
|
private String amount; |
||||
|
/** |
||||
|
* 单据编号 |
||||
|
*/ |
||||
|
private String billNo; |
||||
|
/** |
||||
|
* 单据类型value |
||||
|
*/ |
||||
|
private String billTypeValue; |
||||
|
/** |
||||
|
* 制单人姓名 |
||||
|
*/ |
||||
|
private String createByName; |
||||
|
/** |
||||
|
* 制单日期 |
||||
|
*/ |
||||
|
private String createTime; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
/** |
||||
|
* 制单部门 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
/** |
||||
|
* 物流单号 |
||||
|
*/ |
||||
|
private String logisticsNum; |
||||
|
/** |
||||
|
* 业务员 |
||||
|
*/ |
||||
|
private String salesName; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 订单编号 |
||||
|
*/ |
||||
|
private String sourceBillNo; |
||||
|
/** |
||||
|
* 仓库名称 |
||||
|
*/ |
||||
|
private String warehouseName; |
||||
|
|
||||
|
} |
@ -0,0 +1,98 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetail.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturndetail.SmsSalesReturnDetail <br/> |
||||
|
* Description: 销售退货单据明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据明细", description = "销售退货单据明细") |
||||
|
@TableName("sms_sales_return_detail") |
||||
|
public class SmsSalesReturnDetail extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; // 规格
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private BigDecimal backCount; // 退货数量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("原单据中总数量(暂时无用)") |
||||
|
private BigDecimal originalCount; // 原单据中总数量(暂时无用)
|
||||
|
@ApiModelProperty("已退数量(暂时无用)") |
||||
|
private BigDecimal returnedCount; // 已退数量(暂时无用)
|
||||
|
@ApiModelProperty("税额(暂时无用)") |
||||
|
private BigDecimal maxAmount; // 税额(暂时无用)
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("标准售价") |
||||
|
private BigDecimal maxPrice; // 标准售价
|
||||
|
@ApiModelProperty("批发价") |
||||
|
private BigDecimal tradePrice; // 批发价
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private BigDecimal backAmount; // 退货金额
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("货位sid") |
||||
|
private String warehouseRackSid; // 货位sid
|
||||
|
@ApiModelProperty("货位编码") |
||||
|
private String warehouseRackCode; // 货位编码
|
||||
|
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailVo.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturndetail.SmsSalesReturnDetailVo <br/> |
||||
|
* Description: 销售退货单据明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据明细 视图数据详情", description = "销售退货单据明细 视图数据详情") |
||||
|
public class SmsSalesReturnDetailDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; // 规格
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private BigDecimal backCount; // 退货数量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("原单据中总数量(暂时无用)") |
||||
|
private BigDecimal originalCount; // 原单据中总数量(暂时无用)
|
||||
|
@ApiModelProperty("已退数量(暂时无用)") |
||||
|
private BigDecimal returnedCount; // 已退数量(暂时无用)
|
||||
|
@ApiModelProperty("税额(暂时无用)") |
||||
|
private BigDecimal maxAmount; // 税额(暂时无用)
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("标准售价") |
||||
|
private BigDecimal maxPrice; // 标准售价
|
||||
|
@ApiModelProperty("批发价") |
||||
|
private BigDecimal tradePrice; // 批发价
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private BigDecimal backAmount; // 退货金额
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("货位sid") |
||||
|
private String warehouseRackSid; // 货位sid
|
||||
|
@ApiModelProperty("货位编码") |
||||
|
private String warehouseRackCode; // 货位编码
|
||||
|
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailDto.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturndetail.SmsSalesReturnDetailDto <br/> |
||||
|
* Description: 销售退货单据明细 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据明细 数据传输对象", description = "销售退货单据明细 数据传输对象") |
||||
|
public class SmsSalesReturnDetailDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; // 规格
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private BigDecimal backCount; // 退货数量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("原单据中总数量(暂时无用)") |
||||
|
private BigDecimal originalCount; // 原单据中总数量(暂时无用)
|
||||
|
@ApiModelProperty("已退数量(暂时无用)") |
||||
|
private BigDecimal returnedCount; // 已退数量(暂时无用)
|
||||
|
@ApiModelProperty("税额(暂时无用)") |
||||
|
private BigDecimal maxAmount; // 税额(暂时无用)
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("标准售价") |
||||
|
private BigDecimal maxPrice; // 标准售价
|
||||
|
@ApiModelProperty("批发价") |
||||
|
private BigDecimal tradePrice; // 批发价
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private BigDecimal backAmount; // 退货金额
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("货位sid") |
||||
|
private String warehouseRackSid; // 货位sid
|
||||
|
@ApiModelProperty("货位编码") |
||||
|
private String warehouseRackCode; // 货位编码
|
||||
|
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
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 com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetail; |
||||
|
import com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailMapper.java <br/> |
||||
|
* Class: com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailMapper <br/> |
||||
|
* Description: 销售退货单据明细. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SmsSalesReturnDetailMapper extends BaseMapper<SmsSalesReturnDetail> { |
||||
|
|
||||
|
//@Update("update sms_sales_return_detail set name=#{msg} where id=#{id}")
|
||||
|
//IPage<SmsSalesReturnDetailVo> voPage(IPage<SmsSalesReturnDetail> page, @Param(Constants.WRAPPER) QueryWrapper<SmsSalesReturnDetail> qw);
|
||||
|
|
||||
|
IPage<SmsSalesReturnDetailVo> selectPageVo(IPage<SmsSalesReturnDetail> page, @Param(Constants.WRAPPER) Wrapper<SmsSalesReturnDetail> qw); |
||||
|
|
||||
|
List<SmsSalesReturnDetailVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SmsSalesReturnDetail> qw); |
||||
|
|
||||
|
@Select("select * from sms_sales_return_detail") |
||||
|
List<SmsSalesReturnDetailVo> selectListVo(); |
||||
|
|
||||
|
@Select("select * from sms_sales_return_detail where billSid =#{billSid}") |
||||
|
List<SmsSalesReturnDetail> selByBillSid(String billSid); |
||||
|
|
||||
|
@Delete("delete from sms_sales_return_detail where billSid =#{billSid}") |
||||
|
void delByBillSid(String billSid); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailVo"> |
||||
|
SELECT * FROM sms_sales_return_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailVo"> |
||||
|
SELECT * FROM sms_sales_return_detail <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailQuery.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturndetail.SmsSalesReturnDetailQuery <br/> |
||||
|
* Description: 销售退货单据明细 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据明细 查询条件", description = "销售退货单据明细 查询条件") |
||||
|
public class SmsSalesReturnDetailQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; // 规格
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private BigDecimal backCount; // 退货数量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("原单据中总数量(暂时无用)") |
||||
|
private BigDecimal originalCount; // 原单据中总数量(暂时无用)
|
||||
|
@ApiModelProperty("已退数量(暂时无用)") |
||||
|
private BigDecimal returnedCount; // 已退数量(暂时无用)
|
||||
|
@ApiModelProperty("税额(暂时无用)") |
||||
|
private BigDecimal maxAmount; // 税额(暂时无用)
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("标准售价") |
||||
|
private BigDecimal maxPrice; // 标准售价
|
||||
|
@ApiModelProperty("批发价") |
||||
|
private BigDecimal tradePrice; // 批发价
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private BigDecimal backAmount; // 退货金额
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("货位sid") |
||||
|
private String warehouseRackSid; // 货位sid
|
||||
|
@ApiModelProperty("货位编码") |
||||
|
private String warehouseRackCode; // 货位编码
|
||||
|
|
||||
|
} |
@ -0,0 +1,112 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
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(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailService.java <br/> |
||||
|
* Class: com.yxt.sales.biz.smssalesreturndetail.SmsSalesReturnDetailService <br/> |
||||
|
* Description: 销售退货单据明细 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SmsSalesReturnDetailService extends MybatisBaseService<SmsSalesReturnDetailMapper, SmsSalesReturnDetail> { |
||||
|
private QueryWrapper<SmsSalesReturnDetail> createQueryWrapper(SmsSalesReturnDetailQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SmsSalesReturnDetail> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public List<SmsSalesReturnDetail> selByBillSid(String billSid) { |
||||
|
return baseMapper.selByBillSid(billSid); |
||||
|
} |
||||
|
|
||||
|
public void delByBillSid(String billSid){ |
||||
|
baseMapper.delByBillSid(billSid); |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SmsSalesReturnDetailVo> listPageVo(PagerQuery<SmsSalesReturnDetailQuery> pq) { |
||||
|
SmsSalesReturnDetailQuery query = pq.getParams(); |
||||
|
QueryWrapper<SmsSalesReturnDetail> qw = createQueryWrapper(query); |
||||
|
IPage<SmsSalesReturnDetail> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SmsSalesReturnDetailVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SmsSalesReturnDetailVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SmsSalesReturnDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SmsSalesReturnDetailDto dto){ |
||||
|
SmsSalesReturnDetail entity = new SmsSalesReturnDetail(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SmsSalesReturnDetailDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SmsSalesReturnDetail entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SmsSalesReturnDetailDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SmsSalesReturnDetail entity = fetchBySid(sid); |
||||
|
SmsSalesReturnDetailDetailsVo vo = new SmsSalesReturnDetailDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.sales.biz.smssalesreturndetail; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: sms(销售退货) <br/> |
||||
|
* File: SmsSalesReturnDetailVo.java <br/> |
||||
|
* Class: com.yxt.sales.api.smssalesreturndetail.SmsSalesReturnDetailVo <br/> |
||||
|
* Description: 销售退货单据明细 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-19 16:53:05 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "销售退货单据明细 视图数据对象", description = "销售退货单据明细 视图数据对象") |
||||
|
public class SmsSalesReturnDetailVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; // 单据sid
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; // 规格
|
||||
|
@ApiModelProperty("辅单位数量") |
||||
|
private String auxiliaryUnit; // 辅单位数量
|
||||
|
@ApiModelProperty("退货数量") |
||||
|
private BigDecimal backCount; // 退货数量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("原单据中总数量(暂时无用)") |
||||
|
private BigDecimal originalCount; // 原单据中总数量(暂时无用)
|
||||
|
@ApiModelProperty("已退数量(暂时无用)") |
||||
|
private BigDecimal returnedCount; // 已退数量(暂时无用)
|
||||
|
@ApiModelProperty("税额(暂时无用)") |
||||
|
private BigDecimal maxAmount; // 税额(暂时无用)
|
||||
|
@ApiModelProperty("折后单价") |
||||
|
private BigDecimal discountPrice; // 折后单价
|
||||
|
@ApiModelProperty("标准售价") |
||||
|
private BigDecimal maxPrice; // 标准售价
|
||||
|
@ApiModelProperty("批发价") |
||||
|
private BigDecimal tradePrice; // 批发价
|
||||
|
@ApiModelProperty("退货金额") |
||||
|
private BigDecimal backAmount; // 退货金额
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("货位sid") |
||||
|
private String warehouseRackSid; // 货位sid
|
||||
|
@ApiModelProperty("货位编码") |
||||
|
private String warehouseRackCode; // 货位编码
|
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.yxt.sales.utils; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/19 15:06 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class FileQueryUrl { |
||||
|
|
||||
|
private String url; |
||||
|
} |
Loading…
Reference in new issue