321 changed files with 25936 additions and 721 deletions
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStore.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStore <br/> |
|||
* Description: 采购订单商品信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单商品信息", description = "采购订单商品信息") |
|||
@TableName("purchase_requisition_store") |
|||
public class PurchaseRequisitionStore extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("关联表sid") |
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yczbh; // 卷烟代码
|
|||
@ApiModelProperty("门店代码") |
|||
private String storeCode; // 门店代码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("批次") |
|||
private String pc; // 批次
|
|||
@ApiModelProperty("明细总金额") |
|||
private String detailPrice; // 明细总金额
|
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreVo <br/> |
|||
* Description: 采购订单商品信息 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单商品信息 视图数据详情", description = "采购订单商品信息 视图数据详情") |
|||
public class PurchaseRequisitionStoreDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yczbh; // 卷烟代码
|
|||
@ApiModelProperty("门店代码") |
|||
private String storeCode; // 门店代码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("批次") |
|||
private String pc; // 批次
|
|||
@ApiModelProperty("明细总金额") |
|||
private String detailPrice; // 明细总金额
|
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreDto.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreDto <br/> |
|||
* Description: 采购订单商品信息 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单商品信息 数据传输对象", description = "采购订单商品信息 数据传输对象") |
|||
public class PurchaseRequisitionStoreDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yczbh; // 卷烟代码
|
|||
@ApiModelProperty("门店代码") |
|||
private String storeCode; // 门店代码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("批次") |
|||
private String pc; // 批次
|
|||
@ApiModelProperty("明细总金额") |
|||
private String detailPrice; // 明细总金额
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreFeign.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreFeign <br/> |
|||
* Description: 采购订单商品信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "采购订单商品信息") |
|||
@FeignClient( |
|||
contextId = "yxt-supervise-PurchaseRequisitionStore", |
|||
name = "yxt-supervise", |
|||
path = "v1/purchaserequisitionstore", |
|||
fallback = PurchaseRequisitionStoreFeignFallback.class) |
|||
public interface PurchaseRequisitionStoreFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<PurchaseRequisitionStoreVo>> listPage(@RequestBody PagerQuery<PurchaseRequisitionStoreQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody PurchaseRequisitionStoreDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<PurchaseRequisitionStoreDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreFeignFallback.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreFeignFallback <br/> |
|||
* Description: 采购订单商品信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class PurchaseRequisitionStoreFeignFallback implements PurchaseRequisitionStoreFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<PurchaseRequisitionStoreVo>> listPage(PagerQuery<PurchaseRequisitionStoreQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitionstore/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(PurchaseRequisitionStoreDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitionstore/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitionstore/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<PurchaseRequisitionStoreDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitionstore/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreQuery.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreQuery <br/> |
|||
* Description: 采购订单商品信息 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单商品信息 查询条件", description = "采购订单商品信息 查询条件") |
|||
public class PurchaseRequisitionStoreQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yczbh; // 卷烟代码
|
|||
@ApiModelProperty("门店代码") |
|||
private String storeCode; // 门店代码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("批次") |
|||
private String pc; // 批次
|
|||
@ApiModelProperty("明细总金额") |
|||
private String detailPrice; // 明细总金额
|
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitionstore; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionStoreVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitionstore.PurchaseRequisitionStoreVo <br/> |
|||
* Description: 采购订单商品信息 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单商品信息 视图数据对象", description = "采购订单商品信息 视图数据对象") |
|||
public class PurchaseRequisitionStoreVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yczbh; // 卷烟代码
|
|||
@ApiModelProperty("门店代码") |
|||
private String storeCode; // 门店代码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("批次") |
|||
private String pc; // 批次
|
|||
@ApiModelProperty("明细总金额") |
|||
private String detailPrice; // 明细总金额
|
|||
|
|||
} |
@ -0,0 +1,104 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobacco.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobacco <br/> |
|||
* Description: 采购订单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表", description = "采购订单表") |
|||
@TableName("purchase_requisition_tobacco") |
|||
public class PurchaseRequisitionTobacco extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("单号") |
|||
private String code; // 单号
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String buyerName; // 采购员姓名
|
|||
@ApiModelProperty("采购员编码") |
|||
private String buyerCode; // 采购员编码
|
|||
@ApiModelProperty("采购日期(填单日期)") |
|||
private String purchaseDate; // 采购日期(填单日期)
|
|||
@ApiModelProperty("到货日期") |
|||
private String arrivalDate; // 到货日期
|
|||
@ApiModelProperty("采购组织名称(默认36524集团)") |
|||
private String purchasingOrgName; // 采购组织名称(默认36524集团)
|
|||
@ApiModelProperty("采购组织编码(36524)") |
|||
private String purchasingOrgCode; // 采购组织编码(36524)
|
|||
@ApiModelProperty("采购部门名称(默认生活通)") |
|||
private String purchasingDeptCode; // 采购部门名称(默认生活通)
|
|||
@ApiModelProperty("采购部门编码(默认生活通编码)") |
|||
private String purchasingDeptName; // 采购部门编码(默认生活通编码)
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商编码") |
|||
private String supplierCode; // 供应商编码
|
|||
@ApiModelProperty("供应商唯一编码") |
|||
private String supplierOnlyCode; // 供应商唯一编码
|
|||
@ApiModelProperty("物流公司名称(和供应商相同)") |
|||
private String logisticsCompanyName; // 物流公司名称(和供应商相同)
|
|||
@ApiModelProperty("物流公司编码") |
|||
private String logisticsCompanyCode; // 物流公司编码
|
|||
@ApiModelProperty("单据到效期") |
|||
private String expiryDate; // 单据到效期
|
|||
@ApiModelProperty("仓位") |
|||
private String warehousePosition; // 仓位
|
|||
@ApiModelProperty("仓位code") |
|||
private String warehousePositionCode; // 仓位code
|
|||
@ApiModelProperty("监管0未审核,1审核通过,2审核不通过") |
|||
private String purchaseState; // 监管0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("监管审批意见") |
|||
private String purchaseRemarks; // 监管审批意见
|
|||
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
|||
private String bankState; // 银行0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("银行审批意见") |
|||
private String bankRemarks; // 银行审批意见
|
|||
@ApiModelProperty("完成状态") |
|||
private String completionStatus; // 完成状态
|
|||
@ApiModelProperty("完成状态Key") |
|||
private String completionStatusKey; // 完成状态Key
|
|||
@ApiModelProperty("填单人code") |
|||
private String tdrCode; |
|||
@ApiModelProperty("填单人姓名") |
|||
private String tdrName; |
|||
} |
@ -0,0 +1,108 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoVo <br/> |
|||
* Description: 采购订单表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 视图数据详情", description = "采购订单表 视图数据详情") |
|||
public class PurchaseRequisitionTobaccoDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("单号") |
|||
private String code; // 单号
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String buyerName; // 采购员姓名
|
|||
@ApiModelProperty("采购员编码") |
|||
private String buyerCode; // 采购员编码
|
|||
@ApiModelProperty("采购日期(填单日期)") |
|||
private String purchaseDate; // 采购日期(填单日期)
|
|||
@ApiModelProperty("到货日期") |
|||
private String arrivalDate; // 到货日期
|
|||
@ApiModelProperty("采购组织名称(默认36524集团)") |
|||
private String purchasingOrgName; // 采购组织名称(默认36524集团)
|
|||
@ApiModelProperty("采购组织编码(36524)") |
|||
private String purchasingOrgCode; // 采购组织编码(36524)
|
|||
@ApiModelProperty("采购部门名称(默认生活通)") |
|||
private String purchasingDeptCode; // 采购部门名称(默认生活通)
|
|||
@ApiModelProperty("采购部门编码(默认生活通编码)") |
|||
private String purchasingDeptName; // 采购部门编码(默认生活通编码)
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商编码") |
|||
private String supplierCode; // 供应商编码
|
|||
@ApiModelProperty("供应商唯一编码") |
|||
private String supplierOnlyCode; // 供应商唯一编码
|
|||
@ApiModelProperty("物流公司名称(和供应商相同)") |
|||
private String logisticsCompanyName; // 物流公司名称(和供应商相同)
|
|||
@ApiModelProperty("物流公司编码") |
|||
private String logisticsCompanyCode; // 物流公司编码
|
|||
@ApiModelProperty("单据到效期") |
|||
private String expiryDate; // 单据到效期
|
|||
@ApiModelProperty("仓位") |
|||
private String warehousePosition; // 仓位
|
|||
@ApiModelProperty("仓位code") |
|||
private String warehousePositionCode; // 仓位code
|
|||
@ApiModelProperty("监管0未审核,1审核通过,2审核不通过") |
|||
private String purchaseState; // 监管0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("监管审批意见") |
|||
private String purchaseRemarks; // 监管审批意见
|
|||
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
|||
private String bankState; // 银行0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("银行审批意见") |
|||
private String bankRemarks; // 银行审批意见
|
|||
@ApiModelProperty("完成状态") |
|||
private String completionStatus; // 完成状态
|
|||
@ApiModelProperty("完成状态Key") |
|||
private String completionStatusKey; // 完成状态Key
|
|||
@ApiModelProperty("填单人code") |
|||
private String tdrCode; |
|||
@ApiModelProperty("填单人姓名") |
|||
private String tdrName; |
|||
} |
@ -0,0 +1,108 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDto.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoDto <br/> |
|||
* Description: 采购订单表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 数据传输对象", description = "采购订单表 数据传输对象") |
|||
public class PurchaseRequisitionTobaccoDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("单号") |
|||
private String code; // 单号
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String buyerName; // 采购员姓名
|
|||
@ApiModelProperty("采购员编码") |
|||
private String buyerCode; // 采购员编码
|
|||
@ApiModelProperty("采购日期(填单日期)") |
|||
private String purchaseDate; // 采购日期(填单日期)
|
|||
@ApiModelProperty("到货日期") |
|||
private String arrivalDate; // 到货日期
|
|||
@ApiModelProperty("采购组织名称(默认36524集团)") |
|||
private String purchasingOrgName; // 采购组织名称(默认36524集团)
|
|||
@ApiModelProperty("采购组织编码(36524)") |
|||
private String purchasingOrgCode; // 采购组织编码(36524)
|
|||
@ApiModelProperty("采购部门名称(默认生活通)") |
|||
private String purchasingDeptCode; // 采购部门名称(默认生活通)
|
|||
@ApiModelProperty("采购部门编码(默认生活通编码)") |
|||
private String purchasingDeptName; // 采购部门编码(默认生活通编码)
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商编码") |
|||
private String supplierCode; // 供应商编码
|
|||
@ApiModelProperty("供应商唯一编码") |
|||
private String supplierOnlyCode; // 供应商唯一编码
|
|||
@ApiModelProperty("物流公司名称(和供应商相同)") |
|||
private String logisticsCompanyName; // 物流公司名称(和供应商相同)
|
|||
@ApiModelProperty("物流公司编码") |
|||
private String logisticsCompanyCode; // 物流公司编码
|
|||
@ApiModelProperty("单据到效期") |
|||
private String expiryDate; // 单据到效期
|
|||
@ApiModelProperty("仓位") |
|||
private String warehousePosition; // 仓位
|
|||
@ApiModelProperty("仓位code") |
|||
private String warehousePositionCode; // 仓位code
|
|||
@ApiModelProperty("监管0未审核,1审核通过,2审核不通过") |
|||
private String purchaseState; // 监管0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("监管审批意见") |
|||
private String purchaseRemarks; // 监管审批意见
|
|||
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
|||
private String bankState; // 银行0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("银行审批意见") |
|||
private String bankRemarks; // 银行审批意见
|
|||
@ApiModelProperty("完成状态") |
|||
private String completionStatus; // 完成状态
|
|||
@ApiModelProperty("完成状态Key") |
|||
private String completionStatusKey; // 完成状态Key
|
|||
@ApiModelProperty("填单人code") |
|||
private String tdrCode; |
|||
@ApiModelProperty("填单人姓名") |
|||
private String tdrName; |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoFeign.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoFeign <br/> |
|||
* Description: 采购订单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "采购订单表") |
|||
@FeignClient( |
|||
contextId = "yxt-supervise-PurchaseRequisitionTobacco", |
|||
name = "yxt-supervise", |
|||
path = "v1/purchaserequisitiontobacco", |
|||
fallback = PurchaseRequisitionTobaccoFeignFallback.class) |
|||
public interface PurchaseRequisitionTobaccoFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<PurchaseRequisitionTobaccoVo>> listPage(@RequestBody PagerQuery<PurchaseRequisitionTobaccoQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody PurchaseRequisitionTobaccoDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<PurchaseRequisitionTobaccoDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoFeignFallback.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoFeignFallback <br/> |
|||
* Description: 采购订单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class PurchaseRequisitionTobaccoFeignFallback implements PurchaseRequisitionTobaccoFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<PurchaseRequisitionTobaccoVo>> listPage(PagerQuery<PurchaseRequisitionTobaccoQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitiontobacco/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(PurchaseRequisitionTobaccoDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitiontobacco/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitiontobacco/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<PurchaseRequisitionTobaccoDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitiontobacco/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoQuery.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoQuery <br/> |
|||
* Description: 采购订单表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 查询条件", description = "采购订单表 查询条件") |
|||
public class PurchaseRequisitionTobaccoQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("单号") |
|||
private String code; // 单号
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String buyerName; // 采购员姓名
|
|||
@ApiModelProperty("采购员编码") |
|||
private String buyerCode; // 采购员编码
|
|||
@ApiModelProperty("采购日期(填单日期)") |
|||
private String purchaseDate; // 采购日期(填单日期)
|
|||
@ApiModelProperty("到货日期") |
|||
private String arrivalDate; // 到货日期
|
|||
@ApiModelProperty("采购组织名称(默认36524集团)") |
|||
private String purchasingOrgName; // 采购组织名称(默认36524集团)
|
|||
@ApiModelProperty("采购组织编码(36524)") |
|||
private String purchasingOrgCode; // 采购组织编码(36524)
|
|||
@ApiModelProperty("采购部门名称(默认生活通)") |
|||
private String purchasingDeptCode; // 采购部门名称(默认生活通)
|
|||
@ApiModelProperty("采购部门编码(默认生活通编码)") |
|||
private String purchasingDeptName; // 采购部门编码(默认生活通编码)
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商编码") |
|||
private String supplierCode; // 供应商编码
|
|||
@ApiModelProperty("供应商唯一编码") |
|||
private String supplierOnlyCode; // 供应商唯一编码
|
|||
@ApiModelProperty("物流公司名称(和供应商相同)") |
|||
private String logisticsCompanyName; // 物流公司名称(和供应商相同)
|
|||
@ApiModelProperty("物流公司编码") |
|||
private String logisticsCompanyCode; // 物流公司编码
|
|||
@ApiModelProperty("单据到效期") |
|||
private String expiryDate; // 单据到效期
|
|||
@ApiModelProperty("仓位") |
|||
private String warehousePosition; // 仓位
|
|||
@ApiModelProperty("仓位code") |
|||
private String warehousePositionCode; // 仓位code
|
|||
@ApiModelProperty("监管0未审核,1审核通过,2审核不通过") |
|||
private String purchaseState; // 监管0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("监管审批意见") |
|||
private String purchaseRemarks; // 监管审批意见
|
|||
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
|||
private String bankState; // 银行0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("银行审批意见") |
|||
private String bankRemarks; // 银行审批意见
|
|||
@ApiModelProperty("完成状态") |
|||
private String completionStatus; // 完成状态
|
|||
@ApiModelProperty("完成状态Key") |
|||
private String completionStatusKey; // 完成状态Key
|
|||
@ApiModelProperty("填单人code") |
|||
private String tdrCode; |
|||
@ApiModelProperty("填单人姓名") |
|||
private String tdrName; |
|||
} |
@ -0,0 +1,108 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobacco; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobacco.PurchaseRequisitionTobaccoVo <br/> |
|||
* Description: 采购订单表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 视图数据对象", description = "采购订单表 视图数据对象") |
|||
public class PurchaseRequisitionTobaccoVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("单号") |
|||
private String code; // 单号
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String buyerName; // 采购员姓名
|
|||
@ApiModelProperty("采购员编码") |
|||
private String buyerCode; // 采购员编码
|
|||
@ApiModelProperty("采购日期(填单日期)") |
|||
private String purchaseDate; // 采购日期(填单日期)
|
|||
@ApiModelProperty("到货日期") |
|||
private String arrivalDate; // 到货日期
|
|||
@ApiModelProperty("采购组织名称(默认36524集团)") |
|||
private String purchasingOrgName; // 采购组织名称(默认36524集团)
|
|||
@ApiModelProperty("采购组织编码(36524)") |
|||
private String purchasingOrgCode; // 采购组织编码(36524)
|
|||
@ApiModelProperty("采购部门名称(默认生活通)") |
|||
private String purchasingDeptCode; // 采购部门名称(默认生活通)
|
|||
@ApiModelProperty("采购部门编码(默认生活通编码)") |
|||
private String purchasingDeptName; // 采购部门编码(默认生活通编码)
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商编码") |
|||
private String supplierCode; // 供应商编码
|
|||
@ApiModelProperty("供应商唯一编码") |
|||
private String supplierOnlyCode; // 供应商唯一编码
|
|||
@ApiModelProperty("物流公司名称(和供应商相同)") |
|||
private String logisticsCompanyName; // 物流公司名称(和供应商相同)
|
|||
@ApiModelProperty("物流公司编码") |
|||
private String logisticsCompanyCode; // 物流公司编码
|
|||
@ApiModelProperty("单据到效期") |
|||
private String expiryDate; // 单据到效期
|
|||
@ApiModelProperty("仓位") |
|||
private String warehousePosition; // 仓位
|
|||
@ApiModelProperty("仓位code") |
|||
private String warehousePositionCode; // 仓位code
|
|||
@ApiModelProperty("监管0未审核,1审核通过,2审核不通过") |
|||
private String purchaseState; // 监管0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("监管审批意见") |
|||
private String purchaseRemarks; // 监管审批意见
|
|||
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
|||
private String bankState; // 银行0未审核,1审核通过,2审核不通过
|
|||
@ApiModelProperty("银行审批意见") |
|||
private String bankRemarks; // 银行审批意见
|
|||
@ApiModelProperty("完成状态") |
|||
private String completionStatus; // 完成状态
|
|||
@ApiModelProperty("完成状态Key") |
|||
private String completionStatusKey; // 完成状态Key
|
|||
@ApiModelProperty("填单人code") |
|||
private String tdrCode; |
|||
@ApiModelProperty("填单人姓名") |
|||
private String tdrName; |
|||
} |
73
yxt_supervise/supervise-portal/supervise-portal-api/src/main/java/com/yxt/supervise/portal/api/sysorganization/SysOrganization.java → yxt_supervise/supervise-portal/supervise-portal-api/src/main/java/com/yxt/anrui/portal/api/purchaserequisitiontobaccodetails/PurchaseRequisitionTobaccoDetails.java
73
yxt_supervise/supervise-portal/supervise-portal-api/src/main/java/com/yxt/supervise/portal/api/sysorganization/SysOrganization.java → yxt_supervise/supervise-portal/supervise-portal-api/src/main/java/com/yxt/anrui/portal/api/purchaserequisitiontobaccodetails/PurchaseRequisitionTobaccoDetails.java
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsVo <br/> |
|||
* Description: 采购订单表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 视图数据详情", description = "采购订单表 视图数据详情") |
|||
public class PurchaseRequisitionTobaccoDetailsDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("关联表sid") |
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yCode; // 卷烟代码
|
|||
@ApiModelProperty("门店名称编码") |
|||
private String storeCode; // 门店名称编码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("批发价") |
|||
private String pfj; // 批发价
|
|||
@ApiModelProperty("要货量") |
|||
private String yhl; // 要货量
|
|||
@ApiModelProperty("订单量") |
|||
private String ddl; // 订单量
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("厂家名称") |
|||
private String cjmc; // 厂家名称
|
|||
@ApiModelProperty("零售指导价") |
|||
private String lszdj; // 零售指导价
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsDto.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsDto <br/> |
|||
* Description: 采购订单表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 数据传输对象", description = "采购订单表 数据传输对象") |
|||
public class PurchaseRequisitionTobaccoDetailsDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("关联表sid") |
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yCode; // 卷烟代码
|
|||
@ApiModelProperty("门店名称编码") |
|||
private String storeCode; // 门店名称编码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("批发价") |
|||
private String pfj; // 批发价
|
|||
@ApiModelProperty("要货量") |
|||
private String yhl; // 要货量
|
|||
@ApiModelProperty("订单量") |
|||
private String ddl; // 订单量
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("厂家名称") |
|||
private String cjmc; // 厂家名称
|
|||
@ApiModelProperty("零售指导价") |
|||
private String lszdj; // 零售指导价
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsFeign.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsFeign <br/> |
|||
* Description: 采购订单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "采购订单表") |
|||
@FeignClient( |
|||
contextId = "yxt-supervise-PurchaseRequisitionTobaccoDetails", |
|||
name = "yxt-supervise", |
|||
path = "v1/purchaserequisitiontobaccodetails", |
|||
fallback = PurchaseRequisitionTobaccoDetailsFeignFallback.class) |
|||
public interface PurchaseRequisitionTobaccoDetailsFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<PurchaseRequisitionTobaccoDetailsVo>> listPage(@RequestBody PagerQuery<PurchaseRequisitionTobaccoDetailsQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody PurchaseRequisitionTobaccoDetailsDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<PurchaseRequisitionTobaccoDetailsDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsFeignFallback.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsFeignFallback <br/> |
|||
* Description: 采购订单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class PurchaseRequisitionTobaccoDetailsFeignFallback implements PurchaseRequisitionTobaccoDetailsFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<PurchaseRequisitionTobaccoDetailsVo>> listPage(PagerQuery<PurchaseRequisitionTobaccoDetailsQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitiontobaccodetails/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(PurchaseRequisitionTobaccoDetailsDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitiontobaccodetails/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口yxt-supervise/purchaserequisitiontobaccodetails/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<PurchaseRequisitionTobaccoDetailsDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口yxt-supervise/purchaserequisitiontobaccodetails/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsQuery.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsQuery <br/> |
|||
* Description: 采购订单表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 查询条件", description = "采购订单表 查询条件") |
|||
public class PurchaseRequisitionTobaccoDetailsQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("关联表sid") |
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yCode; // 卷烟代码
|
|||
@ApiModelProperty("门店名称编码") |
|||
private String storeCode; // 门店名称编码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("批发价") |
|||
private String pfj; // 批发价
|
|||
@ApiModelProperty("要货量") |
|||
private String yhl; // 要货量
|
|||
@ApiModelProperty("订单量") |
|||
private String ddl; // 订单量
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("厂家名称") |
|||
private String cjmc; // 厂家名称
|
|||
@ApiModelProperty("零售指导价") |
|||
private String lszdj; // 零售指导价
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.purchaserequisitiontobaccodetails; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-supervise(宇信通监管) <br/> |
|||
* File: PurchaseRequisitionTobaccoDetailsVo.java <br/> |
|||
* Class: com.yxt.supervise.portal.api.purchaserequisitiontobaccodetails.PurchaseRequisitionTobaccoDetailsVo <br/> |
|||
* Description: 采购订单表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-12-28 11:37:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单表 视图数据对象", description = "采购订单表 视图数据对象") |
|||
public class PurchaseRequisitionTobaccoDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("创建者") |
|||
private String createSid; // 创建者
|
|||
@ApiModelProperty("更新者") |
|||
private String modifySid; // 更新者
|
|||
@ApiModelProperty("关联表sid") |
|||
private String mainSid; // 关联表sid
|
|||
@ApiModelProperty("卷烟代码") |
|||
private String yCode; // 卷烟代码
|
|||
@ApiModelProperty("门店名称编码") |
|||
private String storeCode; // 门店名称编码
|
|||
@ApiModelProperty("门店名称") |
|||
private String storeName; // 门店名称
|
|||
@ApiModelProperty("批发价") |
|||
private String pfj; // 批发价
|
|||
@ApiModelProperty("要货量") |
|||
private String yhl; // 要货量
|
|||
@ApiModelProperty("订单量") |
|||
private String ddl; // 订单量
|
|||
@ApiModelProperty("金额") |
|||
private String price; // 金额
|
|||
@ApiModelProperty("厂家名称") |
|||
private String cjmc; // 厂家名称
|
|||
@ApiModelProperty("零售指导价") |
|||
private String lszdj; // 零售指导价
|
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
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: SysFunction.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunction <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_function") |
|||
@Data |
|||
public class SysFunction extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("功能名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("层级") |
|||
private Integer level; |
|||
|
|||
@ApiModelProperty("父级sid") |
|||
private String parentSid; |
|||
|
|||
@ApiModelProperty("接口地址") |
|||
private String actionUrl; |
|||
|
|||
@ApiModelProperty("模块名称") |
|||
private String controllerName; |
|||
|
|||
@ApiModelProperty("移动端按钮id") |
|||
private String funId; |
|||
|
|||
@ApiModelProperty("是否手机端权限0否,1是") |
|||
private String phoneFunction; |
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunctionDto <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 SysFunctionDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("功能名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("层级") |
|||
private Integer level; |
|||
|
|||
@ApiModelProperty("父级sid") |
|||
private String parentSid; |
|||
|
|||
@ApiModelProperty("接口地址") |
|||
private String actionUrl; |
|||
|
|||
@ApiModelProperty("模块名称") |
|||
private String controllerName; |
|||
@ApiModelProperty("模块sid") |
|||
private String sourceSid; |
|||
|
|||
@ApiModelProperty("移动端按钮id") |
|||
private String funId; |
|||
|
|||
@ApiModelProperty("是否手机端权限0否,1是") |
|||
private String phoneFunction; |
|||
@ApiModelProperty("备注") |
|||
private String remarks ; |
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunctionFeign <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 = "supervise-portal-SysFunction", |
|||
name = "supervise-portal", |
|||
path = "v1/sysfunction", |
|||
fallback = SysFunctionFeignFallback.class) |
|||
public interface SysFunctionFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysFunctionVo>> listPage(@RequestBody PagerQuery<SysFunctionQuery> pq); |
|||
|
|||
@ApiOperation("功能管理不分页查询全部 树形") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysFunctionVo>> listAll(@RequestBody SysFunctionQuery query); |
|||
|
|||
@ApiOperation("根据角色sid条件查询所有数据列表 树形") |
|||
@PostMapping("/listAllByRoleSid") |
|||
public ResultBean<List<SysFunctionVo>> listAllByRoleSid(@RequestBody SysFunctionQuery query); |
|||
|
|||
/** |
|||
* 功能列表接口 |
|||
* |
|||
* @param query |
|||
* @return |
|||
*/ |
|||
@ApiOperation("查询所有数据列表 根据资源归类") |
|||
@PostMapping("/listAllVoForSource") |
|||
public ResultBean<List<SysFunctionTreeVo>> listAllVoForSource(@RequestBody SysFunctionQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysFunctionVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysFunctionDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysFunctionDto dto,@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("修改功能的是否可用的状态") |
|||
@PostMapping("/updateIsEnable/{sid}/{isEnable}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid, @PathVariable("isEnable") Integer isEnable); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/delBySids/{sids}") |
|||
public ResultBean delBySids(@PathVariable("sids") String sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysFunctionVo> fetch(@PathVariable("id") String id); |
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysFunctionVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,92 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunctionFeignFallback <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 |
|||
*/ |
|||
@Component |
|||
public class SysFunctionFeignFallback implements SysFunctionFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysFunctionVo>> listPage(PagerQuery<SysFunctionQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysFunctionVo>> listAll(SysFunctionQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysFunctionVo>> listAllByRoleSid(SysFunctionQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/listAllByRoleSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysFunctionTreeVo>> listAllVoForSource(SysFunctionQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/listAllVoForSource无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysFunctionVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysFunctionDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysfunction/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysFunctionDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysfunction/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean updateIsEnable(String sid, Integer isEnable) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysfunction/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String sids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysfunction/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysFunctionVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysFunctionVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysfunction/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunctionQuery <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 SysFunctionQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("功能名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("层级") |
|||
private Integer level; |
|||
|
|||
@ApiModelProperty("父级sid") |
|||
private String parentSid; |
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("接口地址") |
|||
private String actionUrl; |
|||
|
|||
@ApiModelProperty("模块名称") |
|||
private String controllerName; |
|||
|
|||
@ApiModelProperty("移动端按钮id") |
|||
private String funId; |
|||
|
|||
|
|||
@ApiModelProperty("是否手机端权限0否,1是") |
|||
private String phoneFunction; |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionTreeVo.java <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 SysFunctionTreeVo implements Vo { |
|||
@ApiModelProperty("功能名称") |
|||
private String name; |
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
@ApiModelProperty("上级sid") |
|||
private String parentSid; |
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
@ApiModelProperty("资源名称") |
|||
private String sourceName; |
|||
@ApiModelProperty("url地址") |
|||
private String actionUrl; |
|||
@ApiModelProperty("功能根路径sid") |
|||
private String functionRootSid; |
|||
@ApiModelProperty("子功能") |
|||
private List<SysFunctionTreeVo> children; |
|||
@ApiModelProperty("是否可用") |
|||
private String isEnable; |
|||
@ApiModelProperty("功能列表用,是否是资源层级1是,0不是") |
|||
private String isSource = "0"; |
|||
@ApiModelProperty("父级名称") |
|||
private String parentName; |
|||
@ApiModelProperty("说明") |
|||
private String remarks; |
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.yxt.anrui.portal.api.sysfunction; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysFunctionVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysfunction.SysFunctionVo <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 SysFunctionVo implements Vo { |
|||
@ApiModelProperty("功能名称") |
|||
private String name; |
|||
@ApiModelProperty("父级sid") |
|||
private String parentSid; |
|||
@ApiModelProperty("父级名称") |
|||
private String parentName; |
|||
@ApiModelProperty("接口地址") |
|||
private String actionUrl; |
|||
@ApiModelProperty("模块名称") |
|||
private String controllerName; |
|||
@ApiModelProperty("是否手机端权限0否,1是") |
|||
private String phoneFunction; |
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
@ApiModelProperty("子集数据") |
|||
private List<SysFunctionVo> children; |
|||
@ApiModelProperty("是否选中 1未选中,0选中") |
|||
private String checked; |
|||
@ApiModelProperty("资源名称") |
|||
private String sourceName; |
|||
@ApiModelProperty("资源SId") |
|||
private String sourceSid; |
|||
@ApiModelProperty("是否可用") |
|||
private Integer isEnable; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class SaveListDto implements Dto { |
|||
private static final long serialVersionUID = -8934344899751306457L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; // 数据字典sid
|
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
|
|||
@ApiModelProperty("List") |
|||
private List<SysMappingListDto> listDtos; |
|||
} |
@ -0,0 +1,68 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
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: sysmapping(sysmapping) <br/> |
|||
* File: SysMapping.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMapping <br/> |
|||
* Description: sys_mapping. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射", description = "数据映射") |
|||
@TableName("sys_mapping") |
|||
public class SysMapping extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
} |
@ -0,0 +1,68 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingVo <br/> |
|||
* Description: sys_mapping 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 视图数据详情", description = "数据映射 视图数据详情") |
|||
public class SysMappingDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingDto <br/> |
|||
* Description: sys_mapping 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 数据传输对象", description = "数据映射 数据传输对象") |
|||
public class SysMappingDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; // 数据字典sid
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
} |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
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.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingFeign <br/> |
|||
* Description: sys_mapping. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "数据映射") |
|||
@FeignClient( |
|||
contextId = "supervise-portal-SysMapping", |
|||
name = "supervise-portal", |
|||
path = "v1/sysmapping", |
|||
fallback = SysMappingFeignFallback.class) |
|||
public interface SysMappingFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<SysMappingVo>> listPage(@RequestBody PagerQuery<SysMappingQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody SysMappingDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<SysMappingDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("新增映射") |
|||
@PostMapping("/saveMappingList") |
|||
@ResponseBody |
|||
public ResultBean saveMappingList(@RequestBody SaveListDto dto); |
|||
|
|||
@ApiOperation("根据条件查询详情") |
|||
@PostMapping("/selectMappingInfo") |
|||
@ResponseBody |
|||
public ResultBean<SysMappingInfoVo> selectMappingInfo(@RequestBody SysMappingInfoQuery query); |
|||
|
|||
@PostMapping("/selectMappingListInfo") |
|||
@ResponseBody |
|||
public ResultBean<List<SysMappingInfoVo>> selectMappingListInfo(@RequestBody SysMappingListInfoQuery query); |
|||
|
|||
@ApiOperation("根据条件查询详情批量") |
|||
@PostMapping("/selectMappingInfoBatch") |
|||
@ResponseBody |
|||
public ResultBean<Map<String, Object>> selectMappingInfoBatch(@RequestBody List<Map<String, List<SysMappingInfoQueryBatch>>> sysMappingInfoQuerys); |
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingFeignFallback <br/> |
|||
* Description: sys_mapping. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class SysMappingFeignFallback implements SysMappingFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysMappingVo>> listPage(PagerQuery<SysMappingQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口sysmapping/sysmapping/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysMappingDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口sysmapping/sysmapping/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口sysmapping/sysmapping/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysMappingDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口sysmapping/sysmapping/fetchDetailsBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean saveMappingList(SaveListDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysMappingInfoVo> selectMappingInfo(SysMappingInfoQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMappingInfoVo>> selectMappingListInfo(SysMappingListInfoQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<Map<String,Object>> selectMappingInfoBatch(List<Map<String,List<SysMappingInfoQueryBatch>>> sysMappingInfoQuerys) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class SysMappingInfoQuery implements Query { |
|||
private static final long serialVersionUID = 5179141159925489016L; |
|||
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
|
|||
@ApiModelProperty("数据字典类别编码") |
|||
private String dictTypeCode; // 数据字典类别编码
|
|||
|
|||
@ApiModelProperty("数据key") |
|||
private String dictKey; // 数据key
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class SysMappingInfoQueryBatch implements Query { |
|||
private static final long serialVersionUID = 5179141159925489016L; |
|||
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
|
|||
@ApiModelProperty("数据字典类别编码") |
|||
private String dictTypeCode; // 数据字典类别编码
|
|||
|
|||
@ApiModelProperty("数据key") |
|||
private String dictKey; // 数据key
|
|||
/* @ApiModelProperty("编码") |
|||
private String fNumber; // 编码*/
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class SysMappingInfoVo implements Vo { |
|||
|
|||
|
|||
private static final long serialVersionUID = -4909774998558087805L; |
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingDto <br/> |
|||
* Description: sys_mapping 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 数据传输对象", description = "数据映射 数据传输对象") |
|||
public class SysMappingListDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class SysMappingListInfoQuery implements Query { |
|||
private static final long serialVersionUID = 2691844852742909158L; |
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; |
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingQuery <br/> |
|||
* Description: sys_mapping 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 查询条件", description = "数据映射 查询条件") |
|||
public class SysMappingQuery implements Query { |
|||
|
|||
private static final long serialVersionUID = -546734185535363676L; |
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
@ApiModelProperty("数据字典类别编码") |
|||
private String dictTypeCode; // 数据字典类别编码
|
|||
@ApiModelProperty("数据字典类别名称") |
|||
private String dictTypeName; // 数据字典类别名称
|
|||
@ApiModelProperty("数据key") |
|||
private String dictKey; // 数据key
|
|||
@ApiModelProperty("数据value") |
|||
private String dictValue; // 数据value
|
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingVo <br/> |
|||
* Description: sys_mapping 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 视图数据对象", description = "数据映射 视图数据对象") |
|||
public class SysMappingVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
@ApiModelProperty("数据字典类别编码") |
|||
private String dictTypeCode; // 数据字典类别编码
|
|||
@ApiModelProperty("数据字典类别名称") |
|||
private String dictTypeName; // 数据字典类别名称
|
|||
@ApiModelProperty("数据key") |
|||
private String dictKey; // 数据key
|
|||
@ApiModelProperty("数据value") |
|||
private String dictValue; // 数据value
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
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: SysMenu.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenu <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_menu") |
|||
@Data |
|||
public class SysMenu extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("菜单名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("菜单路由路径(VUE)") |
|||
private String menuUrl; |
|||
|
|||
@ApiModelProperty("菜单对应的前端页面路径") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
|
|||
@ApiModelProperty("是否显示,默认为1显示,0为不显示") |
|||
private String isShow; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("上级sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("前端页面路径重定向") |
|||
private Integer pageUrlRedirect; |
|||
|
|||
@ApiModelProperty("前端页面名称(vue组件名)") |
|||
private String pageName; |
|||
|
|||
@ApiModelProperty("前端页面别名") |
|||
private String pageAliasName; |
|||
|
|||
@ApiModelProperty("菜单类型(0左侧当行菜单,1页面中功能)") |
|||
private String menuType; |
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuDto <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 SysMenuDto implements Dto { |
|||
|
|||
|
|||
private static final long serialVersionUID = -8143707488992909267L; |
|||
@ApiModelProperty(value = "菜单名称", required = true) |
|||
@NotBlank(message = "菜单名称不能为空") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("菜单路由路径(VUE)") |
|||
private String menuUrl; |
|||
|
|||
@ApiModelProperty("菜单对应的前端页面路径") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty(value = "资源sid", required = true) |
|||
@NotBlank(message = "资源不能为空") |
|||
private String sourceSid; |
|||
|
|||
@ApiModelProperty(value = "是否显示,默认为1显示,0为不显示", required = true) |
|||
@NotBlank(message = "是否显示不能为空") |
|||
private String isShow; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty(value = "上级sid", example = "0", required = true) |
|||
@NotBlank(message = "上级菜单不能为空") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty(value = "前端页面路径重定向", required = false) |
|||
private Integer pageUrlRedirect; |
|||
|
|||
@ApiModelProperty("前端页面名称(vue组件名)") |
|||
private String pageName; |
|||
|
|||
@ApiModelProperty(value = "前端页面别名", required = false) |
|||
private String pageAliasName; |
|||
|
|||
@ApiModelProperty("菜单类型(0左侧当行菜单,1页面中功能)") |
|||
private String menuType; |
|||
|
|||
@ApiModelProperty(value = "备注") |
|||
private String remarks; |
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
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.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; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuFeign <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 = "supervise-portal-SysMenu", |
|||
name = "supervise-portal", |
|||
path = "v1/sysmenu", |
|||
fallback = SysMenuFeignFallback.class) |
|||
public interface SysMenuFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysMenuVo>> listPage(@RequestBody PagerQuery<SysMenuQuery> pq); |
|||
|
|||
/* @ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysMenuVo>> listAll(@RequestBody SysMenuQuery query);*/ |
|||
|
|||
/** |
|||
* 菜单列表:根据资源归类 |
|||
* |
|||
* @param query |
|||
* @return |
|||
*/ |
|||
@ApiOperation("菜单列表:根据资源归类") |
|||
@PostMapping("/listAllVoForSource") |
|||
public ResultBean<List<SysMenuTreeVo>> listAllVoForSource(@RequestBody SysMenuQuery query); |
|||
|
|||
@ApiOperation("根据资源sid查询所有数据列表 ") |
|||
@PostMapping("/sourcemenutree") |
|||
public ResultBean<List<Map<String, Object>>> sourcemenutree(@RequestBody SysMenuQuery query); |
|||
|
|||
@ApiOperation("根据角色sid条件查询所有数据列表") |
|||
@PostMapping("/listAllByRoleSid") |
|||
public ResultBean<List<SysMenuVo>> listAllByRoleSid(@RequestBody SysMenuQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysMenuVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@Valid @RequestBody SysMenuDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@Valid @RequestBody SysMenuDto dto, @PathVariable("sid") String sid); |
|||
|
|||
/* @ApiOperation("修改保存") |
|||
@PostMapping("/updateSort/{sid}") |
|||
public ResultBean updateSort(@RequestBody SysMenuDto dto,@PathVariable("sid") String sid); |
|||
*/ |
|||
|
|||
/** |
|||
* 修改是否可用的状态 |
|||
* |
|||
* @param sid 菜单sid或资源sid |
|||
* @param isEnable 是否可用的状态:1可用,0不可用 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("修改是否可用的状态 ") |
|||
@PostMapping("/updateIsEnable/{sid}/{isEnable}") |
|||
public ResultBean updateIsEnable(@PathVariable("sid") String sid, @PathVariable("isEnable") Integer isEnable); |
|||
|
|||
/* @ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids);*/ |
|||
|
|||
/** |
|||
* 根据当前行sid删除菜单 |
|||
* |
|||
* @param sid 菜单sid |
|||
* @return |
|||
*/ |
|||
@ApiOperation("删除记录 根据sid") |
|||
@GetMapping("/delBySids/{sid}") |
|||
public ResultBean delBySids(@PathVariable("sid") String sid); |
|||
|
|||
/* @ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysMenuVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("获取一条记录 根据sid") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysMenuVo> fetchBySid(@PathVariable("sid") String sid);*/ |
|||
} |
@ -0,0 +1,100 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuFeignFallback <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 |
|||
*/ |
|||
@Component |
|||
public class SysMenuFeignFallback implements SysMenuFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysMenuVo>> listPage(PagerQuery<SysMenuQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/listPage无法访问"); |
|||
} |
|||
|
|||
/* @Override |
|||
public ResultBean<List<SysMenuVo>> listAll(SysMenuQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/listAll无法访问"); |
|||
}*/ |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMenuTreeVo>> listAllVoForSource(SysMenuQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/listAllVoForSource无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<Map<String, Object>>> sourcemenutree(SysMenuQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/sourcemenutree无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMenuVo>> listAllByRoleSid(SysMenuQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/listAllByRoleSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMenuVo>> list() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysMenuDto dto) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenu/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysMenuDto dto, String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenu/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean updateIsEnable(String sid, Integer isEnable) { |
|||
return null; |
|||
} |
|||
|
|||
/* @Override |
|||
public ResultBean del(String ids) { |
|||
|
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenu/del无法访问"); |
|||
}*/ |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenu/delBySids无法访问"); |
|||
} |
|||
|
|||
/*@Override |
|||
public ResultBean<SysMenuVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysMenuVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenu/fetchBySid无法访问"); |
|||
}*/ |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuQuery <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 SysMenuQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("菜单名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("菜单路由路径(VUE)") |
|||
private String menuUrl; |
|||
|
|||
@ApiModelProperty("菜单对应的前端页面路径") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("是否显示,默认为1显示,0为不显示") |
|||
private String isShow; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("上级sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("前端页面路径重定向") |
|||
private Integer pageUrlRedirect; |
|||
|
|||
@ApiModelProperty("前端页面名称(vue组件名)") |
|||
private String pageName; |
|||
|
|||
@ApiModelProperty("前端页面别名") |
|||
private String pageAliasName; |
|||
|
|||
@ApiModelProperty("菜单类型(0左侧当行菜单,1页面中功能)") |
|||
private String menuType; |
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuVo <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 SysMenuTreeVo implements Vo { |
|||
@ApiModelProperty("菜单名称") |
|||
private String name; |
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
@ApiModelProperty("上级sid") |
|||
private String pSid; |
|||
@ApiModelProperty("上级菜单名称") |
|||
private String pName; |
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
@ApiModelProperty("资源名称") |
|||
private String sourceName; |
|||
@ApiModelProperty("菜单根路径sid") |
|||
private String menuRootSid; |
|||
@ApiModelProperty("pageUrl") |
|||
private String pageUrl; |
|||
@ApiModelProperty("menuUrl") |
|||
private String menuUrl; |
|||
@ApiModelProperty("menuUrl") |
|||
private String pageName; |
|||
@ApiModelProperty("iconUrl") |
|||
private String iconUrl; |
|||
@ApiModelProperty("菜单列表用,是否是资源层级1是,0不是") |
|||
private String isSource = "0"; |
|||
@ApiModelProperty("是否可用") |
|||
private String isEnable; |
|||
@ApiModelProperty(value = "备注") |
|||
private String remarks; |
|||
@ApiModelProperty("子菜单") |
|||
private List<SysMenuTreeVo> children; |
|||
} |
@ -0,0 +1,74 @@ |
|||
package com.yxt.anrui.portal.api.sysmenu; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenu.SysMenuVo <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 SysMenuVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("菜单名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("菜单路由路径(VUE)") |
|||
private String menuUrl; |
|||
|
|||
@ApiModelProperty("菜单对应的前端页面路径") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
|
|||
@ApiModelProperty("是否显示,默认为1显示,0为不显示") |
|||
private String isShow; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("上级sid") |
|||
private String pSid; |
|||
@ApiModelProperty("上级名称") |
|||
private String pName; |
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty("前端页面路径重定向") |
|||
private Integer pageUrlRedirect; |
|||
|
|||
@ApiModelProperty("前端页面名称(vue组件名)") |
|||
private String pageName; |
|||
|
|||
@ApiModelProperty("前端页面别名") |
|||
private String pageAliasName; |
|||
|
|||
@ApiModelProperty("菜单类型(0左侧当行菜单,1页面中功能)") |
|||
private String menuType; |
|||
@ApiModelProperty("子菜单") |
|||
private List<SysMenuVo> children; |
|||
@ApiModelProperty("是否选中,1:未选中,0:选中") |
|||
private String checked; |
|||
@ApiModelProperty("资源名称") |
|||
private String sourceName; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
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: SysMenuRole.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRole <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_menu_role") |
|||
@Data |
|||
public class SysMenuRole extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("菜单sid") |
|||
private String menuSid; |
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuRoleDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRoleDto <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 SysMenuRoleDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("菜单sid") |
|||
private String menuSid; |
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
} |
@ -0,0 +1,67 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuRoleFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRoleFeign <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 = "supervise-portal-SysMenuRole", |
|||
name = "supervise-portal", |
|||
path = "v1/sysmenurole", |
|||
fallback = SysMenuRoleFeignFallback.class) |
|||
public interface SysMenuRoleFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysMenuRoleVo>> listPage(@RequestBody PagerQuery<SysMenuRoleQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysMenuRoleVo>> listAll(@RequestBody SysMenuRoleQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysMenuRoleVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysMenuRoleDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysMenuRoleDto dto,@PathVariable("sid") String sid); |
|||
@ApiOperation("修改角色的菜单配置") |
|||
@PostMapping("/updateRoleAndMenu") |
|||
public ResultBean updateRoleAndMenu(@RequestBody SysMenuRoleDto dto); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysMenuRoleVo> fetch(@PathVariable("id") String id); |
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuRoleFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRoleFeignFallback <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 |
|||
*/ |
|||
@Component |
|||
public class SysMenuRoleFeignFallback implements SysMenuRoleFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysMenuRoleVo>> listPage(PagerQuery<SysMenuRoleQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenurole/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMenuRoleVo>> listAll(SysMenuRoleQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenurole/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysMenuRoleVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenurole/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysMenuRoleDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenurole/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysMenuRoleDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenurole/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean updateRoleAndMenu(SysMenuRoleDto dto) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenurole/updateRoleAndMenu无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysmenurole/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysMenuRoleVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysmenurole/fetch无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuRoleQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRoleQuery <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 SysMenuRoleQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("菜单sid") |
|||
private String menuSid; |
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
@ApiModelProperty("多个角色sid计集合") |
|||
private List<String> roleSids; |
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
@ApiModelProperty("是否是系统管理员") |
|||
private String isAdmin; |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.yxt.anrui.portal.api.sysmenurole; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysMenuRoleVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmenurole.SysMenuRoleVo <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 SysMenuRoleVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("菜单sid") |
|||
private String menuSid; |
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
@ApiModelProperty("菜单父级sid") |
|||
private String pSid; |
|||
@ApiModelProperty("menusid") |
|||
private String sid; |
|||
@ApiModelProperty("menuUrl") |
|||
private String menuUrl; |
|||
@ApiModelProperty("menuName") |
|||
private String menuName; |
|||
@ApiModelProperty("pageUrl") |
|||
private String pageUrl; |
|||
@ApiModelProperty("iconUrl") |
|||
private String iconUrl; |
|||
@ApiModelProperty("isShow") |
|||
private String isShow; |
|||
@ApiModelProperty("alwaysShow") |
|||
private Integer alwaysShow; |
|||
@ApiModelProperty("pageUrlRedirect") |
|||
private String pageUrlRedirect; |
|||
@ApiModelProperty("pageAliasName") |
|||
private String pageAliasName; |
|||
@ApiModelProperty("pageName") |
|||
private String pageName; |
|||
@ApiModelProperty("remarks") |
|||
private String remarks; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author liuguohui |
|||
* @Date 2021/9/24 |
|||
*/ |
|||
@ApiModel(value = "App通讯录组织架构") |
|||
@Data |
|||
public class AppContactSysOrganizationVo implements Vo { |
|||
|
|||
@ApiModelProperty("部门/组织sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty("部门/组织名称|员工姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("员工数量") |
|||
private int staffNum; |
|||
|
|||
@ApiModelProperty("跳转类型:1、部门2、员工列表") |
|||
private Integer type; |
|||
|
|||
@ApiModelProperty("员工电话") |
|||
private String mobile; |
|||
|
|||
@ApiModelProperty("员工头像") |
|||
private String headImage; |
|||
|
|||
@ApiModelProperty("员工所在部门名称(路径)") |
|||
private String orgNamePath; |
|||
|
|||
@ApiModelProperty("员工职位") |
|||
private String position; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
* @date 2020/11/3 16:19 |
|||
* @description |
|||
*/ |
|||
@Data |
|||
public class QrCodeVo { |
|||
@ApiModelProperty("部门名称") |
|||
private String departmentName; |
|||
@ApiModelProperty("单位名称") |
|||
private String organizationName; |
|||
@ApiModelProperty("部门地址") |
|||
private String address; |
|||
@ApiModelProperty("二维码图片地址") |
|||
private String qrFilePath; |
|||
@ApiModelProperty(value = "部门sid") |
|||
private String sid; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/2/14 11:45 |
|||
* @Description 员工所在部门下拉列表 |
|||
*/ |
|||
@Data |
|||
public class SysOrgListVo implements Vo { |
|||
private static final long serialVersionUID = -3558876605554852892L; |
|||
|
|||
@ApiModelProperty(value = "组织名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "部门编码") |
|||
private String orgCode; |
|||
@ApiModelProperty(value = "sid") |
|||
private String sid; |
|||
@ApiModelProperty(value = "上级sid") |
|||
private String psid; |
|||
@ApiModelProperty(value = "orgSidPath") |
|||
private String orgSidPath; |
|||
private List<SysOrgVo> children; |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/26 11:48 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SysOrgStaffVo implements Vo { |
|||
private static final long serialVersionUID = -4311553944345419092L; |
|||
|
|||
private String staffName; |
|||
private String staffSid; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
* @date 2021/10/12 20:55 |
|||
* @description |
|||
*/ |
|||
@Data |
|||
public class SysOrgVo implements Vo { |
|||
private static final long serialVersionUID = 2983637708030419942L; |
|||
@ApiModelProperty(value = "组织名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "sid") |
|||
private String sid; |
|||
@ApiModelProperty(value = "psid") |
|||
private String psid; |
|||
@ApiModelProperty(value = "id") |
|||
private String id; |
|||
@ApiModelProperty(value = "orgSidPath") |
|||
private String orgSidPath; |
|||
@ApiModelProperty(value = "部门编码") |
|||
private String orgCode; |
|||
|
|||
private List<SysOrgVo> children; |
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.yxt.anrui.portal.api.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; |
|||
} |
@ -0,0 +1,91 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysOrganizationDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationDto <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 SysOrganizationDto implements Dto { |
|||
|
|||
|
|||
@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("主管人员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; |
|||
} |
@ -0,0 +1,182 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
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 io.swagger.annotations.ApiParam; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 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 = "supervise-portal-SysOrganization", |
|||
name = "supervise-portal", |
|||
path = "v1/sysorganization", |
|||
fallback = SysOrganizationFeignFallback.class) |
|||
public interface SysOrganizationFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysOrganizationVo>> listPage(@RequestBody PagerQuery<SysOrganizationQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysOrganizationVo>> listAll(@RequestBody SysOrganizationQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysOrganizationVo>> list(); |
|||
|
|||
@ApiOperation("一级组织机构列表") |
|||
@GetMapping("/selectFirstOrgList") |
|||
public ResultBean<List<SysOrganizationVo>> selectFirstOrgList(); |
|||
|
|||
@ApiOperation("根据父级sid查询子集列表") |
|||
@GetMapping("/selectChildrenListBySid/{sid}") |
|||
public ResultBean<List<SysOrganizationVo>> selectChildrenListBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysOrganizationDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysOrganizationDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("删除记录 根据sid") |
|||
@GetMapping("/delBySid/{sid}") |
|||
public ResultBean delBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysOrganizationVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("获取一条记录 根据sid") |
|||
@ResponseBody |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysOrganizationVo> fetchBySid(@PathVariable("sid") String sid); |
|||
|
|||
|
|||
@ApiOperation("手机获取组织架构") |
|||
@ResponseBody |
|||
@GetMapping("/selectAppOrganization") |
|||
public ResultBean<Map<String, Object>> selectAppOrganization(@RequestParam(value = "sid", required = false) String sid); |
|||
|
|||
@ApiOperation("组织架构") |
|||
@ResponseBody |
|||
@GetMapping("/selectListOrg") |
|||
ResultBean<List<SysOrgVo>> selectListOrg(); |
|||
|
|||
@ApiOperation("获取到分公司") |
|||
@ResponseBody |
|||
@GetMapping("/getListOrg") |
|||
ResultBean<List<SysOrgVo>> getListOrg(); |
|||
|
|||
@ApiOperation("获取同品牌下分公司") |
|||
@ResponseBody |
|||
@GetMapping("/getListOrgByBrand/{orgSid}") |
|||
ResultBean<List<SysOrgVo>> getListOrgByBrand(@PathVariable(value = "orgSid") String orgSid); |
|||
|
|||
@ApiOperation("获取指定品牌下分公司(已筛选本分公司)") |
|||
@ResponseBody |
|||
@GetMapping("/getListOrgByBrandSid/{orgSid}/{brandSid}") |
|||
ResultBean<List<SysOrgVo>> getListOrgByBrandSid(@PathVariable(value = "orgSid") String orgSid,@PathVariable(value = "brandSid") String brandSid); |
|||
|
|||
@ApiOperation("获取指定品牌下分公司(未筛选本分公司)") |
|||
@ResponseBody |
|||
@GetMapping("/getListOrgByBrandSidNo/{orgSid}/{brandSid}") |
|||
ResultBean<List<SysOrgVo>> getListOrgByBrandSidNo(@PathVariable(value = "orgSid") String orgSid,@PathVariable(value = "brandSid") String brandSid); |
|||
|
|||
@ApiOperation("获取指定分公司下部门信息") |
|||
@ResponseBody |
|||
@GetMapping("/getListDeptByOrgSid/{orgSid}") |
|||
ResultBean<List<SysOrgVo>> getListDeptByOrgSid(@PathVariable(value = "orgSid") String orgSid); |
|||
|
|||
@ApiOperation("根据业务员sid获取到分公司") |
|||
@ResponseBody |
|||
@GetMapping("/getUseOrgByUserSid") |
|||
ResultBean<SysOrganizationVo> getUseOrgByUserSid(@RequestParam("userSid") String userSid); |
|||
|
|||
@ApiOperation("根据部门sid查询组织信息") |
|||
@ResponseBody |
|||
@GetMapping("/selectBySid") |
|||
ResultBean<SysOrganization> selectBySid(@RequestParam("sid") String sid); |
|||
|
|||
@ApiOperation("根据组织架构sid查询组织下所有分公司") |
|||
@ResponseBody |
|||
@GetMapping("/selectUseOrgSidBySid") |
|||
ResultBean<List<Map<String, String>>> selectUseOrgSidBySid(@RequestParam("sid") String sid); |
|||
|
|||
/** |
|||
* 查询公司所有的部门 |
|||
* |
|||
* @return |
|||
*/ |
|||
@ApiOperation("所在部门下拉") |
|||
@ResponseBody |
|||
@GetMapping("/selectListOne") |
|||
ResultBean<List<SysOrgListVo>> selectListOne(); |
|||
|
|||
@PostMapping("/getQrCode/{sid}") |
|||
@ResponseBody |
|||
@ApiOperation("查看二维码") |
|||
public ResultBean<QrCodeVo> getQrCode(@ApiParam(value = "sid", required = true) @PathVariable("sid") String sid); |
|||
|
|||
@GetMapping("/getOrgSid/{sid}") |
|||
@ResponseBody |
|||
@ApiOperation("根据当前用户的所在组织获取当前用户所在的分公司") |
|||
ResultBean<String> getOrgSid(@PathVariable(value = "sid") String sid); |
|||
|
|||
@GetMapping("/selectOrgList") |
|||
@ResponseBody |
|||
@ApiOperation("当前分公司销售部门及部门人员") |
|||
ResultBean<List<SysOrganizationListVo>> selectOrgList(@SpringQueryMap SysOrganizationListQuery query); |
|||
|
|||
@GetMapping("/selectOrgLists") |
|||
@ResponseBody |
|||
@ApiOperation("当前分公司下所有部门") |
|||
ResultBean<List<SysOrganizationListsVo>> selectOrgLists(@SpringQueryMap SysOrganizationListQuery query); |
|||
|
|||
@GetMapping("/selectByPSid") |
|||
@ResponseBody |
|||
@ApiOperation("查询分公司下的销售支持部") |
|||
ResultBean<SysOrganizationVo> selectByPSid(@RequestParam("sid") String sid, @RequestParam("name") String name); |
|||
|
|||
@GetMapping("/selectOrgSidList") |
|||
@ResponseBody |
|||
@ApiOperation("所有分公司sid") |
|||
ResultBean<List<SysOrganizationVo>> selectOrgSidList(); |
|||
|
|||
@GetMapping("/selectOrgByPSid") |
|||
@ResponseBody |
|||
@ApiOperation("查询事业部下所有分公司") |
|||
ResultBean<List<SysOrganizationVo>> selectOrgByPSid(@RequestParam("psid") String psid); |
|||
|
|||
@GetMapping("/selectByOrgSidPath") |
|||
@ResponseBody |
|||
@ApiOperation("组织层级分页查询") |
|||
ResultBean<SysOrganizationVo> selectByOrgSidPath(@RequestParam("orgSidPath") String orgSidPath); |
|||
} |
@ -0,0 +1,184 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysOrganizationFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeignFallback <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 |
|||
*/ |
|||
@Component |
|||
public class SysOrganizationFeignFallback implements SysOrganizationFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysOrganizationVo>> listPage(PagerQuery<SysOrganizationQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationVo>> listAll(SysOrganizationQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationVo>> list() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean selectFirstOrgList() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/selectFirstOrgList无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean selectChildrenListBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/selectChildrenListBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysOrganizationDto dto) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysorganization/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysOrganizationDto dto, String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysorganization/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysorganization/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySid(String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysorganization/del无法访问"); |
|||
|
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganizationVo> fetch(String id) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganizationVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysorganization/fetchBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean selectAppOrganization(String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysorganization/selectAppOrganization无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> selectListOrg() { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> getListOrg() { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> getListOrgByBrand(String orgSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> getListOrgByBrandSid(String orgSid, String brandSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> getListOrgByBrandSidNo(String orgSid, String brandSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgVo>> getListDeptByOrgSid(String orgSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganizationVo> getUseOrgByUserSid(String staffSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganization> selectBySid(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<Map<String, String>>> selectUseOrgSidBySid(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrgListVo>> selectListOne() { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<QrCodeVo> getQrCode(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getOrgSid(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationListVo>> selectOrgList(SysOrganizationListQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationListsVo>> selectOrgLists(SysOrganizationListQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganizationVo> selectByPSid(String sid, String name) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationVo>> selectOrgSidList() { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysOrganizationVo>> selectOrgByPSid(String psid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysOrganizationVo> selectByOrgSidPath(String orgSidPath) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/26 11:49 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SysOrganizationListQuery implements Query { |
|||
private static final long serialVersionUID = 8657016527420117948L; |
|||
|
|||
private String userSid; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/26 11:42 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SysOrganizationListVo implements Vo { |
|||
private static final long serialVersionUID = -3709239161608411765L; |
|||
|
|||
private String orgDeptSid; |
|||
private String orgDeptName; |
|||
|
|||
private List<SysOrgStaffVo> staffinfoVoList; |
|||
|
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/30 11:28 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SysOrganizationListsVo implements Vo { |
|||
private static final long serialVersionUID = -7021974833444298712L; |
|||
|
|||
private String orgDeptSid; |
|||
private String orgDeptName; |
|||
} |
@ -0,0 +1,58 @@ |
|||
package com.yxt.anrui.portal.api.sysorganization; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysOrganizationQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationQuery <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 SysOrganizationQuery implements Query { |
|||
|
|||
|
|||
@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; |
|||
} |
@ -0,0 +1,86 @@ |
|||
package com.yxt.anrui.portal.api.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; |
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
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: SysPost.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPost <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_post") |
|||
@Data |
|||
public class SysPost extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("岗位名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("职级key") |
|||
private String postLevelKey; |
|||
|
|||
@ApiModelProperty("职级") |
|||
private String postLevel; |
|||
|
|||
@ApiModelProperty("岗位编码") |
|||
private String postCode; |
|||
|
|||
@ApiModelProperty("所属部门sid") |
|||
private String orgSid; |
|||
|
|||
@ApiModelProperty(value = "父级sid") |
|||
private String parentSid; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysPostDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPostDto <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 SysPostDto implements Dto { |
|||
|
|||
private static final long serialVersionUID = 863876947510030464L; |
|||
@ApiModelProperty("岗位名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("职级key") |
|||
private String postLevelKey; |
|||
|
|||
@ApiModelProperty("职级") |
|||
private String postLevel; |
|||
|
|||
@ApiModelProperty("岗位编码") |
|||
private String postCode; |
|||
|
|||
@ApiModelProperty("所属部门sid") |
|||
private String orgSid; |
|||
|
|||
@ApiModelProperty(value = "父级sid", example = "0") |
|||
private String parentSid; |
|||
} |
@ -0,0 +1,89 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysPostFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPostFeign <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 = "supervise-portal-SysPost", |
|||
name = "supervise-portal", |
|||
path = "v1/syspost", |
|||
fallback = SysPostFeignFallback.class) |
|||
public interface SysPostFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysPostVo>> listPage(@RequestBody PagerQuery<SysPostQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysPostVo>> listAll(@RequestBody SysPostQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysPostVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysPostDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysPostDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/delBySids/{sids}") |
|||
public ResultBean delBySids(@PathVariable("sids") String sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysPostVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysPostVo> fetchBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("根据部门sid获取岗位列表") |
|||
@GetMapping("/fetchByOrgSid/{orgSid}") |
|||
public ResultBean<List<SysPostVo>> fetchByOrgSid(@PathVariable("orgSid") String orgSid); |
|||
|
|||
@ApiOperation("根据部门sid获取岗位编号") |
|||
@GetMapping("/fetchByOrgSidPostCode/{orgSid}") |
|||
public ResultBean<String> fetchByOrgSidPostCode(); |
|||
|
|||
/** |
|||
* 查询岗位列表 |
|||
* |
|||
* @return |
|||
*/ |
|||
@ApiOperation("查询岗位列表") |
|||
@GetMapping("/selectList") |
|||
public ResultBean<List<SysPostListVo>> selectList(); |
|||
} |
@ -0,0 +1,91 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysPostFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPostFeignFallback <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 |
|||
*/ |
|||
@Component |
|||
public class SysPostFeignFallback implements SysPostFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysPostVo>> listPage(PagerQuery<SysPostQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysPostVo>> listAll(SysPostQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysPostVo>> list() { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysPostDto dto) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syspost/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysPostDto dto, String sid) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syspost/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syspost/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String sids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syspost/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysPostVo> fetch(String id) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysPostVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/fetchBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysPostVo>> fetchByOrgSid(String orgSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syspost/fetchByOrgSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> fetchByOrgSidPostCode() { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysPostListVo>> selectList() { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/2/14 13:49 |
|||
* @Description 部门下的岗位信息 |
|||
*/ |
|||
@Data |
|||
public class SysPostListVo implements Vo { |
|||
private static final long serialVersionUID = -8060032905868283959L; |
|||
|
|||
@ApiModelProperty("岗位名称") |
|||
private String name; |
|||
@ApiModelProperty("岗位编码") |
|||
private String postCode; |
|||
@ApiModelProperty("岗位sid") |
|||
private String sid; |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysPostQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPostQuery <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 SysPostQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("岗位名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("职级key") |
|||
private String postLevelKey; |
|||
|
|||
@ApiModelProperty("职级") |
|||
private String postLevel; |
|||
|
|||
@ApiModelProperty("岗位编码") |
|||
private String postCode; |
|||
|
|||
@ApiModelProperty("所属部门sid") |
|||
private String orgSid; |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.portal.api.syspost; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysPostVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syspost.SysPostVo <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 SysPostVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("岗位名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("职级key") |
|||
private String postLevelKey; |
|||
|
|||
@ApiModelProperty("职级") |
|||
private String postLevel; |
|||
|
|||
@ApiModelProperty("岗位编码") |
|||
private String postCode; |
|||
|
|||
@ApiModelProperty("所属部门sid") |
|||
private String orgSid; |
|||
|
|||
@ApiModelProperty("所属部门名称") |
|||
private String orgName; |
|||
|
|||
@ApiModelProperty("岗位sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty(value = "上级岗位名称") |
|||
private String parentName; |
|||
@ApiModelProperty(value = "上级岗位sid") |
|||
private String parentSid; |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
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: SysRole.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRole <br/> |
|||
* Description: 角色. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色", description = "角色") |
|||
@TableName("sys_role") |
|||
@Data |
|||
public class SysRole extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("角色名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("排序") |
|||
private Integer sort; |
|||
|
|||
@ApiModelProperty("编码") |
|||
private String code; |
|||
|
|||
@ApiModelProperty("1、系统管理员、2、普通角色") |
|||
private Integer type; |
|||
|
|||
@ApiModelProperty("岗位sid") |
|||
private String postSid; |
|||
|
|||
@ApiModelProperty(value = "角色组织层级key") |
|||
private String roleType; |
|||
@ApiModelProperty(value = "角色组织层级value") |
|||
private String roleTypeValue; |
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleDto <br/> |
|||
* Description: 角色 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色 数据传输对象", description = "角色 数据传输对象") |
|||
@Data |
|||
public class SysRoleDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("角色名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("排序") |
|||
private Integer sort; |
|||
|
|||
@ApiModelProperty("编码") |
|||
private String code; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
|
|||
@ApiModelProperty("1、系统管理员、2、普通角色") |
|||
private Integer type; |
|||
|
|||
@ApiModelProperty("岗位sid") |
|||
private String postSid; |
|||
|
|||
@ApiModelProperty("岗位名称") |
|||
private String postName; |
|||
|
|||
@ApiModelProperty(value = "角色组织层级key") |
|||
private String roleType; |
|||
@ApiModelProperty(value = "角色组织层级value") |
|||
private String roleTypeValue; |
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
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 io.swagger.annotations.ApiParam; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleFeign <br/> |
|||
* Description: 角色. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "角色") |
|||
@FeignClient( |
|||
contextId = "supervise-portal-SysRole", |
|||
name = "supervise-portal", |
|||
path = "v1/sysrole", |
|||
fallback = SysRoleFeignFallback.class) |
|||
public interface SysRoleFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysRoleVo>> listPage(@RequestBody PagerQuery<SysRoleQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysRoleVo>> listAll(@RequestBody SysRoleQuery query); |
|||
@ApiOperation("查询所有的角色数据,并根据用户sid查询被选中的角色") |
|||
@PostMapping("/listAllByUserSid/{userSid}") |
|||
public ResultBean<List<SysRoleVo>> listAllByUserSid(@PathVariable("userSid") String userSid); |
|||
|
|||
@ApiOperation("根据用户sid查询用户的角色列表") |
|||
@PostMapping("/fetchByUserSid/{userSid}") |
|||
public ResultBean<List<SysRoleVo>> fetchByUserSid(@PathVariable("userSid") String userSid); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysRoleVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysRoleDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysRoleDto dto,@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("删除记录根据sids") |
|||
@GetMapping("/delBySids/{sids}") |
|||
public ResultBean delBySids(@PathVariable("sids") String sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysRoleVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("获取一条记录根据sid") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysRoleVo> fetchBySid(@PathVariable("sid") String sid); |
|||
|
|||
@PostMapping("/setIsEnable/{sid}/{isEnable}") |
|||
@ResponseBody |
|||
@ApiOperation(value = "设置是否可用:isEnable:1可用,0不可用") |
|||
public ResultBean setIsEnable(@ApiParam(value = "sid", required = true) @PathVariable("sid") String sid, @ApiParam(value = "isEnable", required = true) @PathVariable("isEnable") String isEnable); |
|||
|
|||
} |
@ -0,0 +1,91 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleFeignFallback <br/> |
|||
* Description: 角色. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class SysRoleFeignFallback implements SysRoleFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysRoleVo>> listPage(PagerQuery<SysRoleQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleVo>> listAll(SysRoleQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleVo>> listAllByUserSid(String userSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/listAllByUserSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleVo>> fetchByUserSid(String userSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/fetchByUserSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysRoleDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrole/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysRoleDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrole/update无法访问"); |
|||
} |
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrole/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String sids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrole/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysRoleVo> fetch(String id) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysRoleVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrole/fetchBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean setIsEnable(String sid, String isEnable) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleQuery <br/> |
|||
* Description: 角色 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色 查询条件", description = "角色 查询条件") |
|||
@Data |
|||
public class SysRoleQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("角色名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("排序") |
|||
private Integer sort; |
|||
|
|||
@ApiModelProperty("编码") |
|||
private String code; |
|||
|
|||
@ApiModelProperty("1、系统管理员、2、普通角色") |
|||
private Integer type; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.anrui.portal.api.sysrole; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleVo <br/> |
|||
* Description: 角色 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色 视图数据对象", description = "角色 视图数据对象") |
|||
@Data |
|||
public class SysRoleVo implements Vo { |
|||
@ApiModelProperty("角色名称") |
|||
private String name; |
|||
@ApiModelProperty("排序") |
|||
private Integer sort; |
|||
@ApiModelProperty("编码") |
|||
private String code; |
|||
@ApiModelProperty("1、系统管理员、2、普通角色") |
|||
private Integer type; |
|||
@ApiModelProperty("角色sid") |
|||
private String sid; |
|||
@ApiModelProperty("说明") |
|||
private String remarks; |
|||
@ApiModelProperty("是否选中,1:未选中,0:选中") |
|||
private String checked; |
|||
@ApiModelProperty("是否可用") |
|||
private String isEnable; |
|||
@ApiModelProperty("岗位sid") |
|||
private String postSid; |
|||
@ApiModelProperty("岗位名称") |
|||
private String postName; |
|||
@ApiModelProperty(value = "组织层级") |
|||
private String roleTypeValue; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
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: SysRoleFunction.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunction <br/> |
|||
* Description: 角色与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色与功能关联表", description = "角色与功能关联表") |
|||
@TableName("sys_role_function") |
|||
@Data |
|||
public class SysRoleFunction extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFunctionDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunctionDto <br/> |
|||
* Description: 角色与功能关联表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色与功能关联表 数据传输对象", description = "角色与功能关联表 数据传输对象") |
|||
@Data |
|||
public class SysRoleFunctionDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
} |
@ -0,0 +1,67 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFunctionFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunctionFeign <br/> |
|||
* Description: 角色与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "角色与功能关联表") |
|||
@FeignClient( |
|||
contextId = "supervise-portal-SysRoleFunction", |
|||
name = "supervise-portal", |
|||
path = "v1/sysrolefunction", |
|||
fallback = SysRoleFunctionFeignFallback.class) |
|||
public interface SysRoleFunctionFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysRoleFunctionVo>> listPage(@RequestBody PagerQuery<SysRoleFunctionQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysRoleFunctionVo>> listAll(@RequestBody SysRoleFunctionQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysRoleFunctionVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysRoleFunctionDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysRoleFunctionDto dto,@PathVariable("sid") String sid); |
|||
@ApiOperation("修改角色的功能配置") |
|||
@PostMapping("/updateRoleAndFunction") |
|||
public ResultBean updateRoleAndFunction(@RequestBody SysRoleFunctionDto dto); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysRoleFunctionVo> fetch(@PathVariable("id") String id); |
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFunctionFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunctionFeignFallback <br/> |
|||
* Description: 角色与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class SysRoleFunctionFeignFallback implements SysRoleFunctionFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysRoleFunctionVo>> listPage(PagerQuery<SysRoleFunctionQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrolefunction/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleFunctionVo>> listAll(SysRoleFunctionQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrolefunction/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysRoleFunctionVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrolefunction/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysRoleFunctionDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrolefunction/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysRoleFunctionDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrolefunction/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean updateRoleAndFunction(SysRoleFunctionDto dto) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrolefunction/updateRoleAndFunction无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/sysrolefunction/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysRoleFunctionVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/sysrolefunction/fetch无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFunctionQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunctionQuery <br/> |
|||
* Description: 角色与功能关联表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色与功能关联表 查询条件", description = "角色与功能关联表 查询条件") |
|||
@Data |
|||
public class SysRoleFunctionQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.sysrolefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFunctionVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrolefunction.SysRoleFunctionVo <br/> |
|||
* Description: 角色与功能关联表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "角色与功能关联表 视图数据对象", description = "角色与功能关联表 视图数据对象") |
|||
@Data |
|||
public class SysRoleFunctionVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
} |
@ -0,0 +1,76 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
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: SysSource.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSource <br/> |
|||
* Description: 资源表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源表", description = "资源表") |
|||
@TableName("sys_source") |
|||
@Data |
|||
public class SysSource extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("父资源sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("资源ID(对应微服务的名称)") |
|||
private String sourceId; |
|||
|
|||
@ApiModelProperty("资源名称(业务模块名称)") |
|||
private String sourceName; |
|||
|
|||
@ApiModelProperty("web页面的url(平台中业务模块跳转地址)") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源图标背景颜色") |
|||
private String iconBgColor; |
|||
|
|||
@ApiModelProperty("资源url标识") |
|||
private String urlSign; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("资源类别(0.内置Activity 1.内置WebView 2.RePlugin插件 3.原生apk 4.We页面)") |
|||
private Integer sourceType; |
|||
|
|||
@ApiModelProperty("模块的版本(type = 2,3有),移动端专用") |
|||
private String ver; |
|||
|
|||
@ApiModelProperty("apk下载地址(type = 2,3有),移动端专用") |
|||
private String sourceUrl; |
|||
|
|||
@ApiModelProperty("模块的包名,移动端专用") |
|||
private String sourcePackage; |
|||
|
|||
@ApiModelProperty("启动模块的动作(0.启动Activity的包名+类名 1.html地址 2.启动Activity的包名+类名 3.intent-action ),移动端专用") |
|||
private String sourceAction; |
|||
|
|||
@ApiModelProperty("需要用到的json拼接(由目标模块 自行解析),其他参数") |
|||
private String sourceExtra; |
|||
|
|||
@ApiModelProperty("提示数量(没有返回0即可)") |
|||
private String noticeNum; |
|||
|
|||
@ApiModelProperty("RePlugin插件名称(type = 2有),移动端专用") |
|||
private String modulePluginName; |
|||
} |
@ -0,0 +1,76 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSourceDto <br/> |
|||
* Description: 资源表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源表 数据传输对象", description = "资源表 数据传输对象") |
|||
@Data |
|||
public class SysSourceDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("父资源sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("资源ID(对应微服务的名称)") |
|||
private String sourceId; |
|||
|
|||
@ApiModelProperty("资源名称(业务模块名称)") |
|||
private String sourceName; |
|||
|
|||
@ApiModelProperty("web页面的url(平台中业务模块跳转地址)") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源图标背景颜色") |
|||
private String iconBgColor; |
|||
|
|||
@ApiModelProperty("资源url标识") |
|||
private String urlSign; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("资源类别(0.内置Activity 1.内置WebView 2.RePlugin插件 3.原生apk 4.We页面)") |
|||
private Integer sourceType; |
|||
|
|||
@ApiModelProperty("模块的版本(type = 2,3有),移动端专用") |
|||
private String ver; |
|||
|
|||
@ApiModelProperty("apk下载地址(type = 2,3有),移动端专用") |
|||
private String sourceUrl; |
|||
|
|||
@ApiModelProperty("模块的包名,移动端专用") |
|||
private String sourcePackage; |
|||
|
|||
@ApiModelProperty("启动模块的动作(0.启动Activity的包名+类名 1.html地址 2.启动Activity的包名+类名 3.intent-action ),移动端专用") |
|||
private String sourceAction; |
|||
|
|||
@ApiModelProperty("需要用到的json拼接(由目标模块 自行解析),其他参数") |
|||
private String sourceExtra; |
|||
|
|||
@ApiModelProperty("提示数量(没有返回0即可)") |
|||
private String noticeNum; |
|||
@ApiModelProperty("RePlugin插件名称(type = 2有),移动端专用") |
|||
private String modulePluginName; |
|||
@ApiModelProperty("描述") |
|||
private String remarks; |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSourceFeign <br/> |
|||
* Description: 资源表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "资源表") |
|||
@FeignClient( |
|||
contextId = "supervise-portal-SysSource", |
|||
name = "supervise-portal", |
|||
path = "v1/syssource", |
|||
fallback = SysSourceFeignFallback.class) |
|||
public interface SysSourceFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysSourceVo>> listPage(@RequestBody PagerQuery<SysSourceQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysSourceVo>> listAll(@RequestBody SysSourceQuery query); |
|||
@ApiOperation("根据角色sid条件查询所有数据列表") |
|||
@PostMapping("/listAllByRoleSid") |
|||
public ResultBean<List<SysSourceVo>> listAllByRoleSid(@RequestBody SysSourceQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysSourceVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysSourceDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysSourceDto dto,@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
@ApiOperation("删除记录 根据sid") |
|||
@GetMapping("/delBySids/{sids}") |
|||
public ResultBean delBySids(@PathVariable("sids") String sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysSourceVo> fetch(@PathVariable("id") String id); |
|||
@ApiOperation("获取一条记录 根据sid") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysSourceVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,81 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSourceFeignFallback <br/> |
|||
* Description: 资源表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class SysSourceFeignFallback implements SysSourceFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysSourceVo>> listPage(PagerQuery<SysSourceQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysSourceVo>> listAll(SysSourceQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysSourceVo>> listAllByRoleSid(SysSourceQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/listAllByRoleSid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysSourceVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysSourceDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssource/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysSourceDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssource/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssource/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(String sids) { |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssource/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysSourceVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysSourceVo> fetchBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssource/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSourceQuery <br/> |
|||
* Description: 资源表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源表 查询条件", description = "资源表 查询条件") |
|||
@Data |
|||
public class SysSourceQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("父资源sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("资源ID(对应微服务的名称)") |
|||
private String sourceId; |
|||
|
|||
@ApiModelProperty("角色sid") |
|||
private String roleSid; |
|||
|
|||
@ApiModelProperty("资源名称(业务模块名称)") |
|||
private String sourceName; |
|||
|
|||
@ApiModelProperty("web页面的url(平台中业务模块跳转地址)") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源图标背景颜色") |
|||
private String iconBgColor; |
|||
|
|||
@ApiModelProperty("资源url标识") |
|||
private String urlSign; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("资源类别(0.内置Activity 1.内置WebView 2.RePlugin插件 3.原生apk 4.We页面)") |
|||
private Integer sourceType; |
|||
|
|||
@ApiModelProperty("模块的版本(type = 2,3有),移动端专用") |
|||
private String ver; |
|||
|
|||
@ApiModelProperty("apk下载地址(type = 2,3有),移动端专用") |
|||
private String sourceUrl; |
|||
|
|||
@ApiModelProperty("模块的包名,移动端专用") |
|||
private String sourcePackage; |
|||
|
|||
@ApiModelProperty("启动模块的动作(0.启动Activity的包名+类名 1.html地址 2.启动Activity的包名+类名 3.intent-action ),移动端专用") |
|||
private String sourceAction; |
|||
|
|||
@ApiModelProperty("需要用到的json拼接(由目标模块 自行解析),其他参数") |
|||
private String sourceExtra; |
|||
|
|||
@ApiModelProperty("提示数量(没有返回0即可)") |
|||
private String noticeNum; |
|||
|
|||
@ApiModelProperty("RePlugin插件名称(type = 2有),移动端专用") |
|||
private String modulePluginName; |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
package com.yxt.anrui.portal.api.syssource; |
|||
|
|||
|
|||
import com.yxt.anrui.portal.api.sysmenu.SysMenuVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssource.SysSourceVo <br/> |
|||
* Description: 资源表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源表 视图数据对象", description = "资源表 视图数据对象") |
|||
@Data |
|||
public class SysSourceVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("父资源sid") |
|||
private String pSid; |
|||
|
|||
@ApiModelProperty("资源ID(对应微服务的名称)") |
|||
private String sourceId; |
|||
|
|||
@ApiModelProperty("资源名称(业务模块名称)") |
|||
private String sourceName; |
|||
|
|||
@ApiModelProperty("web页面的url(平台中业务模块跳转地址)") |
|||
private String pageUrl; |
|||
|
|||
@ApiModelProperty("菜单图标地址") |
|||
private String iconUrl; |
|||
|
|||
@ApiModelProperty("资源图标背景颜色") |
|||
private String iconBgColor; |
|||
|
|||
@ApiModelProperty("资源url标识") |
|||
private String urlSign; |
|||
|
|||
@ApiModelProperty("排序号") |
|||
private Integer sortNo; |
|||
|
|||
@ApiModelProperty("资源类别(0.内置Activity 1.内置WebView 2.RePlugin插件 3.原生apk 4.We页面)") |
|||
private Integer sourceType; |
|||
|
|||
@ApiModelProperty("模块的版本(type = 2,3有),移动端专用") |
|||
private String ver; |
|||
|
|||
@ApiModelProperty("apk下载地址(type = 2,3有),移动端专用") |
|||
private String sourceUrl; |
|||
|
|||
@ApiModelProperty("模块的包名,移动端专用") |
|||
private String sourcePackage; |
|||
|
|||
@ApiModelProperty("启动模块的动作(0.启动Activity的包名+类名 1.html地址 2.启动Activity的包名+类名 3.intent-action ),移动端专用") |
|||
private String sourceAction; |
|||
|
|||
@ApiModelProperty("需要用到的json拼接(由目标模块 自行解析),其他参数") |
|||
private String sourceExtra; |
|||
|
|||
@ApiModelProperty("提示数量(没有返回0即可)") |
|||
private String noticeNum; |
|||
|
|||
@ApiModelProperty("RePlugin插件名称(type = 2有),移动端专用") |
|||
private String modulePluginName; |
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
@ApiModelProperty("是否选中 1没有选中,0选中") |
|||
private String checked; |
|||
@ApiModelProperty("描述") |
|||
private String remarks; |
|||
@ApiModelProperty("菜单集合") |
|||
private List<SysMenuVo> children; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
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: SysSourceFunction.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunction <br/> |
|||
* Description: 资源与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源与功能关联表", description = "资源与功能关联表") |
|||
@TableName("sys_source_function") |
|||
@Data |
|||
public class SysSourceFunction extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
@ApiModelProperty("功能根目录sid") |
|||
private String functionRootSid; |
|||
} |
|||
|
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFunctionDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunctionDto <br/> |
|||
* Description: 资源与功能关联表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源与功能关联表 数据传输对象", description = "资源与功能关联表 数据传输对象") |
|||
@Data |
|||
public class SysSourceFunctionDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
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.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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFunctionFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunctionFeign <br/> |
|||
* Description: 资源与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "资源与功能关联表") |
|||
@FeignClient( |
|||
contextId = "supervise-portal-SysSourceFunction", |
|||
name = "supervise-portal", |
|||
path = "v1/syssourcefunction", |
|||
fallback = SysSourceFunctionFeignFallback.class) |
|||
public interface SysSourceFunctionFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysSourceFunctionVo>> listPage(@RequestBody PagerQuery<SysSourceFunctionQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<SysSourceFunctionVo>> listAll(@RequestBody SysSourceFunctionQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<SysSourceFunctionVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysSourceFunctionDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysSourceFunctionDto dto,@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<SysSourceFunctionVo> fetch(@PathVariable("id") String id); |
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFunctionFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunctionFeignFallback <br/> |
|||
* Description: 资源与功能关联表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class SysSourceFunctionFeignFallback implements SysSourceFunctionFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<SysSourceFunctionVo>> listPage(PagerQuery<SysSourceFunctionQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssourcefunction/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysSourceFunctionVo>> listAll(SysSourceFunctionQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssourcefunction/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<SysSourceFunctionVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssourcefunction/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(SysSourceFunctionDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssourcefunction/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(SysSourceFunctionDto dto,String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssourcefunction/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_portal/syssourcefunction/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<SysSourceFunctionVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_portal/syssourcefunction/fetch无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFunctionQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunctionQuery <br/> |
|||
* Description: 资源与功能关联表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源与功能关联表 查询条件", description = "资源与功能关联表 查询条件") |
|||
@Data |
|||
public class SysSourceFunctionQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.yxt.anrui.portal.api.syssourcefunction; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysSourceFunctionVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.syssourcefunction.SysSourceFunctionVo <br/> |
|||
* Description: 资源与功能关联表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "资源与功能关联表 视图数据对象", description = "资源与功能关联表 视图数据对象") |
|||
@Data |
|||
public class SysSourceFunctionVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("功能sid") |
|||
private String functionSid; |
|||
|
|||
@ApiModelProperty("资源sid") |
|||
private String sourceSid; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue