
64 changed files with 2104 additions and 317 deletions
@ -0,0 +1,19 @@ |
|||||
|
package com.yxt.base.biz.base.basegoodstype; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/2/26 13:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BaseGoodsTypeChoiceQuery implements Query { |
||||
|
|
||||
|
private String code; |
||||
|
private String deptSid; |
||||
|
private String menuUrl; |
||||
|
private String name; |
||||
|
private String orgPath; |
||||
|
private String userSid; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 14:57 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsPricestrategyBillCompleteDto implements Dto { |
||||
|
private static final long serialVersionUID = 6378752532534735663L; |
||||
|
|
||||
|
@ApiModelProperty(value = "用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "任务id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty(value = "流程id(PC)") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty(value = "流程id(移动)") |
||||
|
private String procInsId; |
||||
|
@ApiModelProperty(value = "意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
|
||||
|
private String orgPath; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/28 9:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsPricestrategyBillDelegateQuery { |
||||
|
@ApiModelProperty |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
// @JsonProperty("procInsId")
|
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("审批人sid") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("填写意见") |
||||
|
private String views; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:04 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsPricestrategyBillNodeQuery implements Query { |
||||
|
private static final long serialVersionUID = 9117613683840483366L; |
||||
|
|
||||
|
@ApiModelProperty(value = "环节定义id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "0 上一环节 1下一环节") |
||||
|
private Integer next; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:03 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsPricestrategyBillNodeVo implements Vo { |
||||
|
private static final long serialVersionUID = -833419512294877848L; |
||||
|
|
||||
|
@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,48 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:06 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SmsPricestrategyBillTaskQuery implements Query { |
||||
|
private static final long serialVersionUID = 1288615499873178778L; |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@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(PC)") |
||||
|
private String instanceId; |
||||
|
|
||||
|
@ApiModelProperty("流程实例Id(移动)") |
||||
|
private String procInsId; |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.sms.biz.smspricestrategybill.flowable; |
||||
|
|
||||
|
import com.yxt.sms.biz.smspricestrategybill.SmsPricestrategyBillDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author liuguohui |
||||
|
* @version 1.0 |
||||
|
* @description |
||||
|
* @date 2022/04/13 |
||||
|
*/ |
||||
|
@ApiModel("提交") |
||||
|
@Data |
||||
|
public class SubmitSmsPricestrategyBillDto extends SmsPricestrategyBillDto { |
||||
|
|
||||
|
@ApiModelProperty("意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务id") |
||||
|
private String taskId; |
||||
|
} |
@ -1,63 +0,0 @@ |
|||||
/********************************************************* |
|
||||
********************************************************* |
|
||||
******************** ******************* |
|
||||
************* ************ |
|
||||
******* _oo0oo_ ******* |
|
||||
*** o8888888o *** |
|
||||
* 88" . "88 * |
|
||||
* (| -_- |) * |
|
||||
* 0\ = /0 * |
|
||||
* ___/`---'\___ * |
|
||||
* .' \\| |// '. *
|
|
||||
* / \\||| : |||// \ *
|
|
||||
* / _||||| -:- |||||- \ * |
|
||||
* | | \\\ - /// | | *
|
|
||||
* | \_| ''\---/'' |_/ | * |
|
||||
* \ .-\__ '-' ___/-. / * |
|
||||
* ___'. .' /--.--\ `. .'___ * |
|
||||
* ."" '< `.___\_<|>_/___.' >' "". * |
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|
||||
* `=---=' * |
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|
||||
*********************************************************/ |
|
||||
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
|
||||
|
|
||||
|
|
||||
import com.yxt.common.core.query.Query; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import lombok.Data; |
|
||||
|
|
||||
/** |
|
||||
* Project: yxt-sms(价格策略) <br/> |
|
||||
* File: SmsPricestrategyBillGoodstypedetailQuery.java <br/> |
|
||||
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailQuery <br/> |
|
||||
* Description: 价格策略商品类别明细 查询条件. <br/> |
|
||||
* Copyright: Copyright (c) 2011 <br/> |
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
|
||||
* Makedate: 2024-03-28 14:32:24 <br/> |
|
||||
* |
|
||||
* @author liupopo |
|
||||
* @version 1.0 |
|
||||
* @since 1.0 |
|
||||
*/ |
|
||||
@Data |
|
||||
@ApiModel(value = "价格策略商品类别明细 查询条件", description = "价格策略商品类别明细 查询条件") |
|
||||
public class SmsPricestrategyBillGoodstypedetailQuery implements Query { |
|
||||
|
|
||||
@ApiModelProperty("制单人姓名") |
|
||||
private String createByName; // 制单人姓名
|
|
||||
@ApiModelProperty("业务sid") |
|
||||
private String detailSid; // 业务sid
|
|
||||
@ApiModelProperty("区间起始") |
|
||||
private Integer rangeStart; // 区间起始
|
|
||||
@ApiModelProperty("区间截止") |
|
||||
private Integer rangeEnd; // 区间截止
|
|
||||
@ApiModelProperty("加价比例") |
|
||||
private Integer markupRate; // 加价比例
|
|
||||
|
|
||||
} |
|
@ -1,65 +0,0 @@ |
|||||
/********************************************************* |
|
||||
********************************************************* |
|
||||
******************** ******************* |
|
||||
************* ************ |
|
||||
******* _oo0oo_ ******* |
|
||||
*** o8888888o *** |
|
||||
* 88" . "88 * |
|
||||
* (| -_- |) * |
|
||||
* 0\ = /0 * |
|
||||
* ___/`---'\___ * |
|
||||
* .' \\| |// '. *
|
|
||||
* / \\||| : |||// \ *
|
|
||||
* / _||||| -:- |||||- \ * |
|
||||
* | | \\\ - /// | | *
|
|
||||
* | \_| ''\---/'' |_/ | * |
|
||||
* \ .-\__ '-' ___/-. / * |
|
||||
* ___'. .' /--.--\ `. .'___ * |
|
||||
* ."" '< `.___\_<|>_/___.' >' "". * |
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|
||||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|
||||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|
||||
* `=---=' * |
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|
||||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|
||||
*********************************************************/ |
|
||||
package com.yxt.sms.biz.smspricestrategybillgoodstypedetail; |
|
||||
|
|
||||
|
|
||||
import com.yxt.common.core.vo.Vo; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import lombok.Data; |
|
||||
|
|
||||
/** |
|
||||
* Project: yxt-sms(价格策略) <br/> |
|
||||
* File: SmsPricestrategyBillGoodstypedetailVo.java <br/> |
|
||||
* Class: com.yxt.sms.api.smspricestrategybillgoodstypedetail.SmsPricestrategyBillGoodstypedetailVo <br/> |
|
||||
* Description: 价格策略商品类别明细 视图数据对象. <br/> |
|
||||
* Copyright: Copyright (c) 2011 <br/> |
|
||||
* Company: https://gitee.com/liuzp315 <br/>
|
|
||||
* Makedate: 2024-03-28 14:32:24 <br/> |
|
||||
* |
|
||||
* @author liupopo |
|
||||
* @version 1.0 |
|
||||
* @since 1.0 |
|
||||
*/ |
|
||||
@Data |
|
||||
@ApiModel(value = "价格策略商品类别明细 视图数据对象", description = "价格策略商品类别明细 视图数据对象") |
|
||||
public class SmsPricestrategyBillGoodstypedetailVo implements Vo { |
|
||||
|
|
||||
private String sid; // sid
|
|
||||
|
|
||||
@ApiModelProperty("制单人姓名") |
|
||||
private String createByName; // 制单人姓名
|
|
||||
@ApiModelProperty("业务sid") |
|
||||
private String detailSid; // 业务sid
|
|
||||
@ApiModelProperty("区间起始") |
|
||||
private Integer rangeStart; // 区间起始
|
|
||||
@ApiModelProperty("区间截止") |
|
||||
private Integer rangeEnd; // 区间截止
|
|
||||
@ApiModelProperty("加价比例") |
|
||||
private Integer markupRate; // 加价比例
|
|
||||
|
|
||||
} |
|
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.sms.feign.base; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/7/1 9:46 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BillNo implements Serializable { |
||||
|
private static final long serialVersionUID = 1598887042562656350L; |
||||
|
|
||||
|
// @ApiModelProperty(value = "品牌编码")
|
||||
|
// private String brandCode;
|
||||
|
@ApiModelProperty(value = "单据名称首字母") |
||||
|
private String billType; |
||||
|
@ApiModelProperty(value = "分公司编码") |
||||
|
private String orgCode; |
||||
|
|
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.yxt.sms.feign.base; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import org.springframework.util.StringUtils; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/7/1 9:44 |
||||
|
* @Description 规则 |
||||
|
*/ |
||||
|
public class Rule { |
||||
|
|
||||
|
/** |
||||
|
* 单据编号规则:单据名称大写首字母+分公司编码+年份+月份+4位顺序号 |
||||
|
* 单据名称大写首字母+分公司编码+年份+月份 |
||||
|
* 注意:品牌编码暂不用 |
||||
|
* |
||||
|
* @return |
||||
|
*/ |
||||
|
public static String getBill(BillNo b) { |
||||
|
String billType = b.getBillType(); |
||||
|
String orgCode = b.getOrgCode(); |
||||
|
String date = DateUtil.format(DateUtil.date(), "yyyyMM"); |
||||
|
String bill = billType; |
||||
|
if (!StringUtils.isEmpty(orgCode)) { |
||||
|
bill = bill + orgCode; |
||||
|
} |
||||
|
bill = bill + date; |
||||
|
return bill; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 生成单据编号规则 |
||||
|
* |
||||
|
* @param bill 单据名称大写首字母+分公司编码+年份+月份 |
||||
|
* @param i 根据单据编号包含单据名称大写首字母+分公司编码+年份+月份查询出来的单据的个数 |
||||
|
* @return |
||||
|
*/ |
||||
|
public static String getBillNo(String bill, int i) { |
||||
|
String num = String.format("%04d", i + 1); // 不足4位补0
|
||||
|
String billNo = bill + num; |
||||
|
return billNo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Builder; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 业务系统调用flowable流程传递参数的格式 |
||||
|
*/ |
||||
|
@Data |
||||
|
@Builder |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
public class BusinessVariables { |
||||
|
/** |
||||
|
* 分公司sid |
||||
|
*/ |
||||
|
public static final String ORGPATH="orgPath"; |
||||
|
/** |
||||
|
* 流程定义的id |
||||
|
*/ |
||||
|
private String modelId; |
||||
|
/** |
||||
|
* 审批意见 |
||||
|
*/ |
||||
|
private String comment; |
||||
|
/** |
||||
|
* 流程实例的id |
||||
|
*/ |
||||
|
private String instanceId; |
||||
|
/** |
||||
|
* taskId |
||||
|
*/ |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 当前用户的id |
||||
|
*/ |
||||
|
private String userSid; |
||||
|
/** |
||||
|
* 当前用户部门的全路径 |
||||
|
*/ |
||||
|
private String orgSidPath; |
||||
|
/** |
||||
|
* 业务sid |
||||
|
*/ |
||||
|
private String businessSid; |
||||
|
/** |
||||
|
* 环节定义的ID |
||||
|
*/ |
||||
|
private String taskDefKey; |
||||
|
/** |
||||
|
* nextNodeUserSids 下一环节的用户sid |
||||
|
*/ |
||||
|
private String nextNodeUserSids; |
||||
|
/** |
||||
|
* 业务参数,按需传递 |
||||
|
*/ |
||||
|
private Map<String, Object> formVariables =new HashMap<>(); |
||||
|
/* @ApiModelProperty("机构sid:切换结构使用") |
||||
|
private String orgPath;*/ |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* @description: 流程获取map |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/5/26 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class FlowProcessMapQuery { |
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; |
||||
|
@ApiModelProperty("变量") |
||||
|
private Map<String, Object> variables; |
||||
|
@ApiModelProperty("流程id") |
||||
|
private String proDefKey; |
||||
|
|
||||
|
@ApiModelProperty("是否领票(欠款开票使用)") |
||||
|
private String isLP; |
||||
|
@ApiModelProperty("贷款人姓名") |
||||
|
private String dkrName; |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.sms.feign.flowable.flowtask.FlowTaskVo; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
@FeignClient( |
||||
|
contextId = "anrui-flowable-Flowable", |
||||
|
name = "anrui-flowable", |
||||
|
path = "v1/flow") |
||||
|
public interface FlowableFeign { |
||||
|
|
||||
|
@ApiOperation(value = "获取map") |
||||
|
@PostMapping(value = "/getMap") |
||||
|
@ResponseBody |
||||
|
ResultBean<Map<String,Object>> getMap(@RequestBody FlowProcessMapQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "驳回流程") |
||||
|
@PostMapping(value = "/taskReject") |
||||
|
@ResponseBody |
||||
|
ResultBean<UpdateFlowFieldVo> taskReject(@RequestBody FlowTaskVo fl); |
||||
|
|
||||
|
@ApiOperation(value = "撤回流程") |
||||
|
@PostMapping(value = "/revokeProcess") |
||||
|
@ResponseBody |
||||
|
ResultBean<UpdateFlowFieldVo> revokeProcess(@RequestBody FlowTaskVo fl); |
||||
|
|
||||
|
@ApiOperation(value = "终止流程") |
||||
|
@PostMapping(value = "/breakProcess") |
||||
|
@ResponseBody |
||||
|
ResultBean<UpdateFlowFieldVo> breakProcess(@RequestBody FlowTaskVo fl); |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow; |
||||
|
|
||||
|
/** |
||||
|
* 流程定义:流程名称与代号枚举类 |
||||
|
*/ |
||||
|
public enum ProcDefEnum { |
||||
|
|
||||
|
|
||||
|
/***************************正式流程id***********************************/ |
||||
|
SMSPRICESTRATEGYBILL("价格策略申请审批", "process_jogsdsgk:1:11807504"), |
||||
|
; |
||||
|
|
||||
|
|
||||
|
ProcDefEnum(String proDefName, String proDefId) { |
||||
|
this.proDefName = proDefName; |
||||
|
this.proDefId = proDefId; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 流程类型名称 |
||||
|
*/ |
||||
|
private final String proDefName; |
||||
|
|
||||
|
/** |
||||
|
* 流程代号 |
||||
|
*/ |
||||
|
private final String proDefId; |
||||
|
|
||||
|
public String getProDefName() { |
||||
|
return proDefName; |
||||
|
} |
||||
|
|
||||
|
public String getProDefId() { |
||||
|
return proDefId; |
||||
|
} |
||||
|
} |
||||
|
|
@ -0,0 +1,68 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow; |
||||
|
|
||||
|
public class UpdateFlowFieldVo { |
||||
|
|
||||
|
private String sid; |
||||
|
private String procDefId; |
||||
|
private String nodeState; |
||||
|
private String procInsId; |
||||
|
private String taskDefKey; |
||||
|
private String taskId; |
||||
|
private String nextNodeUserSids; |
||||
|
|
||||
|
public String getNextNodeUserSids() { |
||||
|
return nextNodeUserSids; |
||||
|
} |
||||
|
|
||||
|
public void setNextNodeUserSids(String nextNodeUserSids) { |
||||
|
this.nextNodeUserSids = nextNodeUserSids; |
||||
|
} |
||||
|
|
||||
|
public String getSid() { |
||||
|
return sid; |
||||
|
} |
||||
|
|
||||
|
public void setSid(String sid) { |
||||
|
this.sid = sid; |
||||
|
} |
||||
|
|
||||
|
public String getProcDefId() { |
||||
|
return procDefId; |
||||
|
} |
||||
|
|
||||
|
public void setProcDefId(String procDefId) { |
||||
|
this.procDefId = procDefId; |
||||
|
} |
||||
|
|
||||
|
public String getNodeState() { |
||||
|
return nodeState; |
||||
|
} |
||||
|
|
||||
|
public void setNodeState(String nodeState) { |
||||
|
this.nodeState = nodeState; |
||||
|
} |
||||
|
|
||||
|
public String getProcInsId() { |
||||
|
return procInsId; |
||||
|
} |
||||
|
|
||||
|
public void setProcInsId(String procInsId) { |
||||
|
this.procInsId = procInsId; |
||||
|
} |
||||
|
|
||||
|
public String getTaskDefKey() { |
||||
|
return taskDefKey; |
||||
|
} |
||||
|
|
||||
|
public void setTaskDefKey(String taskDefKey) { |
||||
|
this.taskDefKey = taskDefKey; |
||||
|
} |
||||
|
|
||||
|
public String getTaskId() { |
||||
|
return taskId; |
||||
|
} |
||||
|
|
||||
|
public void setTaskId(String taskId) { |
||||
|
this.taskId = taskId; |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow2; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/10/8 15:58 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class FlowDelegateQuery { |
||||
|
@ApiModelProperty |
||||
|
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,36 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flow2; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.sms.feign.flowable.flow.BusinessVariables; |
||||
|
import com.yxt.sms.feign.flowable.flow.UpdateFlowFieldVo; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
@FeignClient( |
||||
|
contextId = "anrui-flowable-Flow", |
||||
|
name = "anrui-flowable", |
||||
|
path = "v2/flow") |
||||
|
public interface FlowFeign { |
||||
|
|
||||
|
@ApiOperation(value = "加签") |
||||
|
@PostMapping(value = "/delegate") |
||||
|
public ResultBean delegate(@RequestBody FlowDelegateQuery flowDelegateQuery); |
||||
|
|
||||
|
@ApiOperation(value = "启动流程") |
||||
|
@PostMapping(value = "/startProcess") |
||||
|
@ResponseBody |
||||
|
ResultBean<UpdateFlowFieldVo> startProcess(@RequestBody BusinessVariables dto); |
||||
|
|
||||
|
@ApiOperation(value = "处理流程") |
||||
|
@PostMapping(value = "/handleProsess") |
||||
|
@ResponseBody |
||||
|
ResultBean<UpdateFlowFieldVo> handleProsess(@RequestBody BusinessVariables bv); |
||||
|
|
||||
|
@ApiOperation(value = "转办") |
||||
|
@PostMapping(value = "/assignTask") |
||||
|
public ResultBean assignTask(@RequestBody FlowDelegateQuery flowDelegateQuery); |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flowtask; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.sms.feign.flowable.flow.BusinessVariables; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@FeignClient( |
||||
|
contextId = "anrui-flowable-FlowTask", |
||||
|
name = "anrui-flowable", |
||||
|
path = "v1/flowable/task") |
||||
|
public interface FlowTaskFeign { |
||||
|
|
||||
|
@ApiOperation(value = "获取下一个环节") |
||||
|
@PostMapping(value = "/getNextNodesForSubmit") |
||||
|
ResultBean getNextNodesForSubmit(@RequestBody BusinessVariables bv); |
||||
|
|
||||
|
@ApiOperation(value = "根据流程实例的id获取最新待办环节") |
||||
|
@PostMapping(value = "/获取上一个环节") |
||||
|
ResultBean getPreviousNodesForReject(@RequestBody BusinessVariables bv); |
||||
|
|
||||
|
@ApiOperation(value = "根据流程实例的id获取最新待办环节") |
||||
|
@PostMapping(value = "/getLatestTasks/{procId}") |
||||
|
ResultBean<List<LatestTaskVo>> getLatestTasks(@PathVariable(value = "procId") String procId); |
||||
|
|
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flowtask; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* <p>流程任务<p> |
||||
|
* |
||||
|
* @author XuanXuan |
||||
|
* @date 2021-04-03 |
||||
|
*/ |
||||
|
@ApiModel("工作流任务相关--请求参数") |
||||
|
@Data |
||||
|
public class FlowTaskVo { |
||||
|
|
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty("用户Id") |
||||
|
private String userId; |
||||
|
@ApiModelProperty("用户Sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
@ApiModelProperty("任务意见") |
||||
|
private String comment; |
||||
|
|
||||
|
@ApiModelProperty("流程实例Id") |
||||
|
private String instanceId; |
||||
|
|
||||
|
@ApiModelProperty("节点") |
||||
|
private String targetKey; |
||||
|
|
||||
|
@ApiModelProperty("流程变量信息") |
||||
|
private Map<String, Object> values=new HashMap<>(); |
||||
|
|
||||
|
@ApiModelProperty("审批人") |
||||
|
private String assignee; |
||||
|
|
||||
|
@ApiModelProperty("候选人") |
||||
|
private List<String> candidateUsers; |
||||
|
|
||||
|
@ApiModelProperty("审批组") |
||||
|
private List<String> candidateGroups; |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.sms.feign.flowable.flowtask; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author liuguohui |
||||
|
* @Date 2022/1/11 |
||||
|
*/ |
||||
|
@ApiModel("最近环节") |
||||
|
@Data |
||||
|
public class LatestTaskVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty(value = "name_") |
||||
|
private String name_; |
||||
|
|
||||
|
@ApiModelProperty(value = "task_def_key_") |
||||
|
private String task_def_key_; |
||||
|
|
||||
|
@ApiModelProperty(value = "id_") |
||||
|
private String id_; |
||||
|
|
||||
|
@ApiModelProperty(value = "name_") |
||||
|
private String ASSIGNEE_; |
||||
|
|
||||
|
@ApiModelProperty(value = "orgPath") |
||||
|
private String orgPath; |
||||
|
|
||||
|
@ApiModelProperty(value = "incomingSourceRef") |
||||
|
private String incomingSourceRef; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.sms.feign.message; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
@Api(tags = "消息体") |
||||
|
@FeignClient( |
||||
|
contextId = "message-center-Message", |
||||
|
name = "message-center", |
||||
|
path = "v1/message") |
||||
|
public interface MessageFeign { |
||||
|
|
||||
|
/** |
||||
|
* 流程审批推送消息 |
||||
|
* |
||||
|
* @param query |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("流程审批推送消息") |
||||
|
@PostMapping("/pushMessage") |
||||
|
ResultBean<String> pushMessage(@RequestBody MessageFlowableQuery query); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.sms.feign.message; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/8/25 15:58 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MessageFlowVo implements Vo { |
||||
|
|
||||
|
private String sid; |
||||
|
private String procDefId; |
||||
|
private String nodeState; |
||||
|
private String procInsId; |
||||
|
private String taskDefKey; |
||||
|
private String taskId; |
||||
|
private String nextNodeUserSids; |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.sms.feign.message; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/8/25 15:12 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MessageFlowableQuery implements Query { |
||||
|
private static final long serialVersionUID = 3618558867479892211L; |
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty("模块名称") |
||||
|
private String moduleName; |
||||
|
@ApiModelProperty("消息内容") |
||||
|
private String msgContent; |
||||
|
@ApiModelProperty("消息标题") |
||||
|
private String msgTitle; |
||||
|
@ApiModelProperty("流程相关参数") |
||||
|
private MessageFlowVo ufVo; |
||||
|
@ApiModelProperty("app所需参数") |
||||
|
private Map<String,Object> appMap; |
||||
|
@ApiModelProperty("申请人") |
||||
|
private String applicationName; |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.sms.feign.message; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/8/10 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PushMessageQuery implements Query { |
||||
|
private static final long serialVersionUID = -5710109873182775336L; |
||||
|
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty("模块名称") |
||||
|
private String moduleName; |
||||
|
@ApiModelProperty("消息内容") |
||||
|
private String msgContent; |
||||
|
@ApiModelProperty("消息标题") |
||||
|
private String msgTitle; |
||||
|
@ApiModelProperty("接收人sidList") |
||||
|
private List<String> receivedSids; |
||||
|
/* @ApiModelProperty("跳转地址") |
||||
|
private String msgTargetUri;*/ |
||||
|
@ApiModelProperty("0.内置Activity 1.内置WebView 2.RePlugin插件") |
||||
|
private String app_type; |
||||
|
@ApiModelProperty("插件sid") |
||||
|
private String moduleSid; |
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
package com.yxt.sms.feign.portal.sysorganization; |
||||
|
|
||||
|
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: anrui_portal(门户建设) <br/> |
||||
|
* File: SysOrganization.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganization <br/> |
||||
|
* Description: 组织机构表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:28 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "组织机构表", description = "组织机构表") |
||||
|
@TableName("sys_organization") |
||||
|
@Data |
||||
|
public class SysOrganization extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("部门/组织名称") |
||||
|
private String name; |
||||
|
|
||||
|
@ApiModelProperty("父(部门/组织) sid") |
||||
|
private String psid; |
||||
|
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String linkPhone; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String linkPerson; |
||||
|
|
||||
|
@ApiModelProperty("部门sid全路径") |
||||
|
private String orgSidPath; |
||||
|
|
||||
|
@ApiModelProperty("排序") |
||||
|
private Integer sort; |
||||
|
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String addrs; |
||||
|
|
||||
|
@ApiModelProperty("地理位置经纬度") |
||||
|
private String jwd; |
||||
|
|
||||
|
@ApiModelProperty("二维码") |
||||
|
private String qrText; |
||||
|
|
||||
|
@ApiModelProperty("限制本部门成员查看通讯录:限制开启后,本部门成员只能看到限定范围内的通讯录不能看到所有通讯录,仅可见自己") |
||||
|
private Integer limitOrgMember; |
||||
|
|
||||
|
@ApiModelProperty("部门编码") |
||||
|
private String orgCode; |
||||
|
|
||||
|
@ApiModelProperty("部门简称(地区简称+门店名称首字母(遇到首字母重复时用2个字母))") |
||||
|
private String orgShortName; |
||||
|
|
||||
|
@ApiModelProperty("销售区域划分(本店终端销售:0,门店对应业务区域划分销售:1至9,具体编号划分各门店报备确定)") |
||||
|
private String regionDivision; |
||||
|
|
||||
|
@ApiModelProperty("是否是部门(0否,1是)") |
||||
|
private Integer isDept; |
||||
|
|
||||
|
@ApiModelProperty("组织简称") |
||||
|
private String orgAbbre; |
||||
|
|
||||
|
@ApiModelProperty("组织属性key") |
||||
|
private String orgAttributeKey; |
||||
|
|
||||
|
@ApiModelProperty("组织属性value") |
||||
|
private String orgAttributeValue; |
||||
|
|
||||
|
@ApiModelProperty("管理层级key") |
||||
|
private String orgLevelKey; |
||||
|
|
||||
|
@ApiModelProperty("管理层级value") |
||||
|
private String orgLevelValue; |
||||
|
|
||||
|
@ApiModelProperty("其他编码") |
||||
|
private String otherCode; |
||||
|
|
||||
|
@ApiModelProperty("主管人员sid") |
||||
|
private String managerSid; |
||||
|
@ApiModelProperty("主管人员姓名") |
||||
|
private String managerName; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.sms.feign.portal.sysorganization; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysOrganizationFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign <br/> |
||||
|
* Description: 组织机构表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:28 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "组织机构表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysOrganization", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysorganization") |
||||
|
public interface SysOrganizationFeign { |
||||
|
|
||||
|
@ApiOperation("获取一条记录 根据sid") |
||||
|
@ResponseBody |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<SysOrganizationVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
package com.yxt.sms.feign.portal.sysorganization; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysOrganizationVo.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo <br/> |
||||
|
* Description: 组织机构表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:28 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "组织机构表 视图数据对象", description = "组织机构表 视图数据对象") |
||||
|
@Data |
||||
|
public class SysOrganizationVo implements Vo { |
||||
|
@ApiModelProperty("部门/组织名称") |
||||
|
private String name; |
||||
|
|
||||
|
@ApiModelProperty("父(部门/组织) sid") |
||||
|
private String psid; |
||||
|
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String linkPhone; |
||||
|
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String linkPerson; |
||||
|
|
||||
|
@ApiModelProperty("部门sid全路径") |
||||
|
private String orgSidPath; |
||||
|
|
||||
|
@ApiModelProperty("排序") |
||||
|
private Integer sort; |
||||
|
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String addrs; |
||||
|
|
||||
|
@ApiModelProperty("地理位置经纬度") |
||||
|
private String jwd; |
||||
|
|
||||
|
@ApiModelProperty("二维码") |
||||
|
private String qrText; |
||||
|
|
||||
|
@ApiModelProperty("限制本部门成员查看通讯录:限制开启后,本部门成员只能看到限定范围内的通讯录不能看到所有通讯录,仅可见自己") |
||||
|
private Integer limitOrgMember; |
||||
|
|
||||
|
@ApiModelProperty("部门编码") |
||||
|
private String orgCode; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("子集") |
||||
|
private List<SysOrganizationVo> children = new ArrayList<>(); |
||||
|
@ApiModelProperty("主管人员名称") |
||||
|
private String zgNames; |
||||
|
@ApiModelProperty("分管人员名称") |
||||
|
private String fgNames; |
||||
|
@ApiModelProperty("主管人员sid") |
||||
|
private String zgStaffSid; |
||||
|
@ApiModelProperty("分管人员sid") |
||||
|
private String fgStaffSid; |
||||
|
@ApiModelProperty("组织简称") |
||||
|
private String orgAbbre; |
||||
|
@ApiModelProperty("是否是部门(0否,1是)") |
||||
|
private Integer isDept; |
||||
|
@ApiModelProperty("组织属性key") |
||||
|
private String orgAttributeKey; |
||||
|
@ApiModelProperty("组织属性value") |
||||
|
private String orgAttributeValue; |
||||
|
@ApiModelProperty("管理层级key") |
||||
|
private String orgLevelKey; |
||||
|
@ApiModelProperty("管理层级value") |
||||
|
private String orgLevelValue; |
||||
|
@ApiModelProperty("其他编码") |
||||
|
private String otherCode; |
||||
|
@ApiModelProperty("主管用户sid") |
||||
|
private String managerSid; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.sms.feign.portal.sysstafforg; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* @description: 人员与机构 |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/6 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysStaffOrg", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysstafforg") |
||||
|
public interface SysStaffOrgFeign { |
||||
|
|
||||
|
@GetMapping("/getOrgSidByPath") |
||||
|
@ResponseBody |
||||
|
@ApiOperation("根据用户组织全路径获取用户的分公司sid") |
||||
|
ResultBean<String> getOrgSidByPath(@RequestParam("orgPath") String orgPath); |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.sms.feign.privilege; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: 权限角色层级 |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/5/23 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PrivilegeQuery { |
||||
|
|
||||
|
@ApiModelProperty("菜单路由") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("组织全路径sid") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("菜单sid") |
||||
|
private String menuSid; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.sms.feign.sysuser; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/21 9:26 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrgList implements Vo { |
||||
|
private static final long serialVersionUID = -2867882982421321776L; |
||||
|
|
||||
|
private String orgName; |
||||
|
private String orgPath; |
||||
|
|
||||
|
private String deptName; |
||||
|
|
||||
|
private String deptSid; |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.sms.feign.sysuser; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.sms.feign.privilege.PrivilegeQuery; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
@Api(tags = "用户表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysUser", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysuser") |
||||
|
public interface SysUserFeign { |
||||
|
|
||||
|
@ApiOperation(value = "查询角色权限的层级获取权限id") |
||||
|
@PostMapping(value = "/selectPrivilegeLevel") |
||||
|
ResultBean<String> selectPrivilegeLevel(@RequestBody PrivilegeQuery query); |
||||
|
|
||||
|
@ApiOperation("根据sid获取一条记录") |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<SysUserVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
package com.yxt.sms.feign.sysuser; |
||||
|
|
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysUserVo.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysuser.SysUserVo <br/> |
||||
|
* Description: 用户表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "用户表 视图数据对象", description = "用户表 视图数据对象") |
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
public class SysUserVo implements Vo { |
||||
|
private static final long serialVersionUID = 2415131854581950721L; |
||||
|
@ApiModelProperty("部门sid") |
||||
|
private String departmentSid; |
||||
|
@ApiModelProperty("部门名称") |
||||
|
private String departmentName; |
||||
|
@ApiModelProperty("上级部门名称-本级部门名称 岗位名称") |
||||
|
@JsonProperty("pNameAndDepartmentNameAndPostName") |
||||
|
private String pNameAndDepartmentNameAndPostName; |
||||
|
@ApiModelProperty("岗位名称") |
||||
|
private String postName; |
||||
|
@ApiModelProperty("岗位Sid") |
||||
|
private String postSid; |
||||
|
@ApiModelProperty("单位sid") |
||||
|
private String organizationSid; |
||||
|
@ApiModelProperty("单位名称") |
||||
|
private String organizationName; |
||||
|
@ApiModelProperty("用户姓名") |
||||
|
private String name; |
||||
|
@ApiModelProperty("登录名,登录名不能相同") |
||||
|
private String userName; |
||||
|
|
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("是否是管理员:1管理员,2一般用户,0是超级管理员,3尚无单位人员") |
||||
|
private String isAdmin; |
||||
|
@ApiModelProperty("角色名称") |
||||
|
private String roleName; |
||||
|
|
||||
|
@ApiModelProperty("关联的人员sid") |
||||
|
private String staffSid; |
||||
|
|
||||
|
@ApiModelProperty("手机号") |
||||
|
private String mobile; |
||||
|
@ApiModelProperty(value = "禁用状态") |
||||
|
private String isEnable; |
||||
|
|
||||
|
@ApiModelProperty("用户类型:1员工、2客户、3供应商") |
||||
|
private String userType; |
||||
|
@ApiModelProperty("用户类型:1、2、3") |
||||
|
private String userTypeKey; |
||||
|
@ApiModelProperty("用户头像") |
||||
|
private String headImage; |
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String orgNamePath; |
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String orgSidPath; |
||||
|
@ApiModelProperty(value = "token") |
||||
|
private String token; |
||||
|
@ApiModelProperty(value = "角色sids") |
||||
|
private List<String> roleSids = new ArrayList<>(); |
||||
|
|
||||
|
private List<OrgList> orgList = new ArrayList<>(); |
||||
|
@ApiModelProperty("默认的组织机构sid全路径") |
||||
|
private String defaultOrgPath; |
||||
|
@ApiModelProperty("默认的组织机构名称全路径") |
||||
|
private String defaultOrgPathName; |
||||
|
|
||||
|
private String defaultDeptName; |
||||
|
private String defaultDeptSid; |
||||
|
|
||||
|
@ApiModelProperty("是否需要更换密码") |
||||
|
private Boolean needResetPsd; |
||||
|
@ApiModelProperty("工号") |
||||
|
private String jobNumber; |
||||
|
} |
Loading…
Reference in new issue