
11 changed files with 1155 additions and 1 deletions
@ -0,0 +1,212 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscription.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscription <br/> |
||||
|
* Description: 厂家认款表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "厂家认款表", description = "厂家认款表") |
||||
|
@TableName("base_manufactor_subscription") |
||||
|
public class BaseManufactorSubscription extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("打款状态") |
||||
|
private String paymentState; // 打款状态
|
||||
|
|
||||
|
@ApiModelProperty("打款金额") |
||||
|
private String paymentMoney; // 打款金额
|
||||
|
|
||||
|
@ApiModelProperty("排产申请编号") |
||||
|
private String proSchAppNo; // 排产申请编号
|
||||
|
|
||||
|
@ApiModelProperty("认款日期") |
||||
|
private String subscriptionDate; // 认款日期
|
||||
|
|
||||
|
@ApiModelProperty("认款人") |
||||
|
private String subscriptionPeo; // 认款人
|
||||
|
|
||||
|
@ApiModelProperty("见证材料") |
||||
|
private String witMatUrl; // 见证材料
|
||||
|
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
|
||||
|
@ApiModelProperty("使用组织名称") |
||||
|
private String useOrgName; // 使用组织名称
|
||||
|
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
@ApiModelProperty("创建组织名称") |
||||
|
private String createOrgName; // 创建组织名称
|
||||
|
|
||||
|
/** |
||||
|
* @return 打款状态 |
||||
|
*/ |
||||
|
public String getPaymentState(){ |
||||
|
return paymentState; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param paymentState 打款状态 to set |
||||
|
*/ |
||||
|
public void setPaymentState(String paymentState){ |
||||
|
this.paymentState = paymentState; |
||||
|
} |
||||
|
/** |
||||
|
* @return 打款金额 |
||||
|
*/ |
||||
|
public String getPaymentMoney(){ |
||||
|
return paymentMoney; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param paymentMoney 打款金额 to set |
||||
|
*/ |
||||
|
public void setPaymentMoney(String paymentMoney){ |
||||
|
this.paymentMoney = paymentMoney; |
||||
|
} |
||||
|
/** |
||||
|
* @return 排产申请编号 |
||||
|
*/ |
||||
|
public String getProSchAppNo(){ |
||||
|
return proSchAppNo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param proSchAppNo 排产申请编号 to set |
||||
|
*/ |
||||
|
public void setProSchAppNo(String proSchAppNo){ |
||||
|
this.proSchAppNo = proSchAppNo; |
||||
|
} |
||||
|
/** |
||||
|
* @return 认款日期 |
||||
|
*/ |
||||
|
public String getSubscriptionDate(){ |
||||
|
return subscriptionDate; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param subscriptionDate 认款日期 to set |
||||
|
*/ |
||||
|
public void setSubscriptionDate(String subscriptionDate){ |
||||
|
this.subscriptionDate = subscriptionDate; |
||||
|
} |
||||
|
/** |
||||
|
* @return 认款人 |
||||
|
*/ |
||||
|
public String getSubscriptionPeo(){ |
||||
|
return subscriptionPeo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param subscriptionPeo 认款人 to set |
||||
|
*/ |
||||
|
public void setSubscriptionPeo(String subscriptionPeo){ |
||||
|
this.subscriptionPeo = subscriptionPeo; |
||||
|
} |
||||
|
/** |
||||
|
* @return 见证材料 |
||||
|
*/ |
||||
|
public String getWitMatUrl(){ |
||||
|
return witMatUrl; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param witMatUrl 见证材料 to set |
||||
|
*/ |
||||
|
public void setWitMatUrl(String witMatUrl){ |
||||
|
this.witMatUrl = witMatUrl; |
||||
|
} |
||||
|
/** |
||||
|
* @return 使用组织sid |
||||
|
*/ |
||||
|
public String getUseOrgSid(){ |
||||
|
return useOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param useOrgSid 使用组织sid to set |
||||
|
*/ |
||||
|
public void setUseOrgSid(String useOrgSid){ |
||||
|
this.useOrgSid = useOrgSid; |
||||
|
} |
||||
|
/** |
||||
|
* @return 使用组织名称 |
||||
|
*/ |
||||
|
public String getUseOrgName(){ |
||||
|
return useOrgName; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param useOrgName 使用组织名称 to set |
||||
|
*/ |
||||
|
public void setUseOrgName(String useOrgName){ |
||||
|
this.useOrgName = useOrgName; |
||||
|
} |
||||
|
/** |
||||
|
* @return 创建组织sid |
||||
|
*/ |
||||
|
public String getCreateOrgSid(){ |
||||
|
return createOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param createOrgSid 创建组织sid to set |
||||
|
*/ |
||||
|
public void setCreateOrgSid(String createOrgSid){ |
||||
|
this.createOrgSid = createOrgSid; |
||||
|
} |
||||
|
/** |
||||
|
* @return 创建组织名称 |
||||
|
*/ |
||||
|
public String getCreateOrgName(){ |
||||
|
return createOrgName; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param createOrgName 创建组织名称 to set |
||||
|
*/ |
||||
|
public void setCreateOrgName(String createOrgName){ |
||||
|
this.createOrgName = createOrgName; |
||||
|
} |
||||
|
} |
@ -0,0 +1,221 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionDto.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionDto <br/> |
||||
|
* Description: 厂家认款表 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "厂家认款表 数据传输对象", description = "厂家认款表 数据传输对象") |
||||
|
public class BaseManufactorSubscriptionDto implements Dto { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("打款状态") |
||||
|
private String paymentState; // 打款状态
|
||||
|
|
||||
|
@ApiModelProperty("打款金额") |
||||
|
private String paymentMoney; // 打款金额
|
||||
|
|
||||
|
@ApiModelProperty("排产申请编号") |
||||
|
private String proSchAppNo; // 排产申请编号
|
||||
|
|
||||
|
@ApiModelProperty("认款日期") |
||||
|
private String subscriptionDate; // 认款日期
|
||||
|
|
||||
|
@ApiModelProperty("认款人") |
||||
|
private String subscriptionPeo; // 认款人
|
||||
|
|
||||
|
@ApiModelProperty("见证材料") |
||||
|
private String witMatUrl; // 见证材料
|
||||
|
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
|
||||
|
@ApiModelProperty("使用组织名称") |
||||
|
private String useOrgName; // 使用组织名称
|
||||
|
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
|
||||
|
@ApiModelProperty("创建组织名称") |
||||
|
private String createOrgName; // 创建组织名称
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @return 打款状态 |
||||
|
*/ |
||||
|
public String getPaymentState(){ |
||||
|
return paymentState; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param paymentState 打款状态 to set |
||||
|
*/ |
||||
|
public void setPaymentState(String paymentState){ |
||||
|
this.paymentState = paymentState; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 打款金额 |
||||
|
*/ |
||||
|
public String getPaymentMoney(){ |
||||
|
return paymentMoney; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param paymentMoney 打款金额 to set |
||||
|
*/ |
||||
|
public void setPaymentMoney(String paymentMoney){ |
||||
|
this.paymentMoney = paymentMoney; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 排产申请编号 |
||||
|
*/ |
||||
|
public String getProSchAppNo(){ |
||||
|
return proSchAppNo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param proSchAppNo 排产申请编号 to set |
||||
|
*/ |
||||
|
public void setProSchAppNo(String proSchAppNo){ |
||||
|
this.proSchAppNo = proSchAppNo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 认款日期 |
||||
|
*/ |
||||
|
public String getSubscriptionDate(){ |
||||
|
return subscriptionDate; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param subscriptionDate 认款日期 to set |
||||
|
*/ |
||||
|
public void setSubscriptionDate(String subscriptionDate){ |
||||
|
this.subscriptionDate = subscriptionDate; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 认款人 |
||||
|
*/ |
||||
|
public String getSubscriptionPeo(){ |
||||
|
return subscriptionPeo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param subscriptionPeo 认款人 to set |
||||
|
*/ |
||||
|
public void setSubscriptionPeo(String subscriptionPeo){ |
||||
|
this.subscriptionPeo = subscriptionPeo; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 见证材料 |
||||
|
*/ |
||||
|
public String getWitMatUrl(){ |
||||
|
return witMatUrl; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param witMatUrl 见证材料 to set |
||||
|
*/ |
||||
|
public void setWitMatUrl(String witMatUrl){ |
||||
|
this.witMatUrl = witMatUrl; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 使用组织sid |
||||
|
*/ |
||||
|
public String getUseOrgSid(){ |
||||
|
return useOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param useOrgSid 使用组织sid to set |
||||
|
*/ |
||||
|
public void setUseOrgSid(String useOrgSid){ |
||||
|
this.useOrgSid = useOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 使用组织名称 |
||||
|
*/ |
||||
|
public String getUseOrgName(){ |
||||
|
return useOrgName; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param useOrgName 使用组织名称 to set |
||||
|
*/ |
||||
|
public void setUseOrgName(String useOrgName){ |
||||
|
this.useOrgName = useOrgName; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 创建组织sid |
||||
|
*/ |
||||
|
public String getCreateOrgSid(){ |
||||
|
return createOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param createOrgSid 创建组织sid to set |
||||
|
*/ |
||||
|
public void setCreateOrgSid(String createOrgSid){ |
||||
|
this.createOrgSid = createOrgSid; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return 创建组织名称 |
||||
|
*/ |
||||
|
public String getCreateOrgName(){ |
||||
|
return createOrgName; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @param createOrgName 创建组织名称 to set |
||||
|
*/ |
||||
|
public void setCreateOrgName(String createOrgName){ |
||||
|
this.createOrgName = createOrgName; |
||||
|
} |
||||
|
} |
@ -0,0 +1,95 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiImplicitParam; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionFeign <br/> |
||||
|
* Description: 厂家认款表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "厂家认款表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-base-BaseManufactorSubscription", |
||||
|
name = "anrui-base", |
||||
|
path = "v1/basemanufactorsubscription", |
||||
|
fallback = BaseManufactorSubscriptionFeignFallback.class) |
||||
|
public interface BaseManufactorSubscriptionFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<BaseManufactorSubscriptionVo>> listPage(@RequestBody PagerQuery<BaseManufactorSubscriptionQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody BaseManufactorSubscriptionDto dto); |
||||
|
|
||||
|
@ApiOperation("修改保存") |
||||
|
@PostMapping("/update/{sid}") |
||||
|
public ResultBean update(@RequestBody BaseManufactorSubscriptionDto dto, @PathVariable("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("厂家认款通过") |
||||
|
@PostMapping("/adopt/{sid}/{remarks}") |
||||
|
public ResultBean adopt(@PathVariable("sid") String sid,@PathVariable("remarks") String remarks); |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<BaseManufactorSubscriptionVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
/** |
||||
|
* 厂商认款见证材料上传 |
||||
|
* |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("厂商认款见证材料上传") |
||||
|
@ApiImplicitParam(name = "file", value = "文件", required = true, dataType = "MultipartFile", dataTypeClass = MultipartFile.class) |
||||
|
@PostMapping("/pictureUpload") |
||||
|
public ResultBean pictureUpload(@RequestParam("sid") String sid, @RequestParam(value = "file") MultipartFile file); |
||||
|
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionFeignFallback <br/> |
||||
|
* Description: 厂家认款表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class BaseManufactorSubscriptionFeignFallback implements BaseManufactorSubscriptionFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<BaseManufactorSubscriptionVo>> listPage(PagerQuery<BaseManufactorSubscriptionQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口manufactor_subscription/basemanufactorsubscription/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(BaseManufactorSubscriptionDto dto) { |
||||
|
return ResultBean.fireFail().setMsg("接口manufactor_subscription/basemanufactorsubscription/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean update(BaseManufactorSubscriptionDto dto, String sid) { |
||||
|
return ResultBean.fireFail().setMsg("接口manufactor_subscription/basemanufactorsubscription/update无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean adopt(String sid,String remarks) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids(String[] sids) { |
||||
|
return ResultBean.fireFail().setMsg("接口manufactor_subscription/basemanufactorsubscription/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<BaseManufactorSubscriptionVo> fetchBySid(String sid) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口manufactor_subscription/basemanufactorsubscription/fetchBySid无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean pictureUpload(String sid, MultipartFile file) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionQuery <br/> |
||||
|
* Description: 厂家认款表 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "厂家认款表 查询条件", description = "厂家认款表 查询条件") |
||||
|
@Data |
||||
|
public class BaseManufactorSubscriptionQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("状态") |
||||
|
private String state; // 状态
|
||||
|
|
||||
|
@ApiModelProperty("打款状态") |
||||
|
private String paymentState; // 打款状态
|
||||
|
|
||||
|
@ApiModelProperty("排产申请编号") |
||||
|
private String proSchAppNo; // 排产申请编号
|
||||
|
|
||||
|
@ApiModelProperty("认款开始日期") |
||||
|
private String subscriptionStartDate; // 认款开始日期
|
||||
|
|
||||
|
@ApiModelProperty("认款结束日期") |
||||
|
private String subscriptionEndDate; // 认款结束日期
|
||||
|
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.basemanufactorsubscription; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionVo.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo <br/> |
||||
|
* Description: 厂家认款表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "厂家认款表 视图数据对象", description = "厂家认款表 视图数据对象") |
||||
|
@Data |
||||
|
public class BaseManufactorSubscriptionVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; // sid
|
||||
|
@ApiModelProperty("状态") |
||||
|
private String state; // 状态
|
||||
|
@ApiModelProperty("打款状态") |
||||
|
private String paymentState; // 打款状态
|
||||
|
@ApiModelProperty("排产申请编号") |
||||
|
private String proSchAppNo; // 排产申请编号
|
||||
|
@ApiModelProperty("认款日期") |
||||
|
private String subscriptionDate; // 认款日期
|
||||
|
@ApiModelProperty("认款人") |
||||
|
private String subscriptionPeo; // 认款人
|
||||
|
@ApiModelProperty("见证材料") |
||||
|
private String witMatUrl; // 见证材料
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; // 备注
|
||||
|
@ApiModelProperty("是否显示通过(0不显示,1显示)") |
||||
|
private String isShowAdopt; // 是否显示通过
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.biz.basemanufactorsubscription; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscription; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo; |
||||
|
import org.apache.ibatis.annotations.Update; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.base.biz.basemanufactorsubscription.BaseManufactorSubscriptionMapper <br/> |
||||
|
* Description: 厂家认款表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface BaseManufactorSubscriptionMapper extends BaseMapper<BaseManufactorSubscription> { |
||||
|
|
||||
|
//@Update("update base_manufactor_subscription set name=#{msg} where id=#{id}")
|
||||
|
//IPage<BaseManufactorSubscriptionVo> voPage(IPage<BaseManufactorSubscription> page, @Param(Constants.WRAPPER) QueryWrapper<BaseManufactorSubscription> qw);
|
||||
|
|
||||
|
IPage<BaseManufactorSubscriptionVo> selectPageVo(IPage<BaseManufactorSubscription> page, @Param(Constants.WRAPPER) Wrapper<BaseManufactorSubscription> qw); |
||||
|
|
||||
|
List<BaseManufactorSubscriptionVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BaseManufactorSubscription> qw); |
||||
|
|
||||
|
@Select("select * from base_manufactor_subscription") |
||||
|
List<BaseManufactorSubscriptionVo> selectListVo(); |
||||
|
|
||||
|
@Update("update base_manufactor_subscription set state = 1,remarks = #{remarks} where sid = #{sid}") |
||||
|
int adopt(@Param("sid") String sid,@Param("remarks") String remarks); |
||||
|
|
||||
|
@Update("update base_manufactor_subscription set witMatUrl = #{filePath} where sid = #{sid}") |
||||
|
int updateWitMatUrl(@Param("filePath") String filePath,@Param("sid") String sid); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.anrui.base.biz.basemanufactorsubscription.BaseManufactorSubscriptionMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
||||
|
SELECT * FROM base_manufactor_subscription <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo"> |
||||
|
SELECT * FROM base_manufactor_subscription <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,145 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.biz.basemanufactorsubscription; |
||||
|
|
||||
|
import com.yxt.anrui.base.api.basevehiclemodelappendix.BaseVehicleModelAppendix; |
||||
|
import com.yxt.anrui.base.api.commonappendix.CommonAppendix; |
||||
|
import com.yxt.anrui.base.api.commonappendix.CommonAttachTypeEnum; |
||||
|
import com.yxt.anrui.base.biz.commonappendix.CommonAppendixService; |
||||
|
import com.yxt.common.base.config.component.FileUploadComponent; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.FileUploadResult; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscription; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionQuery; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionDto; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionFeign; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.base.biz.basemanufactorsubscription.BaseManufactorSubscriptionRest <br/> |
||||
|
* Description: 厂家认款表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "厂家认款表") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/basemanufactorsubscription") |
||||
|
public class BaseManufactorSubscriptionRest implements BaseManufactorSubscriptionFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private BaseManufactorSubscriptionService baseManufactorSubscriptionService; |
||||
|
@Autowired |
||||
|
private FileUploadComponent fileUploadComponent; |
||||
|
@Autowired |
||||
|
private CommonAppendixService commonAppendixService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<BaseManufactorSubscriptionVo>> listPage(@RequestBody PagerQuery<BaseManufactorSubscriptionQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<BaseManufactorSubscriptionVo> pv = baseManufactorSubscriptionService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody BaseManufactorSubscriptionDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
baseManufactorSubscriptionService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("修改保存") |
||||
|
@PostMapping("/update/{sid}") |
||||
|
public ResultBean update(@RequestBody BaseManufactorSubscriptionDto dto, @PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
baseManufactorSubscriptionService.updateBySid(dto.toMap(),sid); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean adopt(String sid,String remarks) { |
||||
|
return baseManufactorSubscriptionService.adopt(sid,remarks); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
baseManufactorSubscriptionService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<BaseManufactorSubscriptionVo> fetchBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BaseManufactorSubscriptionVo vo = null; |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean pictureUpload(String sid, MultipartFile file) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
if (file == null || file.isEmpty()) { |
||||
|
return rb.setMsg("文件为空"); |
||||
|
} |
||||
|
rb = fileUploadComponent.uploadFile(file); |
||||
|
FileUploadResult data = (FileUploadResult)rb.getData(); |
||||
|
commonAppendixService.deleteFiles(sid); |
||||
|
CommonAppendix commonAppendix = new CommonAppendix(); |
||||
|
commonAppendix.setLinkSid(sid); |
||||
|
commonAppendix.setFilePath(data.getFilePath()); |
||||
|
commonAppendix.setAttachType(CommonAttachTypeEnum.MANUFACTOR_SUB.getAttachType()); |
||||
|
commonAppendix.setFileName(data.getSourceFileName()); |
||||
|
commonAppendix.setFileSize(data.getSize()); |
||||
|
commonAppendix.setFileType(data.getSuffixName()); |
||||
|
commonAppendixService.save(commonAppendix); |
||||
|
baseManufactorSubscriptionService.updateWitMatUrl(data.getFilePath(),sid); |
||||
|
return rb.success().setMsg("上传成功"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,168 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.biz.basemanufactorsubscription; |
||||
|
|
||||
|
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.config.component.FileUploadComponent; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscription; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionQuery; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionVo; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionDto; |
||||
|
import com.yxt.anrui.base.api.basemanufactorsubscription.BaseManufactorSubscriptionFeign; |
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: manufactor_subscription(厂商认款) <br/> |
||||
|
* File: BaseManufactorSubscriptionService.java <br/> |
||||
|
* Class: com.yxt.anrui.base.biz.basemanufactorsubscription.BaseManufactorSubscriptionService <br/> |
||||
|
* Description: 厂家认款表 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-06-14 09:48:32 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class BaseManufactorSubscriptionService extends MybatisBaseService<BaseManufactorSubscriptionMapper, BaseManufactorSubscription> { |
||||
|
|
||||
|
@Autowired |
||||
|
private FileUploadComponent fileUploadComponent; |
||||
|
|
||||
|
public PagerVo<BaseManufactorSubscription> listPage(PagerQuery<BaseManufactorSubscriptionQuery> pq) { |
||||
|
BaseManufactorSubscriptionQuery query = pq.getParams(); |
||||
|
QueryWrapper<BaseManufactorSubscription> qw = createQueryWrapper(query); |
||||
|
IPage<BaseManufactorSubscription> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<BaseManufactorSubscription> pagging = baseMapper.selectPage(page, qw); |
||||
|
PagerVo<BaseManufactorSubscription> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<BaseManufactorSubscription> createQueryWrapper(BaseManufactorSubscriptionQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<BaseManufactorSubscription> qw = new QueryWrapper<>(); |
||||
|
|
||||
|
if (StringUtils.isNotBlank(query.getState())) { |
||||
|
qw.eq("state", query.getState()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getPaymentState())) { |
||||
|
qw.eq("paymentState", query.getPaymentState()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getProSchAppNo())) { |
||||
|
qw.like("proSchAppNo", query.getProSchAppNo()); |
||||
|
} |
||||
|
String subscriptionStartDate = query.getSubscriptionStartDate(); |
||||
|
String subscriptionEndDate = query.getSubscriptionEndDate(); |
||||
|
qw.apply(StringUtils.isNotEmpty(subscriptionStartDate), "date_format (subscriptionDate,'%Y-%m-%d') >= date_format('" + subscriptionStartDate + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotEmpty(subscriptionEndDate), "date_format (subscriptionDate,'%Y-%m-%d') <= date_format('" + subscriptionEndDate + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.eq("createOrgSid", query.getCreateOrgSid()); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<BaseManufactorSubscriptionVo> listPageVo(PagerQuery<BaseManufactorSubscriptionQuery> pq) { |
||||
|
BaseManufactorSubscriptionQuery query = pq.getParams(); |
||||
|
QueryWrapper<BaseManufactorSubscription> qw = createQueryWrapper(query); |
||||
|
IPage<BaseManufactorSubscription> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<BaseManufactorSubscriptionVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
List<BaseManufactorSubscriptionVo> records = pagging.getRecords(); |
||||
|
if (records.size() > 0) { |
||||
|
for (BaseManufactorSubscriptionVo record : records) { |
||||
|
String paymentState = record.getPaymentState(); |
||||
|
String state = record.getState(); |
||||
|
String witMatUrl = record.getWitMatUrl(); |
||||
|
if (StringUtils.isNotBlank(witMatUrl)) { |
||||
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
||||
|
witMatUrl = urlPrefix + witMatUrl; |
||||
|
record.setWitMatUrl(witMatUrl); |
||||
|
} |
||||
|
if (paymentState.equals("1") && state.equals("0")) { |
||||
|
record.setIsShowAdopt("1"); |
||||
|
} else if (paymentState.equals("2") && state.equals("0")) { |
||||
|
record.setIsShowAdopt("1"); |
||||
|
} else { |
||||
|
record.setIsShowAdopt("0"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
PagerVo<BaseManufactorSubscriptionVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public List<BaseManufactorSubscriptionVo> listAllVo(BaseManufactorSubscriptionQuery query) { |
||||
|
QueryWrapper<BaseManufactorSubscription> qw = createQueryWrapper(query); |
||||
|
return baseMapper.selectListAllVo(qw); |
||||
|
} |
||||
|
|
||||
|
public List<BaseManufactorSubscriptionVo> listVo() { |
||||
|
return baseMapper.selectListVo(); |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(BaseManufactorSubscriptionDto dto) { |
||||
|
BaseManufactorSubscription entity = new BaseManufactorSubscription(); |
||||
|
dto.fillEntity(entity); |
||||
|
this.saveOrUpdate(entity); |
||||
|
} |
||||
|
|
||||
|
public BaseManufactorSubscriptionVo fetchByIdVo(String id) { |
||||
|
BaseManufactorSubscription entity = this.fetchById(id); |
||||
|
BaseManufactorSubscriptionVo vo = new BaseManufactorSubscriptionVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public ResultBean adopt(String sid,String remarks) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
BaseManufactorSubscription baseManufactorSubscription = fetchBySid(sid); |
||||
|
String witMatUrl = baseManufactorSubscription.getWitMatUrl(); |
||||
|
if (StringUtils.isBlank(witMatUrl)) { |
||||
|
return rb.setMsg("请优先上传见证材料"); |
||||
|
} |
||||
|
int i = baseMapper.adopt(sid,remarks); |
||||
|
if (i == 0) { |
||||
|
return rb.setMsg("未通过"); |
||||
|
} |
||||
|
return rb.success().setMsg("已通过"); |
||||
|
} |
||||
|
|
||||
|
public int updateWitMatUrl(String filePath,String sid) { |
||||
|
return baseMapper.updateWitMatUrl(filePath,sid); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue