84 changed files with 1591 additions and 748 deletions
@ -0,0 +1,42 @@ |
|||
package com.yxt.anrui.fin.api.kingdee; |
|||
|
|||
public enum KingDeeBillUrl { |
|||
/* // 数据保存接口地址
|
|||
private static String Save_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save.common.kdsvc"; |
|||
//数据提交接口的地址
|
|||
private static String Submit_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Submit.common.kdsvc"; |
|||
//数据审核接口的地址
|
|||
private static String Audit_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Audit.common.kdsvc"; |
|||
//数据分配接口的地址
|
|||
private static String Allocate_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Allocate.common.kdsvc"; |
|||
//查看单据接口的地址
|
|||
private static String View_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View.common.kdsvc"; |
|||
//查询单据接口的地址
|
|||
private static String ExecuteBillQuery_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery.common.kdsvc"; |
|||
//登录,校验用户的API接口地址
|
|||
private static String Login_URL = "/k3cloud/Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc"; |
|||
*/ |
|||
|
|||
SAVE_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save.common.kdsvc","数据保存接口地址"), |
|||
SUBMIT_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Submit.common.kdsvc","数据提交接口的地址"), |
|||
AUDIT_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Audit.common.kdsvc","数据审核接口的地址"), |
|||
ALLOCATE_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Allocate.common.kdsvc","数据分配接口的地址"), |
|||
VIEW_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View.common.kdsvc","查看单据接口的地址"), |
|||
EXECUTEBILLQUERY_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery.common.kdsvc","查询单据接口的地址"), |
|||
LOGIN_URL("/k3cloud/Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc","登录,校验用户的API接口地址"); |
|||
private String URL; |
|||
private String NAME; |
|||
|
|||
KingDeeBillUrl(String URL, String NAME) { |
|||
this.URL = URL; |
|||
this.NAME = NAME; |
|||
} |
|||
|
|||
public String getURL() { |
|||
return URL; |
|||
} |
|||
|
|||
public String getNAME() { |
|||
return NAME; |
|||
} |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.yxt.anrui.fin.biz.kingdee; |
|||
|
|||
public class KingDeeConfig { |
|||
public static String sessionkey = "kdservice-sessionid"; |
|||
public static String aspnetsessionkey = "ASP.NET_SessionId"; |
|||
public static String sessionValue = ""; |
|||
public static String aspnetsessionValue = ""; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String acctID = "61dce6601125a0"; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String userName = "信息部1"; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String password = "123321"; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String userName_administrator = "administrator"; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String password_administrator = "ANrui123456."; |
|||
/** |
|||
* 登录金蝶的账户信息 |
|||
*/ |
|||
public static String lcid = "2052"; |
|||
public static String url="http://121.36.43.55" ; |
|||
} |
@ -0,0 +1,102 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebate.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebate <br/> |
|||
* Description: 专项返利表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "专项返利表", description = "专项返利表") |
|||
@TableName("scm_special_rebate") |
|||
public class ScmSpecialRebate extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("品牌sid") |
|||
private String brandSid; // 品牌sid
|
|||
@ApiModelProperty("品牌名称") |
|||
private String brandName; // 品牌名称
|
|||
@ApiModelProperty("返利类型key") |
|||
private String rebateTypeKey; // 返利类型key
|
|||
@ApiModelProperty("返利类型value") |
|||
private String rebateTypeValue; // 返利类型value
|
|||
@ApiModelProperty("返利名称") |
|||
private String rebateName; // 返利名称
|
|||
@ApiModelProperty("计算标准") |
|||
private String calculationStandard; // 计算标准
|
|||
@ApiModelProperty("预计返利") |
|||
private String estimateRebate; // 预计返利
|
|||
@ApiModelProperty("所属年月") |
|||
private String palceGenDate; // 所属年月
|
|||
@ApiModelProperty("预提日期") |
|||
private String withholdingDate; // 预提日期
|
|||
@ApiModelProperty("上传日期") |
|||
private String uploadDate; // 上传日期
|
|||
@ApiModelProperty("上传金额") |
|||
private String uploadMoney; // 上传金额
|
|||
@ApiModelProperty("二次上传日期") |
|||
private String secondaryUploadDate; // 二次上传日期
|
|||
@ApiModelProperty("二次上传金额") |
|||
private String secondaryUploadMoney; // 二次上传金额
|
|||
@ApiModelProperty("待确定金额") |
|||
private String stayDetermineMoney; // 待确定金额
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("是否调整") |
|||
private String isAdjustment; // 是否调整
|
|||
@ApiModelProperty("调整金额") |
|||
private String adjustmentMoney; // 调整金额
|
|||
@ApiModelProperty("调整说明") |
|||
private String adjustmentRemarks; // 调整说明
|
|||
@ApiModelProperty("计算方式key") |
|||
private String calculationModeKey; // 计算方式key
|
|||
@ApiModelProperty("计算方式Value") |
|||
private String calculationModeValue; // 计算方式Value
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
|
|||
} |
@ -0,0 +1,103 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo <br/> |
|||
* Description: 专项返利表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "专项返利表 视图数据详情", description = "专项返利表 视图数据详情") |
|||
public class ScmSpecialRebateDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("品牌sid") |
|||
private String brandSid; // 品牌sid
|
|||
@ApiModelProperty("品牌名称") |
|||
private String brandName; // 品牌名称
|
|||
@ApiModelProperty("返利类型key") |
|||
private String rebateTypeKey; // 返利类型key
|
|||
@ApiModelProperty("返利类型value") |
|||
private String rebateTypeValue; // 返利类型value
|
|||
@ApiModelProperty("返利名称") |
|||
private String rebateName; // 返利名称
|
|||
@ApiModelProperty("计算标准") |
|||
private String calculationStandard; // 计算标准
|
|||
@ApiModelProperty("预计返利") |
|||
private String estimateRebate; // 预计返利
|
|||
@ApiModelProperty("所属年月") |
|||
private String palceGenDate; // 所属年月
|
|||
@ApiModelProperty("预提日期") |
|||
private String withholdingDate; // 预提日期
|
|||
@ApiModelProperty("上传日期") |
|||
private String uploadDate; // 上传日期
|
|||
@ApiModelProperty("上传金额") |
|||
private String uploadMoney; // 上传金额
|
|||
@ApiModelProperty("二次上传日期") |
|||
private String secondaryUploadDate; // 二次上传日期
|
|||
@ApiModelProperty("二次上传金额") |
|||
private String secondaryUploadMoney; // 二次上传金额
|
|||
@ApiModelProperty("待确定金额") |
|||
private String stayDetermineMoney; // 待确定金额
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("是否调整") |
|||
private String isAdjustment; // 是否调整
|
|||
@ApiModelProperty("调整金额") |
|||
private String adjustmentMoney; // 调整金额
|
|||
@ApiModelProperty("调整说明") |
|||
private String adjustmentRemarks; // 调整说明
|
|||
@ApiModelProperty("计算方式key") |
|||
private String calculationModeKey; // 计算方式key
|
|||
@ApiModelProperty("计算方式Value") |
|||
private String calculationModeValue; // 计算方式Value
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
|
|||
} |
@ -0,0 +1,103 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateDto.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateDto <br/> |
|||
* Description: 专项返利表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "专项返利表 数据传输对象", description = "专项返利表 数据传输对象") |
|||
public class ScmSpecialRebateDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("品牌sid") |
|||
private String brandSid; // 品牌sid
|
|||
@ApiModelProperty("品牌名称") |
|||
private String brandName; // 品牌名称
|
|||
@ApiModelProperty("返利类型key") |
|||
private String rebateTypeKey; // 返利类型key
|
|||
@ApiModelProperty("返利类型value") |
|||
private String rebateTypeValue; // 返利类型value
|
|||
@ApiModelProperty("返利名称") |
|||
private String rebateName; // 返利名称
|
|||
@ApiModelProperty("计算标准") |
|||
private String calculationStandard; // 计算标准
|
|||
@ApiModelProperty("预计返利") |
|||
private String estimateRebate; // 预计返利
|
|||
@ApiModelProperty("所属年月") |
|||
private String palceGenDate; // 所属年月
|
|||
@ApiModelProperty("预提日期") |
|||
private String withholdingDate; // 预提日期
|
|||
@ApiModelProperty("上传日期") |
|||
private String uploadDate; // 上传日期
|
|||
@ApiModelProperty("上传金额") |
|||
private String uploadMoney; // 上传金额
|
|||
@ApiModelProperty("二次上传日期") |
|||
private String secondaryUploadDate; // 二次上传日期
|
|||
@ApiModelProperty("二次上传金额") |
|||
private String secondaryUploadMoney; // 二次上传金额
|
|||
@ApiModelProperty("待确定金额") |
|||
private String stayDetermineMoney; // 待确定金额
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("是否调整") |
|||
private String isAdjustment; // 是否调整
|
|||
@ApiModelProperty("调整金额") |
|||
private String adjustmentMoney; // 调整金额
|
|||
@ApiModelProperty("调整说明") |
|||
private String adjustmentRemarks; // 调整说明
|
|||
@ApiModelProperty("计算方式key") |
|||
private String calculationModeKey; // 计算方式key
|
|||
@ApiModelProperty("计算方式Value") |
|||
private String calculationModeValue; // 计算方式Value
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateFeign.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateFeign <br/> |
|||
* Description: 专项返利表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "专项返利表") |
|||
@FeignClient( |
|||
contextId = "anrui-scm-ScmSpecialRebate", |
|||
name = "anrui-scm", |
|||
path = "v1/scmspecialrebate", |
|||
fallback = ScmSpecialRebateFeignFallback.class) |
|||
public interface ScmSpecialRebateFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<ScmSpecialRebateVo>> listPage(@RequestBody PagerQuery<ScmSpecialRebateQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody ScmSpecialRebateDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<ScmSpecialRebateDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateFeignFallback <br/> |
|||
* Description: 专项返利表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class ScmSpecialRebateFeignFallback implements ScmSpecialRebateFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<ScmSpecialRebateVo>> listPage(PagerQuery<ScmSpecialRebateQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-scm/scmspecialrebate/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(ScmSpecialRebateDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-scm/scmspecialrebate/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-scm/scmspecialrebate/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<ScmSpecialRebateDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-scm/scmspecialrebate/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateQuery.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateQuery <br/> |
|||
* Description: 专项返利表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "专项返利表 查询条件", description = "专项返利表 查询条件") |
|||
public class ScmSpecialRebateQuery implements Query { |
|||
|
|||
@ApiModelProperty("品牌sid") |
|||
private String brandSid; // 品牌sid
|
|||
@ApiModelProperty("返利类型key") |
|||
private String rebateTypeKey; // 返利类型key
|
|||
@ApiModelProperty("返利名称") |
|||
private String rebateName; // 返利名称
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建开始日期") |
|||
private String createStartTime; // 创建开始日期
|
|||
@ApiModelProperty("创建结束日期") |
|||
private String createEndTime; // 创建结束日期
|
|||
@ApiModelProperty("状态") |
|||
private String state; // 状态
|
|||
} |
@ -0,0 +1,103 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmspecialrebate; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo <br/> |
|||
* Description: 专项返利表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "专项返利表 视图数据对象", description = "专项返利表 视图数据对象") |
|||
public class ScmSpecialRebateVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("品牌sid") |
|||
private String brandSid; // 品牌sid
|
|||
@ApiModelProperty("品牌名称") |
|||
private String brandName; // 品牌名称
|
|||
@ApiModelProperty("返利类型key") |
|||
private String rebateTypeKey; // 返利类型key
|
|||
@ApiModelProperty("返利类型value") |
|||
private String rebateTypeValue; // 返利类型value
|
|||
@ApiModelProperty("返利名称") |
|||
private String rebateName; // 返利名称
|
|||
@ApiModelProperty("计算标准") |
|||
private String calculationStandard; // 计算标准
|
|||
@ApiModelProperty("预计返利") |
|||
private String estimateRebate; // 预计返利
|
|||
@ApiModelProperty("所属年月") |
|||
private String palceGenDate; // 所属年月
|
|||
@ApiModelProperty("预提日期") |
|||
private String withholdingDate; // 预提日期
|
|||
@ApiModelProperty("上传日期") |
|||
private String uploadDate; // 上传日期
|
|||
@ApiModelProperty("上传金额") |
|||
private String uploadMoney; // 上传金额
|
|||
@ApiModelProperty("二次上传日期") |
|||
private String secondaryUploadDate; // 二次上传日期
|
|||
@ApiModelProperty("二次上传金额") |
|||
private String secondaryUploadMoney; // 二次上传金额
|
|||
@ApiModelProperty("待确定金额") |
|||
private String stayDetermineMoney; // 待确定金额
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("是否调整") |
|||
private String isAdjustment; // 是否调整
|
|||
@ApiModelProperty("调整金额") |
|||
private String adjustmentMoney; // 调整金额
|
|||
@ApiModelProperty("调整说明") |
|||
private String adjustmentRemarks; // 调整说明
|
|||
@ApiModelProperty("计算方式key") |
|||
private String calculationModeKey; // 计算方式key
|
|||
@ApiModelProperty("计算方式Value") |
|||
private String calculationModeValue; // 计算方式Value
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmspecialrebate; |
|||
|
|||
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.scm.api.scmspecialrebate.ScmSpecialRebate; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateMapper.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmspecialrebate.ScmSpecialRebateMapper <br/> |
|||
* Description: 专项返利表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface ScmSpecialRebateMapper extends BaseMapper<ScmSpecialRebate> { |
|||
|
|||
//@Update("update scm_special_rebate set name=#{msg} where id=#{id}")
|
|||
//IPage<ScmSpecialRebateVo> voPage(IPage<ScmSpecialRebate> page, @Param(Constants.WRAPPER) QueryWrapper<ScmSpecialRebate> qw);
|
|||
|
|||
IPage<ScmSpecialRebateVo> selectPageVo(IPage<ScmSpecialRebate> page, @Param(Constants.WRAPPER) Wrapper<ScmSpecialRebate> qw); |
|||
|
|||
List<ScmSpecialRebateVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<ScmSpecialRebate> qw); |
|||
|
|||
@Select("select * from scm_special_rebate") |
|||
List<ScmSpecialRebateVo> selectListVo(); |
|||
} |
@ -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.scm.biz.scmspecialrebate.ScmSpecialRebateMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo"> |
|||
SELECT * FROM scm_special_rebate <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo"> |
|||
SELECT * FROM scm_special_rebate <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmspecialrebate; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebate; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateQuery; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateDto; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateFeign; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmspecialrebate.ScmSpecialRebateRest <br/> |
|||
* Description: 专项返利表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "专项返利表") |
|||
@RestController("com.yxt.anrui.scm.biz.scmspecialrebate.ScmSpecialRebateRest") |
|||
@RequestMapping("v1/scmspecialrebate") |
|||
public class ScmSpecialRebateRest implements ScmSpecialRebateFeign { |
|||
|
|||
@Autowired |
|||
private ScmSpecialRebateService scmSpecialRebateService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<ScmSpecialRebateVo>> listPage(@RequestBody PagerQuery<ScmSpecialRebateQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<ScmSpecialRebateVo> pv = scmSpecialRebateService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody ScmSpecialRebateDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmSpecialRebateService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmSpecialRebateService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<ScmSpecialRebateDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmSpecialRebateDetailsVo vo = scmSpecialRebateService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,125 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmspecialrebate; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
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.vo.PagerVo; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebate; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateQuery; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateVo; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmspecialrebate.ScmSpecialRebateDto; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* Project: anrui-scm(专项返利管理) <br/> |
|||
* File: ScmSpecialRebateService.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmspecialrebate.ScmSpecialRebateService <br/> |
|||
* Description: 专项返利表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-08 16:11:43 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class ScmSpecialRebateService extends MybatisBaseService<ScmSpecialRebateMapper, ScmSpecialRebate> { |
|||
private QueryWrapper<ScmSpecialRebate> createQueryWrapper(ScmSpecialRebateQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<ScmSpecialRebate> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<ScmSpecialRebateVo> listPageVo(PagerQuery<ScmSpecialRebateQuery> pq) { |
|||
ScmSpecialRebateQuery query = pq.getParams(); |
|||
QueryWrapper<ScmSpecialRebate> qw = new QueryWrapper<>(); |
|||
if (StringUtils.isNotBlank(query.getBrandSid())) { |
|||
qw.eq("brandSid", query.getBrandSid()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getRebateTypeKey())) { |
|||
qw.eq("rebateTypeKey", query.getRebateTypeKey()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getRebateName())) { |
|||
qw.like("rebateName", query.getRebateName()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getState())) { |
|||
qw.eq("state", query.getState()); |
|||
} |
|||
String createStartTime = query.getCreateStartTime(); |
|||
String createEndTime = query.getCreateEndTime(); |
|||
qw.apply(StringUtils.isNotBlank(createStartTime), "date_format (createTime,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotBlank(createEndTime), "date_format (createTime,'%Y-%m-%d') <= date_format('" + createEndTime + "','%Y-%m-%d')" |
|||
); |
|||
qw.eq("createOrgSid",query.getCreateOrgSid()); |
|||
qw.orderByDesc("createTime"); |
|||
IPage<ScmSpecialRebate> page = PagerUtil.queryToPage(pq); |
|||
IPage<ScmSpecialRebateVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<ScmSpecialRebateVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(ScmSpecialRebateDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(ScmSpecialRebateDto dto){ |
|||
ScmSpecialRebate entity = new ScmSpecialRebate(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(ScmSpecialRebateDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
ScmSpecialRebate entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public ScmSpecialRebateDetailsVo fetchDetailsVoBySid(String sid){ |
|||
ScmSpecialRebate entity = fetchBySid(sid); |
|||
ScmSpecialRebateDetailsVo vo = new ScmSpecialRebateDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -1,13 +1,26 @@ |
|||
<?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.scm.biz.scmvehrebate.ScmVehRebateMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVo"> |
|||
SELECT * FROM scm_veh_rebate <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVo"> |
|||
SELECT * FROM scm_veh_rebate <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVo"> |
|||
SELECT * FROM scm_veh_rebate |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVo"> |
|||
SELECT * FROM scm_veh_rebate |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectByVinNoAndOrgSid" resultType="com.yxt.anrui.scm.api.scmvehrebate.ScmVehRebateVo"> |
|||
SELECT * |
|||
FROM scm_veh_rebate |
|||
WHERE vinNo = #{vinNo} |
|||
AND createOrgSid = #{createOrgSid} |
|||
</select> |
|||
</mapper> |
@ -1,21 +0,0 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.virtualOrders.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class GetNodeQuery implements Query { |
|||
|
|||
|
|||
private static final long serialVersionUID = -1142359748202597961L; |
|||
@ApiModelProperty(value = "环节定义id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
|
|||
// @ApiModelProperty(value = "分支字段及业务字段")
|
|||
// private Map<String, Object> formVariables;
|
|||
|
|||
} |
Loading…
Reference in new issue