
34 changed files with 2522 additions and 22 deletions
@ -1,9 +0,0 @@ |
|||||
package com.yxt.supervise.customer.api; |
|
||||
|
|
||||
/** |
|
||||
* @Author dimengzhe |
|
||||
* @Date 2023/3/6 16:59 |
|
||||
* @Description |
|
||||
*/ |
|
||||
public class Test { |
|
||||
} |
|
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoVo <br/> |
||||
|
* Description: 供应商信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 视图数据详情", description = "供应商信息 视图数据详情") |
||||
|
public class SupplierBankInfoDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一编码") |
||||
|
private String codeUnified; // 统一编码
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; // 联系人
|
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; // 电话
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; // 地址
|
||||
|
@ApiModelProperty("银行帐户") |
||||
|
private String bankAccount; // 银行帐户
|
||||
|
@ApiModelProperty("帐号") |
||||
|
private String bankAccountNumber; // 帐号
|
||||
|
@ApiModelProperty("开户行名称") |
||||
|
private String bankName; // 开户行名称
|
||||
|
@ApiModelProperty("法人") |
||||
|
private String legalRepresentative; // 法人
|
||||
|
@ApiModelProperty("营业执照号") |
||||
|
private String businessLicenseNo; // 营业执照号
|
||||
|
@ApiModelProperty("监管审核状态0待审核1为通过2为拒绝") |
||||
|
private Integer purchaseRequisition; // 监管审核状态0待审核1为通过2为拒绝
|
||||
|
@ApiModelProperty("监管审批意见") |
||||
|
private String purchaseRemarks; // 监管审批意见
|
||||
|
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
||||
|
private Integer bankState; // 银行0未审核,1审核通过,2审核不通过
|
||||
|
@ApiModelProperty("银行审批意见") |
||||
|
private String bankRemarks; // 银行审批意见
|
||||
|
@ApiModelProperty("营业执照附件") |
||||
|
private String[] businessLicenseFiles; // 营业执照附件
|
||||
|
@ApiModelProperty("合同照片") |
||||
|
private String[] contractFiles; // 合同照片
|
||||
|
@ApiModelProperty("合同信息") |
||||
|
private SupplierContractInfoDto supplierContractInfoDto; // 合同信息
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoDto.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoDto <br/> |
||||
|
* Description: 供应商信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 数据传输对象", description = "供应商信息 数据传输对象") |
||||
|
public class SupplierBankInfoDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一编码") |
||||
|
private String codeUnified; // 统一编码
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; // 联系人
|
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; // 电话
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; // 地址
|
||||
|
@ApiModelProperty("银行帐户") |
||||
|
private String bankAccount; // 银行帐户
|
||||
|
@ApiModelProperty("帐号") |
||||
|
private String bankAccountNumber; // 帐号
|
||||
|
@ApiModelProperty("开户行名称") |
||||
|
private String bankName; // 开户行名称
|
||||
|
@ApiModelProperty("法人") |
||||
|
private String legalRepresentative; // 法人
|
||||
|
@ApiModelProperty("营业执照号") |
||||
|
private String businessLicenseNo; // 营业执照号
|
||||
|
@ApiModelProperty("监管审核状态0待审核1为通过2为拒绝") |
||||
|
private Integer purchaseRequisition; // 监管审核状态0待审核1为通过2为拒绝
|
||||
|
@ApiModelProperty("监管审批意见") |
||||
|
private String purchaseRemarks; // 监管审批意见
|
||||
|
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
||||
|
private Integer bankState; // 银行0未审核,1审核通过,2审核不通过
|
||||
|
@ApiModelProperty("银行审批意见") |
||||
|
private String bankRemarks; // 银行审批意见
|
||||
|
@ApiModelProperty("营业执照附件") |
||||
|
private String[] businessLicenseFiles; // 营业执照附件
|
||||
|
@ApiModelProperty("合同照片") |
||||
|
private String[] contractFiles; // 合同照片
|
||||
|
@ApiModelProperty("合同信息") |
||||
|
private SupplierContractInfoDto supplierContractInfoDto; // 合同信息
|
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
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.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoFeign <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "供应商信息") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-SupplierBankInfo", |
||||
|
name = "supervise", |
||||
|
path = "v1/supplierbankinfo", |
||||
|
fallback = SupplierBankInfoFeignFallback.class) |
||||
|
public interface SupplierBankInfoFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<SupplierBankInfoVo>> listPage(@RequestBody PagerQuery<SupplierBankInfoQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody SupplierBankInfoDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<SupplierBankInfoDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoFeignFallback <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class SupplierBankInfoFeignFallback implements SupplierBankInfoFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<SupplierBankInfoVo>> listPage(PagerQuery<SupplierBankInfoQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/supplierbankinfo/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(SupplierBankInfoDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/supplierbankinfo/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[]sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/supplierbankinfo/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<SupplierBankInfoDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/supplierbankinfo/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoQuery <br/> |
||||
|
* Description: 供应商信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 查询条件", description = "供应商信息 查询条件") |
||||
|
public class SupplierBankInfoQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一编码") |
||||
|
private String codeUnified; // 统一编码
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; // 联系人
|
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; // 电话
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; // 地址
|
||||
|
@ApiModelProperty("银行帐户") |
||||
|
private String bankAccount; // 银行帐户
|
||||
|
@ApiModelProperty("帐号") |
||||
|
private String bankAccountNumber; // 帐号
|
||||
|
@ApiModelProperty("开户行名称") |
||||
|
private String bankName; // 开户行名称
|
||||
|
@ApiModelProperty("法人") |
||||
|
private String legalRepresentative; // 法人
|
||||
|
@ApiModelProperty("营业执照号") |
||||
|
private String businessLicenseNo; // 营业执照号
|
||||
|
@ApiModelProperty("监管审核状态0待审核1为通过2为拒绝") |
||||
|
private Integer purchaseRequisition; // 监管审核状态0待审核1为通过2为拒绝
|
||||
|
@ApiModelProperty("监管审批意见") |
||||
|
private String purchaseRemarks; // 监管审批意见
|
||||
|
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
||||
|
private Integer bankState; // 银行0未审核,1审核通过,2审核不通过
|
||||
|
@ApiModelProperty("银行审批意见") |
||||
|
private String bankRemarks; // 银行审批意见
|
||||
|
|
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierbankinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoVo <br/> |
||||
|
* Description: 供应商信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 视图数据对象", description = "供应商信息 视图数据对象") |
||||
|
public class SupplierBankInfoVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一编码") |
||||
|
private String codeUnified; // 统一编码
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; // 联系人
|
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; // 电话
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; // 地址
|
||||
|
@ApiModelProperty("银行帐户") |
||||
|
private String bankAccount; // 银行帐户
|
||||
|
@ApiModelProperty("帐号") |
||||
|
private String bankAccountNumber; // 帐号
|
||||
|
@ApiModelProperty("开户行名称") |
||||
|
private String bankName; // 开户行名称
|
||||
|
@ApiModelProperty("法人") |
||||
|
private String legalRepresentative; // 法人
|
||||
|
@ApiModelProperty("营业执照号") |
||||
|
private String businessLicenseNo; // 营业执照号
|
||||
|
@ApiModelProperty("监管审核状态0待审核1为通过2为拒绝") |
||||
|
private Integer purchaseRequisition; // 监管审核状态0待审核1为通过2为拒绝
|
||||
|
@ApiModelProperty("监管审批意见") |
||||
|
private String purchaseRemarks; // 监管审批意见
|
||||
|
@ApiModelProperty("银行0未审核,1审核通过,2审核不通过") |
||||
|
private Integer bankState; // 银行0未审核,1审核通过,2审核不通过
|
||||
|
@ApiModelProperty("银行审批意见") |
||||
|
private String bankRemarks; // 银行审批意见
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
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: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfo <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:48 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息", description = "供应商信息") |
||||
|
@TableName("supplier_contract_info") |
||||
|
public class SupplierContractInfo extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; // 合同编号
|
||||
|
@ApiModelProperty("合同有效期") |
||||
|
private String contractValidity; // 合同有效期
|
||||
|
@ApiModelProperty("签署部门") |
||||
|
private String signingDepartment; // 签署部门
|
||||
|
@ApiModelProperty("签署人") |
||||
|
private String signatory; // 签署人
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handledBy; // 经办人
|
||||
|
@ApiModelProperty("签署组织") |
||||
|
private String signingOrganization; // 签署组织
|
||||
|
@ApiModelProperty("合同金额") |
||||
|
private String contractPrice; // 合同金额
|
||||
|
@ApiModelProperty("供应商sid") |
||||
|
private String supplierSid; // 供应商sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoVo <br/> |
||||
|
* Description: 供应商信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 视图数据详情", description = "供应商信息 视图数据详情") |
||||
|
public class SupplierContractInfoDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; // 合同编号
|
||||
|
@ApiModelProperty("合同有效期") |
||||
|
private String contractValidity; // 合同有效期
|
||||
|
@ApiModelProperty("签署部门") |
||||
|
private String signingDepartment; // 签署部门
|
||||
|
@ApiModelProperty("签署人") |
||||
|
private String signatory; // 签署人
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handledBy; // 经办人
|
||||
|
@ApiModelProperty("签署组织") |
||||
|
private String signingOrganization; // 签署组织
|
||||
|
@ApiModelProperty("合同金额") |
||||
|
private String contractPrice; // 合同金额
|
||||
|
@ApiModelProperty("供应商sid") |
||||
|
private String supplierSid; // 供应商sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoDto.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto <br/> |
||||
|
* Description: 供应商信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:48 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 数据传输对象", description = "供应商信息 数据传输对象") |
||||
|
public class SupplierContractInfoDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; // 合同编号
|
||||
|
@ApiModelProperty("合同有效期") |
||||
|
private String contractValidity; // 合同有效期
|
||||
|
@ApiModelProperty("签署部门") |
||||
|
private String signingDepartment; // 签署部门
|
||||
|
@ApiModelProperty("签署人") |
||||
|
private String signatory; // 签署人
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handledBy; // 经办人
|
||||
|
@ApiModelProperty("签署组织") |
||||
|
private String signingOrganization; // 签署组织
|
||||
|
@ApiModelProperty("合同金额") |
||||
|
private String contractPrice; // 合同金额
|
||||
|
@ApiModelProperty("供应商sid") |
||||
|
private String supplierSid; // 供应商sid
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
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.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoFeign <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:48 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "供应商信息") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-SupplierContractInfo", |
||||
|
name = "supervise", |
||||
|
path = "v1/suppliercontractinfo", |
||||
|
fallback = SupplierContractInfoFeignFallback.class) |
||||
|
public interface SupplierContractInfoFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<SupplierContractInfoVo>> listPage(@RequestBody PagerQuery<SupplierContractInfoQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody SupplierContractInfoDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<SupplierContractInfoDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoFeignFallback <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class SupplierContractInfoFeignFallback implements SupplierContractInfoFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<SupplierContractInfoVo>> listPage(PagerQuery<SupplierContractInfoQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/suppliercontractinfo/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(SupplierContractInfoDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/suppliercontractinfo/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/suppliercontractinfo/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<SupplierContractInfoDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/suppliercontractinfo/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoQuery <br/> |
||||
|
* Description: 供应商信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:48 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 查询条件", description = "供应商信息 查询条件") |
||||
|
public class SupplierContractInfoQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; // 合同编号
|
||||
|
@ApiModelProperty("合同有效期") |
||||
|
private String contractValidity; // 合同有效期
|
||||
|
@ApiModelProperty("签署部门") |
||||
|
private String signingDepartment; // 签署部门
|
||||
|
@ApiModelProperty("签署人") |
||||
|
private String signatory; // 签署人
|
||||
|
@ApiModelProperty("合同金额") |
||||
|
private String contractPrice; // 合同金额
|
||||
|
@ApiModelProperty("供应商sid") |
||||
|
private String supplierSid; // 供应商sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.suppliercontractinfo; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoVo <br/> |
||||
|
* Description: 供应商信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:48 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供应商信息 视图数据对象", description = "供应商信息 视图数据对象") |
||||
|
public class SupplierContractInfoVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("合同编号") |
||||
|
private String contractNo; // 合同编号
|
||||
|
@ApiModelProperty("合同有效期") |
||||
|
private String contractValidity; // 合同有效期
|
||||
|
@ApiModelProperty("签署部门") |
||||
|
private String signingDepartment; // 签署部门
|
||||
|
@ApiModelProperty("签署人") |
||||
|
private String signatory; // 签署人
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handledBy; // 经办人
|
||||
|
@ApiModelProperty("签署组织") |
||||
|
private String signingOrganization; // 签署组织
|
||||
|
@ApiModelProperty("合同金额") |
||||
|
private String contractPrice; // 合同金额
|
||||
|
@ApiModelProperty("供应商sid") |
||||
|
private String supplierSid; // 供应商sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndex.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndex <br/> |
||||
|
* Description: 供货商编码对应表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供货商编码对应表", description = "供货商编码对应表") |
||||
|
@TableName("supplier_index") |
||||
|
public class SupplierIndex { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("编码") |
||||
|
private String code; // 编码
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一的编码") |
||||
|
private String codeUnified; // 统一的编码
|
||||
|
@ApiModelProperty("统一的名称") |
||||
|
private String nameUnified; // 统一的名称
|
||||
|
@ApiModelProperty("父类Sid") |
||||
|
private String PSid; // 父类Sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexVo <br/> |
||||
|
* Description: 供货商编码对应表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供货商编码对应表 视图数据详情", description = "供货商编码对应表 视图数据详情") |
||||
|
public class SupplierIndexDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("编码") |
||||
|
private String code; // 编码
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一的编码") |
||||
|
private String codeUnified; // 统一的编码
|
||||
|
@ApiModelProperty("统一的名称") |
||||
|
private String nameUnified; // 统一的名称
|
||||
|
@ApiModelProperty("父类Sid") |
||||
|
private String PSid; // 父类Sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexDto.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexDto <br/> |
||||
|
* Description: 供货商编码对应表 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供货商编码对应表 数据传输对象", description = "供货商编码对应表 数据传输对象") |
||||
|
public class SupplierIndexDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("编码") |
||||
|
private String code; // 编码
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一的编码") |
||||
|
private String codeUnified; // 统一的编码
|
||||
|
@ApiModelProperty("统一的名称") |
||||
|
private String nameUnified; // 统一的名称
|
||||
|
@ApiModelProperty("父类Sid") |
||||
|
private String PSid; // 父类Sid
|
||||
|
@ApiModelProperty("supplierIndexDto") |
||||
|
private List<SupplierIndexDto> list; // 父类Sid
|
||||
|
} |
@ -0,0 +1,83 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
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.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexFeign <br/> |
||||
|
* Description: 供货商编码对应表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "供货商编码对应表") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-SupplierIndex", |
||||
|
name = "supervise", |
||||
|
path = "v1/supplierindex", |
||||
|
fallback = SupplierIndexFeignFallback.class) |
||||
|
public interface SupplierIndexFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<SupplierIndexVo>> listPage(@RequestBody PagerQuery<SupplierIndexQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody SupplierIndexDto dto); |
||||
|
@ApiOperation("保存关联供应商信息-验证") |
||||
|
@PostMapping("/verification") |
||||
|
@ResponseBody |
||||
|
public ResultBean verification(@RequestBody SupplierIndexDto dto); |
||||
|
@ApiOperation("保存关联供应商信息-新增保存") |
||||
|
@PostMapping("/verificationSave") |
||||
|
@ResponseBody |
||||
|
public ResultBean verificationSave(@RequestBody SupplierIndexDto dto); |
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexFeignFallback <br/> |
||||
|
* Description: 供货商编码对应表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class SupplierIndexFeignFallback implements SupplierIndexFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<SupplierIndexVo>> listPage(PagerQuery<SupplierIndexQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/supplierindex/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(SupplierIndexDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/supplierindex/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean verification(SupplierIndexDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean verificationSave(SupplierIndexDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口supervise/supplierindex/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口supervise/supplierindex/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexQuery <br/> |
||||
|
* Description: 供货商编码对应表 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供货商编码对应表 查询条件", description = "供货商编码对应表 查询条件") |
||||
|
public class SupplierIndexQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("编码") |
||||
|
private String code; // 编码
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一的编码") |
||||
|
private String codeUnified; // 统一的编码
|
||||
|
@ApiModelProperty("统一的名称") |
||||
|
private String nameUnified; // 统一的名称
|
||||
|
@ApiModelProperty("父类Sid") |
||||
|
private String PSid; // 父类Sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.api.supplierindex; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexVo.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.api.supplierindex.SupplierIndexVo <br/> |
||||
|
* Description: 供货商编码对应表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "供货商编码对应表 视图数据对象", description = "供货商编码对应表 视图数据对象") |
||||
|
public class SupplierIndexVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("编码") |
||||
|
private String code; // 编码
|
||||
|
@ApiModelProperty("名称") |
||||
|
private String name; // 名称
|
||||
|
@ApiModelProperty("统一的编码") |
||||
|
private String codeUnified; // 统一的编码
|
||||
|
@ApiModelProperty("统一的名称") |
||||
|
private String nameUnified; // 统一的名称
|
||||
|
@ApiModelProperty("父类Sid") |
||||
|
private String PSid; // 父类Sid
|
||||
|
|
||||
|
} |
@ -1,9 +0,0 @@ |
|||||
package com.yxt.supervise.customer.biz; |
|
||||
|
|
||||
/** |
|
||||
* @Author dimengzhe |
|
||||
* @Date 2023/3/6 17:05 |
|
||||
* @Description |
|
||||
*/ |
|
||||
public class Test { |
|
||||
} |
|
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.supplierbankinfo; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfo; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoVo; |
||||
|
import org.apache.ibatis.annotations.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoMapper <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SupplierBankInfoMapper extends BaseMapper<SupplierBankInfo> { |
||||
|
|
||||
|
IPage<SupplierBankInfoVo> selectPageVo(IPage<SupplierBankInfo> page, @Param(Constants.WRAPPER) Wrapper<SupplierBankInfo> qw); |
||||
|
|
||||
|
int delBySids(@Param("list") String[] split); |
||||
|
|
||||
|
@Delete("delete from supplier_files where mainSid=#{mainSid} and type=#{type}") |
||||
|
void deleteSupplierFiles(@Param("mainSid")String sid, @Param("type") String type); |
||||
|
|
||||
|
void insertSupplierFiles(List<Map<String, String>> maps); |
||||
|
|
||||
|
@Select("select * from supplier_bank_info where sid=#{sid}") |
||||
|
SupplierBankInfo selectBySid(@Param("sid")String sid); |
||||
|
|
||||
|
@Select("select GROUP_CONCAT(url) url from supplier_files where mainSid=#{mainSid} and type=#{type}") |
||||
|
String selectSupplierFiles(@Param("mainSid")String mainSid, @Param("type") String type); |
||||
|
|
||||
|
@Select("select * from supplier_bank_info where codeUnified=#{codeUnified}") |
||||
|
SupplierBankInfo selectByCode(@Param("codeUnified") String codeUnified); |
||||
|
|
||||
|
@Insert("insert INTO supplier_index(code, name,PSid) values (#{code},#{name},#{sid})") |
||||
|
void insertSUpplierIndex( @Param("code")String code,@Param("name") String name,@Param("sid")String sid); |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoMapper"> |
||||
|
|
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoVo"> |
||||
|
SELECT * FROM supplier_bank_info <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<delete id="delBySids" > |
||||
|
delete from supplier_bank_info where sid in |
||||
|
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
||||
|
#{item} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<insert id="insertSupplierFiles"> |
||||
|
insert into supplier_files ( sid, url, mainSid, type) values |
||||
|
<foreach collection="list" item="item" index="index" separator=","> |
||||
|
( |
||||
|
#{item.sid,jdbcType=VARCHAR}, |
||||
|
#{item.url,jdbcType=VARCHAR}, |
||||
|
#{item.mainSid,jdbcType=VARCHAR}, |
||||
|
#{item.type,jdbcType=VARCHAR} |
||||
|
) |
||||
|
</foreach> |
||||
|
</insert> |
||||
|
</mapper> |
@ -1,9 +1,98 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
package com.yxt.supervise.customer.biz.supplierbankinfo; |
package com.yxt.supervise.customer.biz.supplierbankinfo; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.*; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto; |
||||
|
import com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
/** |
/** |
||||
* @Author dimengzhe |
* Project: supervise(supervise) <br/> |
||||
* @Date 2023/3/7 9:00 |
* File: SupplierBankInfoFeignFallback.java <br/> |
||||
* @Description |
* Class: com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoRest <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
*/ |
*/ |
||||
public class SupplierBankInfoRest { |
@Api(tags = "供应商信息") |
||||
|
@RestController("com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoRest") |
||||
|
@RequestMapping("v1/supplierbankinfo") |
||||
|
public class SupplierBankInfoRest implements SupplierBankInfoFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private SupplierBankInfoService supplierBankInfoService; |
||||
|
@Autowired |
||||
|
private SupplierContractInfoService supplierContractInfoService; |
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SupplierBankInfoVo>> listPage(@RequestBody PagerQuery<SupplierBankInfoQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SupplierBankInfoVo> pv = supplierBankInfoService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SupplierBankInfoDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierBankInfoService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierBankInfoService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SupplierBankInfoDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SupplierBankInfoDetailsVo vo = supplierBankInfoService.fetchDetailsVoBySid(sid); |
||||
|
SupplierContractInfoDto supplierContractInfo=supplierContractInfoService.fetchByMainSid(sid); |
||||
|
vo.setSupplierContractInfoDto(supplierContractInfo); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
} |
} |
||||
|
@ -0,0 +1,216 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.supplierbankinfo; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.*; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto; |
||||
|
import com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoService; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(supervise) <br/> |
||||
|
* File: SupplierBankInfoService.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoService <br/> |
||||
|
* Description: 供应商信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-12 22:02:22 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SupplierBankInfoService extends MybatisBaseService<SupplierBankInfoMapper, SupplierBankInfo> { |
||||
|
@Resource |
||||
|
private SupplierContractInfoService supplierContractInfoService; |
||||
|
private QueryWrapper<SupplierBankInfo> createQueryWrapper(SupplierBankInfoQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SupplierBankInfo> qw = new QueryWrapper<>(); |
||||
|
|
||||
|
if (StringUtils.isNotBlank(query.getCodeUnified())) { |
||||
|
qw.like("codeUnified", query.getCodeUnified()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getName())) { |
||||
|
qw.like("name", query.getName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getContacts())) { |
||||
|
qw.like("contacts", query.getContacts()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getLegalRepresentative())) { |
||||
|
qw.like("legalRepresentative", query.getLegalRepresentative()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getBusinessLicenseNo())) { |
||||
|
qw.like("businessLicenseNo", query.getBusinessLicenseNo()); |
||||
|
}if (StringUtils.isNotBlank(query.getBankAccountNumber())) { |
||||
|
qw.like("bankAccountNumber", query.getBankAccountNumber()); |
||||
|
} |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SupplierBankInfoVo> listPageVo(PagerQuery<SupplierBankInfoQuery> pq) { |
||||
|
SupplierBankInfoQuery query = pq.getParams(); |
||||
|
QueryWrapper<SupplierBankInfo> qw = createQueryWrapper(query); |
||||
|
IPage<SupplierBankInfo> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SupplierBankInfoVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SupplierBankInfoVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SupplierBankInfoDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SupplierBankInfoDto dto){ |
||||
|
SupplierBankInfo entity = new SupplierBankInfo(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
baseMapper.insertSUpplierIndex(entity.getName(),entity.getCodeUnified(),entity.getSid()); |
||||
|
baseMapper.deleteSupplierFiles(entity.getSid(),"1"); |
||||
|
String[] businessLicenseFiles = dto.getBusinessLicenseFiles(); |
||||
|
if(businessLicenseFiles!=null){ |
||||
|
List<Map<String,String>> maps=new ArrayList<>(); |
||||
|
for(String s:businessLicenseFiles){ |
||||
|
Map<String,String>m=new HashMap<>(); |
||||
|
m.put("mainSid",entity.getSid()); |
||||
|
m.put("url",s); |
||||
|
m.put("type","1"); |
||||
|
m.put("sid", UUID.randomUUID().toString()); |
||||
|
maps.add(m); |
||||
|
} |
||||
|
if(maps.size()>0){ |
||||
|
baseMapper.insertSupplierFiles(maps); |
||||
|
} |
||||
|
} |
||||
|
baseMapper.deleteSupplierFiles(entity.getSid(),"2"); |
||||
|
String[] contractFiles = dto.getContractFiles(); |
||||
|
if(contractFiles!=null){ |
||||
|
List<Map<String,String>> maps=new ArrayList<>(); |
||||
|
for(String s:contractFiles){ |
||||
|
Map<String,String>m=new HashMap<>(); |
||||
|
m.put("mainSid",entity.getSid()); |
||||
|
m.put("url",s); |
||||
|
m.put("type","2"); |
||||
|
m.put("sid", UUID.randomUUID().toString()); |
||||
|
maps.add(m); |
||||
|
} |
||||
|
if(maps.size()>0){ |
||||
|
baseMapper.insertSupplierFiles(maps); |
||||
|
} |
||||
|
} |
||||
|
SupplierContractInfoDto supplierContractInfoDto = dto.getSupplierContractInfoDto(); |
||||
|
supplierContractInfoDto.setSupplierSid(entity.getSid()); |
||||
|
supplierContractInfoService.saveOrUpdateDto(supplierContractInfoDto); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SupplierBankInfoDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SupplierBankInfo entity = baseMapper.selectBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
baseMapper.deleteSupplierFiles(entity.getSid(),"1"); |
||||
|
String[] businessLicenseFiles = dto.getBusinessLicenseFiles(); |
||||
|
if(businessLicenseFiles!=null){ |
||||
|
List<Map<String,String>> maps=new ArrayList<>(); |
||||
|
for(String s:businessLicenseFiles){ |
||||
|
Map<String,String>m=new HashMap<>(); |
||||
|
m.put("mainSid",entity.getSid()); |
||||
|
m.put("url",s); |
||||
|
m.put("type","1"); |
||||
|
m.put("sid", UUID.randomUUID().toString()); |
||||
|
maps.add(m); |
||||
|
} |
||||
|
baseMapper.insertSupplierFiles(maps); |
||||
|
} |
||||
|
baseMapper.deleteSupplierFiles(entity.getSid(),"2"); |
||||
|
String[] contractFiles = dto.getContractFiles(); |
||||
|
if(contractFiles!=null){ |
||||
|
List<Map<String,String>> maps=new ArrayList<>(); |
||||
|
for(String s:contractFiles){ |
||||
|
Map<String,String>m=new HashMap<>(); |
||||
|
m.put("mainSid",entity.getSid()); |
||||
|
m.put("url",s); |
||||
|
m.put("type","2"); |
||||
|
m.put("sid", UUID.randomUUID().toString()); |
||||
|
maps.add(m); |
||||
|
} |
||||
|
baseMapper.insertSupplierFiles(maps); |
||||
|
} |
||||
|
SupplierContractInfoDto supplierContractInfoDto = dto.getSupplierContractInfoDto(); |
||||
|
supplierContractInfoDto.setSupplierSid(entity.getSid()); |
||||
|
supplierContractInfoService.saveOrUpdateDto(supplierContractInfoDto); |
||||
|
} |
||||
|
public ResultBean delBySids(String sids) { |
||||
|
ResultBean<Object> resultBean = ResultBean.fireFail(); |
||||
|
String[] split = sids.split(","); |
||||
|
int i= baseMapper.delBySids(split); |
||||
|
return resultBean.success().setData("1"); |
||||
|
} |
||||
|
public SupplierBankInfoDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SupplierBankInfo entity = baseMapper.selectBySid(sid); |
||||
|
SupplierBankInfoDetailsVo vo = new SupplierBankInfoDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
String s1=baseMapper.selectSupplierFiles(sid,"1"); |
||||
|
if(StringUtils.isNotBlank(s1)){ |
||||
|
vo.setBusinessLicenseFiles(s1.split(",")); |
||||
|
}else{ |
||||
|
vo.setBusinessLicenseFiles(new String[]{}); |
||||
|
} |
||||
|
|
||||
|
String s2=baseMapper.selectSupplierFiles(sid,"2"); |
||||
|
if(StringUtils.isNotBlank(s2)){ |
||||
|
vo.setContractFiles(s2.split(",")); |
||||
|
}else{ |
||||
|
vo.setContractFiles(new String[]{}); |
||||
|
} |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public SupplierBankInfo selectByCode(String codeUnified) { |
||||
|
return baseMapper.selectByCode(codeUnified); |
||||
|
} |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.suppliercontractinfo; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfo; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoDto; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoVo; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoMapper <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SupplierContractInfoMapper extends BaseMapper<SupplierContractInfo> { |
||||
|
|
||||
|
IPage<SupplierContractInfoVo> selectPageVo(IPage<SupplierContractInfo> page, @Param(Constants.WRAPPER) Wrapper<SupplierContractInfo> qw); |
||||
|
|
||||
|
List<SupplierContractInfoVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<SupplierContractInfo> qw); |
||||
|
|
||||
|
@Select("select * from supplier_contract_info") |
||||
|
List<SupplierContractInfoVo> selectListVo(); |
||||
|
@Select("select * from supplier_contract_info where supplierSid=#{sid}") |
||||
|
SupplierContractInfoDto fetchByMainSid(@Param("sid") String sid); |
||||
|
@Delete("delete from supplier_files where mainSid=#{mainSid} and type=#{type}") |
||||
|
void deleteSupplierFiles(@Param("mainSid")String sid, @Param("type") String type); |
||||
|
void insertSupplierFiles(List<Map<String, String>> maps); |
||||
|
@Delete("delete from supplier_contract_info where supplierSid=#{supplierSid} ") |
||||
|
void deleteBySupplierSid(@Param("supplierSid") String supplierSid); |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoMapper"> |
||||
|
|
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoVo"> |
||||
|
SELECT * FROM supplier_contract_info <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.supervise.customer.api.suppliercontractinfo.SupplierContractInfoVo"> |
||||
|
SELECT * FROM supplier_contract_info <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
<insert id="insertSupplierFiles"> |
||||
|
insert into supplier_files ( sid, url, mainSid, type) values |
||||
|
<foreach collection="list" item="item" index="index" separator=","> |
||||
|
( |
||||
|
#{item.sid,jdbcType=VARCHAR}, |
||||
|
#{item.url,jdbcType=VARCHAR}, |
||||
|
#{item.mainSid,jdbcType=VARCHAR}, |
||||
|
#{item.type,jdbcType=VARCHAR} |
||||
|
) |
||||
|
</foreach> |
||||
|
</insert> |
||||
|
</mapper> |
@ -0,0 +1,93 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.suppliercontractinfo; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.*; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoRest <br/> |
||||
|
* Description: 供应商信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "供应商信息") |
||||
|
@RestController("com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoRest") |
||||
|
@RequestMapping("v1/suppliercontractinfo") |
||||
|
public class SupplierContractInfoRest implements SupplierContractInfoFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private SupplierContractInfoService supplierContractInfoService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SupplierContractInfoVo>> listPage(@RequestBody PagerQuery<SupplierContractInfoQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SupplierContractInfoVo> pv = supplierContractInfoService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SupplierContractInfoDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierContractInfoService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierContractInfoService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<SupplierContractInfoDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SupplierContractInfoDetailsVo vo = supplierContractInfoService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.suppliercontractinfo; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.suppliercontractinfo.*; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(监管) <br/> |
||||
|
* File: SupplierContractInfoService.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.suppliercontractinfo.SupplierContractInfoService <br/> |
||||
|
* Description: 供应商信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-21 11:53:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SupplierContractInfoService extends MybatisBaseService<SupplierContractInfoMapper, SupplierContractInfo> { |
||||
|
private QueryWrapper<SupplierContractInfo> createQueryWrapper(SupplierContractInfoQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SupplierContractInfo> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SupplierContractInfoVo> listPageVo(PagerQuery<SupplierContractInfoQuery> pq) { |
||||
|
SupplierContractInfoQuery query = pq.getParams(); |
||||
|
QueryWrapper<SupplierContractInfo> qw = createQueryWrapper(query); |
||||
|
IPage<SupplierContractInfo> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SupplierContractInfoVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SupplierContractInfoVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SupplierContractInfoDto dto){ |
||||
|
baseMapper.deleteBySupplierSid(dto.getSupplierSid()); |
||||
|
/*String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) {*/ |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
/* } |
||||
|
this.updateByDto(dto);*/ |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SupplierContractInfoDto dto){ |
||||
|
SupplierContractInfo entity = new SupplierContractInfo(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SupplierContractInfoDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SupplierContractInfo entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public SupplierContractInfoDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
SupplierContractInfo entity = fetchBySid(sid); |
||||
|
SupplierContractInfoDetailsVo vo = new SupplierContractInfoDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public SupplierContractInfoDto fetchByMainSid(String sid) { |
||||
|
return baseMapper.fetchByMainSid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.supplierindex; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.SupplierIndex; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.SupplierIndexDetailsVo; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.SupplierIndexDto; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.SupplierIndexVo; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.supplierindex.SupplierIndexMapper <br/> |
||||
|
* Description: 供货商编码对应表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface SupplierIndexMapper extends BaseMapper<SupplierIndex> { |
||||
|
|
||||
|
IPage<SupplierIndexVo> selectPageVo(IPage<SupplierIndex> page, @Param(Constants.WRAPPER) Wrapper<SupplierIndex> qw); |
||||
|
|
||||
|
@Delete("delete from supplier_index where codeUnified=#{codeUnified}") |
||||
|
void deleteSupplierIndexByCodeUnified(@Param("codeUnified") String codeUnified); |
||||
|
void batchSupplierIndexs(List<SupplierIndexDto> supplierIndexDto); |
||||
|
@Select("select * from supplier_index where codeUnified=#{codeUnified}") |
||||
|
List<SupplierIndexDetailsVo> fetchDetailsVosBycodeUnified(@Param("codeUnified") String codeUnified); |
||||
|
@Select("select * from supplier_index where code=#{code}") |
||||
|
SupplierIndex selectByCode(@Param("code") String code); |
||||
|
|
||||
|
void insertSupplierIndex(SupplierIndex si); |
||||
|
@Select("select * from supplier_index where code=#{code} or name=#{name}") |
||||
|
List<SupplierIndex> selectByCodeAndName(@Param("code") String code, @Param("name") String name); |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.customer.biz.supplierindex.SupplierIndexMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.customer.api.supplierindex.SupplierIndexVo"> |
||||
|
SELECT * FROM supplier_index <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.supervise.customer.api.supplierindex.SupplierIndexVo"> |
||||
|
SELECT * FROM supplier_index <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
<insert id="batchSupplierIndexs" parameterType="List"> |
||||
|
insert into supplier_index(code,name,codeUnified,psid) values |
||||
|
<foreach collection="list" item="item" index="index" separator=","> |
||||
|
( |
||||
|
#{item.code,jdbcType=VARCHAR}, |
||||
|
#{item.name,jdbcType=VARCHAR}, |
||||
|
#{item.codeUnified,jdbcType=VARCHAR}, |
||||
|
#{item.PSid,jdbcType=VARCHAR} |
||||
|
) |
||||
|
</foreach> |
||||
|
</insert> |
||||
|
<insert id="insertSupplierIndex" parameterType="com.yxt.supervise.customer.api.supplierindex.SupplierIndex"> |
||||
|
INSERT INTO supplier_index ( code, name, codeUnified, psid ) values |
||||
|
( |
||||
|
#{code,jdbcType=VARCHAR}, |
||||
|
#{name,jdbcType=VARCHAR}, |
||||
|
#{codeUnified,jdbcType=VARCHAR}, |
||||
|
#{PSid,jdbcType=VARCHAR} |
||||
|
) |
||||
|
</insert> |
||||
|
</mapper> |
@ -0,0 +1,147 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.customer.biz.supplierindex; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfo; |
||||
|
import com.yxt.supervise.customer.api.supplierbankinfo.SupplierBankInfoDetailsVo; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.*; |
||||
|
import com.yxt.supervise.customer.biz.supplierbankinfo.SupplierBankInfoService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: supervise(宇信通监管) <br/> |
||||
|
* File: SupplierIndexFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.customer.biz.supplierindex.SupplierIndexRest <br/> |
||||
|
* Description: 供货商编码对应表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-12-23 15:44:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "供货商编码对应表") |
||||
|
@RestController("com.yxt.supervise.customer.biz.supplierindex.SupplierIndexRest") |
||||
|
@RequestMapping("v1/supplierindex") |
||||
|
public class SupplierIndexRest implements SupplierIndexFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private SupplierIndexService supplierIndexService; |
||||
|
@Autowired |
||||
|
private SupplierBankInfoService supplierBankInfoService; |
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SupplierIndexVo>> listPage(@RequestBody PagerQuery<SupplierIndexQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<SupplierIndexVo> pv = supplierIndexService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody SupplierIndexDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierIndexService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
@Override |
||||
|
@ApiOperation("保存关联供应商信息-验证") |
||||
|
@PostMapping("/verification") |
||||
|
public ResultBean verification(@RequestBody SupplierIndexDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String code = dto.getCode(); |
||||
|
String codeUnified = dto.getCodeUnified(); |
||||
|
String name = dto.getName(); |
||||
|
List<SupplierIndex> supplierIndex = supplierIndexService.selectByCodeAndName(code,name); |
||||
|
if(supplierIndex==null||supplierIndex.size()==0){ |
||||
|
SupplierIndex si=new SupplierIndex(); |
||||
|
si.setCode(code); |
||||
|
si.setName(name); |
||||
|
si.setCodeUnified(codeUnified); |
||||
|
SupplierBankInfo supplierBankInfo=supplierBankInfoService.selectByCode(codeUnified); |
||||
|
si.setPSid(supplierBankInfo.getSid()); |
||||
|
supplierIndexService.insertSupplierIndex(si); |
||||
|
return rb.success().setMsg("操作成功!"); |
||||
|
} |
||||
|
return rb.success().setMsg("该供应商已存在关联关系,是否改变关联关系?"); |
||||
|
} |
||||
|
@Override |
||||
|
@ApiOperation("保存关联供应商信息-新增保存") |
||||
|
@PostMapping("/verificationSave") |
||||
|
@ResponseBody |
||||
|
public ResultBean verificationSave(@RequestBody SupplierIndexDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String code = dto.getCode(); |
||||
|
String codeUnified = dto.getCodeUnified(); |
||||
|
String name = dto.getName(); |
||||
|
SupplierIndex si=new SupplierIndex(); |
||||
|
si.setCode(code); |
||||
|
si.setName(name); |
||||
|
si.setCodeUnified(codeUnified); |
||||
|
SupplierBankInfo supplierBankInfo=supplierBankInfoService.selectByCode(codeUnified); |
||||
|
si.setPSid(supplierBankInfo.getSid()); |
||||
|
supplierIndexService.insertSupplierIndex(si); |
||||
|
return rb.success().setMsg("操作成功!"); |
||||
|
} |
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
supplierIndexService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
SupplierBankInfoDetailsVo supplierBankInfoDetailsVo = supplierBankInfoService.fetchDetailsVoBySid(sid); |
||||
|
List<SupplierIndexDetailsVo> vos = supplierIndexService.fetchDetailsVosBycodeUnified(supplierBankInfoDetailsVo.getCodeUnified()); |
||||
|
Map<String,Object> vo=new HashMap<>(); |
||||
|
vo.put("codeUnified",supplierBankInfoDetailsVo.getCodeUnified()); |
||||
|
vo.put("name",supplierBankInfoDetailsVo.getName()); |
||||
|
vo.put("legalRepresentative",supplierBankInfoDetailsVo.getLegalRepresentative()); |
||||
|
vo.put("businessLicenseNo",supplierBankInfoDetailsVo.getBusinessLicenseNo()); |
||||
|
vo.put("psid",supplierBankInfoDetailsVo.getSid()); |
||||
|
vo.put("list",vos); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,107 @@ |
|||||
|
package com.yxt.supervise.customer.biz.supplierindex; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.customer.api.supplierindex.*; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
@Service |
||||
|
public class SupplierIndexService extends MybatisBaseService<SupplierIndexMapper, SupplierIndex> { |
||||
|
|
||||
|
private static Map<String, String> cacheCodeMap = null; |
||||
|
|
||||
|
public String unifiedCode(String code) { |
||||
|
if (cacheCodeMap == null) |
||||
|
cacheCodeMap = initCacheCodeMap(); |
||||
|
return cacheCodeMap.get(code); |
||||
|
} |
||||
|
|
||||
|
private Map<String, String> initCacheCodeMap() { |
||||
|
Map<String, String> map = new HashMap<>(); |
||||
|
List<SupplierIndex> allList = this.list(); |
||||
|
allList.forEach(entity -> map.put(entity.getCode(), entity.getCodeUnified())); |
||||
|
return map; |
||||
|
} |
||||
|
|
||||
|
public SupplierIndexDetailsVo fetchDetailsVoBySid(String sid) { |
||||
|
SupplierIndex entity = fetchBySid(sid); |
||||
|
SupplierIndexDetailsVo vo = new SupplierIndexDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public List<SupplierIndexDetailsVo> fetchDetailsVosBycodeUnified(String codeUnified) { |
||||
|
return baseMapper.fetchDetailsVosBycodeUnified(codeUnified); |
||||
|
} |
||||
|
|
||||
|
public SupplierIndex selectByCode(String code) { |
||||
|
return baseMapper.selectByCode(code); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<SupplierIndex> createQueryWrapper(SupplierIndexQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<SupplierIndex> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<SupplierIndexVo> listPageVo(PagerQuery<SupplierIndexQuery> pq) { |
||||
|
SupplierIndexQuery query = pq.getParams(); |
||||
|
QueryWrapper<SupplierIndex> qw = createQueryWrapper(query); |
||||
|
IPage<SupplierIndex> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<SupplierIndexVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<SupplierIndexVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(SupplierIndexDto dto) { |
||||
|
String dtoSid = dto.getSid(); |
||||
|
List<SupplierIndexDto> supplierIndexDto = dto.getList(); |
||||
|
baseMapper.deleteSupplierIndexByCodeUnified(dto.getCodeUnified()); |
||||
|
supplierIndexDto.forEach(s -> { |
||||
|
s.setPSid(dtoSid); |
||||
|
}); |
||||
|
if (supplierIndexDto.size() > 0) { |
||||
|
baseMapper.batchSupplierIndexs(supplierIndexDto); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(SupplierIndexDto dto) { |
||||
|
SupplierIndex entity = new SupplierIndex(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(SupplierIndexDto dto) { |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
SupplierIndex entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public void insertSupplierIndex(SupplierIndex si) { |
||||
|
baseMapper.insertSupplierIndex(si); |
||||
|
} |
||||
|
|
||||
|
public List<SupplierIndex> selectByCodeAndName(String code, String name) { |
||||
|
return baseMapper.selectByCodeAndName(code, name); |
||||
|
} |
||||
|
|
||||
|
public static void clearCache() { |
||||
|
cacheCodeMap = null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue