
33 changed files with 1996 additions and 14 deletions
@ -0,0 +1,97 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
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: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapply.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapply <br/> |
|||
* Description: 销售单开票申请. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请", description = "销售单开票申请") |
|||
@TableName("as_saleinvoiceapply") |
|||
public class AsSaleinvoiceapply extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("申请人") |
|||
private String createByName; // 申请人
|
|||
@ApiModelProperty("申请部门sid") |
|||
private String deptSid; // 申请部门sid
|
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; // 申请部门名称
|
|||
@ApiModelProperty("开票单位") |
|||
private String invoiceOrg; // 开票单位
|
|||
@ApiModelProperty("开票单位sid") |
|||
private String invoiceOrgSid; // 开票单位sid
|
|||
@ApiModelProperty("开票名称") |
|||
private String invoiceName; |
|||
@ApiModelProperty("开票名称sid") |
|||
private String invoiceNameSid; |
|||
@ApiModelProperty("开票类型") |
|||
private String invoiceType; // 开票类型
|
|||
@ApiModelProperty("开票类型sid") |
|||
private String invoiceTypeSid; // 开票类型sid
|
|||
@ApiModelProperty("开票金额") |
|||
private BigDecimal invoicePrice; // 开票金额
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("办结日期") |
|||
private Date finishTime; // 办结日期
|
|||
@ApiModelProperty("实例id") |
|||
private String procInstId; // 实例id
|
|||
@ApiModelProperty("流程定义id") |
|||
private String procDefId; // 流程定义id
|
|||
@ApiModelProperty("任务id") |
|||
private String taskId; // 任务id
|
|||
@ApiModelProperty("环节id") |
|||
private String nodeId; // 环节id
|
|||
@ApiModelProperty("流程状态") |
|||
private String nodeState; // 流程状态
|
|||
|
|||
} |
@ -0,0 +1,113 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
|
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDetailsVo; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto; |
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyVo.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyVo <br/> |
|||
* Description: 销售单开票申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请 视图数据详情", description = "销售单开票申请 视图数据详情") |
|||
public class AsSaleinvoiceapplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("申请日期") |
|||
private Date createTime; |
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("申请人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("申请人") |
|||
private String createByName; // 申请人
|
|||
@ApiModelProperty("申请部门sid") |
|||
private String deptSid; // 申请部门sid
|
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; // 申请部门名称
|
|||
@ApiModelProperty("开票单位") |
|||
private String invoiceOrg; // 开票单位
|
|||
@ApiModelProperty("开票单位sid") |
|||
private String invoiceOrgSid; // 开票单位sid
|
|||
@ApiModelProperty("开票名称") |
|||
private String invoiceName; |
|||
@ApiModelProperty("开票名称sid") |
|||
private String invoiceNameSid; |
|||
@ApiModelProperty("开票类型") |
|||
private String invoiceType; // 开票类型
|
|||
@ApiModelProperty("开票类型sid") |
|||
private String invoiceTypeSid; // 开票类型sid
|
|||
@ApiModelProperty("开票金额") |
|||
private BigDecimal invoicePrice; // 开票金额
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("办结日期") |
|||
private Date finishTime; |
|||
@ApiModelProperty("实例id") |
|||
private String procInstId; // 实例id
|
|||
@ApiModelProperty("流程定义id") |
|||
private String procDefId; // 流程定义id
|
|||
@ApiModelProperty("任务id") |
|||
private String taskId; // 任务id
|
|||
@ApiModelProperty("环节id") |
|||
private String nodeId; // 环节id
|
|||
@ApiModelProperty("流程状态") |
|||
private String nodeState; // 流程状态
|
|||
@ApiModelProperty("列表") |
|||
private List<AsSaleinvoiceapplyDetailDetailsVo> saleinvoiceapplyDetailList; |
|||
@ApiModelProperty("附件") |
|||
private List<AsSaleinvoiceapplyFile> files = new ArrayList<>(); |
|||
} |
@ -0,0 +1,109 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
|
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto; |
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDto.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyDto <br/> |
|||
* Description: 销售单开票申请 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请 数据传输对象", description = "销售单开票申请 数据传输对象") |
|||
public class AsSaleinvoiceapplyDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("申请人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("申请人") |
|||
private String createByName; // 申请人
|
|||
@ApiModelProperty("申请部门sid") |
|||
private String deptSid; // 申请部门sid
|
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; // 申请部门名称
|
|||
@ApiModelProperty("开票单位") |
|||
private String invoiceOrg; // 开票单位
|
|||
@ApiModelProperty("开票单位sid") |
|||
private String invoiceOrgSid; // 开票单位sid
|
|||
@ApiModelProperty("开票名称") |
|||
private String invoiceName; |
|||
@ApiModelProperty("开票名称sid") |
|||
private String invoiceNameSid; |
|||
@ApiModelProperty("开票类型") |
|||
private String invoiceType; // 开票类型
|
|||
@ApiModelProperty("开票类型sid") |
|||
private String invoiceTypeSid; // 开票类型sid
|
|||
@ApiModelProperty("开票金额") |
|||
private BigDecimal invoicePrice; // 开票金额
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("办结日期") |
|||
private Date finishTime; // 办结日期
|
|||
@ApiModelProperty("实例id") |
|||
private String procInstId; // 实例id
|
|||
@ApiModelProperty("流程定义id") |
|||
private String procDefId; // 流程定义id
|
|||
@ApiModelProperty("任务id") |
|||
private String taskId; // 任务id
|
|||
@ApiModelProperty("环节id") |
|||
private String nodeId; // 环节id
|
|||
@ApiModelProperty("流程状态") |
|||
private String nodeState; // 流程状态
|
|||
@ApiModelProperty("列表") |
|||
private List<AsSaleinvoiceapplyDetailDto> saleinvoiceapplyDetailList; |
|||
@ApiModelProperty("附件") |
|||
private List<AsSaleinvoiceapplyFile> files = new ArrayList<>(); |
|||
} |
@ -0,0 +1,57 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDto.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyDto <br/> |
|||
* Description: 销售单开票申请 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
public class AsSaleinvoiceapplyFile { |
|||
|
|||
private String url; |
|||
} |
@ -0,0 +1,80 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
|
|||
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: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyQuery.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyQuery <br/> |
|||
* Description: 销售单开票申请 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请 查询条件", description = "销售单开票申请 查询条件") |
|||
public class AsSaleinvoiceapplyQuery implements Query { |
|||
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; |
|||
@ApiModelProperty("申请人") |
|||
private String createByName; |
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请日期") |
|||
private String createTimeStart; |
|||
private String createTimeEnd; |
|||
@ApiModelProperty("办结日期") |
|||
private String finishTimeStart; |
|||
private String finishTimeEnd; |
|||
@ApiModelProperty("开票单位") |
|||
private String invoiceOrg; |
|||
@ApiModelProperty("开票名称") |
|||
private String invoiceName; |
|||
@ApiModelProperty("开票类型") |
|||
private String invoiceType; |
|||
|
|||
private String orgPath; |
|||
private String userSid; |
|||
private String menuUrl; |
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyVo.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyVo <br/> |
|||
* Description: 销售单开票申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请 视图数据对象", description = "销售单开票申请 视图数据对象") |
|||
public class AsSaleinvoiceapplyVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("流程状态") |
|||
private String nodeState; |
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; |
|||
@ApiModelProperty("申请人") |
|||
private String createByName; |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("申请日期") |
|||
private Date createTime; |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("办结日期") |
|||
private Date finishTime; |
|||
@ApiModelProperty("开票单位") |
|||
private String invoiceOrg; |
|||
@ApiModelProperty("开票名称") |
|||
private String invoiceName; |
|||
@ApiModelProperty("开票类型") |
|||
private String invoiceType; |
|||
@ApiModelProperty("开票金额") |
|||
private BigDecimal invoicePrice; |
|||
@ApiModelProperty("附件") |
|||
private List<String> files = new ArrayList<>(); |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class CompleteSaleinvoiceapplyDto { |
|||
|
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "用户全路径sid") |
|||
private String orgSidPath; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:instanceId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class SaleinvoiceapplyDelegateQuery { |
|||
|
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class SaleinvoiceapplyNodeQuery { |
|||
|
|||
@ApiModelProperty(value = "环节定义id") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class SaleinvoiceapplyNodeVo { |
|||
|
|||
@ApiModelProperty(value = "节点名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "节点id") |
|||
private String id; |
|||
@ApiModelProperty(value = "审批组") |
|||
private List<String> candidateGroups; |
|||
@ApiModelProperty(value = "是否是最后环节") |
|||
private String endTask; |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class SaleinvoiceapplyTaskQuery { |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapply.flowable; |
|||
|
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyDto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class SubmitSaleinvoiceapplyDto extends AsSaleinvoiceapplyDto { |
|||
|
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
} |
@ -0,0 +1,83 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapplydetail; |
|||
|
|||
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: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDetail.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetail <br/> |
|||
* Description: 销售单开票申请明细列表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请明细列表", description = "销售单开票申请明细列表") |
|||
@TableName("as_saleinvoiceapply_detail") |
|||
public class AsSaleinvoiceapplyDetail extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("业务sid") |
|||
private String mainSid; // 业务sid
|
|||
@ApiModelProperty("销售单sid") |
|||
private String saleOrderSid; // 销售单sid
|
|||
@ApiModelProperty("销售单号") |
|||
private String saleOrderNo; // 销售单号
|
|||
@ApiModelProperty("销售人") |
|||
private String salePerson; // 销售人
|
|||
@ApiModelProperty("客户名称") |
|||
private String cusmoterName; // 客户名称
|
|||
@ApiModelProperty("车牌号") |
|||
private String vehMark; // 车牌号
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("材料费") |
|||
private BigDecimal goodsAmount; // 材料费
|
|||
@ApiModelProperty("附加费") |
|||
private BigDecimal addAmount; // 附加费
|
|||
@ApiModelProperty("优惠") |
|||
private BigDecimal discountAmount; // 优惠
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("结算日期") |
|||
private Date settleDate; // 结算日期
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapplydetail; |
|||
|
|||
|
|||
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: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDetailVo.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailVo <br/> |
|||
* Description: 销售单开票申请明细列表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请明细列表 视图数据详情", description = "销售单开票申请明细列表 视图数据详情") |
|||
public class AsSaleinvoiceapplyDetailDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("业务sid") |
|||
private String mainSid; // 业务sid
|
|||
@ApiModelProperty("销售单sid") |
|||
private String saleOrderSid; // 销售单sid
|
|||
@ApiModelProperty("销售单号") |
|||
private String saleOrderNo; // 销售单号
|
|||
@ApiModelProperty("销售人") |
|||
private String salePerson; // 销售人
|
|||
@ApiModelProperty("客户名称") |
|||
private String cusmoterName; // 客户名称
|
|||
@ApiModelProperty("车牌号") |
|||
private String vehMark; // 车牌号
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("材料费") |
|||
private BigDecimal goodsAmount; // 材料费
|
|||
@ApiModelProperty("附加费") |
|||
private BigDecimal addAmount; // 附加费
|
|||
@ApiModelProperty("优惠") |
|||
private BigDecimal discountAmount; // 优惠
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("结算日期") |
|||
private Date settleDate; // 结算日期
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.assaleinvoiceapplydetail; |
|||
|
|||
|
|||
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: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDetailDto.java <br/> |
|||
* Class: com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto <br/> |
|||
* Description: 销售单开票申请明细列表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售单开票申请明细列表 数据传输对象", description = "销售单开票申请明细列表 数据传输对象") |
|||
public class AsSaleinvoiceapplyDetailDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("业务sid") |
|||
private String mainSid; // 业务sid
|
|||
@ApiModelProperty("销售单sid") |
|||
private String saleOrderSid; // 销售单sid
|
|||
@ApiModelProperty("销售单号") |
|||
private String saleOrderNo; // 销售单号
|
|||
@ApiModelProperty("销售人") |
|||
private String salePerson; // 销售人
|
|||
@ApiModelProperty("客户名称") |
|||
private String cusmoterName; // 客户名称
|
|||
@ApiModelProperty("车牌号") |
|||
private String vehMark; // 车牌号
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("材料费") |
|||
private BigDecimal goodsAmount; // 材料费
|
|||
@ApiModelProperty("附加费") |
|||
private BigDecimal addAmount; // 附加费
|
|||
@ApiModelProperty("优惠") |
|||
private BigDecimal discountAmount; // 优惠
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("结算日期") |
|||
private Date settleDate; // 结算日期
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapply; |
|||
|
|||
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 com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapply; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyVo; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyMapper.java <br/> |
|||
* Class: com.yxt.anrui.as.biz.assaleinvoiceapply.AsSaleinvoiceapplyMapper <br/> |
|||
* Description: 销售单开票申请. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface AsSaleinvoiceapplyMapper extends BaseMapper<AsSaleinvoiceapply> { |
|||
|
|||
IPage<AsSaleinvoiceapplyVo> selectPageVo(IPage<AsSaleinvoiceapply> page, @Param(Constants.WRAPPER) Wrapper<AsSaleinvoiceapply> qw); |
|||
|
|||
String selectNum(String billNo); |
|||
|
|||
int selectBySid(String join); |
|||
|
|||
int updateFlowFiled(Map<String, Object> beanToMap); |
|||
} |
@ -0,0 +1,44 @@ |
|||
<?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.anrui.as.biz.assaleinvoiceapply.AsSaleinvoiceapplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyVo"> |
|||
SELECT * FROM as_saleinvoiceapply ai |
|||
LEFT JOIN anrui_portal.sys_organization as s ON ai.deptSid = s.sid |
|||
<where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectNum" resultType="java.lang.String"> |
|||
select RIGHT (billNo, 4) |
|||
from as_saleinvoiceapply |
|||
where billNo LIKE concat(#{billNo}, '%') |
|||
order by billNo desc |
|||
limit 1 |
|||
</select> |
|||
|
|||
<select id="selectBySid" resultType="int"> |
|||
SELECT COUNT(*) |
|||
FROM as_saleinvoiceapply |
|||
WHERE nodeState != '待提交' |
|||
and find_in_set(sid, #{list}) |
|||
</select> |
|||
|
|||
<update id="updateFlowFiled"> |
|||
UPDATE as_saleinvoiceapply |
|||
SET nodeState=#{nodeState}, nodeId=#{taskDefKey} |
|||
<if test="nodeState == '已办结' or nodeState == '终止'"> |
|||
, finishTime = NOW() |
|||
</if> |
|||
<if test="procDefId != null and procDefId != ''"> |
|||
, procDefId=#{procDefId} |
|||
</if> |
|||
<if test="procInsId != null and procInsId != ''"> |
|||
, procInstId=#{procInsId} |
|||
</if> |
|||
<if test="taskId != null and taskId != ''"> |
|||
, taskId=#{taskId} |
|||
</if> |
|||
WHERE sid=#{sid} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,138 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapply; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.as.api.asbwdiffapply.flowable.*; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.flowable.*; |
|||
import com.yxt.anrui.as.feign.flowable.flow.BusinessVariables; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyQuery; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyVo; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyDetailsVo; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.AsSaleinvoiceapplyDto; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
@Api(tags = "销售单开票申请") |
|||
@RestController |
|||
@RequestMapping("v1/assaleinvoiceapply") |
|||
public class AsSaleinvoiceapplyRest { |
|||
|
|||
@Autowired |
|||
private AsSaleinvoiceapplyService asSaleinvoiceapplyService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<AsSaleinvoiceapplyVo>> listPage(@RequestBody PagerQuery<AsSaleinvoiceapplyQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<AsSaleinvoiceapplyVo> pv = asSaleinvoiceapplyService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody AsSaleinvoiceapplyDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
asSaleinvoiceapplyService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@DeleteMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
return asSaleinvoiceapplyService.delAll(sids); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<AsSaleinvoiceapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AsSaleinvoiceapplyDetailsVo vo = asSaleinvoiceapplyService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("提交") |
|||
@PostMapping("/submitApply") |
|||
public ResultBean submitApply(@Valid @RequestBody SubmitSaleinvoiceapplyDto dto) { |
|||
return asSaleinvoiceapplyService.submitApply(dto); |
|||
} |
|||
|
|||
@ApiOperation(value = "办理(同意)") |
|||
@PostMapping("/complete") |
|||
public ResultBean complete(@Valid @RequestBody CompleteSaleinvoiceapplyDto query) { |
|||
BusinessVariables bv = new BusinessVariables(); |
|||
BeanUtil.copyProperties(query, bv); |
|||
bv.setModelId(""); |
|||
return asSaleinvoiceapplyService.complete(bv); |
|||
} |
|||
|
|||
@ApiOperation(value = "获取上一个环节") |
|||
@GetMapping(value = "/getPreviousNodesForReject") |
|||
ResultBean<List<SaleinvoiceapplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap SaleinvoiceapplyNodeQuery query) { |
|||
return asSaleinvoiceapplyService.getPreviousNodesForReject(query); |
|||
} |
|||
|
|||
@ApiOperation(value = "获取下一个环节") |
|||
@GetMapping(value = "/getNextNodesForSubmit") |
|||
ResultBean<List<SaleinvoiceapplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap SaleinvoiceapplyNodeQuery query) { |
|||
return asSaleinvoiceapplyService.getNextNodesForSubmit(query); |
|||
} |
|||
|
|||
@ApiOperation(value = "驳回任务") |
|||
@PostMapping(value = "/reject") |
|||
public ResultBean taskReject(@Valid @RequestBody SaleinvoiceapplyTaskQuery query) { |
|||
return asSaleinvoiceapplyService.taskReject(query); |
|||
} |
|||
|
|||
@ApiOperation(value = "撤回流程") |
|||
@PostMapping(value = "/revokeProcess") |
|||
public ResultBean revokeProcess(@Valid @RequestBody SaleinvoiceapplyTaskQuery query) { |
|||
return asSaleinvoiceapplyService.revokeProcess(query); |
|||
} |
|||
|
|||
@ApiOperation(value = "终止任务") |
|||
@PostMapping(value = "/breakProcess") |
|||
public ResultBean breakProcess(@Valid @RequestBody SaleinvoiceapplyTaskQuery query) { |
|||
return asSaleinvoiceapplyService.breakProcess(query); |
|||
} |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PostMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody SaleinvoiceapplyDelegateQuery query) { |
|||
return asSaleinvoiceapplyService.delegate(query); |
|||
} |
|||
} |
@ -0,0 +1,622 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapply; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import com.alibaba.fastjson.JSON; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.google.common.util.concurrent.ThreadFactoryBuilder; |
|||
import com.yxt.anrui.as.api.asappendix.AsAppendix; |
|||
import com.yxt.anrui.as.api.asbwdiffapply.AsBwdiffapply; |
|||
import com.yxt.anrui.as.api.asbwdiffapply.flowable.*; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.*; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapply.flowable.*; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDetailsVo; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto; |
|||
import com.yxt.anrui.as.biz.asappendix.AsAppendixService; |
|||
import com.yxt.anrui.as.biz.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailService; |
|||
import com.yxt.anrui.as.feign.base.billno.Rule; |
|||
import com.yxt.anrui.as.feign.file.AsFileEnum; |
|||
import com.yxt.anrui.as.feign.flowable.flow.BusinessVariables; |
|||
import com.yxt.anrui.as.feign.flowable.flow.FlowableFeign; |
|||
import com.yxt.anrui.as.feign.flowable.flow.ProcDefEnum; |
|||
import com.yxt.anrui.as.feign.flowable.flow.UpdateFlowFieldVo; |
|||
import com.yxt.anrui.as.feign.flowable.flow2.FlowDelegateQuery; |
|||
import com.yxt.anrui.as.feign.flowable.flow2.FlowFeign; |
|||
import com.yxt.anrui.as.feign.flowable.flowtask.FlowTaskFeign; |
|||
import com.yxt.anrui.as.feign.flowable.flowtask.FlowTaskVo; |
|||
import com.yxt.anrui.as.feign.flowable.flowtask.LatestTaskVo; |
|||
import com.yxt.anrui.as.feign.message.MessageFeign; |
|||
import com.yxt.anrui.as.feign.message.MessageFlowVo; |
|||
import com.yxt.anrui.as.feign.message.MessageFlowableQuery; |
|||
import com.yxt.anrui.as.feign.portal.privilege.PrivilegeQuery; |
|||
import com.yxt.anrui.as.feign.portal.sysorganization.SysOrganizationFeign; |
|||
import com.yxt.anrui.as.feign.portal.sysorganization.SysOrganizationVo; |
|||
import com.yxt.anrui.as.feign.portal.sysstafforg.SysStaffOrgFeign; |
|||
import com.yxt.anrui.as.feign.portal.sysuser.SysUserFeign; |
|||
import com.yxt.anrui.as.feign.portal.sysuserrole.SysUserRoleFeign; |
|||
import com.yxt.common.base.config.component.FileUploadComponent; |
|||
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.apache.tomcat.util.threads.ThreadPoolExecutor; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.*; |
|||
import java.util.concurrent.*; |
|||
import java.util.stream.Collectors; |
|||
|
|||
@Service |
|||
public class AsSaleinvoiceapplyService extends MybatisBaseService<AsSaleinvoiceapplyMapper, AsSaleinvoiceapply> { |
|||
|
|||
@Autowired |
|||
private SysOrganizationFeign sysOrganizationFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private FlowableFeign flowableFeign; |
|||
@Autowired |
|||
private FlowTaskFeign flowTaskFeign; |
|||
@Autowired |
|||
private FlowFeign flowFeign; |
|||
@Autowired |
|||
private MessageFeign messageFeign; |
|||
@Autowired |
|||
private FileUploadComponent fileUploadComponent; |
|||
@Autowired |
|||
private AsAppendixService asAppendixService; |
|||
@Autowired |
|||
private SysUserRoleFeign sysUserRoleFeign; |
|||
@Autowired |
|||
private AsSaleinvoiceapplyDetailService asSaleinvoiceapplyDetailService; |
|||
|
|||
public PagerVo<AsSaleinvoiceapplyVo> listPageVo(PagerQuery<AsSaleinvoiceapplyQuery> pq) { |
|||
AsSaleinvoiceapplyQuery query = pq.getParams(); |
|||
QueryWrapper<AsSaleinvoiceapply> qw = new QueryWrapper<>(); |
|||
//========================================数据授权开始
|
|||
if (StringUtils.isNotBlank(query.getMenuUrl())) { |
|||
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
|||
privilegeQuery.setOrgPath(query.getOrgPath()); |
|||
privilegeQuery.setMenuUrl(query.getMenuUrl()); |
|||
privilegeQuery.setUserSid(query.getUserSid()); |
|||
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
|||
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
|||
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
|||
String orgSidPath = query.getOrgPath(); |
|||
orgSidPath = orgSidPath + "/"; |
|||
int i1 = orgSidPath.indexOf("/"); |
|||
int i2 = orgSidPath.indexOf("/", i1 + 1); |
|||
int i3 = orgSidPath.indexOf("/", i2 + 1); |
|||
int i4 = orgSidPath.indexOf("/", i3 + 1); |
|||
String orgLevelKey = defaultIdReltBean.getData(); |
|||
if ("1".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i1); |
|||
qw.like("s.orgSidPath", orgSidPath); |
|||
} else if ("2".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i2); |
|||
qw.like("s.orgSidPath", orgSidPath); |
|||
} else if ("3".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i3); |
|||
qw.like("s.orgSidPath", orgSidPath); |
|||
} else if ("4".equals(orgLevelKey)) { |
|||
orgSidPath = orgSidPath.substring(0, i4); |
|||
qw.like("s.orgSidPath", orgSidPath); |
|||
} else if ("5".equals(orgLevelKey)) { |
|||
qw.eq("ai.createBySid", query.getUserSid()); |
|||
} else { |
|||
PagerVo<AsSaleinvoiceapplyVo> p = new PagerVo<>(); |
|||
return p; |
|||
} |
|||
} else { |
|||
PagerVo<AsSaleinvoiceapplyVo> p = new PagerVo<>(); |
|||
return p; |
|||
} |
|||
} |
|||
if (StringUtils.isNotBlank(query.getUseOrgName())) { |
|||
qw.like("ai.useOrgName", query.getUseOrgName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getDeptName())) { |
|||
qw.like("ai.deptName", query.getDeptName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|||
qw.like("ai.createByName", query.getCreateByName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getBillNo())) { |
|||
qw.like("ai.billNo", query.getBillNo()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getInvoiceOrg())) { |
|||
qw.like("ai.invoiceOrg", query.getInvoiceOrg()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getInvoiceName())) { |
|||
qw.like("ai.invoiceName", query.getInvoiceName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getInvoiceType())) { |
|||
qw.like("ai.invoiceType", query.getInvoiceType()); |
|||
} |
|||
String createTimeStart = query.getCreateTimeStart(); |
|||
String createTimeEnd = query.getCreateTimeEnd(); |
|||
qw.apply(StringUtils.isNotEmpty(createTimeStart), "date_format (ai.createTime,'%Y-%m-%d') >= date_format('" + createTimeStart + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotEmpty(createTimeEnd), "date_format (ai.createTime,'%Y-%m-%d') <= date_format('" + createTimeEnd + "','%Y-%m-%d')" |
|||
); |
|||
String finishTimeStart = query.getFinishTimeStart(); |
|||
String finishTimeEnd = query.getFinishTimeEnd(); |
|||
qw.apply(StringUtils.isNotEmpty(finishTimeStart), "date_format (ai.finishTime,'%Y-%m-%d') >= date_format('" + finishTimeStart + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotEmpty(finishTimeEnd), "date_format (ai.finishTime,'%Y-%m-%d') <= date_format('" + finishTimeEnd + "','%Y-%m-%d')" |
|||
); |
|||
IPage<AsSaleinvoiceapply> page = PagerUtil.queryToPage(pq); |
|||
IPage<AsSaleinvoiceapplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<AsSaleinvoiceapplyVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public String saveOrUpdateDto(AsSaleinvoiceapplyDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
List<AsSaleinvoiceapplyFile> files = dto.getFiles(); |
|||
List<AsSaleinvoiceapplyDetailDto> saleinvoiceapplyDetailList = dto.getSaleinvoiceapplyDetailList(); |
|||
String deptSid = dto.getDeptSid(); |
|||
SysOrganizationVo deptVo = sysOrganizationFeign.fetchBySid(deptSid).getData(); |
|||
String useOrgSid = sysStaffOrgFeign.getOrgSidByPath(deptVo.getOrgSidPath()).getData(); |
|||
SysOrganizationVo organizationVo = sysOrganizationFeign.fetchBySid(useOrgSid).getData(); |
|||
dto.setUseOrgSid(useOrgSid); |
|||
dto.setUseOrgName(organizationVo.getName()); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
//生成单据编号
|
|||
String billNo = ""; |
|||
String date = DateUtil.format(DateUtil.date(), "yyyyMM"); |
|||
billNo = "PJXSDKP" + organizationVo.getOrgCode() + date; |
|||
String i = baseMapper.selectNum(billNo); |
|||
if (StringUtils.isNotBlank(i)) { |
|||
billNo = Rule.getBillNo(billNo, Integer.valueOf(i).intValue()); |
|||
} else { |
|||
billNo = Rule.getBillNo(billNo, 0); |
|||
} |
|||
dto.setBillNo(billNo); |
|||
String sid = this.insertByDto(dto); |
|||
for (AsSaleinvoiceapplyFile asSaleinvoiceapplyFile : files) { |
|||
String filePath = asSaleinvoiceapplyFile.getUrl().replace(fileUploadComponent.getUrlPrefix(), ""); |
|||
AsAppendix asAppendix = new AsAppendix(); |
|||
asAppendix.setLinkSid(sid); |
|||
asAppendix.setAttachType(AsFileEnum.ASSALEINVOICEAPPLY.getAttachType()); |
|||
asAppendix.setFilePath(filePath); |
|||
asAppendixService.save(asAppendix); |
|||
} |
|||
for (AsSaleinvoiceapplyDetailDto asSaleinvoiceapplyDetailDto : saleinvoiceapplyDetailList) { |
|||
asSaleinvoiceapplyDetailDto.setMainSid(sid); |
|||
asSaleinvoiceapplyDetailService.insertByDto(asSaleinvoiceapplyDetailDto); |
|||
} |
|||
return sid; |
|||
} |
|||
this.updateByDto(dto); |
|||
asAppendixService.delByLinkSid(dtoSid); |
|||
for (AsSaleinvoiceapplyFile asSaleinvoiceapplyFile : files) { |
|||
String filePath = asSaleinvoiceapplyFile.getUrl().replace(fileUploadComponent.getUrlPrefix(), ""); |
|||
AsAppendix asAppendix = new AsAppendix(); |
|||
asAppendix.setLinkSid(dtoSid); |
|||
asAppendix.setAttachType(AsFileEnum.ASSALEINVOICEAPPLY.getAttachType()); |
|||
asAppendix.setFilePath(filePath); |
|||
asAppendixService.save(asAppendix); |
|||
} |
|||
asSaleinvoiceapplyDetailService.delByMainSid(dtoSid); |
|||
for (AsSaleinvoiceapplyDetailDto asSaleinvoiceapplyDetailDto : saleinvoiceapplyDetailList) { |
|||
asSaleinvoiceapplyDetailDto.setMainSid(dtoSid); |
|||
asSaleinvoiceapplyDetailService.insertByDto(asSaleinvoiceapplyDetailDto); |
|||
} |
|||
return dtoSid; |
|||
} |
|||
|
|||
public String insertByDto(AsSaleinvoiceapplyDto dto){ |
|||
AsSaleinvoiceapply entity = new AsSaleinvoiceapply(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
entity.setNodeState("待提交"); |
|||
baseMapper.insert(entity); |
|||
return entity.getSid(); |
|||
} |
|||
|
|||
public void updateByDto(AsSaleinvoiceapplyDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
AsSaleinvoiceapply entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public AsSaleinvoiceapplyDetailsVo fetchDetailsVoBySid(String sid){ |
|||
AsSaleinvoiceapply entity = fetchBySid(sid); |
|||
AsSaleinvoiceapplyDetailsVo vo = new AsSaleinvoiceapplyDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
List<AsAppendix> asAppendices = asAppendixService.fetchByLinkSid(sid); |
|||
List<AsSaleinvoiceapplyFile> asSaleinvoiceapplyFiles = new ArrayList<>(); |
|||
for (AsAppendix asAppendix : asAppendices) { |
|||
AsSaleinvoiceapplyFile asSaleinvoiceapplyFile = new AsSaleinvoiceapplyFile(); |
|||
String url = fileUploadComponent.getUrlPrefix() + asAppendix.getFilePath(); |
|||
asSaleinvoiceapplyFile.setUrl(url); |
|||
asSaleinvoiceapplyFiles.add(asSaleinvoiceapplyFile); |
|||
} |
|||
vo.setFiles(asSaleinvoiceapplyFiles); |
|||
List<AsSaleinvoiceapplyDetailDetailsVo> asSaleinvoiceapplyDetailDetailsVos = asSaleinvoiceapplyDetailService.fetchByMainSid(sid); |
|||
vo.setSaleinvoiceapplyDetailList(asSaleinvoiceapplyDetailDetailsVos); |
|||
return vo; |
|||
} |
|||
|
|||
public ResultBean delAll(String[] sids) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//查询该sid中是否有流程不是待提交的
|
|||
int count = baseMapper.selectBySid(StringUtils.join(sids, ",")); |
|||
if (count > 0) { |
|||
return rb.setMsg("删除的数据中包含已提交或已办结审批的数据,删除失败"); |
|||
} |
|||
delBySids(sids); |
|||
for (String sid : sids) { |
|||
asAppendixService.delByLinkSid(sid); |
|||
asSaleinvoiceapplyDetailService.delByMainSid(sid); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean submitApply(SubmitSaleinvoiceapplyDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(dto.getSid()); |
|||
int r = submitBusinessData(dto, asSaleinvoiceapply); |
|||
if (r == 3) { |
|||
return rb.setMsg("该申请不存在"); |
|||
} |
|||
if (r == 0) { |
|||
return rb.setMsg("操作失败!提交的数据不一致"); |
|||
} |
|||
String businessSid = saveOrUpdateDto(dto); |
|||
asSaleinvoiceapply = fetchBySid(businessSid); |
|||
//创建BusinessVariables实体对象
|
|||
BusinessVariables bv = new BusinessVariables(); |
|||
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
|
|||
Map<String, Object> variables = new HashMap<>(); |
|||
Map<String, Object> appMap = new HashMap<>(); |
|||
appMap.put("sid", businessSid); |
|||
variables.put("app", appMap); |
|||
//判断发起人是否为配件主管
|
|||
String createBySid = asSaleinvoiceapply.getCreateBySid(); |
|||
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|||
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|||
//用户的部门全路径sid
|
|||
SysOrganizationVo sysOrganization = sysOrganizationFeign.fetchBySid(asSaleinvoiceapply.getDeptSid()).getData(); |
|||
if (sysOrganization != null) { |
|||
bv.setOrgSidPath(sysOrganization.getOrgSidPath()); |
|||
} |
|||
bv.setBusinessSid(businessSid); |
|||
bv.setUserSid(dto.getCreateBySid()); |
|||
bv.setFormVariables(variables); |
|||
if (r == 1) { |
|||
//ToDo:流程定义id
|
|||
bv.setModelId(ProcDefEnum.ASBWDIFFAPPLY.getProDefId()); |
|||
ResultBean<UpdateFlowFieldVo> voResultBean = flowFeign.startProcess(bv); |
|||
if (!voResultBean.getSuccess()) { |
|||
return rb.setMsg(voResultBean.getMsg()); |
|||
} |
|||
UpdateFlowFieldVo ufVo = voResultBean.getData(); |
|||
updateFlowFiled(BeanUtil.beanToMap(ufVo)); |
|||
asSaleinvoiceapply = fetchBySid(businessSid); |
|||
//==================================添加线程
|
|||
try { |
|||
ThreadFactory namedThreadFactory = new ThreadFactoryBuilder() |
|||
.setNameFormat("demo-pool-%d").build(); |
|||
ExecutorService pool = new ThreadPoolExecutor(2, 100, |
|||
0L, TimeUnit.MILLISECONDS, |
|||
new LinkedBlockingQueue<Runnable>(1024), namedThreadFactory, new ThreadPoolExecutor.AbortPolicy()); |
|||
AsSaleinvoiceapply finalAsSaleinvoiceapply = asSaleinvoiceapply; |
|||
Future future1 = pool.submit(() -> { |
|||
//极光推送
|
|||
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|||
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|||
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|||
messageFlowableQuery.setUfVo(messageFlowVo); |
|||
messageFlowableQuery.setAppMap(appMap); |
|||
messageFlowableQuery.setBusinessSid(businessSid); |
|||
messageFlowableQuery.setModuleName("配件销售开票申请"); |
|||
messageFlowableQuery.setMsgContent(finalAsSaleinvoiceapply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|||
messageFlowableQuery.setMsgTitle("配件销售开票申请"); |
|||
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|||
}); |
|||
} catch (Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
//==================================添加线程
|
|||
return voResultBean; |
|||
} |
|||
if (r == 2) { |
|||
// ToDo:驳回到发起人后再次提交
|
|||
if (StringUtils.isBlank(dto.getInstanceId())) { |
|||
return rb.setMsg("参数错误:instanceId"); |
|||
} |
|||
bv.setTaskId(asSaleinvoiceapply.getTaskId()); |
|||
bv.setTaskDefKey(asSaleinvoiceapply.getNodeId()); |
|||
bv.setComment("重新提交"); |
|||
bv.setInstanceId(dto.getInstanceId()); |
|||
return complete(bv); |
|||
} |
|||
return rb; |
|||
} |
|||
|
|||
private int updateFlowFiled(Map<String, Object> beanToMap) { |
|||
return baseMapper.updateFlowFiled(beanToMap); |
|||
} |
|||
|
|||
|
|||
private int submitBusinessData(SubmitSaleinvoiceapplyDto dto, AsSaleinvoiceapply asSaleinvoiceapply) { |
|||
int r = 0; |
|||
if (StringUtils.isBlank(dto.getSid())) { |
|||
r = 1; |
|||
} else { |
|||
if (asSaleinvoiceapply != null) { |
|||
String businessTaskId = asSaleinvoiceapply.getTaskId(); |
|||
if (StringUtils.isBlank(businessTaskId) && StringUtils.isBlank(dto.getTaskId())) { |
|||
//新提交
|
|||
r = 1; |
|||
} else if (StringUtils.isNotBlank(businessTaskId) && businessTaskId.equals(dto.getTaskId())) { |
|||
//二次提交//只有数据一致的时候才能进行下一步
|
|||
r = 2; |
|||
} |
|||
} else { |
|||
r = 3; |
|||
} |
|||
} |
|||
return r; |
|||
} |
|||
|
|||
public ResultBean complete(BusinessVariables bv) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String businessSid = bv.getBusinessSid(); |
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(businessSid); |
|||
Map<String, Object> variables = new HashMap<>(); |
|||
//判断发起人是否为配件主管
|
|||
String createBySid = asSaleinvoiceapply.getCreateBySid(); |
|||
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|||
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|||
Map<String, Object> appMap = new HashMap<>(); |
|||
appMap.put("sid", businessSid); |
|||
variables.put("app", appMap); |
|||
bv.setFormVariables(variables); |
|||
SysOrganizationVo sysOrganization = sysOrganizationFeign.fetchBySid(asSaleinvoiceapply.getDeptSid()).getData(); |
|||
if (sysOrganization != null) { |
|||
bv.setOrgSidPath(sysOrganization.getOrgSidPath()); |
|||
} |
|||
bv.setModelId(asSaleinvoiceapply.getProcDefId()); |
|||
if (bv.getTaskId().equals(asSaleinvoiceapply.getTaskId())) { |
|||
ResultBean<UpdateFlowFieldVo> resultBean = flowFeign.handleProsess(bv); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|||
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|||
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) { |
|||
|
|||
} else { |
|||
//极光推送
|
|||
asSaleinvoiceapply = fetchBySid(businessSid); |
|||
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|||
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|||
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|||
messageFlowVo.setProcDefId(asSaleinvoiceapply.getProcDefId()); |
|||
messageFlowVo.setProcInsId(asSaleinvoiceapply.getProcInstId()); |
|||
messageFlowableQuery.setUfVo(messageFlowVo); |
|||
messageFlowableQuery.setAppMap(appMap); |
|||
messageFlowableQuery.setBusinessSid(businessSid); |
|||
messageFlowableQuery.setModuleName("配件销售开票申请"); |
|||
messageFlowableQuery.setMsgContent(asSaleinvoiceapply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|||
messageFlowableQuery.setMsgTitle("配件销售开票申请"); |
|||
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} else { |
|||
return rb.setMsg("操作失败!提交的数据不一致"); |
|||
} |
|||
} |
|||
|
|||
public ResultBean<List<SaleinvoiceapplyNodeVo>> getPreviousNodesForReject(SaleinvoiceapplyNodeQuery query) { |
|||
ResultBean<List<SaleinvoiceapplyNodeVo>> rb = ResultBean.fireFail(); |
|||
BusinessVariables bv = new BusinessVariables(); |
|||
BeanUtil.copyProperties(query, bv); |
|||
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
|
|||
Map<String, Object> variables = new HashMap<>(); |
|||
//查询业务信息
|
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(query.getBusinessSid()); |
|||
//判断发起人是否为配件主管
|
|||
String createBySid = asSaleinvoiceapply.getCreateBySid(); |
|||
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|||
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|||
bv.setModelId(asSaleinvoiceapply.getProcDefId()); |
|||
bv.setFormVariables(variables); |
|||
//=======================================
|
|||
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv); |
|||
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|||
List<SaleinvoiceapplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), SaleinvoiceapplyNodeVo.class)).collect(Collectors.toList()); |
|||
return rb.success().setData(voList); |
|||
} |
|||
|
|||
public ResultBean<List<SaleinvoiceapplyNodeVo>> getNextNodesForSubmit(SaleinvoiceapplyNodeQuery query) { |
|||
ResultBean<List<SaleinvoiceapplyNodeVo>> rb = ResultBean.fireFail(); |
|||
BusinessVariables bv = new BusinessVariables(); |
|||
BeanUtil.copyProperties(query, bv); |
|||
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
|
|||
Map<String, Object> variables = new HashMap<>(); |
|||
//查询业务信息
|
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(query.getBusinessSid()); |
|||
//判断发起人是否为配件主管
|
|||
String createBySid = asSaleinvoiceapply.getCreateBySid(); |
|||
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|||
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|||
bv.setModelId(asSaleinvoiceapply.getProcDefId()); |
|||
bv.setFormVariables(variables); |
|||
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
|||
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|||
List<SaleinvoiceapplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), SaleinvoiceapplyNodeVo.class)).collect(Collectors.toList()); |
|||
return rb.success().setData(voList); |
|||
} |
|||
|
|||
public ResultBean taskReject(SaleinvoiceapplyTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String businessSid = query.getBusinessSid(); |
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(businessSid); |
|||
if (asSaleinvoiceapply == null) { |
|||
return rb.setMsg("该申请不存在"); |
|||
} |
|||
String businessTaskId = asSaleinvoiceapply.getTaskId(); |
|||
if (StringUtils.isNotBlank(businessTaskId)) { |
|||
if (businessTaskId.equals(query.getTaskId())) { |
|||
if (StringUtils.isBlank(query.getComment())) { |
|||
return rb.setMsg("请填写意见"); |
|||
} |
|||
if (StringUtils.isBlank(query.getUserSid())) { |
|||
return rb.setMsg("参数错误:userSid"); |
|||
} |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
Map<String, Object> variables = new HashMap<>(); |
|||
Map<String, Object> appMap = new HashMap<>(); |
|||
appMap.put("sid", businessSid); |
|||
variables.put("app", appMap); |
|||
//判断发起人是否为配件主管
|
|||
String createBySid = asSaleinvoiceapply.getCreateBySid(); |
|||
List<String> list = sysUserRoleFeign.getUserRoleSidByUserSid(createBySid).getData(); |
|||
variables.put("iszg", list.contains("bdacdca7-7a62-49b1-84c6-e32a4ffab777")); |
|||
flowTaskVo.setValues(variables); |
|||
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.taskReject(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|||
Map<String, Object> map = BeanUtil.beanToMap(ufVo); |
|||
//更新业务中的流程相关的参数
|
|||
updateFlowFiled(map); |
|||
//极光推送
|
|||
asSaleinvoiceapply = fetchBySid(businessSid); |
|||
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|||
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|||
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|||
String procId = asSaleinvoiceapply.getProcInstId(); |
|||
messageFlowVo.setProcInsId(procId); |
|||
messageFlowVo.setProcDefId(asSaleinvoiceapply.getProcDefId()); |
|||
messageFlowableQuery.setUfVo(messageFlowVo); |
|||
messageFlowableQuery.setAppMap(appMap); |
|||
messageFlowableQuery.setBusinessSid(businessSid); |
|||
messageFlowableQuery.setModuleName("配件销售开票申请"); |
|||
ResultBean<List<LatestTaskVo>> listResultBean = flowTaskFeign.getLatestTasks(procId); |
|||
String nextName = listResultBean.getData().get(0).getName_(); |
|||
String nextNodeUserSids = listResultBean.getData().get(0).getASSIGNEE_(); |
|||
if ("发起申请".equals(nextName)) { |
|||
messageFlowableQuery.setMsgContent("您提交的" + messageFlowableQuery.getModuleName() + "已被驳回,请重新提交"); |
|||
} else { |
|||
messageFlowableQuery.setMsgContent(asSaleinvoiceapply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|||
} |
|||
|
|||
messageFlowableQuery.setMsgTitle("配件销售开票申请"); |
|||
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|||
return rb.success(); |
|||
} |
|||
} |
|||
return rb.setMsg("操作失败!提交的数据不一致!"); |
|||
} |
|||
|
|||
public ResultBean revokeProcess(SaleinvoiceapplyTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
if (StringUtils.isBlank(query.getUserSid())) { |
|||
return rb.setMsg("参数错误:userSid"); |
|||
} |
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(query.getBusinessSid()); |
|||
String businessTaskId = asSaleinvoiceapply.getTaskId(); |
|||
if (StringUtils.isNotBlank(businessTaskId)) { |
|||
if (businessTaskId.equals(query.getTaskId())) { |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.revokeProcess(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
} |
|||
return rb.setMsg("操作失败,提交的数据不一致!"); |
|||
} |
|||
|
|||
public ResultBean breakProcess(SaleinvoiceapplyTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
if (StringUtils.isBlank(query.getInstanceId())) { |
|||
return rb.setMsg("参数错误:instanceId"); |
|||
} |
|||
if (StringUtils.isBlank(query.getUserSid())) { |
|||
return rb.setMsg("参数错误:userSid"); |
|||
} |
|||
if (StringUtils.isBlank(query.getComment())) { |
|||
return rb.setMsg("请填写意见"); |
|||
} |
|||
AsSaleinvoiceapply asSaleinvoiceapply = fetchBySid(query.getBusinessSid()); |
|||
String businessTaskId = asSaleinvoiceapply.getTaskId(); |
|||
if (StringUtils.isNotBlank(businessTaskId)) { |
|||
if (query.getUserSid().equals(asSaleinvoiceapply.getCreateBySid())) { |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|||
updateFlowFiled(map); |
|||
return rb.success().setData(resultBean.getData()); |
|||
} else { |
|||
if (businessTaskId.equals(query.getTaskId())) { |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|||
updateFlowFiled(map); |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
} |
|||
} |
|||
return rb.setMsg("操作失败!提交的数据不一致!"); |
|||
} |
|||
|
|||
public ResultBean delegate(SaleinvoiceapplyDelegateQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FlowDelegateQuery delegateQuery = new FlowDelegateQuery(); |
|||
BeanUtil.copyProperties(query, delegateQuery); |
|||
flowFeign.delegate(delegateQuery); |
|||
return rb.success(); |
|||
} |
|||
} |
@ -0,0 +1,45 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapplydetail; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDetailsVo; |
|||
import org.apache.ibatis.annotations.Delete; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetail; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Mapper |
|||
public interface AsSaleinvoiceapplyDetailMapper extends BaseMapper<AsSaleinvoiceapplyDetail> { |
|||
|
|||
@Delete("delete from as_saleinvoiceapply_detail where mainSid = #{dtoSid}") |
|||
void delByMainSid(String dtoSid); |
|||
|
|||
@Select("select * from as_saleinvoiceapply_detail where mainSid = #{mainSid}") |
|||
List<AsSaleinvoiceapplyDetailDetailsVo> fetchByMainSid(String mainSid); |
|||
} |
@ -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.anrui.as.biz.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
</mapper> |
@ -0,0 +1,36 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapplydetail; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
@Api(tags = "销售单开票申请明细列表") |
|||
@RestController |
|||
@RequestMapping("v1/assaleinvoiceapplydetail") |
|||
public class AsSaleinvoiceapplyDetailRest { |
|||
|
|||
} |
@ -0,0 +1,67 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.biz.assaleinvoiceapplydetail; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetail; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDetailsVo; |
|||
import com.yxt.anrui.as.api.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailDto; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-as(销售单开票申请) <br/> |
|||
* File: AsSaleinvoiceapplyDetailService.java <br/> |
|||
* Class: com.yxt.anrui.as.biz.assaleinvoiceapplydetail.AsSaleinvoiceapplyDetailService <br/> |
|||
* Description: 销售单开票申请明细列表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-11-25 16:20:32 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class AsSaleinvoiceapplyDetailService extends MybatisBaseService<AsSaleinvoiceapplyDetailMapper, AsSaleinvoiceapplyDetail> { |
|||
|
|||
public void insertByDto(AsSaleinvoiceapplyDetailDto dto){ |
|||
AsSaleinvoiceapplyDetail entity = new AsSaleinvoiceapplyDetail(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void delByMainSid(String dtoSid) { |
|||
baseMapper.delByMainSid(dtoSid); |
|||
} |
|||
|
|||
public List<AsSaleinvoiceapplyDetailDetailsVo> fetchByMainSid(String sid) { |
|||
return baseMapper.fetchByMainSid(sid); |
|||
} |
|||
} |
Loading…
Reference in new issue