New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <groupId>org.dromara</groupId> |
| | | <artifactId>ecosphere</artifactId> |
| | | <version>${revision}</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | <artifactId>ecosphere-four-payment</artifactId> |
| | | |
| | | <description> |
| | | ecosphere-four-payment ä¾èµé¡¹ |
| | | </description> |
| | | <dependencies> |
| | | |
| | | <dependency> |
| | | <groupId>org.dromara</groupId> |
| | | <artifactId>ruoyi-common-web</artifactId> |
| | | </dependency> |
| | | |
| | | |
| | | <dependency> |
| | | <groupId>com.nuvole</groupId> |
| | | <artifactId>ecosphere-common</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.nuvole</groupId> |
| | | <artifactId>ecosphere-base-rest</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger2</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>druid-spring-boot-starter</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-redis</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.github.xiaoymin</groupId> |
| | | <artifactId>swagger-bootstrap-ui</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-openfeign</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- rabbitMq --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-amqp</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.mybatis.generator</groupId> |
| | | <artifactId>mybatis-generator-core</artifactId> |
| | | <version>1.3.5</version> |
| | | <scope>system</scope> |
| | | <systemPath>${basedir}/../libs/mybatis-generator-core-1.3.5.jar</systemPath> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.data</groupId> |
| | | <artifactId>spring-data-redis</artifactId> |
| | | <version>2.0.8.RELEASE</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.5</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | |
| | | <!-- quartz 模å --> |
| | | <dependency> |
| | | <groupId>org.quartz-scheduler</groupId> |
| | | <artifactId>quartz</artifactId> |
| | | <version>2.3.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.quartz-scheduler</groupId> |
| | | <artifactId>quartz-jobs</artifactId> |
| | | <version>2.3.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-context-support</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.github.ulisesbocchio</groupId> |
| | | <artifactId>jasypt-spring-boot-starter</artifactId> |
| | | </dependency> |
| | | |
| | | <!--èªå·±æçdto转æ¢jar--> |
| | | <dependency> |
| | | <groupId>com.tangmou</groupId> |
| | | <artifactId>convertDto</artifactId> |
| | | <scope>system</scope> |
| | | <version>1.0.0</version> |
| | | <systemPath>${basedir}/../libs/convert-util.jar</systemPath> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.redisson</groupId> |
| | | <artifactId>redisson</artifactId> |
| | | <version>3.13.3</version> |
| | | </dependency> |
| | | |
| | | <!-- 微信å°ç¨åºæ¯ä»--> |
| | | <dependency> |
| | | <groupId>com.github.wechatpay-apiv3</groupId> |
| | | <artifactId>wechatpay-apache-httpclient</artifactId> |
| | | <version>0.4.8</version> |
| | | </dependency> |
| | | |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>com.walkersoft</groupId>--> |
| | | <!-- <artifactId>walker-pay-support-allinpaycloud</artifactId>--> |
| | | <!-- <version>2.0.0-20230303.053301-14</version>--> |
| | | <!-- </dependency>--> |
| | | <dependency> |
| | | <groupId>com.walkersoft</groupId> |
| | | <artifactId>walker-pay-support-allinpaycloud</artifactId> |
| | | <version>2.3.0-SNAPSHOT</version> |
| | | </dependency> |
| | | |
| | | <!-- 微信æ¯ä»API v3çApache HttpClientæ©å±ï¼å®ç°äºè¯·æ±ç¾åççæååºçç¾åçéªè¯--> |
| | | <dependency> |
| | | <groupId>com.github.wechatpay-apiv3</groupId> |
| | | <artifactId>wechatpay-apache-httpclient</artifactId> |
| | | <version>0.4.9</version> |
| | | </dependency> |
| | | |
| | | <!-- zip 使ç¨--> |
| | | <dependency> |
| | | <groupId>net.lingala.zip4j</groupId> |
| | | <artifactId>zip4j</artifactId> |
| | | <version>2.9.1</version> |
| | | </dependency> |
| | | <!-- hutooléªè¯ç 模å --> |
| | | <dependency> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-captcha</artifactId> |
| | | <version>4.5.3</version> |
| | | </dependency> |
| | | |
| | | <!-- Alipay SDK éç¨ç--> |
| | | <dependency> |
| | | <groupId>com.alipay.sdk</groupId> |
| | | <artifactId>alipay-sdk-java</artifactId> |
| | | <version>4.34.71.ALL</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.google.zxing</groupId> |
| | | <artifactId>core</artifactId> |
| | | <version>3.5.0</version> |
| | | </dependency> |
| | | </dependencies> |
| | | </project> |
New file |
| | |
| | | package com.nuvole; |
| | | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | |
| | | /** |
| | | * @Desc: åæ¹æ¯ä»å¯å¨ç±» |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | @EnableFeignClients |
| | | @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) |
| | | @MapperScan(value = {"com.nuvole.four.mapper","com.nuvole.util"}) |
| | | @EnableTransactionManagement |
| | | public class FourPaymentApplication { |
| | | |
| | | public static void main(String[] args) { |
| | | // SpringApplication application = new SpringApplication(FourPaymentApplication.class); |
| | | // 注åConfigValidator类为åå§åå¨ |
| | | // application.addInitializers(new ConfigCheck()); |
| | | // application.run(args); |
| | | SpringApplication.run(FourPaymentApplication.class, args); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.base.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å®ä½ç±»å¯¹åºçæ°æ®è¡¨ä¸ºï¼ sys_user |
| | | * @author system-generator |
| | | * @date 2019-04-22 14:25:10 |
| | | */ |
| | | @ApiModel(value ="ç¨æ·ä¿¡æ¯") |
| | | public class SysUser { |
| | | @ApiModelProperty(value = "ç¨æ·æºæçº§å«") |
| | | private Integer orgLv; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·é¨é¨åç§°") |
| | | private String deptName; |
| | | |
| | | @ApiModelProperty(value = "ID") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "ç»å½å") |
| | | private String loginName; |
| | | |
| | | @ApiModelProperty(value = "å¯ç ") |
| | | private String mixPd; |
| | | |
| | | @ApiModelProperty(value = "æ§å¯ç ") |
| | | private String oldPwd; |
| | | |
| | | @ApiModelProperty(value = "æ°å¯ç ") |
| | | private String newPwd; |
| | | |
| | | @ApiModelProperty(value = "éç½®å¯ç ") |
| | | private String resultPwd; |
| | | |
| | | @ApiModelProperty(value = "å§å") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "å¸å·ç±»åï¼1 æ®éç¨æ· ï¼;2 客æ·ç»çï¼") |
| | | private Short userType; |
| | | |
| | | @ApiModelProperty(value = "人åç¼å·") |
| | | private String userCode; |
| | | |
| | | @ApiModelProperty(value = "æ§å«[1ç·,2女]") |
| | | private Short sex; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String note; |
| | | |
| | | @ApiModelProperty(value = "ææºå·ç ") |
| | | private String mobile; |
| | | |
| | | @ApiModelProperty(value = "é¨é¨ç¼å·") |
| | | private String deptCode; |
| | | |
| | | @ApiModelProperty(value = "æºæid") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "é¨é¨ID") |
| | | private Long deptId; |
| | | |
| | | @ApiModelProperty(value = "æºæç¼å·") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty(value = "é®ç®±") |
| | | private String email; |
| | | |
| | | @ApiModelProperty(value = "ç¶æï¼0 ç¦ç¨ï¼1å¯ç¨ï¼") |
| | | private Short state; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "å建人ID") |
| | | private Long createId; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createName; |
| | | |
| | | @ApiModelProperty(value = "头å") |
| | | private String headImage; |
| | | |
| | | @ApiModelProperty(value = "é宿¬¡æ°") |
| | | private Short lockTimes; |
| | | |
| | | @ApiModelProperty(value = "éå®å°ææ¥æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date lockTime; |
| | | |
| | | public Integer getOrgLv() { |
| | | return orgLv; |
| | | } |
| | | |
| | | public void setOrgLv(Integer orgLv) { |
| | | this.orgLv = orgLv; |
| | | } |
| | | |
| | | public String getOrgName() { |
| | | return orgName; |
| | | } |
| | | |
| | | public void setOrgName(String orgName) { |
| | | this.orgName = orgName; |
| | | } |
| | | |
| | | public String getDeptName() { |
| | | return deptName; |
| | | } |
| | | |
| | | public void setDeptName(String deptName) { |
| | | this.deptName = deptName; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getLoginName() { |
| | | return loginName; |
| | | } |
| | | |
| | | public void setLoginName(String loginName) { |
| | | this.loginName = loginName; |
| | | } |
| | | |
| | | public String getResultPwd() { |
| | | return resultPwd; |
| | | } |
| | | |
| | | public void setResultPwd(String resultPwd) { |
| | | this.resultPwd = resultPwd; |
| | | } |
| | | |
| | | public String getOldPwd() { |
| | | return oldPwd; |
| | | } |
| | | |
| | | public void setOldPwd(String oldPwd) { |
| | | this.oldPwd = oldPwd; |
| | | } |
| | | |
| | | public String getNewPwd() { |
| | | return newPwd; |
| | | } |
| | | |
| | | public void setNewPwd(String newPwd) { |
| | | this.newPwd = newPwd; |
| | | } |
| | | |
| | | public String getMixPd() { |
| | | return mixPd; |
| | | } |
| | | |
| | | public void setMixPd(String mixPd) { |
| | | this.mixPd = mixPd; |
| | | } |
| | | |
| | | public String getUserName() { |
| | | return userName; |
| | | } |
| | | |
| | | public void setUserName(String userName) { |
| | | this.userName = userName; |
| | | } |
| | | |
| | | public Short getUserType() { |
| | | return userType; |
| | | } |
| | | |
| | | public void setUserType(Short userType) { |
| | | this.userType = userType; |
| | | } |
| | | |
| | | public String getUserCode() { |
| | | return userCode; |
| | | } |
| | | |
| | | public void setUserCode(String userCode) { |
| | | this.userCode = userCode; |
| | | } |
| | | |
| | | public Short getSex() { |
| | | return sex; |
| | | } |
| | | |
| | | public void setSex(Short sex) { |
| | | this.sex = sex; |
| | | } |
| | | |
| | | public String getNote() { |
| | | return note; |
| | | } |
| | | |
| | | public void setNote(String note) { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getMobile() { |
| | | return mobile; |
| | | } |
| | | |
| | | public void setMobile(String mobile) { |
| | | this.mobile = mobile; |
| | | } |
| | | |
| | | public String getDeptCode() { |
| | | return deptCode; |
| | | } |
| | | |
| | | public void setDeptCode(String deptCode) { |
| | | this.deptCode = deptCode; |
| | | } |
| | | |
| | | public Long getOrgId() { |
| | | return orgId; |
| | | } |
| | | |
| | | public void setOrgId(Long orgId) { |
| | | this.orgId = orgId; |
| | | } |
| | | |
| | | public Long getDeptId() { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | public String getOrgCode() { |
| | | return orgCode; |
| | | } |
| | | |
| | | public void setOrgCode(String orgCode) { |
| | | this.orgCode = orgCode; |
| | | } |
| | | |
| | | public String getEmail() { |
| | | return email; |
| | | } |
| | | |
| | | public void setEmail(String email) { |
| | | this.email = email; |
| | | } |
| | | |
| | | public Short getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Short state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Long getCreateId() { |
| | | return createId; |
| | | } |
| | | |
| | | public void setCreateId(Long createId) { |
| | | this.createId = createId; |
| | | } |
| | | |
| | | public String getCreateName() { |
| | | return createName; |
| | | } |
| | | |
| | | public void setCreateName(String createName) { |
| | | this.createName = createName; |
| | | } |
| | | |
| | | public String getHeadImage() { |
| | | return headImage; |
| | | } |
| | | |
| | | public void setHeadImage(String headImage) { |
| | | this.headImage = headImage; |
| | | } |
| | | |
| | | public Short getLockTimes() { |
| | | return lockTimes; |
| | | } |
| | | |
| | | public void setLockTimes(Short lockTimes) { |
| | | this.lockTimes = lockTimes; |
| | | } |
| | | |
| | | public Date getLockTime() { |
| | | return lockTime; |
| | | } |
| | | @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | public void setLockTime(Date lockTime) { |
| | | this.lockTime = lockTime; |
| | | } |
| | | |
| | | private String wxAccount; |
| | | |
| | | public String getWxAccount() { |
| | | return wxAccount; |
| | | } |
| | | |
| | | public void setWxAccount(String wxAccount) { |
| | | this.wxAccount = wxAccount; |
| | | } |
| | | } |
New file |
| | |
| | | //package com.nuvole.four.client; |
| | | // |
| | | //import com.nuvole.base.domain.BaseGlobalConfig; |
| | | //import com.nuvole.base.domain.SysArea; |
| | | //import com.nuvole.base.domain.SysOrg; |
| | | //import com.nuvole.base.domain.SysUser; |
| | | //import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | //import com.nuvole.common.domain.result.CommonResult; |
| | | //import com.nuvole.common.domain.result.PageBean; |
| | | //import feign.hystrix.FallbackFactory; |
| | | //import lombok.extern.slf4j.Slf4j; |
| | | //import org.springframework.stereotype.Component; |
| | | //import org.springframework.web.bind.annotation.GetMapping; |
| | | //import org.springframework.web.bind.annotation.PostMapping; |
| | | //import org.springframework.web.bind.annotation.RequestParam; |
| | | // |
| | | //import java.util.List; |
| | | //import java.util.Map; |
| | | // |
| | | ///** |
| | | // * @author tangzong |
| | | // */ |
| | | //@Component |
| | | //@Slf4j |
| | | //public class BaseClientFallbackFactory implements FallbackFactory<BaseServiceClient> { |
| | | // |
| | | // @Override |
| | | // public BaseServiceClient create(Throwable throwable) { |
| | | // log.error("fallback reason:{}", throwable.getMessage()); |
| | | // return new BaseServiceClient() { |
| | | // |
| | | // @Override |
| | | // public CommonResult getOrgByCode(String code) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getOrgByCode2(String code) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getOrgAndParentByCode(String code) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getManagerInfoByCode(String code) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<PageBean<SysUser>> selectAllByOrgId(Long org_id, Short user_type, Integer pageNumber,Integer pageSize, Integer state) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getOrgByUserCode(String code) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<String> getAllManagerByOrgCode(String orgCode) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<Map>> getAllManagerInfoByOrgCode(String orgCode) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getUserByCode(String code) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // |
| | | // @Override |
| | | // public CommonResult getUserById(Long id) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<Map> getManagerInfoById(Long id) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<SysOrg>> getOrgList(Long pid, Integer state) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<String> getFullOrgName(Long id, String orgCode, String userOrgCode) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<PageBean<Map>> getBranchByOrgCode(String code, String keyText, Short userType, Integer pageNumber, Integer pageSize) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getCityList() { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @GetMapping("/v1/base/pc/area/getAreaByOrgId") |
| | | // @Override |
| | | // public CommonResult getAreaByOrgId(@RequestParam("orgId") Long orgId) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public List<SysOrg> getOrgMapByLogin(Long orgId, Integer orgLv) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getUserInfoById") |
| | | // @Override |
| | | // public SysUser getUserInfoById(Long id) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // @Override |
| | | // public SysUser getUserInfoByName(String name) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // @Override |
| | | // public int getOrgLvByOrgCode(String orgCode) { |
| | | // return -1; |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult getOrgById(Long orgId) { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public Long getSjOrgId(Long orgId, Integer orgLv) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getSjOrgInfo") |
| | | // @Override |
| | | // public CommonResult<SysOrg> getSjOrgInfo() { |
| | | // return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public SysArea getAreaByOrgCode(String orgCode) { |
| | | // return null; |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<SysOrg>> getInfoByOrgCode(String orgCode) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<Map>> getSjOrgCodeAreaNameRef() { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<Map>> getXjOrg() { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<Map> getByDicCodeAndDicKey(String dicCode, String dicKey) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<Map>> getDicTree(String dicCode, Integer state) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<Map>> getOrgCodeCache() { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<Map> getAllOrgFullName() { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<Boolean> cardIsContain(String cardNum) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public CommonResult<List<BaseGlobalConfig>> getConfigList(String globalCode, Short matchModel) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // |
| | | // @PostMapping("/v1/base/pc/global/config/save") |
| | | // @Override |
| | | // public CommonResult<List<BaseGlobalConfig>> save(String configList) { |
| | | // return new CommonResult<>(CommonResultEmnu.SERVER_ERR); |
| | | // } |
| | | // }; |
| | | // } |
| | | //} |
New file |
| | |
| | | //package com.nuvole.four.client; |
| | | // |
| | | //import com.nuvole.base.domain.BaseGlobalConfig; |
| | | //import com.nuvole.base.domain.SysArea; |
| | | //import com.nuvole.base.domain.SysOrg; |
| | | //import com.nuvole.base.domain.SysUser; |
| | | //import com.nuvole.common.domain.result.CommonResult; |
| | | //import com.nuvole.common.domain.result.PageBean; |
| | | //import org.springframework.cloud.openfeign.FeignClient; |
| | | //import org.springframework.stereotype.Component; |
| | | //import org.springframework.web.bind.annotation.GetMapping; |
| | | //import org.springframework.web.bind.annotation.PostMapping; |
| | | //import org.springframework.web.bind.annotation.RequestBody; |
| | | //import org.springframework.web.bind.annotation.RequestParam; |
| | | // |
| | | //import java.util.List; |
| | | //import java.util.Map; |
| | | // |
| | | ///** |
| | | // * è°ç¨base |
| | | // * |
| | | // * @Author: lc |
| | | // * @Date: 2019/5/22 10:18 |
| | | // */ |
| | | //@Component |
| | | //@FeignClient(value = "service-base", fallbackFactory = BaseClientFallbackFactory.class) |
| | | //public interface BaseServiceClient { |
| | | // /** |
| | | // * æ ¹æ®æºæç¼å·æ¥è¯¢æºæä¿¡æ¯ |
| | | // * |
| | | // * @author zxc |
| | | // * @Date 2019/6/4 11:27 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/org/getOrgByCode") |
| | | // CommonResult getOrgByCode(@RequestParam("code") String code); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getOrgByCode2") |
| | | // CommonResult getOrgByCode2(@RequestParam("code") String code); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getOrgAndParentByCode") |
| | | // CommonResult getOrgAndParentByCode(@RequestParam("code") String code); |
| | | // |
| | | // /** |
| | | // * Createed by PKZ |
| | | // * Date 2019/6/17 16:15 |
| | | // * Descriptionï¼æ ¹æ®user_org_codeæ¥è¯¢æºæä¿¡æ¯ |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/org/getOrgByUserCode") |
| | | // CommonResult getOrgByUserCode(@RequestParam("code") String code); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getAllManagerByOrgCode") |
| | | // CommonResult<String> getAllManagerByOrgCode(@RequestParam("orgCode") String orgCode); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getAllManagerInfoByOrgCode") |
| | | // CommonResult<List<Map>> getAllManagerInfoByOrgCode(@RequestParam("orgCode") String orgCode); |
| | | // |
| | | // /** |
| | | // * Createed by PKZ |
| | | // * Date 2019/6/17 16:15 |
| | | // * Descriptionï¼æ ¹æ®user_codeæ¥è¯¢å®¢æ·ç»çä¿¡æ¯ |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/sysUser/getUserByCode") |
| | | // CommonResult getUserByCode(@RequestParam("code") String code); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getManagerInfoByCode") |
| | | // CommonResult getManagerInfoByCode(@RequestParam("code") String code); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/selectAllByOrgId") |
| | | // CommonResult<PageBean<SysUser>> selectAllByOrgId(@RequestParam("org_id") Long org_id, |
| | | // @RequestParam("user_type") Short user_type, |
| | | // @RequestParam("pageNumber") Integer pageNumber, |
| | | // @RequestParam("pageSize") Integer pageSize, |
| | | // @RequestParam("state") Integer state); |
| | | // |
| | | // /** |
| | | // * Createed by PKZ |
| | | // * Date 2019/6/17 16:15 |
| | | // * Descriptionï¼æ ¹æ®user_idæ¥è¯¢å®¢æ·ç»çä¿¡æ¯ |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/sysUser/getUserById") |
| | | // CommonResult getUserById(@RequestParam("id") Long id); |
| | | // |
| | | // /** |
| | | // * @param id |
| | | // * @return |
| | | // * @Description æ ¹æ®user_idæ¥è¯¢å®¢æ·ç»çä¿¡æ¯ |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/sysUser/getManagerInfoById") |
| | | // CommonResult<Map> getManagerInfoById(@RequestParam("id") Long id); |
| | | // |
| | | // /** |
| | | // * Createed by PKZ |
| | | // * Date 2019/6/17 16:15 |
| | | // * Descriptionï¼æ ¹æ®pidæ¥è¯¢æºæå表 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/org/getOrgList") |
| | | // CommonResult<List<SysOrg>> getOrgList(@RequestParam("pid") Long pid, @RequestParam("state") Integer state); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getFullOrgName") |
| | | // /** |
| | | // * æ¥è¯¢æºæå
¨å |
| | | // */ |
| | | // CommonResult<String> getFullOrgName(@RequestParam("id") Long id, @RequestParam("orgCode") String orgCode, @RequestParam("userOrgCode") String userOrgCode); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getBranchByOrgCode") |
| | | // CommonResult<PageBean<Map>> getBranchByOrgCode( |
| | | // @RequestParam("code") String code, @RequestParam("keyText") String keyText, |
| | | // @RequestParam("userType") Short userType, |
| | | // @RequestParam("pageNumber") Integer pageNumber, |
| | | // @RequestParam("pageSize") Integer pageSize); |
| | | // |
| | | // /** |
| | | // * æ¥è¯¢ç¬¬äºçº§åºåå表 |
| | | // * |
| | | // * @author zxc |
| | | // * @Date 2019/7/13 17:38 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/area/getAreaZtreeList") |
| | | // CommonResult getCityList(); |
| | | // |
| | | // /** |
| | | // * æ ¹æ®æºæidæ¥è¯¢åºåä¿¡æ¯ |
| | | // * |
| | | // * @author zxc |
| | | // * @Date 2019/6/4 11:27 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/area/getAreaByOrgId") |
| | | // CommonResult getAreaByOrgId(@RequestParam("orgId") Long orgId); |
| | | // |
| | | // /** |
| | | // * æ ¹æ®æºæidæ¥è¯¢æºæä¿¡æ¯ |
| | | // * |
| | | // * @author tang |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/org/getOrgMapByLogin") |
| | | // List<SysOrg> getOrgMapByLogin(@RequestParam("orgId") Long orgId, @RequestParam("orgLv") Integer orgLv); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getUserInfoById") |
| | | // SysUser getUserInfoById(@RequestParam("id") Long id); |
| | | // |
| | | // @GetMapping("/v1/base/pc/sysUser/getUserInfoByName") |
| | | // SysUser getUserInfoByName(@RequestParam("name") String name); |
| | | // |
| | | // /** |
| | | // * æ ¹æ®orgââcodeè·åæºæç级 |
| | | // * |
| | | // * @param orgCode |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/org/getOrgLvByOrgCode") |
| | | // int getOrgLvByOrgCode(@RequestParam("orgCode") String orgCode); |
| | | // |
| | | // /** |
| | | // * æ ¹æ®idè·åæºæ |
| | | // * |
| | | // * @param orgId |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/org/get") |
| | | // CommonResult getOrgById(@RequestParam("id") Long orgId); |
| | | // |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getSjOrgId") |
| | | // Long getSjOrgId(@RequestParam("orgId") Long orgId, @RequestParam("lv") Integer orgLv); |
| | | // |
| | | // |
| | | // /** |
| | | // * æ¥è¯¢ççº§æºæä¿¡æ¯ |
| | | // * |
| | | // * @Author: lc |
| | | // * @Date: 2019/8/28 18:56 |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/org/getSjOrgInfo") |
| | | // CommonResult<SysOrg> getSjOrgInfo(); |
| | | // |
| | | // /** |
| | | // * æ ¹æ®æ¯å±æºæç¼å·æ¥è¯¢å¸çº§åºåä¿¡æ¯ |
| | | // * |
| | | // * @param orgCode |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/area/getAreaByOrgCode") |
| | | // SysArea getAreaByOrgCode(@RequestParam("orgCode") String orgCode); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getInfoByOrgCode") |
| | | // CommonResult<List<SysOrg>> getInfoByOrgCode(@RequestParam("orgCode") String orgCode); |
| | | // |
| | | // |
| | | // /** |
| | | // * æ¥è¯¢ææå¸çº§æºæç¼å· å 对åºåºååç§°ç å
³è |
| | | // * |
| | | // * @author zxc |
| | | // * @date 2020/1/10 11:25 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/org/getSjOrgCodeAreaNameRef") |
| | | // CommonResult<List<Map>> getSjOrgCodeAreaNameRef(); |
| | | // |
| | | // |
| | | // /** |
| | | // * è·åå¿åºæºæä¿¡æ¯ |
| | | // * |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/org/getXqOrg") |
| | | // CommonResult<List<Map>> getXjOrg(); |
| | | // |
| | | // |
| | | // /** |
| | | // * æ ¹æ®æ°æ®åå
¸keyåæ°æ®å æ¥è¯¢ |
| | | // * |
| | | // * @author zxc |
| | | // * @date 2019/12/13 16:42 |
| | | // **/ |
| | | // @GetMapping("/v1/base/pc/dic/getByDicCodeAndDicKey") |
| | | // CommonResult<Map> getByDicCodeAndDicKey(@RequestParam("dicCode") String dicCode, @RequestParam("dicKey") String dicKey); |
| | | // |
| | | // @GetMapping("/v1/base/pc/dic/getDicTree") |
| | | // CommonResult<List<Map>> getDicTree(@RequestParam("dicCode") String dicCode, @RequestParam("state") Integer state); |
| | | // |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getOrgCodeCache") |
| | | // CommonResult<List<Map>> getOrgCodeCache(); |
| | | // |
| | | // @GetMapping("/v1/base/pc/org/getAllOrgFullName") |
| | | // CommonResult<Map> getAllOrgFullName(); |
| | | // |
| | | // /** |
| | | // * 夿æ¥è¯¢çé¶è¡å¡æ¯å¦å
许ç»å® |
| | | // * |
| | | // * @param cardNum |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/v1/base/pc/bankCardPeriod/isContain") |
| | | // CommonResult<Boolean> cardIsContain(@RequestParam("cardNum") String cardNum); |
| | | // |
| | | // @GetMapping("/v1/base/pc/global/config/getConfigList") |
| | | // CommonResult<List<BaseGlobalConfig>> getConfigList(@RequestParam("globalCode") String globalCode, @RequestParam("matchModel") Short matchModel); |
| | | // |
| | | // @PostMapping("/v1/base/pc/global/config/save") |
| | | // CommonResult<List<BaseGlobalConfig>> save(@RequestBody String configList); |
| | | // |
| | | // |
| | | //} |
New file |
| | |
| | | package com.nuvole.four.client; |
| | | |
| | | import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import feign.hystrix.FallbackFactory; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | @Component |
| | | @Slf4j |
| | | public class ShopClientFallbackFactory implements FallbackFactory<ShopServiceClient> { |
| | | |
| | | @Override |
| | | public ShopServiceClient create(Throwable throwable) { |
| | | log.error("fallback reason:{}", throwable.getMessage()); |
| | | return new ShopServiceClient() { |
| | | |
| | | @GetMapping(value = "/v1/shop/pc/storeMerchantShop/getMerchantShopExtendList", consumes = "application/json") |
| | | @Override |
| | | public CommonResult<PageBean<Map>> getMerchantShopExtendList(String queryOrgCode, String merchantId, String shopName, |
| | | String managerName, String channelId,String channelIdNotNull, |
| | | Integer pageNumber, Integer pageSize) { |
| | | return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> selectShopMsgByIds(String ids) { |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * åæ·æ´»å¨æ°æ®ç»è®¡-å表 |
| | | * @param orgCode æºæcode |
| | | * @param channelId ééid |
| | | * @param activityId æ´»å¨id |
| | | * @param startDate 交æå¼å§æ¶é´ |
| | | * @param endDate 交æç»ææ¶é´ |
| | | * @param pageNumber 页ç |
| | | * @param pageSize æ¯é¡µæ¡æ° |
| | | * @return åæ·æ´»å¨æ°æ®ç»è®¡-å表 |
| | | */ |
| | | @Override |
| | | public CommonResult<PageBean<Map>> merchantActivityList(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate, Integer pageNumber, Integer pageSize) { |
| | | return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult<Map> merchantActivityCollect(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate) { |
| | | return new CommonResult(CommonResultEmnu.SERVER_ERR); |
| | | } |
| | | |
| | | }; |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.client; |
| | | |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: è°ç¨service-shop模å |
| | | * |
| | | * @date 2024-04-14 18:31 |
| | | **/ |
| | | @Component |
| | | @FeignClient(value = "service-shop", fallbackFactory = ShopClientFallbackFactory.class) |
| | | public interface ShopServiceClient { |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢åºéºå表 |
| | | * |
| | | * @date 2024-04-14 18:31 |
| | | **/ |
| | | @GetMapping(value = "/v1/shop/pc/storeMerchantShop/getMerchantShopExtendList", consumes = "application/json") |
| | | CommonResult<PageBean<Map>> getMerchantShopExtendList( |
| | | @RequestParam("queryOrgCode") String queryOrgCode, |
| | | @RequestParam("merchantId") String merchantId, |
| | | @RequestParam("shopName") String shopName, |
| | | @RequestParam("managerName") String managerName, |
| | | @RequestParam("channelId") String channelId, |
| | | @RequestParam("channelIdNotNull") String channelIdNotNull, |
| | | @RequestParam("pageNumber") Integer pageNumber, @RequestParam("pageSize") Integer pageSize); |
| | | |
| | | @GetMapping(value = "/v1/shop/pc/storeMerchantShop/selectShopMsgByIds") |
| | | List<Map> selectShopMsgByIds( |
| | | @RequestParam("ids") String ids); |
| | | |
| | | /** |
| | | * åæ·æ´»å¨æ°æ®ç»è®¡-å表 |
| | | * @param orgCode æºæcode |
| | | * @param channelId ééid |
| | | * @param activityId æ´»å¨id |
| | | * @param startDate äº¤ææ¶é´ |
| | | * @param pageNumber 页ç |
| | | * @param pageSize æ¯é¡µæ¡æ° |
| | | * @return åæ·æ´»å¨æ°æ®ç»è®¡-å表 |
| | | */ |
| | | @GetMapping(value = "/v1/shop/pc/static/report/merchant/activity/list") |
| | | CommonResult<PageBean<Map>> merchantActivityList( |
| | | @RequestParam("orgCode") String orgCode, |
| | | @RequestParam("channelId") Long channelId, |
| | | @RequestParam("activityId") Long activityId, |
| | | @RequestParam("startDate") Date startDate, |
| | | @RequestParam("endDate") Date endDate, |
| | | @RequestParam("pageNumber") Integer pageNumber, |
| | | @RequestParam("pageSize") Integer pageSize |
| | | ); |
| | | |
| | | /** |
| | | * åæ·æ´»å¨æ°æ®ç»è®¡-æ°æ®æ±æ» |
| | | * @param orgCode æºæcode |
| | | * @param channelId ééid |
| | | * @param activityId æ´»å¨id |
| | | * @param startDate 交æå¼å§æ¶é´ |
| | | * @param endDate 交æç»ææ¶é´ |
| | | * @return åæ·æ´»å¨æ°æ®ç»è®¡-æ°æ®æ±æ» |
| | | */ |
| | | @GetMapping(value = "/v1/shop/pc/static/report/merchant/activity/collect") |
| | | CommonResult<Map> merchantActivityCollect( |
| | | @RequestParam("orgCode") String orgCode, |
| | | @RequestParam("channelId") Long channelId, |
| | | @RequestParam("activityId") Long activityId, |
| | | @RequestParam("startDate") Date startDate, |
| | | @RequestParam("endDate") Date endDate |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | //package com.nuvole.four.config; |
| | | // |
| | | //import org.springframework.context.annotation.Configuration; |
| | | //import org.springframework.web.servlet.config.annotation.CorsRegistry; |
| | | //import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; |
| | | // |
| | | //// @formatter:off |
| | | // |
| | | ///** |
| | | // * .-~~~~~~~~~-._ _.-~~~~~~~~~-. |
| | | // * __.' @Author ~. .~ ä»£ç æ Bug `.__ |
| | | // * .'// liu.q \./ (ç§ç±) \\`. |
| | | // * .'// [916000612@qq.com] | 欲ç»ç¥å å¼åèªå®« \\`. |
| | | // * .'// .-~"""""""~~~~-._ | _,-~~~~"""""""~-. \\`. |
| | | // * .'//.-" 2019-04-07 `-. | .-' 20:42 "-.\\`. |
| | | // * .'//______.============-.. \ | / ..-============.______\\`. |
| | | // *.'______________________________\|/______________________________`. |
| | | // * |
| | | // * @Description : |
| | | // */ |
| | | //// @formatter:on |
| | | // |
| | | //@Configuration |
| | | //public class CorsConfig extends WebMvcConfigurerAdapter { |
| | | // @Override |
| | | // public void addCorsMappings(CorsRegistry registry) { |
| | | // registry.addMapping("/**") |
| | | // .allowedOrigins("*") |
| | | // .allowCredentials(true) |
| | | // .allowedMethods("GET", "POST", "DELETE", "PUT") |
| | | // .maxAge(3600); |
| | | // } |
| | | //} |
| | | // |
New file |
| | |
| | | package com.nuvole.four.config; |
| | | |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; |
| | | |
| | | import java.math.BigInteger; |
| | | // @formatter:off |
| | | /** |
| | | * .-~~~~~~~~~-._ _.-~~~~~~~~~-. |
| | | * __.' @Author ~. .~ ä»£ç æ Bug `.__ |
| | | * .'// liu.q \./ (ç§ç±) \\`. |
| | | * .'// [916000612@qq.com] | 欲ç»ç¥å å¼åèªå®« \\`. |
| | | * .'// .-~"""""""~~~~-._ | _,-~~~~"""""""~-. \\`. |
| | | * .'//.-" 2019-04-19 `-. | .-' 16:19 "-.\\`. |
| | | * .'//______.============-.. \ | / ..-============.______\\`. |
| | | *.'______________________________\|/______________________________`. |
| | | * |
| | | * @Description : |
| | | */ |
| | | // @formatter:on |
| | | |
| | | @Configuration |
| | | public class JacksonConfig { |
| | | /** |
| | | * Jacksonå
¨å±è½¬ålongç±»å为Stringï¼è§£å³jacksonåºååæ¶longç±»å缺失精度é®é¢ |
| | | * |
| | | * @return Jackson2ObjectMapperBuilderCustomizer 注å
¥ç对象 |
| | | */ |
| | | @Bean |
| | | public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer() { |
| | | Jackson2ObjectMapperBuilderCustomizer cunstomizer = new Jackson2ObjectMapperBuilderCustomizer() { |
| | | @Override |
| | | public void customize(Jackson2ObjectMapperBuilder jacksonObjectMapperBuilder) { |
| | | jacksonObjectMapperBuilder.serializerByType(BigInteger.class, ToStringSerializer.instance); |
| | | jacksonObjectMapperBuilder.serializerByType(Long.class, ToStringSerializer.instance); |
| | | jacksonObjectMapperBuilder.serializerByType(Long.TYPE, ToStringSerializer.instance); //设置fast jsonè§£æè§å |
| | | } |
| | | }; |
| | | return cunstomizer; |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.config; |
| | | |
| | | |
| | | import javax.crypto.Cipher; |
| | | import java.security.KeyFactory; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.security.PrivateKey; |
| | | import java.security.spec.InvalidKeySpecException; |
| | | import java.security.spec.PKCS8EncodedKeySpec; |
| | | import java.util.Base64; |
| | | |
| | | public class RsaDecryptor { |
| | | /** |
| | | * 读åç§é¥æä»¶ï¼çæRSAç§é¥ |
| | | * |
| | | * @return RSAç§é¥ |
| | | * @throws NoSuchAlgorithmException |
| | | * @throws InvalidKeySpecException |
| | | */ |
| | | private static PrivateKey getRsaPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { |
| | | String privateKeyContent = "-----BEGIN PRIVATE KEY-----\n" + |
| | | "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCDpJ23UWIqAMiv\n" + |
| | | "JwdrzEOS5WbbUvFlFxiW0Q4MDzwT4zg63gq6bk1BIi3v/mVchoDEhrr4bgSDqVjN\n" + |
| | | "wfI4gfVZQ0tVlrfMayGi5MvjCdjbPRmeGBkBqKmB3WMkzXxVR0dHz1KFgc3Tt8Av\n" + |
| | | "tpwK8GDzTavBXF/NSm2k9PL0BKcJuWmQS5Id+MGHxQMjmKJOXERBqDsFF2ghMaRk\n" + |
| | | "lj5hvHCRcJXLehTzbWERfOV2t+teSs6K8CmCxoJjLdhNna3CEXS1fhfQ7UKBNydD\n" + |
| | | "EqTDgG5ws2KrazhiE6QUcHSPUuuTXMVQuMusG63cyKRJazf0qqAQM3WjMInI56ui\n" + |
| | | "rn1yvdUbAgMBAAECggEANZJSFH3sAsfa41xwqq+veCIe33Y7gjYJ7aYZn1K70iQP\n" + |
| | | "h/VATGoCylTMePP/781UraVehSbQc3wBBYq9tb09SRwXljcFiQy33YBacIRbWazd\n" + |
| | | "tfZ8hq5KfOzJIfr1dAbTvSdjn60ZQ+VtMn2PtuvnqFudX8zlt7doM07zZ9ZU26Gg\n" + |
| | | "9W67OlGpxDxfWryUWI//tkCrguORceurhydByhYdRqJlDwc3xAgctyGXBfY9Plp0\n" + |
| | | "m3VWaWvgDBJ54d0MpVleQVOufWRH85Jyj+7ZIxmn53oh3iPx6samq26FPiwbl4se\n" + |
| | | "q82waM4wOeunJDHSLNjuJJSWwR3MovHrzwnc4XmaoQKBgQDBQRDIODW6MYPXklin\n" + |
| | | "+sotoDe1raZRZCenAhpNO5pMcpS955SKkhi/NU/8mSEGpxw+fZPL0/gtnn2aHoXU\n" + |
| | | "/z5pjhSBbYPJXrt3PeuOqKfNEdBXQx56JNyZw7UF3po/SkO2hJAwlQy2WYanhx4b\n" + |
| | | "+5sYLVtHKWAmIRDmb+EtQ225EwKBgQCuYoufmFk62FYPpLeHtLAhSGqmDvrKPavj\n" + |
| | | "cNsJsJZeltjQI9Juap+Xez5qlovS87vnyTqjEysUcAqMgcSthjK/VgFxNiL8Y93J\n" + |
| | | "ORGTI6tkI306DhKmj8Jc02sB1VF4DV4IYGsQ3NOPP+AWrV3YlTj4Cw5wusX8jq9K\n" + |
| | | "9Ubfiia82QKBgBGi+4IaRyT38d1RmM+zvpHNZmgpMd2Js2i1c2sK/njtmA+Au/it\n" + |
| | | "fp6soeEepHnz9ErrsPpQHP0k0renA3W92ZdOhSaOtRFCmP834nCBidbYQlhEYtqo\n" + |
| | | "1I0f5Dxl5VPTVjyo+nPEloVpxDUzypapLq1VLlhfOUwhhmZRXY6A8dmLAoGBAKtP\n" + |
| | | "yBZq1g3HBRStHldEnFq2B39G6/zOBRSUg7nLLo2R50DiUBGE0W9A9ZpEduwv4QLd\n" + |
| | | "XqthY0ranqJVwV8unJ/238fWBRypBvJtC+Tef7sKWjU0KgJS6//A+jh81WH4z82u\n" + |
| | | "2r9gEL2DZKMigTUJs0OJqQ/5jBKGIZKjzpI/57pRAoGAGoaweJrzbYuFp7JSJw/W\n" + |
| | | "nKsnDUAI14AN5DI4UlVt78ZESj/D7ArKtDLMkIDrLRk/NofDRQy9YdEwmw7Jjxa9\n" + |
| | | "j8NF0ll01dV3Sr7SXqmkVtqfAvt58tdXwxXdsUvLV7+otZfAzinY7959MUoPc8gb\n" + |
| | | "4kmHYWNzm1vJyr/QIapo94g=\n" + |
| | | "-----END PRIVATE KEY-----\n"; |
| | | |
| | | privateKeyContent = privateKeyContent.replaceAll("\\n", "").replace("-----BEGIN PRIVATE KEY-----", "").replace("-----END PRIVATE KEY-----", ""); |
| | | KeyFactory kf = KeyFactory.getInstance("RSA"); |
| | | PKCS8EncodedKeySpec keySpecPKCS8 = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(privateKeyContent)); |
| | | return kf.generatePrivate(keySpecPKCS8); |
| | | } |
| | | |
| | | public static String doDecrypt(String encrypted) throws Exception { |
| | | Cipher cipher = Cipher.getInstance("RSA"); |
| | | cipher.init(Cipher.DECRYPT_MODE, getRsaPrivateKey()); |
| | | return new String(cipher.doFinal(Base64.getDecoder().decode(encrypted.getBytes()))); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
New file |
| | |
| | | package com.nuvole.four.config; |
| | | |
| | | import com.nuvole.constants.SystemConstants; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import springfox.documentation.builders.ApiInfoBuilder; |
| | | import springfox.documentation.builders.ParameterBuilder; |
| | | import springfox.documentation.builders.PathSelectors; |
| | | import springfox.documentation.builders.RequestHandlerSelectors; |
| | | import springfox.documentation.schema.ModelRef; |
| | | import springfox.documentation.service.ApiInfo; |
| | | import springfox.documentation.service.Parameter; |
| | | import springfox.documentation.spi.DocumentationType; |
| | | import springfox.documentation.spring.web.plugins.Docket; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç±»æè¿°: swagger.config |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-09 18:16 |
| | | * @version 1.0 |
| | | **/ |
| | | @EnableSwagger2 |
| | | @Configuration |
| | | public class SwaggerConfig { |
| | | |
| | | @Bean |
| | | public Docket customDocket() { |
| | | ParameterBuilder ticketPar = new ParameterBuilder(); |
| | | List<Parameter> pars = new ArrayList<Parameter>(); |
| | | ticketPar.name(SystemConstants.SHOP_WECHAT_TOKEN_HEADER).description("ç»å½æåtokenæ è¯") |
| | | .modelRef(new ModelRef("string")).parameterType("header") |
| | | .required(false).build(); |
| | | pars.add(ticketPar.build()); |
| | | |
| | | return new Docket(DocumentationType.SWAGGER_2) |
| | | .apiInfo(apiInfo()) |
| | | .select() |
| | | .apis(RequestHandlerSelectors.basePackage("com.nuvole.four")) |
| | | .paths(PathSelectors.any()) |
| | | .build() |
| | | .globalOperationParameters(pars); |
| | | } |
| | | |
| | | |
| | | ApiInfo apiInfo() { |
| | | return new ApiInfoBuilder() |
| | | .title("åæ¹æ¯ä»") |
| | | .description("åæ¹æ¯ä»æ¥å£ææ¡£") |
| | | .version("1.0") |
| | | .build(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | //package com.nuvole.four.config.filter; |
| | | // |
| | | //import cn.hutool.core.util.StrUtil; |
| | | //import org.springframework.stereotype.Component; |
| | | // |
| | | //import javax.servlet.*; |
| | | //import javax.servlet.annotation.WebFilter; |
| | | //import javax.servlet.http.HttpServletRequest; |
| | | //import javax.servlet.http.HttpServletResponse; |
| | | //import java.io.IOException; |
| | | // |
| | | ///** |
| | | // * @author ChenLong |
| | | // * @version 1.0 |
| | | // * @ClassName XssFilter |
| | | // * @date 2019/7/16 19:21 |
| | | // * @Description XSSè¿æ»¤å¨ |
| | | // */ |
| | | //@Component |
| | | //@WebFilter(urlPatterns = "/*", filterName = "filter1") |
| | | //public class XssFilter implements Filter { |
| | | // |
| | | // public void destroy() { |
| | | // |
| | | // } |
| | | // |
| | | // public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { |
| | | // HttpServletRequest req = (HttpServletRequest) request; |
| | | // HttpServletResponse resp = (HttpServletResponse) response; |
| | | // //ç¹å»å«æï¼X-Frame-Optionsæªé
ç½® æ¼æ´ä¿®æ¹ |
| | | // resp.addHeader("x-frame-options","SAMEORIGIN"); |
| | | // if (req.getMethod().equals("OPTIONS")) { |
| | | // chain.doFilter(req, resp); |
| | | // }else if(StrUtil.isNotBlank(req.getHeader("Content-Type")) && req.getHeader("Content-Type").startsWith("multipart/form-data;")) { |
| | | // chain.doFilter(req, resp); |
| | | // } else { |
| | | // chain.doFilter(new XssRequestWrapper(req), resp); |
| | | // } |
| | | // } |
| | | // |
| | | // public void init(FilterConfig filterConfig)throws ServletException{ |
| | | // |
| | | // } |
| | | // |
| | | //} |
New file |
| | |
| | | //package com.nuvole.four.config.filter; |
| | | // |
| | | //import com.nuvole.util.XssUtil; |
| | | //import org.apache.commons.text.StringEscapeUtils; |
| | | // |
| | | //import javax.servlet.http.HttpServletRequest; |
| | | //import javax.servlet.http.HttpServletRequestWrapper; |
| | | //import java.util.Map; |
| | | // |
| | | ///** |
| | | // * @ClassName XssRequestWrapper |
| | | // * @author ChenLong |
| | | // * @date 2019/7/16 19:11 |
| | | // * @version 1.0 |
| | | // * @Description XSSè¿æ»¤ç±» |
| | | // */ |
| | | //public class XssRequestWrapper extends HttpServletRequestWrapper { |
| | | // |
| | | // public XssRequestWrapper(HttpServletRequest request) { |
| | | // super(request); |
| | | // } |
| | | // |
| | | // |
| | | // @Override |
| | | // public String getHeader(String name) { |
| | | // return StringEscapeUtils.unescapeHtml4(super.getHeader(name)); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public String getQueryString() { |
| | | // return XssUtil.clearXss(super.getQueryString()); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public String getParameter(String name) { |
| | | // return XssUtil.clearXss(super.getParameter(name)); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public String[] getParameterValues(String name) { |
| | | // String[] values = super.getParameterValues(name); |
| | | // if(values != null) { |
| | | // int length = values.length; |
| | | // String[] escapseValues = new String[length]; |
| | | // for(int i = 0; i < length; i++){ |
| | | // escapseValues[i] = XssUtil.clearXss(values[i]); |
| | | // } |
| | | // return escapseValues; |
| | | // } |
| | | // return super.getParameterValues(name); |
| | | // } |
| | | // |
| | | // @Override |
| | | // public Map<String, String[]> getParameterMap() { |
| | | // Map<String, String[]> parameterMap = super.getParameterMap(); |
| | | // if (parameterMap != null) { |
| | | // for (String k : parameterMap.keySet()) { |
| | | // String[] values = parameterMap.get(k); |
| | | // if(values != null) { |
| | | // int length = values.length; |
| | | // for(int i = 0; i < length; i++){ |
| | | // values[i] = XssUtil.clearXss(values[i]); |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // return super.getParameterMap(); |
| | | // } |
| | | // |
| | | //} |
| | | // |
New file |
| | |
| | | package com.nuvole.four.config.mybatisInt;//package com.nuvole.shop.config.mybatisInt; |
| | | // |
| | | //import com.nuvole.shop.domain.StoreMemberBankcard; |
| | | //import com.nuvole.shop.service.ActivityDetailHeadBandCoupDetailService; |
| | | //import com.nuvole.util.AESUtil; |
| | | //import org.aspectj.lang.JoinPoint; |
| | | //import org.aspectj.lang.annotation.After; |
| | | //import org.aspectj.lang.annotation.Aspect; |
| | | //import org.aspectj.lang.annotation.Pointcut; |
| | | //import org.springframework.beans.factory.annotation.Autowired; |
| | | //import org.springframework.stereotype.Component; |
| | | //import org.springframework.util.CollectionUtils; |
| | | // |
| | | //import java.util.Arrays; |
| | | //import java.util.List; |
| | | // |
| | | ///** |
| | | // * @ClassName HeadBandGiveCoup |
| | | // * @Author cy |
| | | // * @Date 2022/12/13 |
| | | // * @Description |
| | | // * @Version 1.0 |
| | | // **/ |
| | | //@Aspect |
| | | //@Component |
| | | //public class HeadBandGiveCoup { |
| | | // @Autowired |
| | | // private ActivityDetailHeadBandCoupDetailService activityDetailHeadBandCoupDetailService; |
| | | // |
| | | // @Pointcut("execution(* com.nuvole.shop.mapper.StoreMemberBankcardMapper.insertSelective(..))") |
| | | // public void bindCard() { |
| | | // } |
| | | // |
| | | // @After("bindCard()") |
| | | // public void afterMethod(JoinPoint point) { |
| | | // String methodName = point.getSignature().getName(); |
| | | // System.out.println("è°ç¨åè¿æ¥ç¹æ¹æ³ä¸ºï¼" + methodName); |
| | | // List<Object> args = Arrays.asList(point.getArgs()); |
| | | // if (!CollectionUtils.isEmpty(args)) { |
| | | // Object o = args.get(0); |
| | | // if (o instanceof StoreMemberBankcard) { |
| | | // StoreMemberBankcard record = (StoreMemberBankcard) o; |
| | | // activityDetailHeadBandCoupDetailService.doGetGiveCoupon(record.getMemberId(), AESUtil.decode(record.getCardNo())); |
| | | // } |
| | | // } |
| | | // System.out.println("åæ°ä¸ºï¼" + args); |
| | | // } |
| | | // |
| | | //} |
New file |
| | |
| | | package com.nuvole.four.config.mybatisInt;//package com.nuvole.shop.config.mybatisInt; |
| | | // |
| | | //import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration; |
| | | //import org.apache.ibatis.session.SqlSessionFactory; |
| | | //import org.springframework.beans.factory.annotation.Autowired; |
| | | //import org.springframework.boot.autoconfigure.AutoConfigureAfter; |
| | | //import org.springframework.context.annotation.Configuration; |
| | | // |
| | | //import javax.annotation.PostConstruct; |
| | | //import java.util.List; |
| | | // |
| | | ///** |
| | | // * @ClassName MyBatisConfig |
| | | // * @Author cy |
| | | // * @Date 2022/12/13 |
| | | // * @Description |
| | | // * @Version 1.0 |
| | | // **/ |
| | | //@AutoConfigureAfter(PageHelperAutoConfiguration.class) |
| | | //@Configuration |
| | | // |
| | | //public class MyBatisConfig { |
| | | // @Autowired |
| | | // private List<SqlSessionFactory> sqlSessionFactoryList; |
| | | // |
| | | // @PostConstruct |
| | | // public void addMySqlInterceptor() { |
| | | // MySqlInterceptor interceptor = new MySqlInterceptor(); |
| | | // for (SqlSessionFactory sqlSessionFactory : sqlSessionFactoryList) { |
| | | // sqlSessionFactory.getConfiguration().addInterceptor(interceptor); |
| | | // |
| | | // } |
| | | // } |
| | | //} |
New file |
| | |
| | | package com.nuvole.four.config.mybatisInt;//package com.nuvole.shop.config.mybatisInt; |
| | | // |
| | | //import com.nuvole.util.AESUtil; |
| | | //import lombok.extern.slf4j.Slf4j; |
| | | //import org.apache.ibatis.binding.MapperMethod; |
| | | //import org.apache.ibatis.executor.Executor; |
| | | //import org.apache.ibatis.mapping.MappedStatement; |
| | | //import org.apache.ibatis.plugin.*; |
| | | //import org.apache.ibatis.session.ResultHandler; |
| | | //import org.apache.ibatis.session.RowBounds; |
| | | //import org.springframework.stereotype.Component; |
| | | // |
| | | //import java.util.Properties; |
| | | // |
| | | ///** |
| | | // * @ClassName MySqlInterceptor |
| | | // * @Author cy |
| | | // * @Date 2022/12/13 |
| | | // * @Description |
| | | // * @Version 1.0 |
| | | // **/ |
| | | //@Slf4j |
| | | //@Intercepts({@Signature(type = Executor.class, method = "query", |
| | | // args = {MappedStatement.class, |
| | | // Object.class, |
| | | // RowBounds.class, |
| | | // ResultHandler.class})}) |
| | | //@Component |
| | | //public class MySqlInterceptor implements Interceptor { |
| | | //// @Autowired |
| | | //// private ActivityDetailHeadBandCoupDetailService activityDetailHeadBandCoupDetailService; |
| | | // |
| | | // @Override |
| | | // /** |
| | | // * intercept æ¹æ³ç¨æ¥å¯¹æ¦æªç sql è¿è¡å
·ä½çæä½ |
| | | // * æ¬æ¦æªæ¹æ³åªå¯¹ mapper æ¥å£ä¸ç searchByQuery æ¹æ³è¿è¡æ¦æªï¼å®é
æ¯ä¸ªæ¹æ³é½æ¦æªäºï¼ |
| | | // * åªæ¯åªæ searchByQuery æ¹æ³æ¶ï¼æçæ£æ§è¡ æ¦æªçç¸å
³æä½ |
| | | // * @param invocation æ¦æªå¨æ§è¡å¨ |
| | | // * @return |
| | | // * @throws Throwable å¼å¸¸ä¿¡æ¯ |
| | | // */ |
| | | // public Object intercept(Invocation invocation) throws Throwable { |
| | | // // logger.info("æ§è¡interceptæ¹æ³ï¼{}", invocation.toString()); |
| | | // // è·å invocation ä¼ éçåæ° |
| | | // Object[] args = invocation.getArgs(); |
| | | // |
| | | // MappedStatement ms = (MappedStatement) args[0]; |
| | | // // è·åæ§è¡çè¯¥æ¦æªå¨çå
¨è·¯å¾æ¹æ³ æ¯å¦ä½ ç UserInfoMapper æ¥å£ç getById æ¹æ³ï¼ com.xx.UserInfoMapper.getById |
| | | // String id = ms.getId(); |
| | | // // 妿䏿¯ searchByQuery æ¹æ³ï¼å°±ä¸è¿è¡ç¸å
³çæ¦æªæä½ |
| | | // Object proceed = invocation.proceed(); |
| | | // if (!filterMethodById(id)) { |
| | | // return proceed; |
| | | // } |
| | | // |
| | | // // è¯¥åæ°ç±»å org.apache.ibatis.binding.MapperMethod$ParamMap |
| | | // Object parameterObject = args[1]; |
| | | // // è·åä¼ éçåæ°ï¼ ä¸»è¦å
å«ä¸ä¸ªåæ° 1. æ¥è¯¢è¯å¥ searchQueryï¼ 2. æ¥è¯¢åç§» pageOffset, 3. æ¥è¯¢æ¯é¡µçæ°æ®æ¡æ° |
| | | // MapperMethod.ParamMap paramMap = (MapperMethod.ParamMap) parameterObject; |
| | | // |
| | | // Long memberId = null; |
| | | // String cardNo = null; |
| | | // if (paramMap.containsKey("memberId")) { |
| | | // memberId = (Long) paramMap.get("memberId"); |
| | | // } |
| | | // if (paramMap.containsKey("cardNo")) { |
| | | // cardNo = AESUtil.decode((String) paramMap.get("cardNo")); |
| | | // } |
| | | //// activityDetailHeadBandCoupDetailService.doGetGiveCoupon(memberId, cardNo); |
| | | // log.info("æ¦æªäº " + id + " ç¸å
³æ§è¡ã"); |
| | | // return proceed; |
| | | // } |
| | | // |
| | | // @Override |
| | | // /*** |
| | | // * å®ä¹æ¦æªçç±» ExecutorãParameterHandlerãStatementHandlerãResultSetHandlerå½ä¸çä¸ä¸ª |
| | | // * @param target éè¦æ¦æªçç±» |
| | | // * @return |
| | | // */ |
| | | // public Object plugin(Object target) { |
| | | // if (target instanceof Executor) { |
| | | // return Plugin.wrap(target, this); |
| | | // } |
| | | // return target; |
| | | // } |
| | | // |
| | | // @Override |
| | | // /** |
| | | // * 屿§ç¸å
³æä½ |
| | | // * 设置åèªå®ä¹å±æ§å¼ |
| | | // * @param properties 屿§å¼ |
| | | // */ |
| | | // public void setProperties(Properties properties) { |
| | | // // è·å屿§ |
| | | // // String value1 = properties.getProperty("prop1"); |
| | | // } |
| | | // |
| | | // |
| | | // /** |
| | | // * æ ¹æ®è·åå°æ§è¡ id æ¾å°å¯¹åºçæ¹æ³ï¼åªå¨ insertSelective æ¹æ³ä¸æ§è¡æ¦æª |
| | | // * |
| | | // * @param id æ ¹æ® MappedStatement è·åå°ç id 屿§ |
| | | // * @return æ¯å¦æ¯ insertSelective æ¹æ³ |
| | | // */ |
| | | // private boolean filterMethodById(String id) { |
| | | // System.out.println("id: " + id); |
| | | // return id.contains("com.nuvole.shop.mapper.extend.StoreMemberBankcardMapper.insertSelective"); |
| | | // } |
| | | // |
| | | // private void headBandGiveCoup(Long memberId) { |
| | | // |
| | | // } |
| | | // |
| | | //} |
New file |
| | |
| | | package com.nuvole.four.config.redis; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonAutoDetect; |
| | | import com.fasterxml.jackson.annotation.PropertyAccessor; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CachingConfigurerSupport; |
| | | import org.springframework.cache.annotation.EnableCaching; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.data.redis.connection.RedisConnectionFactory; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; |
| | | /** |
| | | * ç±»æè¿°: Redisåºååé
ç½® |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-11 14:17 |
| | | * @version 1.0 |
| | | **/ |
| | | @Configuration |
| | | @EnableCaching |
| | | public class RedisConfig extends CachingConfigurerSupport { |
| | | |
| | | @Autowired |
| | | RedisConnectionFactory redisConnectionFactory; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: RedisTemplateé
ç½® |
| | | * |
| | | * @date 2024-04-11 14:18 |
| | | **/ |
| | | @Bean |
| | | public RedisTemplate<String, String> redisTemplate(RedisConnectionFactory factory) { |
| | | StringRedisTemplate template = new StringRedisTemplate(factory); |
| | | setSerializer(template);//设置åºååå·¥å
· |
| | | template.afterPropertiesSet(); |
| | | return template; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: Redisåºååæ¹å¼ |
| | | * |
| | | * @date 2024-04-11 14:18 |
| | | **/ |
| | | private void setSerializer(StringRedisTemplate template) { |
| | | @SuppressWarnings({"rawtypes", "unchecked"}) |
| | | Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class); |
| | | ObjectMapper om = new ObjectMapper(); |
| | | om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); |
| | | om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); |
| | | jackson2JsonRedisSerializer.setObjectMapper(om); |
| | | template.setValueSerializer(jackson2JsonRedisSerializer); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.contants; |
| | | |
| | | /** |
| | | * @Desc: 常éç±» |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | public class Contants { |
| | | |
| | | /** |
| | | * 综ååå°ç»å½ç±»å |
| | | */ |
| | | public static final String LOGIN_TYPE_PC = "PC"; |
| | | |
| | | /** |
| | | * å°ç¨åºååç»å½ç±»å |
| | | */ |
| | | public static final String LOGIN_TYPE_WECHAT = "WECHAT"; |
| | | |
| | | /** |
| | | * å°ç¨åºååè¶
æ¶æ¶é¿ |
| | | */ |
| | | public static final Long SHOP_WECHAT_TOKEN_EXPIRE = Long.valueOf(60 * 24 * 30); |
| | | |
| | | /** |
| | | * 客æ·ç»çappç»å½ç±»å |
| | | */ |
| | | public static final String LOGIN_TYPE_MANAGER_APP = "APP_MANAGER"; |
| | | |
| | | /** |
| | | * åæ·æ«ç ä»å¾®ä¿¡ token header æ è¯ï¼å
å«åæ·H5ï¼ |
| | | */ |
| | | public static final String SCAN_WECHAT_TOKEN_HEADER = "SCAN-WECHAT-TOKEN-HEADER"; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:çæcodeçæ è¯ |
| | | * |
| | | * @date 2024-04-13 14:40 |
| | | **/ |
| | | public static final String CODE = "000"; |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller; |
| | | |
| | | /** |
| | | * @Desc: åºç¡Controller |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | public class BaseController { |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.app; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDto; |
| | | import com.nuvole.four.domain.params.ChannelOrgConfigParam; |
| | | import com.nuvole.four.service.ChannelOrgConfigService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.CommonUtil; |
| | | import com.nuvole.util.PageUtils; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: APPæºæééæ¥è¯¢ |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | @Api(value = "APPæºæééæ¥è¯¢", tags = "APPæºæééæ¥è¯¢") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping(value = "/v1/four/manager/app/channel/org/config") |
| | | public class AppChannelOrgConfigController extends BaseController { |
| | | @Autowired |
| | | private ChannelOrgConfigService channelOrgConfigService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæéé详æ
|
| | | * 详æ
ä¸çéé ä»
å
å«å½åorgId对åºçpId对åºçéé |
| | | * @date 2024-04-11 20:04 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºæéé详æ
", notes = "æ¥è¯¢æºæéé详æ
") |
| | | @GetMapping("/getDetail") |
| | | public CommonResult<ChannelOrgConfigDetailDto> getChannelOrgConfigDetail( |
| | | @ApiParam(name = "orgId", value = "æºæID") Long orgId) |
| | | { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_MANAGER_APP); |
| | | orgId = user.getOrgId(); |
| | | ChannelOrgConfigDetailDto dtoList = channelOrgConfigService.getChannelOrgConfigDetail(orgId); |
| | | return new CommonResult(dtoList); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.nuvole.four.controller.app; |
| | | |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.service.impl.StoreIndustryManageServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Desc: appè¡ä¸controller |
| | | * @Author: dqh |
| | | * @Date: 2024-04-18 |
| | | **/ |
| | | @Api(value = "APPè¡ä¸æ¥è¯¢", tags = "APPè¡ä¸æ¥è¯¢") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping(value = "/v1/four/manager/app/store/industry/manage") |
| | | public class AppStoreIndustryManageController extends BaseController { |
| | | |
| | | @Autowired |
| | | private StoreIndustryManageServiceImpl storeIndustryManageService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢ææè¡ä¸æ |
| | | * |
| | | * @date 2024-04-12 18:43 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢ææè¡ä¸æ ", notes = "æ¥è¯¢ææè¡ä¸æ ") |
| | | @GetMapping("/getIndustryTree") |
| | | public CommonResult<List<Map>> getIndustryTree(Integer status) { |
| | | Map map = new HashMap(); |
| | | if(status == null){ |
| | | map.put("status",1); |
| | | } |
| | | List<Map> list = storeIndustryManageService.getIndustryTree(map); |
| | | return new CommonResult<>(list); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.service.ActivityDistributeRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´âé¢ç®åé
管ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:36:24 |
| | | */ |
| | | @Api(value = "æ´»å¨é¢ç®åé
ç®¡çæ¥å£", tags = "æ´»å¨é¢ç®åé
ç®¡çæ¥å£") |
| | | @EnableTransactionManagement |
| | | @RestController |
| | | @RequestMapping("/v1/four/pc/activity/distribute/record") |
| | | public class ActivityDistributeRecordController extends BaseController { |
| | | |
| | | @Autowired |
| | | private ActivityDistributeRecordService activityDistributeRecordService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: åé
é¢ç®æ¥è¯¢ |
| | | * é»è®¤ä»
æ¥è¯¢å½åç»å½äººçæºæä¸çº§ãä¸å
å«ä¸ä¸çº§ |
| | | * @date 2024-04-14 10:43 |
| | | **/ |
| | | @ApiOperation(value = "åé
é¢ç®æ¥è¯¢", notes = "åé
é¢ç®æ¥è¯¢") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "æ´»å¨id")}) |
| | | @GetMapping("/getDetail") |
| | | public CommonResult<ActivityDistributeBudgetDto> getActivityDistributeRecordDetail(Long id) |
| | | { |
| | | List<ActivityDistributeBudgetDto> dtoList = activityDistributeRecordService.getActivityDistributeRecordDetail(id); |
| | | return new CommonResult(dtoList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:åé
é¢ç®ä¿å |
| | | * æidåè¿è¡æ´æ°ï¼æ åæ°å¢ |
| | | * |
| | | * @date 2024-04-14 12:41 |
| | | **/ |
| | | @ApiOperation(value = "æ·»å é¢ç®åé
", notes = "æ·»å é¢ç®åé
") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "recordArray") }) |
| | | @PostMapping("/add") |
| | | public CommonResult<Integer> add(String recordArray) { |
| | | List<ActivityDistributeRecord> recordList = new ArrayList<>(); |
| | | if (StrUtil.isNotBlank(recordArray)) { |
| | | Object object = JSON.parse(recordArray); |
| | | if (object instanceof JSONArray) { |
| | | recordList = JSONArray.parseArray(recordArray, ActivityDistributeRecord.class); |
| | | } |
| | | } |
| | | CommonResult result = new CommonResult<>(activityDistributeRecordService.batchInsertOrUpdate(recordList)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.client.ShopServiceClient; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.domain.dto.ActivityFeeDetailDto; |
| | | import com.nuvole.four.domain.query.ActivityFeeQuery; |
| | | import com.nuvole.four.service.ActivityFeeService; |
| | | import com.nuvole.four.service.impl.ActivityDistributeRecordServiceImpl; |
| | | import com.nuvole.four.service.impl.SysOrgServiceImpl; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.CommonUtil; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description è´¹ç补贴活å¨ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:33:08 |
| | | */ |
| | | @Api(value = "è´¹ç补贴活å¨ç®¡çæ¥å£", tags = "è´¹ç补贴活å¨ç®¡çæ¥å£") |
| | | @EnableTransactionManagement |
| | | @RestController |
| | | @RequestMapping("/v1/four/pc/acitivity/fee") |
| | | @RequiredArgsConstructor |
| | | public class ActivityFeeController extends BaseController { |
| | | |
| | | private final ActivityFeeService activityFeeService; |
| | | private final SysOrgServiceImpl sysOrgService; |
| | | private final ActivityDistributeRecordServiceImpl activityDistributeRecordService; |
| | | private final ShopServiceClient shopServiceClient; |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢è´¹ç补贴活å¨å表 |
| | | * |
| | | * @date 2024-04-13 21:46 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢å表", notes = "æ¥è¯¢å表") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "AcitivityFeeQuery") }) |
| | | @GetMapping("/getList") |
| | | public CommonResult<PageBean> getList(@ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | ActivityFeeQuery copy = CommonUtil.getObjFromReq(ActivityFeeQuery.class); |
| | | ActivityFeeQuery query = new ActivityFeeQuery(); |
| | | BeanUtils.copyProperties(copy, query); |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | |
| | | PageHelper.orderBy("create_time desc"); |
| | | List<ActivityFee> list = activityFeeService.getList(query); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: è´¹çè¡¥è´´æ´»å¨æ·»å |
| | | * |
| | | * @date 2024-04-13 21:46 |
| | | **/ |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "AcitivityFee") }) |
| | | @PostMapping("/add") |
| | | public CommonResult<Integer> add() { |
| | | ActivityFee copy = CommonUtil.getObjFromReq(ActivityFee.class); |
| | | ActivityFee activityFee = new ActivityFee(); |
| | | BeanUtils.copyProperties(copy, activityFee); |
| | | |
| | | CommonResult result = new CommonResult<>(activityFeeService.addSelective(activityFee)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®idæ¥è¯¢åé
é¢ç®è¯¦æ
|
| | | * |
| | | * @date 2024-04-13 22:02 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢åé
é¢ç®è¯¦æ
", notes = "æ ¹æ®idæ¥è¯¢åé
é¢ç®è¯¦æ
") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @GetMapping("/get") |
| | | public CommonResult<ActivityFee> get(Long id) { |
| | | CommonResult result = new CommonResult(); |
| | | result = new CommonResult<>(activityFeeService.get(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢åé
é¢åº¦ä¿¡æ¯ |
| | | * |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢åé
é¢åº¦ä¿¡æ¯", notes = "æ¥è¯¢åé
é¢åº¦ä¿¡æ¯") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @GetMapping("/getFeeMsg") |
| | | public CommonResult getFeeMsg(Long id) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | CommonResult result = new CommonResult(); |
| | | //superç¨æ·ç´æ¥æ¥è¯¢æ´»å¨æ¬èº« |
| | | if(user.getLoginName().equalsIgnoreCase("super") && user.getOrgId() == null){ |
| | | return new CommonResult(activityFeeService.get(id)); |
| | | } |
| | | if(user.getOrgId() != null){ |
| | | SysOrg sysOrg = sysOrgService.getById(user.getOrgId()); |
| | | //æ¥è¯¢æºæåé
çé¢ç®é¢åº¦ |
| | | ActivityDistributeRecord record = activityDistributeRecordService.getFeeByCondition(id, sysOrg.getId()); |
| | | result = new CommonResult<>(record); |
| | | if(record == null){ |
| | | //æ¥è¯¢æ´»å¨æ¬èº«çé¢ç®é¢åº¦ |
| | | result = new CommonResult<>(activityDistributeRecordService.getActivityFeeByIdAndOrgId(id, sysOrg.getId())); |
| | | } |
| | | } |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨æ°æ® |
| | | * |
| | | * @date 2024-04-15 13:17 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨æ°æ®", notes = "æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨æ°æ®") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @GetMapping("/getDetail") |
| | | public CommonResult<ActivityFeeDetailDto> getActivityFeeDetail(Long id) { |
| | | ActivityFeeDetailDto detailDto = activityFeeService.getActivityFeeDetail(id); |
| | | return new CommonResult<>(detailDto); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ® |
| | | * |
| | | * @date 2024-04-15 16:47 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ®", notes = "æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ®") |
| | | @GetMapping("/merchantActivityList") |
| | | public CommonResult merchantActivityList( |
| | | @ApiParam(name = "orgCode", value = "æºæcode") String orgCode, |
| | | @ApiParam(name = "channelId", value = "ééid") Long channelId, |
| | | @ApiParam(name = "activityId", value = "æ´»å¨ID", required = true) Long activityId, |
| | | @ApiParam(name = "startDate", value = "äº¤ææ¶é´") Date startDate, |
| | | @ApiParam(name = "endDate", value = "交æç»ææ¶é´") Date endDate, |
| | | @ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | if(activityId == null){ |
| | | throw new IllegalArgumentException("æ´»å¨IDä¸è½ä¸ºç©º"); |
| | | } |
| | | if(StrUtil.isBlank(orgCode)){ |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | orgCode = user.getOrgCode(); |
| | | } |
| | | CommonResult<PageBean<Map>> mapResult = shopServiceClient.merchantActivityList(orgCode, channelId, activityId, startDate,endDate, pageNumber, pageSize); |
| | | return mapResult; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ®-æ°æ®æ±æ» |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ®-æ°æ®æ±æ»", notes = "æ¥è¯¢æ´»å¨è¯¦æ
-åæ·æ´»å¨æ°æ®-æ°æ®æ±æ»") |
| | | @GetMapping("/merchantActivityCollect") |
| | | public CommonResult merchantActivityCollect( |
| | | @ApiParam(name = "orgCode", value = "æºæcode") String orgCode, |
| | | @ApiParam(name = "channelId", value = "ééid") Long channelId, |
| | | @ApiParam(name = "activityId", value = "æ´»å¨ID", required = true) Long activityId, |
| | | @ApiParam(name = "startDate", value = "交æå¼å§æ¶é´") Date startDate, |
| | | @ApiParam(name = "endDate", value = "交æç»ææ¶é´") Date endDate) { |
| | | if(activityId == null){ |
| | | throw new IllegalArgumentException("æ´»å¨IDä¸è½ä¸ºç©º"); |
| | | } |
| | | if(StrUtil.isBlank(orgCode)){ |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | orgCode = user.getOrgCode(); |
| | | } |
| | | CommonResult<Map> mapResult = shopServiceClient.merchantActivityCollect(orgCode, channelId, activityId, startDate,endDate); |
| | | return mapResult; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: ç¼è¾è´¹çè¡¥è´´æ´»å¨ |
| | | * |
| | | * @date 2024-04-13 22:01 |
| | | **/ |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "AcitivityFee") }) |
| | | @PostMapping("/upd") |
| | | public CommonResult<Integer> upd() { |
| | | ActivityFee copy = CommonUtil.getObjFromReq(ActivityFee.class); |
| | | ActivityFee activityFee = new ActivityFee(); |
| | | BeanUtils.copyProperties(copy, activityFee); |
| | | |
| | | CommonResult result = new CommonResult<>(activityFeeService.editSelective(activityFee)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å é¤è´¹çè¡¥è´´æ´»å¨ |
| | | * |
| | | * @date 2024-04-13 22:01 |
| | | **/ |
| | | @ApiOperation(value = "å é¤", notes = "å é¤") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @PostMapping("/del") |
| | | public CommonResult<Integer> del(Long id) { |
| | | CommonResult result = new CommonResult<>(activityFeeService.del(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å¼å§/忢 |
| | | * åæ¥åæ¢æ´»å¨è¡¨ãåæ·æ´»å¨è¡¨ãæºæé¢ç®åé
表 |
| | | * |
| | | * @date 2024-04-14 15:55 |
| | | **/ |
| | | @ApiOperation(value = "å¼å§/忢", notes = "å¼å§/忢") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id"), |
| | | @ApiImplicitParam(name = "status", value = "ç¶æ;1=å¼å§ 2=忢(ç»æ)")}) |
| | | @PostMapping("/startOrStop") |
| | | public CommonResult<Integer> startOrStop(Long id,Integer status) { |
| | | CommonResult result = new CommonResult<>(activityFeeService.startOrStop(id,status)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.client.ShopServiceClient; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import com.nuvole.four.domain.dto.ActivityShopRecordDto; |
| | | import com.nuvole.four.domain.params.ActivityShopRecordParam; |
| | | import com.nuvole.four.domain.query.ActivityShopRecordQuery; |
| | | import com.nuvole.four.service.ActivityShopRecordService; |
| | | import com.nuvole.four.service.ChannelInfoService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.CommonUtil; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ·ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | @Api(value = "æ´»å¨è¡¥è´´â䏿¥åæ·ç®¡çæ¥å£", tags = "æ´»å¨è¡¥è´´â䏿¥åæ·ç®¡çæ¥å£") |
| | | @EnableTransactionManagement |
| | | @RestController |
| | | @RequestMapping("/v1/four/pc/activity/shop/record") |
| | | @RequiredArgsConstructor |
| | | public class ActivityShopRecordController extends BaseController { |
| | | |
| | | private final ActivityShopRecordService activityShopRecordService; |
| | | private final ChannelInfoService channelInfoService; |
| | | private final ShopServiceClient shopServiceClient; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢å表", notes = "æ¥è¯¢å表") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "ActivityShopRecordQuery")}) |
| | | @GetMapping("/getList") |
| | | public CommonResult<PageBean> getList(@ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | ActivityShopRecordQuery copy = CommonUtil.getObjFromReq(ActivityShopRecordQuery.class); |
| | | ActivityShopRecordQuery query = new ActivityShopRecordQuery(); |
| | | BeanUtils.copyProperties(copy, query); |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | |
| | | PageHelper.orderBy("create_time desc"); |
| | | |
| | | List<ActivityShopRecord> list = activityShopRecordService.getList(query); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¹éæ·»å 䏿¥ |
| | | * |
| | | * @date 2024-04-15 9:41 |
| | | **/ |
| | | @ApiOperation(value = "æ·»å 䏿¥", notes = "æ·»å 䏿¥") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "recordArray") }) |
| | | @PostMapping("/add") |
| | | public CommonResult<Integer> add(String recordArray) { |
| | | List<ActivityShopRecord> recordList = new ArrayList<>(); |
| | | if (StrUtil.isNotBlank(recordArray)) { |
| | | Object object = JSON.parse(recordArray); |
| | | if (object instanceof JSONArray) { |
| | | recordList = JSONArray.parseArray(recordArray, ActivityShopRecord.class); |
| | | } |
| | | } |
| | | |
| | | CommonResult result = new CommonResult<>(activityShopRecordService.batchInsert(recordList)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢", notes = "æ ¹æ®idæ¥è¯¢") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主é®id")}) |
| | | @GetMapping("/get") |
| | | public CommonResult<ActivityShopRecord> get(Long id) { |
| | | CommonResult result = new CommonResult<>(activityShopRecordService.get(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤", notes = "å é¤") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主é®id")}) |
| | | @PostMapping("/del") |
| | | public CommonResult<Integer> del(Long id) { |
| | | CommonResult result = new CommonResult<>(activityShopRecordService.del(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®åºéºidæ¥è¯¢æ´»å¨è´¹ç", notes = "æ ¹æ®åºéºidæ¥è¯¢æ´»å¨è´¹ç") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "åºéºid", value = "åºéºid")}) |
| | | @GetMapping("/getActRateByShopIdAndChannelId") |
| | | public CommonResult<Map> getActRateByShopIdAndChannelId(Long shopId, Long channelId) { |
| | | ChannelInfo channelInfo = channelInfoService.getChannelInfo(channelId); |
| | | HashMap<Object, Object> channelRateMap = new HashMap<>(); |
| | | if (channelInfo != null) { |
| | | channelRateMap.put("onlineAgreeWxRate", channelInfo.getOnlineAgreeWxRate()); |
| | | channelRateMap.put("onlineAgreeZfbRate", channelInfo.getOnlineAgreeZfbRate()); |
| | | channelRateMap.put("onlineAgreeUnionpayRate", channelInfo.getOnlineAgreeUnionpayRate()); |
| | | channelRateMap.put("offlineAgreeWxRate", channelInfo.getOfflineAgreeWxRate()); |
| | | channelRateMap.put("offlineAgreeZfbRate", channelInfo.getOfflineAgreeZfbRate()); |
| | | channelRateMap.put("offlineAgreeUnionpayRate", channelInfo.getOfflineAgreeUnionpayRate()); |
| | | } |
| | | Map actRateMap = activityShopRecordService.getActRateByShopIdAndChannelId(shopId, channelId); |
| | | if (actRateMap != null) { |
| | | channelRateMap.putAll(actRateMap); |
| | | } |
| | | CommonResult result = new CommonResult<>(channelRateMap); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åºéºä½¿ç¨é¢åº¦", notes = "æ ¹æ®åºéºidæ¥è¯¢æ´»å¨è´¹ç") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "åºéºid", value = "åºéºid")}) |
| | | @PostMapping("/updShopSurplusFee") |
| | | public CommonResult<Map> updShopSurplusFee(Long activityId, Long merchantShopId, Long channelId, Integer useFee) { |
| | | CommonResult result = new CommonResult<>(activityShopRecordService.updShopSurplusFee(activityId, merchantShopId, channelId, useFee)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:䏿¥åæ·å表 |
| | | * è°ç¨service-shop |
| | | * @date 2024-04-14 19:04 |
| | | **/ |
| | | @ApiOperation(value = "䏿¥åæ·å表", notes = "䏿¥åæ·å表") |
| | | @GetMapping("/getToMerchantList") |
| | | public CommonResult getToMerchantList( |
| | | @ApiParam(name = "queryOrgCode", value = "æºæcode") String queryOrgCode, |
| | | @ApiParam(name = "merchantId", value = "æå±åæ·id") String merchantId, |
| | | @ApiParam(name = "shopName", value = "åºéºåç§°") String shopName, |
| | | @ApiParam(name = "managerName", value = "客æ·ç»çåç§°") String managerName, |
| | | @ApiParam(name = "channelId", value = "ééid") String channelId, |
| | | @ApiParam(name = "activityId", value = "æ´»å¨ID") Long activityId, |
| | | @ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | if(StrUtil.isBlank(queryOrgCode)){ |
| | | queryOrgCode = user.getOrgCode(); |
| | | } |
| | | CommonResult<PageBean<Map>> mapResult = shopServiceClient.getMerchantShopExtendList(queryOrgCode,merchantId,shopName,managerName,channelId,"channelIdNotNull",pageNumber,pageSize); |
| | | List<Map> mapList = mapResult.getData().getRows(); |
| | | if(!CollectionUtils.isEmpty(mapList)){ |
| | | String[] idsArr = mapList.stream() |
| | | .map(map -> { |
| | | Object idObject = map.get("id"); |
| | | if (idObject != null) { |
| | | return idObject.toString(); |
| | | } else { |
| | | // 妿 idObject 为 nullï¼è·³è¿è¯¥å¼ï¼ä¸å¨filterä¸è¿æ»¤æä¸ºnullçå¼ |
| | | return null; |
| | | } |
| | | }) |
| | | .filter(Objects::nonNull).toArray(String[]::new); |
| | | //å¹é
æ¯å¦å·²ä¸æ¥ï¼å¹¶æ·»å è¿åæ è¯å段 |
| | | List<ActivityShopRecord> recordList = activityShopRecordService.selectByCondition(idsArr,activityId); |
| | | //existsShopIds = 已䏿¥çshopIds |
| | | List<Long> existsShopIds = recordList.stream() |
| | | .map(ActivityShopRecord::getMerchantShopId) |
| | | .collect(Collectors.toList()); |
| | | mapList.forEach(map -> { |
| | | Object idObject = map.get("id"); |
| | | Long id = Long.parseLong(idObject.toString()); |
| | | if(existsShopIds.contains(id)){ |
| | | //已䏿¥è¿çåæ· |
| | | map.put("existsOrNot",1); |
| | | }else{ |
| | | //æªä¸æ¥çåæ· |
| | | map.put("existsOrNot",0); |
| | | } |
| | | }); |
| | | } |
| | | PageBean pageBean = new PageBean(); |
| | | pageBean.setPageNumber(pageNumber); |
| | | pageBean.setPageSize(pageSize); |
| | | pageBean.setRows(mapList); |
| | | pageBean.setTotal(mapResult.getData().getTotal()); |
| | | CommonResult result = new CommonResult<>(pageBean); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:已䏿¥åæ·å表 |
| | | * |
| | | * @date 2024-04-14 20:35 |
| | | **/ |
| | | @ApiOperation(value = "已䏿¥åæ·å表", notes = "已䏿¥åæ·å表") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "ActivityShopRecordParam") }) |
| | | @GetMapping("/getAlreadyMerchantList") |
| | | public CommonResult<PageBean> getAlreadyMerchantList( |
| | | @ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | ActivityShopRecordParam copy = CommonUtil.getObjFromReq(ActivityShopRecordParam.class); |
| | | ActivityShopRecordParam param = new ActivityShopRecordParam(); |
| | | BeanUtils.copyProperties(copy, param); |
| | | |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | PageHelper.orderBy("create_time desc"); |
| | | |
| | | List<ActivityShopRecordDto> list = activityShopRecordService.getAlreadyMerchantList(param); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import com.nuvole.four.domain.dto.ChannelInfoDto; |
| | | import com.nuvole.four.service.ChannelInfoService; |
| | | import com.nuvole.util.CommonUtil; |
| | | import com.nuvole.util.PageUtils; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: ééä¿¡æ¯ç»´æ¤Controller |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | @Api(value = "ééä¿¡æ¯ç»´æ¤", tags = "ééä¿¡æ¯ç»´æ¤") |
| | | @Slf4j |
| | | @RestController |
| | | @CrossOrigin |
| | | @RequestMapping(value = "/v1/four/pc/channel") |
| | | public class ChannelInfoController extends BaseController { |
| | | @Autowired |
| | | private ChannelInfoService channelInfoService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢ééå表 |
| | | * |
| | | * @date 2024-04-11 14:42 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢ééä¿¡æ¯å表", notes = "æ¥è¯¢ééä¿¡æ¯å表") |
| | | @GetMapping("/getChannelInfoList") |
| | | public CommonResult<PageBean<ChannelInfo>> getChannelInfoList( |
| | | @ApiParam(name = "channelName", value = "ééåç§°") String channelName, |
| | | @ApiParam(name = "status", value = "ç¶æ;0=å¯ç¨,1=ç¦ç¨") Integer status, |
| | | @ApiParam(name = "pageNumber", value = "页ç ", defaultValue = "1", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¡æ°", defaultValue = "10", required = true) Integer pageSize, |
| | | @ApiParam(name = "sortName", value = "æåºåç§°") String sortName, |
| | | @ApiParam(name = "sortOrder", value = "æåºæ¹å¼") String sortOrder |
| | | ) { |
| | | if (StringUtils.isNotBlank(sortName) && StringUtils.isNotBlank(sortOrder)) { |
| | | PageHelper.orderBy(PageUtils.orderParser(sortName, sortOrder)); |
| | | } else { |
| | | PageHelper.orderBy("create_time desc"); |
| | | } |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | ChannelInfo channelInfo = new ChannelInfo(); |
| | | channelInfo.setChannelName(channelName); |
| | | channelInfo.setStatus(status); |
| | | |
| | | List<ChannelInfoDto> list = channelInfoService.getPageList(channelInfo); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢ééå表 |
| | | * |
| | | * @date 2024-04-11 14:42 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢ææééä¿¡æ¯å表", notes = "æ¥è¯¢ææééä¿¡æ¯å表") |
| | | @GetMapping("/getAllList") |
| | | public CommonResult<List<ChannelInfo>> getAllChannelInfoList( |
| | | @ApiParam(name = "channelName", value = "ééåç§°") String channelName, |
| | | @ApiParam(name = "status", value = "ç¶æ;0=å¯ç¨,1=ç¦ç¨") Integer status, |
| | | @ApiParam(name = "sortName", value = "æåºåç§°") String sortName, |
| | | @ApiParam(name = "sortOrder", value = "æåºæ¹å¼") String sortOrder |
| | | ) { |
| | | if (StringUtils.isNotBlank(sortName) && StringUtils.isNotBlank(sortOrder)) { |
| | | PageHelper.orderBy(PageUtils.orderParser(sortName, sortOrder)); |
| | | } else { |
| | | PageHelper.orderBy("create_time desc"); |
| | | } |
| | | ChannelInfo channelInfo = new ChannelInfo(); |
| | | channelInfo.setChannelName(channelName); |
| | | channelInfo.setStatus(status); |
| | | List<ChannelInfo> list = channelInfoService.getList(channelInfo); |
| | | return new CommonResult<>(list); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ°å¢éé |
| | | * |
| | | * @date 2024-04-11 14:42 |
| | | **/ |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "ChannelInfo") }) |
| | | @PostMapping("/save") |
| | | public CommonResult<Integer> save() { |
| | | ChannelInfo channelInfo = CommonUtil.getObjFromReq(ChannelInfo.class); |
| | | channelInfoService.saveChannelInfo(channelInfo); |
| | | return new CommonResult(CommonResultEmnu.OK); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: ä¿®æ¹éé |
| | | * |
| | | * @date 2024-04-11 14:41 |
| | | **/ |
| | | @ApiOperation(value = "ç¼è¾", notes = "ç¼è¾") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "ChannelInfo") }) |
| | | @PostMapping("/upd") |
| | | public CommonResult<Integer> upd() { |
| | | ChannelInfo channelInfo = CommonUtil.getObjFromReq(ChannelInfo.class); |
| | | channelInfoService.updateChannelInfo(channelInfo); |
| | | return new CommonResult(CommonResultEmnu.OK); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®IDæ¥è¯¢éé详æ
|
| | | * |
| | | * @date 2024-04-11 14:42 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢ééä¿¡æ¯è¯¦æ
", notes = "æ¥è¯¢ééä¿¡æ¯è¯¦æ
") |
| | | @GetMapping("/getDetail") |
| | | public CommonResult<ChannelInfo> getChannelInfoDetail( |
| | | @ApiParam(name = "id", value = "ééID") Long id) |
| | | { |
| | | ChannelInfo dtoList = channelInfoService.getChannelInfo(id); |
| | | return new CommonResult<>(dtoList); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®codeæ¥è¯¢éé详æ
|
| | | * |
| | | * @date 2024-04-11 14:42 |
| | | **/ |
| | | @ApiOperation(value = "æ ¹æ®codeæ¥è¯¢éé详æ
", notes = "æ ¹æ®codeæ¥è¯¢éé详æ
") |
| | | @GetMapping("/getDetailByCode") |
| | | public CommonResult<ChannelInfo> getDetailByCode(@ApiParam(name = "channelCode", value = "éécode") String channelCode) { |
| | | ChannelInfo dtoList = channelInfoService.getDetailByCode(channelCode); |
| | | return new CommonResult(dtoList); |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDto; |
| | | import com.nuvole.four.domain.params.ChannelOrgConfigParam; |
| | | import com.nuvole.four.service.ChannelOrgConfigService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.CommonUtil; |
| | | import com.nuvole.util.PageUtils; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: æºæééé
ç½®Controller |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | @Api(value = "æºæééé
ç½®", tags = "æºæééé
ç½®") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping(value = "/v1/four/pc/channel/org/config") |
| | | public class ChannelOrgConfigController extends BaseController { |
| | | @Autowired |
| | | private ChannelOrgConfigService channelOrgConfigService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæééå表 |
| | | * ä»
å
å«å½åorgIdçä¸çº§ï¼ä¸å
å«(äºä¸å级ç) |
| | | * @date 2024-04-11 18:50 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºæééå表", notes = "æ¥è¯¢æºæééå表") |
| | | @GetMapping("/getChannelOrgList") |
| | | public CommonResult<PageBean> getChannelOrgConfigList( |
| | | @ApiParam(name = "orgId", value = "æºæID;顶级åä¸ä¼ ") Long orgId, |
| | | @ApiParam(name = "orgName", value = "æºæåç§°") String orgName, |
| | | @ApiParam(name = "pageNumber", value = "页ç ", defaultValue = "1", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¡æ°", defaultValue = "10", required = true) Integer pageSize, |
| | | @ApiParam(name = "sortName", value = "æåºåç§°") String sortName, |
| | | @ApiParam(name = "sortOrder", value = "æåºæ¹å¼") String sortOrder |
| | | ) { |
| | | if (StringUtils.isNotBlank(sortName) && StringUtils.isNotBlank(sortOrder)) { |
| | | PageHelper.orderBy(PageUtils.orderParser(sortName, sortOrder)); |
| | | } |
| | | |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | List<ChannelOrgConfigDto> list = channelOrgConfigService.queryAllChannelOrg(orgId,orgName); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: é
ç½®ééã设置é»è®¤ |
| | | * |
| | | * @date 2024-04-11 18:51 |
| | | **/ |
| | | @ApiOperation(value = "é
ç½®éé", notes = "é
ç½®éé") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "ChannelOrgConfigParam") }) |
| | | @PostMapping("/config/channel") |
| | | public CommonResult<Integer> configChannel() { |
| | | ChannelOrgConfigParam configParam = CommonUtil.getObjFromReq(ChannelOrgConfigParam.class); |
| | | channelOrgConfigService.configChannel(configParam); |
| | | return new CommonResult(CommonResultEmnu.OK); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæéé详æ
|
| | | * 详æ
ä¸çéé ä»
å
å«å½åorgId对åºçpId对åºçéé |
| | | * @date 2024-04-11 20:04 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºæéé详æ
", notes = "æ¥è¯¢æºæéé详æ
") |
| | | @GetMapping("/getDetail") |
| | | public CommonResult<ChannelOrgConfigDetailDto> getChannelOrgConfigDetail( |
| | | @ApiParam(name = "orgId", value = "æºæID") Long orgId) { |
| | | if (orgId == null) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | if (user != null) { |
| | | orgId = user.getOrgId(); |
| | | } |
| | | } |
| | | if (orgId == null) { |
| | | return new CommonResult<>(CommonResultEmnu.INVALID_PARAMS, "åæ°ä¸ºç©ºï¼"); |
| | | } |
| | | ChannelOrgConfigDetailDto dtoList = channelOrgConfigService.getChannelOrgConfigDetail(orgId); |
| | | return new CommonResult(dtoList); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.SpecialFeeRate; |
| | | import com.nuvole.four.domain.dto.SpecialFeeRateDto; |
| | | import com.nuvole.four.domain.query.SpecialFeeRateQuery; |
| | | import com.nuvole.four.service.SpecialFeeRateService; |
| | | import com.nuvole.util.CommonUtil; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹ç管ç |
| | | * @Author dqh |
| | | * @Date 2024-04-12 19:57:28 |
| | | */ |
| | | @Api(value = "è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹çç®¡çæ¥å£", tags = "è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹çç®¡çæ¥å£") |
| | | @EnableTransactionManagement |
| | | @RestController |
| | | @RequestMapping("/v1/four/pc/special/fee/rate") |
| | | public class SpecialFeeRateController extends BaseController { |
| | | |
| | | @Autowired |
| | | private SpecialFeeRateService specialFeeRateService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:ç¹æ®è´¹ç设置 |
| | | * idä¸ºç©ºåæ°å¢ï¼æå¼åä¿®æ¹ |
| | | * |
| | | * @date 2024-04-13 13:15 |
| | | **/ |
| | | @ApiOperation(value = "ç¹æ®è´¹ç设置", notes = "ç¹æ®è´¹ç设置") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "SpecialFeeRateDto") }) |
| | | @PostMapping("/add") |
| | | public CommonResult<Integer> add() { |
| | | SpecialFeeRateDto dto = CommonUtil.getObjFromReq(SpecialFeeRateDto.class); |
| | | |
| | | CommonResult result = new CommonResult<>(specialFeeRateService.addSelective(dto)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤", notes = "å é¤") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @PostMapping("/del") |
| | | public CommonResult<Integer> del(Long id) { |
| | | CommonResult result = new CommonResult<>(specialFeeRateService.del(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:ç¹æ®è´¹çé
ç½®æ¥è¯¢ |
| | | * |
| | | * @date 2024-04-13 13:17 |
| | | **/ |
| | | @ApiOperation(value = "ç¹æ®è´¹çé
ç½®æ¥è¯¢", notes = "ç¹æ®è´¹çé
ç½®æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "industryId", value = "è¡ä¸ID", dataType = "query", required = true), |
| | | @ApiImplicitParam(name = "channelId", value = "ééID", dataType = "query", required = true) |
| | | }) |
| | | @GetMapping("/getConfig") |
| | | public CommonResult<SpecialFeeRateDto> getConfig(Long industryId,Long channelId) { |
| | | CommonResult result = new CommonResult<>(specialFeeRateService.getConfig(industryId,channelId)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.StoreIndustryManage; |
| | | import com.nuvole.four.domain.query.StoreIndustryManageQuery; |
| | | import com.nuvole.four.service.StoreIndustryManageService; |
| | | import com.nuvole.util.CommonUtil; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-12 17:41:29 |
| | | */ |
| | | @Api(value = "è¡ä¸ç®¡çæ¥å£", tags = "è¡ä¸ç®¡çæ¥å£") |
| | | @EnableTransactionManagement |
| | | @RestController |
| | | @RequestMapping("/v1/four/pc/store/industry/manage") |
| | | public class StoreIndustryManageController extends BaseController { |
| | | |
| | | @Autowired |
| | | private StoreIndustryManageService storeIndustryManageService; |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢è¡ä¸ç®¡çå表 |
| | | * |
| | | * @date 2024-04-12 17:56 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢å表", notes = "æ¥è¯¢å表") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "StoreIndustryManageQuery") }) |
| | | @GetMapping("/getList") |
| | | public CommonResult<PageBean> getList(@ApiParam(name = "pageNumber", value = "å页页ç ", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¯é¡µå±ç¤ºæ°", required = true) Integer pageSize) { |
| | | StoreIndustryManageQuery copy = CommonUtil.getObjFromReq(StoreIndustryManageQuery.class); |
| | | StoreIndustryManageQuery query = new StoreIndustryManageQuery(); |
| | | BeanUtils.copyProperties(copy, query); |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | |
| | | PageHelper.orderBy("create_time desc"); |
| | | |
| | | List<StoreIndustryManage> list = storeIndustryManageService.getList(query); |
| | | CommonResult result = new CommonResult<>(new PageBean(list)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ·»å è¡ä¸ç®¡ç |
| | | * |
| | | * @date 2024-04-12 18:17 |
| | | **/ |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "StoreIndustryManage") }) |
| | | @PostMapping("/add") |
| | | public CommonResult<Integer> add() { |
| | | StoreIndustryManage copy = CommonUtil.getObjFromReq(StoreIndustryManage.class); |
| | | StoreIndustryManage storeIndustryManage = new StoreIndustryManage(); |
| | | BeanUtils.copyProperties(copy, storeIndustryManage); |
| | | |
| | | CommonResult result = new CommonResult<>(storeIndustryManageService.addSelective(storeIndustryManage)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢max(sortNo)çåºå·ä¿¡æ¯ |
| | | * è¿å = max(sortNo) + 10 |
| | | * |
| | | * @date 2024-04-12 18:17 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢å½åæå¤§åºå·", notes = "æ¥è¯¢å½åæå¤§åºå·") |
| | | @GetMapping("/getSort") |
| | | public CommonResult<StoreIndustryManage> getSort() { |
| | | CommonResult result = new CommonResult<>(storeIndustryManageService.getSort()); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ ¹æ®idæ¥è¯¢è¡ä¸ç®¡ç详æ
|
| | | * |
| | | * @date 2024-04-12 18:32 |
| | | **/ |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢", notes = "æ ¹æ®idæ¥è¯¢") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @GetMapping("/get") |
| | | public CommonResult<StoreIndustryManage> get(Long id) { |
| | | CommonResult result = new CommonResult<>(storeIndustryManageService.get(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: ä¿®æ¹è¡ä¸ç®¡ç |
| | | * |
| | | * @date 2024-04-12 18:32 |
| | | **/ |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "StoreIndustryManage") }) |
| | | @PostMapping("/upd") |
| | | public CommonResult<Integer> upd() { |
| | | StoreIndustryManage copy = CommonUtil.getObjFromReq(StoreIndustryManage.class); |
| | | StoreIndustryManage storeIndustryManage = new StoreIndustryManage(); |
| | | BeanUtils.copyProperties(copy, storeIndustryManage); |
| | | |
| | | CommonResult result = new CommonResult<>(storeIndustryManageService.editSelective(storeIndustryManage)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤", notes = "å é¤") |
| | | @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "主é®id") }) |
| | | @PostMapping("/del") |
| | | public CommonResult<Integer> del(Long id) { |
| | | CommonResult result = new CommonResult<>(storeIndustryManageService.del(id)); |
| | | CommonResult result1 = new CommonResult<>(); |
| | | BeanUtils.copyProperties(result, result1); |
| | | result = result1; |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢ææè¡ä¸æ |
| | | * |
| | | * @date 2024-04-12 18:43 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢ææè¡ä¸æ ", notes = "æ¥è¯¢ææè¡ä¸æ ") |
| | | @GetMapping("/getIndustryTree") |
| | | public CommonResult<List<Map>> getIndustryTree(Integer status) { |
| | | Map map = new HashMap(); |
| | | if(status != null){ |
| | | map.put("status",status); |
| | | } |
| | | List<Map> list = storeIndustryManageService.getIndustryTree(map); |
| | | return new CommonResult<>(list); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.controller.pc; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import com.nuvole.common.domain.result.PageBean; |
| | | import com.nuvole.four.controller.BaseController; |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.service.SysOrgService; |
| | | import com.nuvole.util.PageUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * ç±»æè¿°: æºæç®¡ç |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-11 11:01 |
| | | * @version 1.0 |
| | | **/ |
| | | @Api(value = "åå°æºææ¥å£", tags = "åå°æºææ¥å£") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping(value = "/v1/four/pc/org") |
| | | public class SysOrgController extends BaseController { |
| | | |
| | | @Autowired |
| | | private SysOrgService sysOrgService; |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºææ å½¢å表 |
| | | * |
| | | * @date 2024-04-11 11:00 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºææ å½¢å表", notes = "æ¥è¯¢æºææ å½¢å表") |
| | | @GetMapping("/getOrgsTree") |
| | | public CommonResult<List<Map>> getOrgs() { |
| | | List<Map> list = sysOrgService.getTreeOrg(new HashMap()); |
| | | return new CommonResult<>(list); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæä¸çº§å表 |
| | | * |
| | | * @date 2024-04-11 11:01 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºæä¸çº§å表", notes = "æ¥è¯¢æºæä¸çº§å表") |
| | | @GetMapping("/getChildrenOrg") |
| | | public CommonResult<PageBean<SysOrg>> getChildrenOrg( |
| | | @ApiParam(name = "id", value = "主é®ID") Long id, |
| | | @ApiParam(name = "name", value = "æºæåç§°") String name, |
| | | @ApiParam(name = "userOrgCode", value = "æºæç¼å·") String userOrgCode, |
| | | @ApiParam(name = "state", value = "æºæç¶æ") Integer state, |
| | | @ApiParam(name = "pageNumber", value = "页ç ", defaultValue = "1", required = true) Integer pageNumber, |
| | | @ApiParam(name = "pageSize", value = "æ¡æ°", defaultValue = "10", required = true) Integer pageSize, |
| | | @ApiParam(name = "sortName", value = "æåºåç§°") String sortName, |
| | | @ApiParam(name = "sortOrder", value = "æåºæ¹å¼") String sortOrder |
| | | ) { |
| | | if (StringUtils.isNotBlank(sortName) && StringUtils.isNotBlank(sortOrder)) { |
| | | PageHelper.orderBy(PageUtils.orderParser(sortName, sortOrder)); |
| | | } else { |
| | | PageHelper.orderBy("sort_no"); |
| | | } |
| | | SysOrg sto = new SysOrg(); |
| | | sto.setId(id); |
| | | sto.setName(name); |
| | | sto.setUserOrgCode(userOrgCode); |
| | | sto.setState(state); |
| | | SysOrg s = new SysOrg(); |
| | | BeanUtils.copyProperties(sto, s); |
| | | PageHelper.startPage(pageNumber, pageSize); |
| | | return new CommonResult<>(new PageBean(sysOrgService.selectListByPid(s.getId(), s.getName(), s.getUserOrgCode(), s.getState()))); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæåè¡¨ï¼æå è½½ï¼ |
| | | * |
| | | * @date 2024-04-11 11:01 |
| | | **/ |
| | | @ApiOperation(value = "æ¥è¯¢æºæåè¡¨ï¼æå è½½ï¼", notes = "æ¥è¯¢æºæåè¡¨ï¼æå è½½ï¼") |
| | | @GetMapping("/getOrgList") |
| | | public CommonResult<List<SysOrg>> getOrgList( |
| | | @ApiParam(name = "pid", value = "ç¶çº§id") Long pid, |
| | | @ApiParam(name = "state", value = "æºæç¶æ") Integer state |
| | | ) { |
| | | PageHelper.orderBy("sort_no"); |
| | | SysOrg sto = new SysOrg(); |
| | | sto.setPid(pid); |
| | | sto.setState(state); |
| | | SysOrg s = new SysOrg(); |
| | | BeanUtils.copyProperties(sto, s); |
| | | return new CommonResult<>(sysOrgService.selectListByPid(s.getPid(), null, null, s.getState())); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | // @formatter:off |
| | | /** |
| | | @author |
| | | |
| | | ***** * * **** |
| | | * * * * |
| | | * * * |
| | | * * * * |
| | | ***** * * **** |
| | | |
| | | @Date 2019/7/29 9:22 |
| | | @Description å»é¢å¥è¿åä¿¡æ¯ |
| | | */ |
| | | // @formatter:on |
| | | |
| | | @Data |
| | | @Api(value = "é¢å¥æäº¤è®¢åè¿å", tags = "é¢å¥æäº¤è®¢åè¿å") |
| | | public class AcceptResult { |
| | | |
| | | @ApiModelProperty("订åID") |
| | | private Long orderId; |
| | | |
| | | @ApiModelProperty("订åç¼å·") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty("é¢å¥æ¶é´") |
| | | private Date acceptTime; |
| | | |
| | | @ApiModelProperty("æ ¸éç ") |
| | | private String verificationCode; |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´âé¢ç®åé
|
| | | * @Author dqh |
| | | * @Date 2024-04-20 23:39:57 |
| | | */ |
| | | @ApiModel("æ´»å¨è¡¥è´´âé¢ç®åé
") |
| | | @Data |
| | | public class ActivityDistributeRecord { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æºæid") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty("æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty("æºæcode") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty("æ´»å¨ID") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty("æ»é¢ç®ï¼åé
è¿æ¥çéé¢ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("已使ç¨é¢ç®ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½é¢ç®é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("ä¸çº§æºæid") |
| | | private Long lv1Id; |
| | | |
| | | @ApiModelProperty("äºçº§æºæid") |
| | | private Long lv2Id; |
| | | |
| | | @ApiModelProperty("ä¸çº§æºæid") |
| | | private Long lv3Id; |
| | | |
| | | @ApiModelProperty("åçº§æºæid") |
| | | private Long lv4Id; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è´¹çè¡¥è´´æ´»å¨ |
| | | * @Author dqh |
| | | * @Date 2024-04-20 16:54:59 |
| | | */ |
| | | @ApiModel("è´¹ç补贴活å¨") |
| | | @Data |
| | | public class ActivityFee { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æºæId") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty("æºæcode") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty("æ´»å¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æ´»å¨ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty("æ´»å¨å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @ApiModelProperty("æ´»å¨ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty("æ¥åæªæ¢æ¶é´") |
| | | private Date expireTime; |
| | | |
| | | @ApiModelProperty("æ»é¢ç®ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("已使ç¨é¢ç®ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½é¢ç®é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double onlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double onlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double onlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double offlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double offlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double offlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double onlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double onlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double onlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double offlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double offlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double offlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ· |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | @ApiModel("æ´»å¨è¡¥è´´â䏿¥åæ·") |
| | | @Data |
| | | public class ActivityShopRecord { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æ´»å¨id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty("åæ·id") |
| | | private Long merchantShopId; |
| | | |
| | | @ApiModelProperty("æ¸ éid") |
| | | private Long channelId; |
| | | |
| | | @ApiModelProperty("æ¸ éåç§°") |
| | | private String channelName; |
| | | |
| | | @ApiModelProperty("æ´»å¨é¢åº¦ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("ç¬¬ä¸æ¹åæ·å·") |
| | | private String thirdShopNo; |
| | | |
| | | @ApiModelProperty("已使活å¨é¢åº¦ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½æ´»å¨é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 13:59:34 |
| | | */ |
| | | @ApiModel("è¡ä¸ç®¡ç") |
| | | @Data |
| | | public class ChannelInfo { |
| | | |
| | | @ApiModelProperty(" id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("éécode") |
| | | private String channelCode; |
| | | |
| | | @ApiModelProperty("ééåç§°") |
| | | private String channelName; |
| | | |
| | | @ApiModelProperty("æ©å±jsonåæ®µ") |
| | | private String extendJson; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double onlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double onlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double onlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double offlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double offlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double offlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double onlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double onlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double onlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double offlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double offlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double offlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("è¯ä¹¦") |
| | | private String certification; |
| | | |
| | | @ApiModelProperty("ç¶æ;0-å¯ç¨(é»è®¤);1-ç¦ç¨") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description æºæééé
ç½® |
| | | * @Author dqh |
| | | * @Date 2024-04-13 10:31:50 |
| | | */ |
| | | @ApiModel("æºæééé
ç½®") |
| | | @Data |
| | | public class ChannelOrgConfig { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æºæid") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty("æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty("ç¶çº§æºæåç§°") |
| | | private String pOrgName; |
| | | |
| | | @ApiModelProperty("channel_info表çid") |
| | | private Long channelInfoId; |
| | | |
| | | @ApiModelProperty("æ¯å¦é»è®¤éé(é»è®¤0);0-å¦ï¼1-æ¯") |
| | | private Integer defaultOrNot; |
| | | |
| | | @ApiModelProperty("æ¯å¦å¯ç¨(é»è®¤0)ï¼0-å¦ï¼1-æ¯") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 10:45:05 |
| | | */ |
| | | @ApiModel("è¡ä¸ç®¡ç") |
| | | @Data |
| | | public class SpecialFeeRate { |
| | | |
| | | @ApiModelProperty("主é®") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æ¸ éid") |
| | | private Long channelId; |
| | | |
| | | @ApiModelProperty("è¡ä¸ç®¡ç表id") |
| | | private Long industryManageId; |
| | | |
| | | @ApiModelProperty("æ¸ éè¡ä¸code") |
| | | private String industryCode; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double onlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double onlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double onlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double offlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double offlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double offlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double onlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double onlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double onlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double offlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double offlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double offlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("æ¸ éè¡ä¸åç§°") |
| | | private String industryName; |
| | | |
| | | @ApiModelProperty("ç¶æ 0ç¦æ¢ 1å¯ç¨") |
| | | private Short status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Short deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç |
| | | * @Author dqh |
| | | * @Date 2024-04-13 10:40:45 |
| | | */ |
| | | @ApiModel("è¡ä¸ç®¡ç") |
| | | @Data |
| | | public class StoreIndustryManage { |
| | | |
| | | @ApiModelProperty("主é®") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("æä¸çº§ä¸º0") |
| | | private Long pId; |
| | | |
| | | @ApiModelProperty("è¡ä¸åç§°") |
| | | private String industryName; |
| | | |
| | | @ApiModelProperty("ç¼å·") |
| | | private String industryCode; |
| | | |
| | | @ApiModelProperty("åºå·") |
| | | private Integer sortNo; |
| | | |
| | | @ApiModelProperty("0.å¦ 1.æ¯") |
| | | private Short isSpecial; |
| | | |
| | | @ApiModelProperty("å±çº§") |
| | | private Integer level; |
| | | |
| | | @ApiModelProperty("ç¶æ 0ç¦æ¢ 1å¯ç¨") |
| | | private Short status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Short deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å®ä½ç±»å¯¹åºçæ°æ®è¡¨ä¸ºï¼ store_member_info |
| | | * @author system-generator |
| | | * @date 2020-07-31 09:50:29 |
| | | */ |
| | | @ApiModel(value ="ä¼åä¿¡æ¯è¡¨") |
| | | public class StoreMemberInfo { |
| | | @ApiModelProperty(value = "id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "ä¼ååç§°") |
| | | private String memberNameEncrypt; |
| | | |
| | | @ApiModelProperty(value = "ä¼ååç§°è±æ") |
| | | private String memberName; |
| | | |
| | | @ApiModelProperty(value = "ä¼åç±»å 1æ®éä¼å 2 客æ·ç»ç") |
| | | private Short memberType; |
| | | |
| | | @ApiModelProperty(value = "身份è¯å·MD5坿") |
| | | private String idcardEncryptMd5; |
| | | |
| | | @ApiModelProperty(value = "身份è¯å¯æ") |
| | | private String idcardEncrypt; |
| | | |
| | | @ApiModelProperty(value = "身份è¯è±æ") |
| | | private String idcard; |
| | | |
| | | @ApiModelProperty(value = "ææºå·å¯æ") |
| | | private String mobileEncrypt; |
| | | |
| | | @ApiModelProperty(value = "ææºå·è±æ") |
| | | private String mobile; |
| | | |
| | | @ApiModelProperty(value = "头å") |
| | | private String headImage; |
| | | |
| | | @ApiModelProperty(value = "é宿¬¡æ°") |
| | | private Short lockTimes; |
| | | |
| | | @ApiModelProperty(value = "éå®å°ææ¥æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date lockTime; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·å¯ä¸æ è¯ï¼å¾®ä¿¡å°ç¨åºopenidï¼") |
| | | private String wechatOpenid; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»å®userID") |
| | | private String aliUserId; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»å®å¯ä¸åè¯ï¼æ¯ä»å®å
¬ä¼å¹³å°unionidï¼") |
| | | private String aliUnionid; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·å¯ä¸æ è¯ï¼æ¯ä»å®å°ç¨åºopenidï¼") |
| | | private String aliOpenid; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»å®openId(å
¬ä¼å·)") |
| | | private String aliH5Openid; |
| | | |
| | | @ApiModelProperty(value = "翼æ¯ä»userID") |
| | | private String bestPayUserId; |
| | | |
| | | @ApiModelProperty(value = "äºéªä»userID") |
| | | private String cloudPayUserId; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·å¯ä¸æ è¯ï¼å
¬ä¼å·openidï¼") |
| | | private String wechatH5Openid; |
| | | |
| | | @ApiModelProperty(value = "微信å¯ä¸åè¯ï¼å¾®ä¿¡å
¬ä¼å¹³å°unionidï¼") |
| | | private String wechatUnionid; |
| | | |
| | | @ApiModelProperty(value = "微信头å") |
| | | private String wechatHeadImage; |
| | | |
| | | @ApiModelProperty(value = "ä¼åæµç§°") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty(value = "æºæid") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "æºæç¼å·") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty(value = "æºæå
¨åç§°") |
| | | private String orgFullName; |
| | | |
| | | @ApiModelProperty(value = "éèççº§ãæ°æ®åå
¸ã") |
| | | private String financeLv; |
| | | |
| | | @ApiModelProperty(value = "åºåid") |
| | | private Long areaId; |
| | | |
| | | @ApiModelProperty(value = "åºåcode") |
| | | private String areaCode; |
| | | |
| | | @ApiModelProperty(value = "åºåå
¨åç§°") |
| | | private String areaFullName; |
| | | |
| | | @ApiModelProperty(value = "客æ·ç»çåç§°") |
| | | private String managerName; |
| | | |
| | | @ApiModelProperty(value = "客æ·ç»çid") |
| | | private Long managerId; |
| | | |
| | | @ApiModelProperty(value = "ä¼å积å") |
| | | private Long memberScore; |
| | | |
| | | @ApiModelProperty(value = "平尿¶è积å") |
| | | private Long costScore; |
| | | |
| | | @ApiModelProperty(value = "åé积å") |
| | | private Long stockScore; |
| | | |
| | | @ApiModelProperty(value = "ä¼åå¸") |
| | | private Integer coin; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "ç¶æï¼0 ç¦ç¨ï¼1å¯ç¨ï¼") |
| | | private Short state; |
| | | |
| | | @ApiModelProperty(value = "äºåéç¨æ·å¯ä¸æ è¯ï¼å¦æä¸ºç©ºä»£è¡¨æ²¡å¨äºåéå建ä¼åï¼ ") |
| | | private String yunstuserid; |
| | | |
| | | @ApiModelProperty(value = "æ¨å¹¿äººid") |
| | | private Long pushwidemanid; |
| | | |
| | | @ApiModelProperty(value = "人æid") |
| | | private String talentId; |
| | | @ApiModelProperty(value = "åºçæ¥æ") |
| | | private Integer birthday; |
| | | @ApiModelProperty(value = "æ§å« 0ç·1女") |
| | | private Integer sex; |
| | | @ApiModelProperty(value = "人æç±»å") |
| | | private String talentType; |
| | | @ApiModelProperty(value = "人æç±»åæ ç¾") |
| | | private String talentTypeLabel; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getMemberNameEncrypt() { |
| | | return memberNameEncrypt; |
| | | } |
| | | |
| | | public void setMemberNameEncrypt(String memberNameEncrypt) { |
| | | this.memberNameEncrypt = memberNameEncrypt == null ? null : memberNameEncrypt.trim(); |
| | | } |
| | | |
| | | public String getMemberName() { |
| | | return memberName; |
| | | } |
| | | |
| | | public void setMemberName(String memberName) { |
| | | this.memberName = memberName == null ? null : memberName.trim(); |
| | | } |
| | | |
| | | public Short getMemberType() { |
| | | return memberType; |
| | | } |
| | | |
| | | public void setMemberType(Short memberType) { |
| | | this.memberType = memberType; |
| | | } |
| | | |
| | | public String getIdcardEncryptMd5() { |
| | | return idcardEncryptMd5; |
| | | } |
| | | |
| | | public void setIdcardEncryptMd5(String idcardEncryptMd5) { |
| | | this.idcardEncryptMd5 = idcardEncryptMd5 == null ? null : idcardEncryptMd5.trim(); |
| | | } |
| | | |
| | | public String getIdcardEncrypt() { |
| | | return idcardEncrypt; |
| | | } |
| | | |
| | | public void setIdcardEncrypt(String idcardEncrypt) { |
| | | this.idcardEncrypt = idcardEncrypt == null ? null : idcardEncrypt.trim(); |
| | | } |
| | | |
| | | public String getIdcard() { |
| | | return idcard; |
| | | } |
| | | |
| | | public void setIdcard(String idcard) { |
| | | this.idcard = idcard == null ? null : idcard.trim(); |
| | | } |
| | | |
| | | public String getMobileEncrypt() { |
| | | return mobileEncrypt; |
| | | } |
| | | |
| | | public void setMobileEncrypt(String mobileEncrypt) { |
| | | this.mobileEncrypt = mobileEncrypt == null ? null : mobileEncrypt.trim(); |
| | | } |
| | | |
| | | public String getMobile() { |
| | | return mobile; |
| | | } |
| | | |
| | | public void setMobile(String mobile) { |
| | | this.mobile = mobile == null ? null : mobile.trim(); |
| | | } |
| | | |
| | | public String getHeadImage() { |
| | | return headImage; |
| | | } |
| | | |
| | | public void setHeadImage(String headImage) { |
| | | this.headImage = headImage == null ? null : headImage.trim(); |
| | | } |
| | | |
| | | public Short getLockTimes() { |
| | | return lockTimes; |
| | | } |
| | | |
| | | public void setLockTimes(Short lockTimes) { |
| | | this.lockTimes = lockTimes; |
| | | } |
| | | |
| | | @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | public Date getLockTime() { |
| | | return lockTime; |
| | | } |
| | | |
| | | public void setLockTime(Date lockTime) { |
| | | this.lockTime = lockTime; |
| | | } |
| | | |
| | | public String getWechatOpenid() { |
| | | return wechatOpenid; |
| | | } |
| | | |
| | | public void setWechatOpenid(String wechatOpenid) { |
| | | this.wechatOpenid = wechatOpenid == null ? null : wechatOpenid.trim(); |
| | | } |
| | | |
| | | public String getWechatH5Openid() { |
| | | return wechatH5Openid; |
| | | } |
| | | |
| | | public void setWechatH5Openid(String wechatH5Openid) { |
| | | this.wechatH5Openid = wechatH5Openid; |
| | | } |
| | | |
| | | public String getWechatUnionid() { |
| | | return wechatUnionid; |
| | | } |
| | | |
| | | public void setWechatUnionid(String wechatUnionid) { |
| | | this.wechatUnionid = wechatUnionid == null ? null : wechatUnionid.trim(); |
| | | } |
| | | |
| | | public String getWechatHeadImage() { |
| | | return wechatHeadImage; |
| | | } |
| | | |
| | | public void setWechatHeadImage(String wechatHeadImage) { |
| | | this.wechatHeadImage = wechatHeadImage == null ? null : wechatHeadImage.trim(); |
| | | } |
| | | |
| | | public String getNickName() { |
| | | return nickName; |
| | | } |
| | | |
| | | public void setNickName(String nickName) { |
| | | this.nickName = nickName == null ? null : nickName.trim(); |
| | | } |
| | | |
| | | public Long getOrgId() { |
| | | return orgId; |
| | | } |
| | | |
| | | public void setOrgId(Long orgId) { |
| | | this.orgId = orgId; |
| | | } |
| | | |
| | | public String getOrgCode() { |
| | | return orgCode; |
| | | } |
| | | |
| | | public void setOrgCode(String orgCode) { |
| | | this.orgCode = orgCode == null ? null : orgCode.trim(); |
| | | } |
| | | |
| | | public String getOrgFullName() { |
| | | return orgFullName; |
| | | } |
| | | |
| | | public void setOrgFullName(String orgFullName) { |
| | | this.orgFullName = orgFullName == null ? null : orgFullName.trim(); |
| | | } |
| | | |
| | | public String getFinanceLv() { |
| | | return financeLv; |
| | | } |
| | | |
| | | public void setFinanceLv(String financeLv) { |
| | | this.financeLv = financeLv == null ? null : financeLv.trim(); |
| | | } |
| | | |
| | | public Long getAreaId() { |
| | | return areaId; |
| | | } |
| | | |
| | | public void setAreaId(Long areaId) { |
| | | this.areaId = areaId; |
| | | } |
| | | |
| | | public String getAreaCode() { |
| | | return areaCode; |
| | | } |
| | | |
| | | public void setAreaCode(String areaCode) { |
| | | this.areaCode = areaCode == null ? null : areaCode.trim(); |
| | | } |
| | | |
| | | public String getAreaFullName() { |
| | | return areaFullName; |
| | | } |
| | | |
| | | public void setAreaFullName(String areaFullName) { |
| | | this.areaFullName = areaFullName == null ? null : areaFullName.trim(); |
| | | } |
| | | |
| | | public String getManagerName() { |
| | | return managerName; |
| | | } |
| | | |
| | | public void setManagerName(String managerName) { |
| | | this.managerName = managerName == null ? null : managerName.trim(); |
| | | } |
| | | |
| | | public Long getManagerId() { |
| | | return managerId; |
| | | } |
| | | |
| | | public void setManagerId(Long managerId) { |
| | | this.managerId = managerId; |
| | | } |
| | | |
| | | public Long getMemberScore() { |
| | | return memberScore; |
| | | } |
| | | |
| | | public void setMemberScore(Long memberScore) { |
| | | this.memberScore = memberScore; |
| | | } |
| | | |
| | | public Long getCostScore() { |
| | | return costScore; |
| | | } |
| | | |
| | | public void setCostScore(Long costScore) { |
| | | this.costScore = costScore; |
| | | } |
| | | |
| | | public Long getStockScore() { |
| | | return stockScore; |
| | | } |
| | | |
| | | public void setStockScore(Long stockScore) { |
| | | this.stockScore = stockScore; |
| | | } |
| | | |
| | | public Integer getCoin() { |
| | | return coin; |
| | | } |
| | | |
| | | public void setCoin(Integer coin) { |
| | | this.coin = coin; |
| | | } |
| | | |
| | | @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Short getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Short state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public String getYunstuserid() { |
| | | return yunstuserid; |
| | | } |
| | | |
| | | public void setYunstuserid(String yunstuserid) { |
| | | this.yunstuserid = yunstuserid == null ? null : yunstuserid.trim(); |
| | | } |
| | | |
| | | public Long getPushwidemanid() { |
| | | return pushwidemanid; |
| | | } |
| | | |
| | | public void setPushwidemanid(Long pushwidemanid) { |
| | | this.pushwidemanid = pushwidemanid; |
| | | } |
| | | |
| | | public String getTalentId() { |
| | | return talentId; |
| | | } |
| | | |
| | | public void setTalentId(String talentId) { |
| | | this.talentId = talentId; |
| | | } |
| | | |
| | | public Integer getBirthday() { |
| | | return birthday; |
| | | } |
| | | |
| | | public void setBirthday(Integer birthday) { |
| | | this.birthday = birthday; |
| | | } |
| | | |
| | | public Integer getSex() { |
| | | return sex; |
| | | } |
| | | |
| | | public void setSex(Integer sex) { |
| | | this.sex = sex; |
| | | } |
| | | |
| | | public String getTalentType() { |
| | | return talentType; |
| | | } |
| | | |
| | | public void setTalentType(String talentType) { |
| | | this.talentType = talentType; |
| | | } |
| | | |
| | | public String getTalentTypeLabel() { |
| | | return talentTypeLabel; |
| | | } |
| | | |
| | | public void setTalentTypeLabel(String talentTypeLabel) { |
| | | this.talentTypeLabel = talentTypeLabel; |
| | | } |
| | | |
| | | public String getAliUserId() { |
| | | return aliUserId; |
| | | } |
| | | |
| | | public void setAliUserId(String aliUserId) { |
| | | this.aliUserId = aliUserId; |
| | | } |
| | | |
| | | public String getAliUnionid() { |
| | | return aliUnionid; |
| | | } |
| | | |
| | | public void setAliUnionid(String aliUnionid) { |
| | | this.aliUnionid = aliUnionid; |
| | | } |
| | | |
| | | public String getAliOpenid() { |
| | | return aliOpenid; |
| | | } |
| | | |
| | | public void setAliOpenid(String aliOpenid) { |
| | | this.aliOpenid = aliOpenid; |
| | | } |
| | | |
| | | public String getAliH5Openid() { |
| | | return aliH5Openid; |
| | | } |
| | | |
| | | public void setAliH5Openid(String aliH5Openid) { |
| | | this.aliH5Openid = aliH5Openid; |
| | | } |
| | | |
| | | public String getBestPayUserId() { |
| | | return bestPayUserId; |
| | | } |
| | | |
| | | public void setBestPayUserId(String bestPayUserId) { |
| | | this.bestPayUserId = bestPayUserId; |
| | | } |
| | | |
| | | public String getCloudPayUserId() { |
| | | return cloudPayUserId; |
| | | } |
| | | |
| | | public void setCloudPayUserId(String cloudPayUserId) { |
| | | this.cloudPayUserId = cloudPayUserId; |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description ä¾åºå人åè´¦å·ä¿¡æ¯è¡¨ |
| | | * @Author cy |
| | | * @Date 2023-08-10 14:09:49 |
| | | */ |
| | | @ApiModel("ä¾åºå人åè´¦å·ä¿¡æ¯è¡¨") |
| | | @Data |
| | | public class StoreSupplierInfoAccount { |
| | | |
| | | @ApiModelProperty("ID") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("头å") |
| | | private String headImg; |
| | | |
| | | @ApiModelProperty("è´¦å·å") |
| | | private String account; |
| | | |
| | | @ApiModelProperty("è´¦å·å¯ç ") |
| | | private String mixPd; |
| | | |
| | | @ApiModelProperty("æå±ä¾åºåID") |
| | | private Long supplierId; |
| | | |
| | | @ApiModelProperty("人ååç§°") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("人åç¼å·") |
| | | private String userCode; |
| | | |
| | | @ApiModelProperty("äººåææºå·") |
| | | private String userMobile; |
| | | |
| | | @ApiModelProperty("é宿¬¡æ°") |
| | | private Short lockTimes; |
| | | |
| | | @ApiModelProperty("éå®å°ææ¥æ") |
| | | private Date lockTime; |
| | | |
| | | @ApiModelProperty("夿³¨ä¿¡æ¯") |
| | | private String note; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createId; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private String createName; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("ç¶æã0ï¼ç¦ç¨ 1ï¼å¯ç¨ã") |
| | | private Short state; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | /** |
| | | * å®ä½ç±»å¯¹åºçæ°æ®è¡¨ä¸ºï¼ sys_org |
| | | * @author system-generator |
| | | * @date 2019-04-17 15:49:13 |
| | | */ |
| | | @ApiModel(value ="æºæ") |
| | | public class SysOrg { |
| | | @ApiModelProperty(value = "id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "NAMEãåç§°ã") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "ç³»ç»ç¼å·") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·æºæç¼å·") |
| | | private String userOrgCode; |
| | | |
| | | @ApiModelProperty(value = "PIDãç¶IDã") |
| | | private Long pid; |
| | | |
| | | @ApiModelProperty(value = "级å«ã0.ç级 1.å¸å± 2.å¿åº 3.æ¯å±ã") |
| | | private Integer lv; |
| | | |
| | | @ApiModelProperty(value = "顺åºå·") |
| | | private Integer sortNo; |
| | | |
| | | @ApiModelProperty(value = "stateãç¶æï¼1å¯ç¨0ç¦ç¨ã") |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty(value = "NOTEã夿³¨ã") |
| | | private String note; |
| | | |
| | | @ApiModelProperty(value = "ç»åº¦") |
| | | private String lon; |
| | | |
| | | @ApiModelProperty(value = "纬度") |
| | | private String lat; |
| | | |
| | | |
| | | @ApiModelProperty(value = "èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "è¥ä¸æ¶é´") |
| | | private String openTime; |
| | | |
| | | @ApiModelProperty(value = "详ç»å°å") |
| | | private String address; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name == null ? null : name.trim(); |
| | | } |
| | | |
| | | public String getOrgCode() { |
| | | return orgCode; |
| | | } |
| | | |
| | | public void setOrgCode(String orgCode) { |
| | | this.orgCode = orgCode == null ? null : orgCode.trim(); |
| | | } |
| | | |
| | | public String getUserOrgCode() { |
| | | return userOrgCode; |
| | | } |
| | | |
| | | public void setUserOrgCode(String userOrgCode) { |
| | | this.userOrgCode = userOrgCode == null ? null : userOrgCode.trim(); |
| | | } |
| | | |
| | | public Long getPid() { |
| | | return pid; |
| | | } |
| | | |
| | | public void setPid(Long pid) { |
| | | this.pid = pid; |
| | | } |
| | | |
| | | public Integer getLv() { |
| | | return lv; |
| | | } |
| | | |
| | | public void setLv(Integer lv) { |
| | | this.lv = lv; |
| | | } |
| | | |
| | | public Integer getSortNo() { |
| | | return sortNo; |
| | | } |
| | | |
| | | public void setSortNo(Integer sortNo) { |
| | | this.sortNo = sortNo; |
| | | } |
| | | |
| | | public Integer getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Integer state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public String getNote() { |
| | | return note; |
| | | } |
| | | |
| | | public void setNote(String note) { |
| | | this.note = note == null ? null : note.trim(); |
| | | } |
| | | |
| | | public String getLon() { |
| | | return lon; |
| | | } |
| | | |
| | | public void setLon(String lon) { |
| | | this.lon = lon == null ? null : lon.trim(); |
| | | } |
| | | |
| | | public String getLat() { |
| | | return lat; |
| | | } |
| | | |
| | | public void setLat(String lat) { |
| | | this.lat = lat == null ? null : lat.trim(); |
| | | } |
| | | |
| | | public String getPhone() { |
| | | return phone; |
| | | } |
| | | |
| | | public void setPhone(String phone) { |
| | | this.phone = phone; |
| | | } |
| | | |
| | | public String getOpenTime() { |
| | | return openTime; |
| | | } |
| | | |
| | | public void setOpenTime(String openTime) { |
| | | this.openTime = openTime; |
| | | } |
| | | |
| | | public String getAddress() { |
| | | return address; |
| | | } |
| | | |
| | | public void setAddress(String address) { |
| | | this.address = address == null ? null : address.trim(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: æ´»å¨é¢ç®åé
æç»Dto |
| | | * @Author: dqh |
| | | * @Date: 2024-04-14 |
| | | **/ |
| | | @Api(value = "æ´»å¨é¢ç®åé
æç»",tags = "æ´»å¨é¢ç®åé
æç»") |
| | | @Data |
| | | public class ActivityDistributeBudgetDto { |
| | | |
| | | @ApiModelProperty(value = "åé
è®°å½ID") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "æºæID") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "æºæå±çº§") |
| | | private Integer orgLv; |
| | | |
| | | @ApiModelProperty(value = "æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "æ»é¢ç®é¢åº¦ï¼åä½å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty(value = "å©ä½é¢åº¦ï¼åä½å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty(value = "åæ¾é¢åº¦ï¼åä½å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å·²åæ¾;0-å¦;1-æ¯") |
| | | private Integer useOrNot; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: æ¥çæ´»å¨è¯¦æ
-æ´»å¨æ°æ®è¿åDTO |
| | | * @Author: dqh |
| | | * @Date: 2024-04-15 |
| | | **/ |
| | | @Api(value = "æ´»å¨è¯¦æ
-æ´»å¨æ°æ®", tags = "æ´»å¨è¯¦æ
-æ´»å¨æ°æ®") |
| | | @Data |
| | | public class ActivityFeeDetailDto extends ActivityFee { |
| | | |
| | | @ApiModelProperty(value = "å建人åç§°") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "å·²åé
é¢åº¦") |
| | | private Long assigned; |
| | | |
| | | @ApiModelProperty(value = "æ´»å¨é¢ç®åé
å表") |
| | | private List<ActivityDistributeBudgetDto> distributeBudgets; |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: 已䏿¥å表è¿åDto |
| | | * @Author: dqh |
| | | * @Date: 2024-04-14 |
| | | **/ |
| | | @Api(value = "已䏿¥å表", tags = "已䏿¥å表") |
| | | @Data |
| | | public class ActivityShopRecordDto extends ActivityShopRecord { |
| | | |
| | | @ApiModelProperty(value = "åºéºcode") |
| | | private String shopCode; |
| | | |
| | | @ApiModelProperty(value = "åºéºåç§°") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty(value = "åºéºid") |
| | | private String shopId; |
| | | |
| | | @ApiModelProperty(value = "客æ·ç»çåç§°") |
| | | private String managerName; |
| | | |
| | | @ApiModelProperty(value = "æå±åæ·") |
| | | private String merchantName; |
| | | |
| | | @ApiModelProperty(value = "è系人") |
| | | private String contactName; |
| | | |
| | | @ApiModelProperty(value = "èç³»çµè¯") |
| | | private String contactMobile; |
| | | |
| | | @ApiModelProperty(value = "微信费ç") |
| | | private Double offlineWxRate; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»å®è´¹ç") |
| | | private Double offlineZfbRate; |
| | | |
| | | @ApiModelProperty(value = "äºéªä»è´¹ç") |
| | | private Double offlineUnionpayRate; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: ééå表è¿åå |
| | | * @Author: dqh |
| | | * @Date: 2024-04-13 |
| | | **/ |
| | | @Data |
| | | public class ChannelInfoDto extends ChannelInfo { |
| | | private String createUserName; |
| | | private String updateUserName; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: æºæééé
置详æ
DTO |
| | | * @Author: dqh |
| | | * @Date: 2024-04-11 |
| | | **/ |
| | | @Api(value = "æºæééé
置详æ
", tags = "æºæééé
置详æ
") |
| | | @Data |
| | | public class ChannelOrgConfigDetailDto { |
| | | |
| | | @ApiModelProperty(value = "æºæPID") |
| | | private Long pId; |
| | | |
| | | @ApiModelProperty(value = "æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "ç¶çº§æºæåç§°") |
| | | private String parentOrgName; |
| | | |
| | | @ApiModelProperty(value = "ç¶çº§æºæåç§°") |
| | | private Integer lv; |
| | | |
| | | @ApiModelProperty(value = "æºæâæ¯ä»ééé
ç½®å表") |
| | | private List<ConfigOrgDetailChannel> channelList; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Desc: æºæééé
ç½®åè¡¨ä¿¡æ¯ |
| | | * @Author: dqh |
| | | * @Date: 2024-04-11 |
| | | **/ |
| | | @Api(value = "æºæééé
ç½®å表信æ¯", tags = "æºæééé
ç½®å表信æ¯") |
| | | @Data |
| | | public class ChannelOrgConfigDto { |
| | | |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgId; |
| | | |
| | | @ApiModelProperty(value = "æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "æºæcode") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty(value = "é
ç½®éé个æ°") |
| | | private Integer configCount; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: æºæ-æ¯ä»ééé
ç½®å表 |
| | | * @Author: dqh |
| | | * @Date: 2024-04-11 |
| | | **/ |
| | | @Api(value = "æºæééé
置详æ
", tags = "æºæééé
置详æ
") |
| | | @Data |
| | | public class ConfigOrgDetailChannel { |
| | | |
| | | @ApiModelProperty(value = "æºæ") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "ééID") |
| | | private Long channelInfoId; |
| | | |
| | | @ApiModelProperty(value = "ééåç§°") |
| | | private String channelName; |
| | | |
| | | @ApiModelProperty(value = "éécode") |
| | | private String channelCode; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨ï¼0-å¦ï¼1-æ¯") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦é»è®¤éé;0-å¦ï¼1-æ¯") |
| | | private Integer defaultOrNot; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @Desc: ééä¿¡æ¯-è´¹çDto |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | @Data |
| | | public class RateDto { |
| | | //å¯ä¸key |
| | | private String key; |
| | | //è¦å±ç¤ºç䏿æ ç¾ |
| | | private String label; |
| | | //è´¹çå¼ |
| | | private String value; |
| | | //å±ç¤ºé¡ºåºï¼sortè¶å°è¶é å |
| | | private Integer sort; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import com.nuvole.four.domain.SpecialFeeRate; |
| | | import com.nuvole.four.domain.StoreIndustryManage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: ç¹æ®è´¹çé
ç½®æ¥è¯¢ |
| | | * @Author: dqh |
| | | * @Date: 2024-04-13 |
| | | **/ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Api(value = "ç¹æ®è´¹çé
ç½®æ¥è¯¢",tags = "ç¹æ®è´¹çé
ç½®æ¥è¯¢") |
| | | @Data |
| | | public class SpecialFeeRateDto extends SpecialFeeRate { |
| | | |
| | | @ApiModelProperty(value = "ééæå±è¡ä¸") |
| | | //å符串jsonæ ¼å¼ï¼List<Bean>ææ æ³è½¬æ¢ |
| | | private String industryManages; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: |
| | | * @Author: dqh |
| | | * @Date: 2024-04-13 |
| | | **/ |
| | | @Data |
| | | public class StoreIndustryManageDto { |
| | | |
| | | @ApiModelProperty("ä¿®æ¹IDï¼ä¿®æ¹å¿
ä¼ ï¼æ°å¢ä¸ä¼ ") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("è¡ä¸åç§°") |
| | | private String industryName; |
| | | |
| | | @ApiModelProperty("ç¼å·") |
| | | private String industryCode; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.extend; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * ãããââãããââ |
| | | * ããâââ»âââââ»â |
| | | * ããâãããããããâ |
| | | * ããâãããâãããâ |
| | | * ããâãâ³âãââ³ãâ |
| | | * ããâãããããããâ |
| | | * ããâãããâ»ãããâ |
| | | * ããâãããããããâ |
| | | * ããâââãããâââ |
| | | * ããããâãããâ ç¥å
½ä¿ä½,ä»£ç æ bug |
| | | * ããããâãããâ |
| | | * ããããâãããâââââ |
| | | * ããããâãããããããâ£â |
| | | * ããããâãããããããââ |
| | | * ããããââââââ³âââ |
| | | * ãããããââ«â«ãââ«â« |
| | | * ãããããââ»âãââ»â |
| | | * ââââââAPPéç¨å±æ§è¿æ»¤ââââââ |
| | | */ |
| | | @Data |
| | | public class AppDTO<T> { |
| | | |
| | | private Long attr; |
| | | |
| | | private Long attr2; |
| | | |
| | | private Long attr3; |
| | | |
| | | private Long attr4; |
| | | |
| | | private String pro; |
| | | |
| | | private String pro2; |
| | | |
| | | private String pro3; |
| | | |
| | | private String pro4; |
| | | |
| | | private Short small; |
| | | |
| | | private Short small2; |
| | | |
| | | private Integer integer; |
| | | |
| | | private Integer integer2; |
| | | |
| | | private Object object; |
| | | |
| | | private Map map; |
| | | |
| | | private List<T> list; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.extend; |
| | | |
| | | import com.nuvole.base.domain.SysOrg; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "æ¥è¯¢ç»æ") |
| | | public class ExtendSysOrg extends SysOrg { |
| | | |
| | | @ApiModelProperty(value = "ä¼å个æ°") |
| | | private String memberCount; |
| | | |
| | | @ApiModelProperty(value = "æºæåç§°") |
| | | private String orgName; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.extend; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "æ¥è¯¢ç»æ") |
| | | public class ExtendSysUser extends SysUser { |
| | | |
| | | @ApiModelProperty(value = "ä¼å个æ°") |
| | | private String memberCount; |
| | | |
| | | @ApiModelProperty(value = "æºæåç§°") |
| | | private String orgName; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.extend; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: |
| | | * @Company: TOO (psï¼å
¬å¸åç§°) |
| | | * @author: å |
| | | * @date: 2019/8/8 ä¸å9:14 |
| | | * @version: V1.0.0 |
| | | */ |
| | | @Data |
| | | public class MapDTO { |
| | | |
| | | private Map map; |
| | | |
| | | private List list; |
| | | |
| | | public Map getMap() { |
| | | return map; |
| | | } |
| | | |
| | | public void setMap(Map map) { |
| | | this.map = map; |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.extend; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "æºæä¿¡æ¯æ¥è¯¢æ¡ä»¶") |
| | | public class SysOrgQuery { |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "æºæç¼å·") |
| | | private String orgCode; |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.params; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: 已䏿¥åæ·å表请æ±åæ° |
| | | * @Author: dqh |
| | | * @Date: 2024-04-14 |
| | | **/ |
| | | @Api(value = "已䏿¥åæ·å表请æ±åæ°",tags = "已䏿¥åæ·å表请æ±åæ°") |
| | | @Data |
| | | public class ActivityShopRecordParam { |
| | | |
| | | @ApiModelProperty(value = "æºæcode") |
| | | private Long queryOrgCode; |
| | | |
| | | @ApiModelProperty(value = "æå±åæ·id") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "åºéºåç§°") |
| | | private Long shopName; |
| | | |
| | | @ApiModelProperty(value = "客æ·ç»çåç§°") |
| | | private Long managerName; |
| | | |
| | | @ApiModelProperty(value = "ééid") |
| | | private Long channelId; |
| | | |
| | | @ApiModelProperty(value = "æ´»å¨ID") |
| | | private Long activityId; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.params; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Desc: é
ç½®éé请æ±åæ°ç±» |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | @Api(value = "é
ç½®éé请æ±åæ°",tags = "é
ç½®éé请æ±åæ°ç±»") |
| | | @Data |
| | | public class ChannelOrgConfigParam { |
| | | |
| | | @ApiModelProperty(value = "æºæID") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty(value = "å½åæºæID对åºçæºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty(value = "ééID") |
| | | private Long channelInfoId; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ;0=å¯ç¨;1=ç¦ç¨") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦é»è®¤;0=å¦;1=æ¯") |
| | | private Integer defaultOrNot; |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.query; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´âé¢ç®åé
æ¥è¯¢åæ° |
| | | * @Author dqh |
| | | * @Date 2024-04-20 23:39:57 |
| | | */ |
| | | @ApiModel("æ´»å¨è¡¥è´´âé¢ç®åé
æ¥è¯¢åæ°") |
| | | @Data |
| | | public class ActivityDistributeRecordQuery { |
| | | |
| | | @ApiModelProperty("æºæid") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty("æºæåç§°") |
| | | private String orgName; |
| | | |
| | | @ApiModelProperty("æºæcode") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty("æ´»å¨ID") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty("æ»é¢ç®ï¼åé
è¿æ¥çéé¢ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("已使ç¨é¢ç®ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½é¢ç®é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("ä¸çº§æºæid") |
| | | private Long lv1Id; |
| | | |
| | | @ApiModelProperty("äºçº§æºæid") |
| | | private Long lv2Id; |
| | | |
| | | @ApiModelProperty("ä¸çº§æºæid") |
| | | private Long lv3Id; |
| | | |
| | | @ApiModelProperty("åçº§æºæid") |
| | | private Long lv4Id; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.query; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è´¹çè¡¥è´´æ´»å¨æ¥è¯¢åæ° |
| | | * @Author dqh |
| | | * @Date 2024-04-20 16:54:59 |
| | | */ |
| | | @ApiModel("è´¹çè¡¥è´´æ´»å¨æ¥è¯¢åæ°") |
| | | @Data |
| | | public class ActivityFeeQuery { |
| | | |
| | | @ApiModelProperty("æºæId") |
| | | private Long orgId; |
| | | |
| | | @ApiModelProperty("æºæcode") |
| | | private String orgCode; |
| | | |
| | | @ApiModelProperty("æ´»å¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æ´»å¨ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty("æ´»å¨å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @ApiModelProperty("æ´»å¨ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty("æ¥åæªæ¢æ¶é´") |
| | | private Date expireTime; |
| | | |
| | | @ApiModelProperty("æ»é¢ç®ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("已使ç¨é¢ç®ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½é¢ç®é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double onlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double onlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double onlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double offlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double offlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double offlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double onlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double onlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double onlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double offlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double offlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double offlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.query; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ·æ¥è¯¢åæ° |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | @ApiModel("æ´»å¨è¡¥è´´â䏿¥åæ·æ¥è¯¢åæ°") |
| | | @Data |
| | | public class ActivityShopRecordQuery { |
| | | |
| | | @ApiModelProperty("æ´»å¨id") |
| | | private Long activityId; |
| | | |
| | | @ApiModelProperty("åæ·id") |
| | | private Long merchantShopId; |
| | | |
| | | @ApiModelProperty("æ¸ éid") |
| | | private Long channelId; |
| | | |
| | | @ApiModelProperty("æ¸ éåç§°") |
| | | private String channelName; |
| | | |
| | | @ApiModelProperty("æ´»å¨é¢åº¦ï¼é颿å") |
| | | private Long totalFee; |
| | | |
| | | @ApiModelProperty("ç¬¬ä¸æ¹åæ·å·") |
| | | private String thirdShopNo; |
| | | |
| | | @ApiModelProperty("已使活å¨é¢åº¦ï¼é颿å") |
| | | private Long useFee; |
| | | |
| | | @ApiModelProperty("å©ä½æ´»å¨é¢åº¦,é颿å") |
| | | private Long surplusFee; |
| | | |
| | | @ApiModelProperty("ç¶æ 0æªå¼å§ 1ä¸å¼å§ 2å·²ç»æ") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.query; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡çæ¥è¯¢åæ° |
| | | * @Author dqh |
| | | * @Date 2024-04-13 10:45:05 |
| | | */ |
| | | @ApiModel("è¡ä¸ç®¡çæ¥è¯¢åæ°") |
| | | @Data |
| | | public class SpecialFeeRateQuery { |
| | | |
| | | @ApiModelProperty("æ¸ éid") |
| | | private Long channelId; |
| | | |
| | | @ApiModelProperty("è¡ä¸ç®¡ç表id") |
| | | private Long industryManageId; |
| | | |
| | | @ApiModelProperty("æ¸ éè¡ä¸code") |
| | | private String industryCode; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double onlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double onlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double onlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-微信") |
| | | private Double offlineAgreeWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-æ¯ä»å®") |
| | | private Double offlineAgreeZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸å议费ç-äºéªä»") |
| | | private Double offlineAgreeUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double onlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double onlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double onlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-微信") |
| | | private Double offlineMerWxRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-æ¯ä»å®") |
| | | private Double offlineMerZfbRate; |
| | | |
| | | @ApiModelProperty("线ä¸åæ·è´¹ç-äºéªä»") |
| | | private Double offlineMerUnionpayRate; |
| | | |
| | | @ApiModelProperty("æ¸ éè¡ä¸åç§°") |
| | | private String industryName; |
| | | |
| | | @ApiModelProperty("ç¶æ 0ç¦æ¢ 1å¯ç¨") |
| | | private Short status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Short deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.domain.query; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡çæ¥è¯¢åæ° |
| | | * @Author dqh |
| | | * @Date 2024-04-13 10:40:45 |
| | | */ |
| | | @ApiModel("è¡ä¸ç®¡çæ¥è¯¢åæ°") |
| | | @Data |
| | | public class StoreIndustryManageQuery { |
| | | |
| | | @ApiModelProperty("æä¸çº§ä¸º0") |
| | | private Long pId; |
| | | |
| | | @ApiModelProperty("è¡ä¸åç§°") |
| | | private String industryName; |
| | | |
| | | @ApiModelProperty("ç¼å·") |
| | | private String industryCode; |
| | | |
| | | @ApiModelProperty("åºå·") |
| | | private Integer sortNo; |
| | | |
| | | @ApiModelProperty("0.å¦ 1.æ¯") |
| | | private Short isSpecial; |
| | | |
| | | @ApiModelProperty("å±çº§") |
| | | private Integer level; |
| | | |
| | | @ApiModelProperty("ç¶æ 0ç¦æ¢ 1å¯ç¨") |
| | | private Short status; |
| | | |
| | | @ApiModelProperty("å é¤ç¶æ 0æªå é¤ 1å·²å é¤") |
| | | private Short deleted; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Long createBy; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | private Long updateBy; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
New file |
| | |
| | | package com.nuvole.four.exception; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.nuvole.common.domain.emnu.CommonResultEmnu; |
| | | import com.nuvole.common.domain.result.CommonResult; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.ControllerAdvice; |
| | | import org.springframework.web.bind.annotation.ExceptionHandler; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.io.PrintWriter; |
| | | import java.io.StringWriter; |
| | | |
| | | /** |
| | | * ç±»æè¿°: å
¨å±å¼å¸¸ç±» |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-09 19:25 |
| | | * @version 1.0 |
| | | **/ |
| | | @ControllerAdvice |
| | | @Slf4j |
| | | public class Exceptionhandler { |
| | | |
| | | @ExceptionHandler(value = IllegalArgumentException.class) |
| | | @ResponseBody |
| | | private CommonResult IllegalArgumentException(HttpServletRequest req, IllegalArgumentException e) { |
| | | log.error(getExceptionStackMsg(e)); |
| | | if(StrUtil.isNotBlank(e.getMessage())){ |
| | | return new CommonResult(CommonResultEmnu.INVALID_PARAMS, e.getMessage()); |
| | | }else { |
| | | return new CommonResult(CommonResultEmnu.INVALID_PARAMS, "ä¸åæ³çåæ°"); |
| | | } |
| | | } |
| | | |
| | | @ExceptionHandler(value = Exception.class) |
| | | @ResponseBody |
| | | private CommonResult Exception(HttpServletRequest req, HttpServletResponse resp, Exception e) { |
| | | //if (!(req.getHeader("accept").contains("application/json")//é弿¥è¯·æ± |
| | | //|| (req.getHeader("X-Requested-With") != null && req.getHeader("X-Requested-With").contains("XMLHttpRequest")))) { |
| | | //} |
| | | log.error(getExceptionStackMsg(e)); |
| | | return new CommonResult(CommonResultEmnu.SERVER_ERR, "æå¡å¼å¸¸"); |
| | | } |
| | | |
| | | public static String getExceptionStackMsg(Exception e) { |
| | | StringWriter sw = new StringWriter(); |
| | | e.printStackTrace(new PrintWriter(sw, true)); |
| | | String strs = sw.toString(); |
| | | return strs; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.domain.query.ActivityDistributeRecordQuery; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description æ´»å¨é¢ç®åé
Mapper |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:36:24 |
| | | */ |
| | | @Mapper |
| | | public interface ActivityDistributeRecordMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ActivityDistributeRecord record); |
| | | |
| | | int insertSelective(ActivityDistributeRecord record); |
| | | |
| | | ActivityDistributeRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ActivityDistributeRecord record); |
| | | |
| | | /** |
| | | * æ ¹æ®activityIdä¿®æ¹ç¶æ |
| | | */ |
| | | @Update("update activity_distribute_record set status = #{status} where activity_id = #{activityId}") |
| | | int updateByActivityId(ActivityDistributeRecord record); |
| | | |
| | | int updateByPrimaryKey(ActivityDistributeRecord record); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityDistributeRecord> selectList(ActivityDistributeRecordQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: åé
é¢ç®æ¥è¯¢ |
| | | * æ¥è¯¢orgIdçä¸çº§åé
è®°å½ |
| | | * |
| | | * @date 2024-04-14 13:26 |
| | | **/ |
| | | List<ActivityDistributeBudgetDto> getActivityDistributeRecordDetail(@Param("orgId") Long orgId, @Param("activityId") Long activityId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨é¢ç®åé
å表 |
| | | * |
| | | * @date 2024-04-15 13:35 |
| | | **/ |
| | | List<ActivityDistributeBudgetDto> getActivityDistributeRecordDetailByAId(@Param("activityId") Long activityId,@Param("orgCode") String orgCode); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:åé
é¢ç®ä¿å |
| | | * æidåè¿è¡æ´æ°ï¼æ åæ°å¢ |
| | | * |
| | | * @date 2024-04-14 13:41 |
| | | **/ |
| | | Integer batchInsertOrUpdate(List<ActivityDistributeRecord> recordList); |
| | | |
| | | @Select("select * from activity_distribute_record where deleted = 0 and activity_id = #{activityId} and org_id = #{orgId}") |
| | | ActivityDistributeRecord getFeeByCondition(@Param("activityId") Long activityId,@Param("orgId") Long orgId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: |
| | | * |
| | | * @date 2024-04-20 17:26 |
| | | **/ |
| | | List<ActivityDistributeRecord> selectAllByActivityIds(@Param("ids") List<Long> ids); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.domain.query.ActivityFeeQuery; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è´¹ç补贴活å¨Mapper |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:33:08 |
| | | */ |
| | | @Mapper |
| | | public interface ActivityFeeMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ActivityFee record); |
| | | |
| | | int insertSelective(ActivityFee record); |
| | | |
| | | ActivityFee selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ActivityFee record); |
| | | |
| | | int updateByPrimaryKey(ActivityFee record); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityFee> selectList(ActivityFeeQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¡¨çé¢åº¦ |
| | | * |
| | | * @date 2024-04-14 15:25 |
| | | **/ |
| | | List<ActivityDistributeBudgetDto> getActivityFeeDetail(Long orgId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ ¹æ®æ´»å¨idï¼orgIdæ¥è¯¢æ´»å¨ |
| | | * |
| | | * @date 2024-04-17 10:15 |
| | | **/ |
| | | @Select("select * from activity_fee where id = #{activityId} and org_id = #{orgId}") |
| | | ActivityFee getActivityFeeByIdAndOrgId(@Param("activityId") Long activityId,@Param("orgId") Long orgId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨å表ï¼å
å«å·²åé
çï¼ |
| | | * æ ¹æ®orgIdè¿è¡æéå表æ§å¶ |
| | | * |
| | | * @date 2024-04-22 10:57 |
| | | **/ |
| | | List<ActivityFee> selectActivityWithDistribute(ActivityFeeQuery query); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.dto.ActivityShopRecordDto; |
| | | import com.nuvole.four.domain.params.ActivityShopRecordParam; |
| | | import com.nuvole.four.domain.query.ActivityShopRecordQuery; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ·Mapper |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | @Mapper |
| | | public interface ActivityShopRecordMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ActivityShopRecord record); |
| | | |
| | | int insertSelective(ActivityShopRecord record); |
| | | |
| | | ActivityShopRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ActivityShopRecord record); |
| | | |
| | | /** |
| | | * æ ¹æ®activityIdä¿®æ¹ç¶æ |
| | | */ |
| | | @Update("update activity_shop_record set status = #{status} where activity_id = #{activityId}") |
| | | int updateByActivityId(ActivityShopRecord record); |
| | | |
| | | int updateByPrimaryKey(ActivityShopRecord record); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityShopRecord> selectList(ActivityShopRecordQuery query); |
| | | |
| | | /** |
| | | * åè½æè¿° æ ¹æ®åºéºidï¼æ¯ä»éé æ¥è¯¢æ´»å¨è´¹ç |
| | | * @param shopId |
| | | * @param channelId |
| | | **/ |
| | | Map getActRateByShopId(@Param("shopId") Long shopId, @Param("channelId") Long channelId); |
| | | |
| | | /** |
| | | * åè½æè¿° å½åæ·ä½¿ç¨é¢åº¦æ¶ï¼æ´æ°å©ä½é¢åº¦ã已使ç¨é¢åº¦ |
| | | * |
| | | * @param activityId è´¹çæ´»å¨id |
| | | * @param merchantShopId åæ·id |
| | | * @param useFee æ¬æ¬¡ä½¿ç¨é¢åº¦ |
| | | **/ |
| | | int updShopSurplusFee(@Param("activityId") Long activityId, @Param("merchantShopId") Long merchantShopId, |
| | | @Param("channelId") Long channelId, @Param("useFee") Integer useFee); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢å·²ä¸æ¥åæ·å表 |
| | | * |
| | | * @date 2024-04-14 21:41 |
| | | **/ |
| | | List<ActivityShopRecordDto> getAlreadyMerchantList(ActivityShopRecordParam param); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¹éæ·»å 䏿¥ |
| | | * |
| | | * @date 2024-04-15 9:56 |
| | | **/ |
| | | Integer batchInsert(List<ActivityShopRecord> recordList); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®shopIdsæ¥è¯¢ææè®°å½ |
| | | * |
| | | * @date 2024-04-15 11:24 |
| | | **/ |
| | | List<ActivityShopRecord> selectByCondition(@Param("ids") String[] ids,@Param("activityId") Long activityId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¹éç¼è¾åé
䏿¥é¢åº¦ |
| | | * |
| | | * @date 2024-04-15 15:46 |
| | | **/ |
| | | Integer batchUpdate(List<ActivityShopRecord> shopRecordList); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import com.nuvole.four.domain.dto.ChannelInfoDto; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface ChannelInfoMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ChannelInfo record); |
| | | |
| | | int insertSelective(ChannelInfo record); |
| | | |
| | | ChannelInfo selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ChannelInfo record); |
| | | |
| | | int updateByPrimaryKey(ChannelInfo record); |
| | | |
| | | List<ChannelInfo> selectAll(ChannelInfo record); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¡éªéécodeæ¯å¦åå¨ |
| | | * |
| | | * @date 2024-04-13 14:06 |
| | | **/ |
| | | |
| | | @Select("select * from channel_info where channel_code = #{channelCode} ") |
| | | ChannelInfo checkChannelCode(@Param("channelCode") String channelCode); |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å页æ¥è¯¢ééå表 |
| | | * |
| | | * @date 2024-04-13 16:21 |
| | | **/ |
| | | List<ChannelInfoDto> getPageList(ChannelInfo channelInfo); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.ChannelOrgConfig; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDto; |
| | | import com.nuvole.four.domain.dto.ConfigOrgDetailChannel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface ChannelOrgConfigMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ChannelOrgConfig record); |
| | | |
| | | int insertSelective(ChannelOrgConfig record); |
| | | |
| | | ChannelOrgConfig selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ChannelOrgConfig record); |
| | | |
| | | int updateByPrimaryKey(ChannelOrgConfig record); |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæééé
ç½®å表 |
| | | * ä»
å
å«å½åorgIdçä¸çº§ï¼ä¸å
å«(äºä¸å级ç) |
| | | * |
| | | * @param orgId éæ©çæºæID |
| | | * @param orgName æ¥è¯¢æ¡ä»¶æºæåç§° |
| | | */ |
| | | List<ChannelOrgConfigDto> selectAllList(@Param("orgId")Long orgId, @Param("orgName") String orgName); |
| | | |
| | | /** |
| | | * éè¿æ¡ä»¶æ¥è¯¢æ°æ® |
| | | * |
| | | * @param orgId éæ©çæºæID |
| | | * @param channelId éæ©çééID |
| | | */ |
| | | @Select({"select * from channel_org_config where org_id = #{orgId} and channel_info_id = #{channelId} "}) |
| | | ChannelOrgConfig selectByOrgIdAndChannelId(@Param("orgId") Long orgId,@Param("channelId") Long channelId); |
| | | |
| | | /** |
| | | * éè¿orgIdæ¥è¯¢ é»è®¤çééé
ç½® |
| | | * åä¸orgId对åºçé»è®¤ééä»
æä¸æ¡ |
| | | */ |
| | | @Select({"select * from channel_org_config where default_or_not = 1 and org_id = #{orgId} "}) |
| | | ChannelOrgConfig queryDefaultChannelByOrgId(@Param("orgId") Long orgId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢ChannelOrgConfigè¡¨çæææ°æ® |
| | | * |
| | | * @date 2024-04-11 20:42 |
| | | **/ |
| | | List<ChannelOrgConfig> selectAll(ChannelOrgConfig config); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ ¹æ®orgIdãorgPIdæ¥è¯¢ææææçæºæééé
ç½®æ°æ® |
| | | * |
| | | * @date 2024-04-12 9:53 |
| | | **/ |
| | | @Select("(select a.org_id orgId,a.channel_info_id channelInfoId,a.`status`,a.default_or_not defaultOrNot,b.channel_name channelName,b.channel_code channelCode from channel_org_config a left join channel_info b on a.channel_info_id = b.id where a.org_id = #{pId} and a.`status` = 1 and b.`status` = 0) " + |
| | | " union " + |
| | | "(select a.org_id orgId,a.channel_info_id channelInfoId,a.`status`,a.default_or_not defaultOrNot,b.channel_name channelName,b.channel_code channelCode from channel_org_config a left join channel_info b on a.channel_info_id = b.id where a.org_id = #{orgId} and a.`status` = 1 and b.`status` = 0) ") |
| | | List<ConfigOrgDetailChannel> selectValidByCondition(@Param("orgId") Long orgId,@Param("pId") Long pId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢æºæå±çº§ =çå¸ æ¥è¯¢å±ç¤ºçææééã |
| | | * |
| | | * @date 2024-04-12 10:20 |
| | | **/ |
| | | @Select("select ci.id,ci.channel_name,ci.channel_code channelCode,ci.id channelInfoId,IFNULL(coc.status,0) status,IFNULL(coc.default_or_not,0) defaultOrNot from channel_info ci LEFT JOIN channel_org_config coc on ci.id = coc.channel_info_id and coc.org_id = #{orgId} where ci.`status` = 0 GROUP BY ci.id") |
| | | List<ConfigOrgDetailChannel> selectAllAndChannelInfo(@Param("orgId") Long orgId); |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.SpecialFeeRate; |
| | | import com.nuvole.four.domain.dto.SpecialFeeRateDto; |
| | | import com.nuvole.four.domain.query.SpecialFeeRateQuery; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹çMapper |
| | | * @Author dqh |
| | | * @Date 2024-04-12 19:57:28 |
| | | */ |
| | | @Mapper |
| | | public interface SpecialFeeRateMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SpecialFeeRate record); |
| | | |
| | | int insertSelective(SpecialFeeRate record); |
| | | |
| | | SpecialFeeRate selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SpecialFeeRate record); |
| | | |
| | | int updateByPrimaryKey(SpecialFeeRate record); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<SpecialFeeRate> selectList(SpecialFeeRateQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®è¡ä¸ID æ¥è¯¢ç¹æ®è´¹çé
ç½® |
| | | * |
| | | **/ |
| | | List<SpecialFeeRate> selectByIndustryId(@Param("industryId") Long industryId, @Param("channelId") Long channelId); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¹éå¤ç |
| | | * idä¸ºç©ºåæ°å¢ï¼æå¼åä¿®æ¹ |
| | | **/ |
| | | int batchInsert(List<SpecialFeeRate> list); |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.StoreIndustryManage; |
| | | import com.nuvole.four.domain.query.StoreIndustryManageQuery; |
| | | 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; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡çMapper |
| | | * @Author dqh |
| | | * @Date 2024-04-12 17:41:29 |
| | | */ |
| | | @Mapper |
| | | public interface StoreIndustryManageMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(StoreIndustryManage record); |
| | | |
| | | int insertSelective(StoreIndustryManage record); |
| | | |
| | | StoreIndustryManage selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(StoreIndustryManage record); |
| | | |
| | | int updateByPrimaryKey(StoreIndustryManage record); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<StoreIndustryManage> selectList(StoreIndustryManageQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢max(sortNo)çåºå·ä¿¡æ¯ |
| | | * è¿å = max(sortNo) + 10 |
| | | * |
| | | * @date 2024-04-12 18:17 |
| | | **/ |
| | | @Select("select (max(sort_no) + 10) sortNo from store_industry_manage") |
| | | Integer getSort(); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®IDæ¥è¯¢å¯¹åºå±çº§levelï¼å¹¶èªå¨+1å¾åºä¸çº§level |
| | | * |
| | | * @date 2024-04-12 18:40 |
| | | **/ |
| | | @Select("select (`level` + 1) from store_industry_manage where id = #{id} ") |
| | | Integer getLevel(Long id); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å表é»è®¤æ¹æ³ |
| | | **/ |
| | | List<StoreIndustryManage> selectAll(Map map); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å½åèç¹æ¯å¦å
å«åèç¹ |
| | | * |
| | | **/ |
| | | @Select("select count(1) from store_industry_manage where p_id = #{id} and deleted=0") |
| | | int selectByPid(Long id); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢å级æå¤§çcode |
| | | * |
| | | * @date 2024-04-13 21:51 |
| | | **/ |
| | | @Select("select max(industry_code) from store_industry_manage where p_id = #{pid} and industry_code = #{industryCode}") |
| | | String getMaxCode(@Param("pid") Long pid, @Param("industryCode") String industryCode); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public interface SysOrgMapper { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SysOrg record); |
| | | |
| | | int insertSelective(SysOrg record); |
| | | |
| | | SysOrg selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SysOrg record); |
| | | |
| | | int updateByPrimaryKey(SysOrg record); |
| | | |
| | | /** |
| | | * @Author : liu.q [916000612@qq.com] |
| | | * @Date : 2019-04-04 14:15 |
| | | * @Description :æ¥è¯¢å
¨é¨ |
| | | */ |
| | | List<SysOrg> selectAll(Map map); |
| | | |
| | | /** |
| | | * @Author : liu.q [916000612@qq.com] |
| | | * @Date : 2019-04-07 19:21 |
| | | * @Description :æ¥è¯¢å
¨é¨ |
| | | */ |
| | | List<Map> selectAllOfMap(Map map); |
| | | |
| | | /** |
| | | * æ ¹æ®æºæç¼å·æ¥è¯¢æºæä¿¡æ¯ |
| | | * |
| | | * @author zxc |
| | | * @Date 2019/6/4 11:35 |
| | | **/ |
| | | SysOrg getOrgByCode(String code); |
| | | |
| | | @Select("select org.*,org2.org_Code pOrgCode from sys_org org left join sys_org org2 on org.pid = org2.id where org.org_code=#{code}") |
| | | Map getOrgByCode2(String code); |
| | | |
| | | List<Map> getBranchByOrgCode(@Param("code") String code, @Param("keyText") String keyText, @Param("userType") Short userType); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæbyCode |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/12 16:20 |
| | | */ |
| | | SysOrg selectOrgByCode(String code); |
| | | |
| | | /** |
| | | * æ¹éæ§è¡å¯¼å
¥ |
| | | * |
| | | * @author zxc |
| | | * @Date 2019/6/11 18:59 |
| | | **/ |
| | | int batchImportOrg(List<Map> list); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
¨é¨æºæ |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/13 9:39 |
| | | */ |
| | | @Select("select * from sys_org ") |
| | | List<SysOrg> getOrgList(); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¶æºæuseCode 以å åæºæmaxCode |
| | | * |
| | | * @author zxc |
| | | * @Date 2019/7/13 18:49 |
| | | **/ |
| | | @Select("select max(a.org_code) maxCode,a.pid,(select b.org_code from sys_org b where b.id = a.pid) pCode from sys_org a group by a.pid") |
| | | List<Map> selectUseCodeForImport(); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¬çº§æå¤§code |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/13 13:40 |
| | | */ |
| | | @Select("select max(org_code) from sys_org where pid=#{pid} ") |
| | | String getMaxCode(@Param("pid") Long pid); |
| | | |
| | | /** |
| | | * æ ¹æ®æºæç¼å·è·åæºæ |
| | | * |
| | | * @param orgCode |
| | | * @return |
| | | */ |
| | | @Select("select * from sys_org where user_org_code = #{orgCode}") |
| | | SysOrg selectByOrgCode(@Param("orgCode") String orgCode); |
| | | |
| | | /** |
| | | * è§è²ç®¡ç人åé
ç½®æºææ |
| | | * |
| | | * @author zxc |
| | | * @Date 2019/6/13 17:19 |
| | | **/ |
| | | List<SysOrg> getListForRoleUser(Map map); |
| | | |
| | | /** |
| | | * Createed by PKZ |
| | | * Date 2019/6/17 16:11 |
| | | * Descriptionï¼æ ¹æ®userOrgCodeæ¥è¯¢æºæä¿¡æ¯ |
| | | **/ |
| | | @Select("select a.org_code zj_org_code,a.id zj_id,a.name zj_name,b.id xq_id,b.name xq_name,c.id sj_id,c.name sj_name from sys_org a,sys_org b,sys_org c where a.user_org_code = #{orgCode} and b.id=a.pid and c.id=b.pid") |
| | | Map getOrgByUserCode(@Param("orgCode") String code); |
| | | |
| | | List<SysOrg> getOrgForSelector(@Param("pid") Long pid, @Param("rootId") Long rootId); |
| | | |
| | | @Select("select pid from sys_org where id = #{id}") |
| | | Long queryPidById(@Param("id") Long id); |
| | | |
| | | @Select("select lv from sys_org where id = #{id}") |
| | | Integer queryLvById(@Param("id") Long id); |
| | | |
| | | Integer getByOrgCode(SysOrg sysOrg); |
| | | |
| | | |
| | | @Select("select id,name,org_code,user_org_code,pid from sys_org where state=1 and lv<2") |
| | | List<SysOrg> getOrgEndS(); |
| | | |
| | | @Select("select id, name from sys_org where pid = #{orgId}") |
| | | List<SysOrg> getOrgMapByLogin(Long orgId); |
| | | |
| | | @Select("select id, name from sys_org where id = #{orgId} and lv = 3") |
| | | List<SysOrg> getOrgMapByLoginLv(Long orgId); |
| | | |
| | | @Select("select lv from sys_org where org_code = #{orgCode}") |
| | | Integer getOrgLvByOrgCode(String orgCode); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æææ¯å± |
| | | */ |
| | | @Select("select id, name from sys_org where lv = 3") |
| | | List<SysOrg> getWdIdOrName(); |
| | | |
| | | /** |
| | | * æ¥è¯¢æææ¯å± |
| | | */ |
| | | @Select("select * from sys_org where lv = 0 limit 1") |
| | | SysOrg getSjOrgInfo(); |
| | | |
| | | @Select("select * from sys_org where pid=(select id from sys_org where org_code = #{orgCode} ) or org_code = #{orgCode}") |
| | | List<SysOrg> selectOrgByOrgCode(String orgCode); |
| | | |
| | | @Select("select name as orgName ,org_code as orgCode from sys_org group by org_code ") |
| | | List<Map> getOrgCodeCache(); |
| | | |
| | | @Select("select a.name,c.org_code orgCode from sys_area a left join sys_org_area b on b.area_id = a.id left join sys_org c on c.id = b.org_id where a.lv = 2") |
| | | List<Map> getSjOrgCodeAreaNameRef(); |
| | | |
| | | |
| | | /** |
| | | * ç¦ç¨æºæ |
| | | * |
| | | * @param orgCode |
| | | * @return CONCAT(' % ', # { 0 }, ' % ') |
| | | */ |
| | | @Update("update sys_org set state=#{state} where org_code like CONCAT('%',#{orgCode},'%')") |
| | | int updateState(@Param("orgCode") String orgCode, @Param("state") Integer state); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ ¹æ®orgIdæ¥è¯¢æºæåç§°ãç¶çº§æºæåç§° |
| | | * |
| | | * @date 2024-04-11 20:30 |
| | | **/ |
| | | @Select("select a.id,a.name orgName,a.pid pId,a.lv,(select b.name from sys_org b where b.id = a.pid) parentOrgName from sys_org a where a.id = #{orgId}") |
| | | ChannelOrgConfigDetailDto queryNameAndParentName(@Param("orgId") Long orgId); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.mapper; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Desc: ç³»ç»ç¨æ·æ¥è¯¢mapper |
| | | * @Author: dqh |
| | | * @Date: 2024-04-15 |
| | | **/ |
| | | public interface SysUserMapper { |
| | | |
| | | @Select("select * from sys_user where id = #{id}") |
| | | SysUser getUserById(@Param("id") Long id); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.domain.query.ActivityDistributeRecordQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description æ´»å¨é¢ç®åé
Service |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:36:24 |
| | | */ |
| | | public interface ActivityDistributeRecordService{ |
| | | |
| | | int addSelective(ActivityDistributeRecord entity); |
| | | int editSelective(ActivityDistributeRecord entity); |
| | | ActivityDistributeRecord get(Long id); |
| | | int del(Long id); |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityDistributeRecord> getList(ActivityDistributeRecordQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: åé
é¢ç®æ¥è¯¢ |
| | | * é»è®¤ä»
æ¥è¯¢å½åç»å½äººçæºæä¸çº§ãä¸å
å«ä¸ä¸çº§ |
| | | * @date 2024-04-14 10:51 |
| | | **/ |
| | | List<ActivityDistributeBudgetDto> getActivityDistributeRecordDetail(Long id); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:åé
é¢ç®ä¿å |
| | | * æidåè¿è¡æ´æ°ï¼æ åæ°å¢ |
| | | * |
| | | * @date 2024-04-14 13:41 |
| | | **/ |
| | | Integer batchInsertOrUpdate(List<ActivityDistributeRecord> recordList); |
| | | |
| | | ActivityDistributeRecord getFeeByCondition(Long activityId,Long orgId); |
| | | |
| | | ActivityFee getActivityFeeByIdAndOrgId(Long activityId,Long orgId); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.dto.ActivityFeeDetailDto; |
| | | import com.nuvole.four.domain.query.ActivityFeeQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è´¹ç补贴活å¨Service |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:33:08 |
| | | */ |
| | | public interface ActivityFeeService { |
| | | |
| | | int addSelective(ActivityFee entity); |
| | | int editSelective(ActivityFee entity); |
| | | ActivityFee get(Long id); |
| | | int del(Long id); |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityFee> getList(ActivityFeeQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å¼å§/忢 |
| | | * åæ¥åæ¢æ´»å¨è¡¨ãåæ·æ´»å¨è¡¨ãæºæé¢ç®åé
表 |
| | | **/ |
| | | int startOrStop(Long id, Integer status); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨æ°æ® |
| | | **/ |
| | | ActivityFeeDetailDto getActivityFeeDetail(Long id); |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.dto.ActivityShopRecordDto; |
| | | import com.nuvole.four.domain.params.ActivityShopRecordParam; |
| | | import com.nuvole.four.domain.query.ActivityShopRecordQuery; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ·Service |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | public interface ActivityShopRecordService { |
| | | |
| | | int addSelective(ActivityShopRecord entity); |
| | | |
| | | int editSelective(ActivityShopRecord entity); |
| | | |
| | | ActivityShopRecord get(Long id); |
| | | |
| | | int del(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<ActivityShopRecord> getList(ActivityShopRecordQuery query); |
| | | |
| | | /** |
| | | * åè½æè¿° æ ¹æ®åºéºidï¼æ¯ä»éé æ¥è¯¢æ´»å¨è´¹ç |
| | | * |
| | | * @param |
| | | **/ |
| | | Map getActRateByShopIdAndChannelId(Long shopId, Long channelId); |
| | | |
| | | /** |
| | | * åè½æè¿° å½åæ·ä½¿ç¨é¢åº¦æ¶ï¼æ´æ°å©ä½é¢åº¦ã已使ç¨é¢åº¦ |
| | | * |
| | | * @param activityId è´¹çæ´»å¨id |
| | | * @param merchantShopId åæ·id |
| | | * @param useFee æ¬æ¬¡ä½¿ç¨é¢åº¦ |
| | | **/ |
| | | int updShopSurplusFee(Long activityId, Long merchantShopId, Long channelId, Integer useFee); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:已䏿¥åæ·å表 |
| | | * |
| | | * @date 2024-04-14 20:37 |
| | | **/ |
| | | List<ActivityShopRecordDto> getAlreadyMerchantList(ActivityShopRecordParam param); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¹éæ·»å 䏿¥ |
| | | * |
| | | * @date 2024-04-15 9:45 |
| | | **/ |
| | | Integer batchInsert(List<ActivityShopRecord> recordList); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®shopIdsæ¥è¯¢ææè®°å½ |
| | | * |
| | | * @date 2024-04-15 11:23 |
| | | **/ |
| | | List<ActivityShopRecord> selectByCondition(String[] idsArr,Long activityId); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | // @formatter:off |
| | | /** |
| | | * .-~~~~~~~~~-._ _.-~~~~~~~~~-. |
| | | * __.' @Author ~. .~ ä»£ç æ Bug `.__ |
| | | * .'// liu.q \./ (ç§ç±) \\`. |
| | | * .'// [916000612@qq.com] | 欲ç»ç¥å å¼åèªå®« \\`. |
| | | * .'// .-~"""""""~~~~-._ | _,-~~~~"""""""~-. \\`. |
| | | * .'//.-" 2019-04-04 `-. | .-' 13:59 "-.\\`. |
| | | * .'//______.============-.. \ | / ..-============.______\\`. |
| | | *.'______________________________\|/______________________________`. |
| | | * |
| | | * @Description : |
| | | */ |
| | | // @formatter:on |
| | | |
| | | public interface BaseService<T> { |
| | | |
| | | // æ¥è¯¢å表 |
| | | List<T> getList(Map map); |
| | | |
| | | List<T> getList(T t); |
| | | |
| | | List<Map> getListOfMap(Map map); |
| | | |
| | | List<Map> getListOfMap(T t); |
| | | |
| | | // ä¿å |
| | | Integer save(T t); |
| | | |
| | | // ä¿®æ¹ |
| | | Integer update(T t); |
| | | |
| | | // å é¤ |
| | | Integer del(Long id); |
| | | |
| | | // æ ¹æ®ä¸»é®idæ¥è¯¢ |
| | | T getById(Long id); |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import com.nuvole.four.domain.dto.ChannelInfoDto; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: ééä¿¡æ¯Service |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | public interface ChannelInfoService extends BaseService<ChannelInfo>{ |
| | | |
| | | Integer saveChannelInfo(ChannelInfo channelInfo); |
| | | |
| | | Integer updateChannelInfo(ChannelInfo channelInfo); |
| | | |
| | | ChannelInfo getChannelInfo(Long id); |
| | | |
| | | /** |
| | | * åè½æè¿° æ ¹æ®codeæ¥è¯¢éé |
| | | * @param channelCode |
| | | com.nuvole.four.domain.ChannelInfo |
| | | **/ |
| | | ChannelInfo getDetailByCode(String channelCode); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å页æ¥è¯¢ééå表 |
| | | * |
| | | * @date 2024-04-13 16:20 |
| | | **/ |
| | | List<ChannelInfoDto> getPageList(ChannelInfo channelInfo); |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.ChannelOrgConfig; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDto; |
| | | import com.nuvole.four.domain.params.ChannelOrgConfigParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Desc: æºæééé
ç½®Service |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | public interface ChannelOrgConfigService extends BaseService<ChannelOrgConfig>{ |
| | | ChannelOrgConfig get(Long id); |
| | | |
| | | Integer configChannel(ChannelOrgConfigParam configParam); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæééé
ç½®å表 |
| | | * |
| | | * @date 2024-04-11 14:57 |
| | | **/ |
| | | List<ChannelOrgConfigDto> queryAllChannelOrg(Long orgId,String orgName); |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæéé详æ
|
| | | * 详æ
ä¸çéé ä»
å
å«å½åorgId对åºçpId对åºçéé |
| | | * @date 2024-04-11 20:04 |
| | | **/ |
| | | ChannelOrgConfigDetailDto getChannelOrgConfigDetail(Long orgId); |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.extend.AppDTO; |
| | | import org.apache.commons.lang.StringEscapeUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.*; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | /** |
| | | * Coding makes me happy. |
| | | * ãââãããââ |
| | | * âââ»âââââ»â |
| | | * âããâââããâ |
| | | * âãããâãããâ |
| | | * âãâ³âãââ³ãâ |
| | | * âãããããããâ |
| | | * âãããâ»ãããâ |
| | | * âââãå²ãâââ |
| | | * ããâãè¯ãâç¥å
½ä¿ä½ |
| | | * ããâãä¹ãâä»£ç æ BUGï¼ |
| | | * ããâãå® ãâââââ |
| | | * ããâAuthor:ãããâ£â |
| | | * ããâãã liu.Qãââ |
| | | * ããââââââ³âââ |
| | | * ãããââ«â«ãââ«â« |
| | | * ãããââ»âãââ»â |
| | | * ---------------------- |
| | | * |
| | | * @Date : ä¸å11:18 2018/3/2 |
| | | * @Description : |
| | | */ |
| | | @Service |
| | | public class RedisService { |
| | | @Autowired |
| | | private RedisTemplate redisTemplate; |
| | | |
| | | /** |
| | | * åå
¥ç¼å |
| | | * |
| | | * @param key |
| | | * @param value |
| | | * @return |
| | | */ |
| | | public boolean set(final String key, Object value) { |
| | | boolean result = false; |
| | | try { |
| | | ValueOperations<Serializable, Object> operations = redisTemplate.opsForValue(); |
| | | AppDTO dto = new AppDTO(); |
| | | Map map = new HashMap(); |
| | | // todo xuekang |
| | | // StringEscapeUtils.unescapeHtml4(key) |
| | | map.put("key",StringEscapeUtils.unescapeHtml(key)); |
| | | map.put("value",value); |
| | | dto.setMap(map); |
| | | AppDTO s = new AppDTO(); |
| | | BeanUtils.copyProperties(dto,s); |
| | | operations.set((String)s.getMap().get("key"), s.getMap().get("value")); |
| | | result = true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * åå
¥ç¼åè®¾ç½®æ¶ææ¶é´ |
| | | * |
| | | * @param key |
| | | * @param value |
| | | * @return |
| | | */ |
| | | public boolean set(final String key, Object value, Long expireTime, TimeUnit timeUnit) { |
| | | |
| | | boolean result = false; |
| | | try { |
| | | ValueOperations<Serializable, Object> operations = redisTemplate.opsForValue(); |
| | | AppDTO dto = new AppDTO(); |
| | | Map map = new HashMap(); |
| | | map.put("key",StringEscapeUtils.unescapeHtml(key)); |
| | | map.put("value",value); |
| | | map.put("expireTime",expireTime); |
| | | map.put("timeUnit",timeUnit); |
| | | dto.setMap(map); |
| | | AppDTO s = new AppDTO(); |
| | | BeanUtils.copyProperties(dto,s); |
| | | operations.set((String)s.getMap().get("key"), s.getMap().get("value")); |
| | | // operations.set(StringEscapeUtils.unescapeHtml4(key), value); |
| | | redisTemplate.expire((String)s.getMap().get("key"), (Long)s.getMap().get("expireTime"), (TimeUnit) s.getMap().get("timeUnit")); |
| | | result = true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å¯¹åºçvalue |
| | | * |
| | | * @param keys |
| | | */ |
| | | public void remove(final String... keys) { |
| | | for (String key : keys) { |
| | | remove(key); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤key |
| | | * |
| | | * @param pattern |
| | | */ |
| | | public void removePattern(final String pattern) { |
| | | Set<Serializable> keys = redisTemplate.keys(pattern); |
| | | if (keys.size() > 0) { |
| | | redisTemplate.delete(keys); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å é¤å¯¹åºçvalue |
| | | * |
| | | * @param key |
| | | */ |
| | | public void remove(final String key) { |
| | | if (exists(key)) { |
| | | redisTemplate.delete(StringEscapeUtils.unescapeHtml(key)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 夿ç¼å䏿¯å¦æå¯¹åºçvalue |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public boolean exists(final String key) { |
| | | AppDTO dto = new AppDTO(); |
| | | Map map = new HashMap(); |
| | | map.put("key",StringEscapeUtils.unescapeHtml(key)); |
| | | dto.setMap(map); |
| | | AppDTO s = new AppDTO(); |
| | | BeanUtils.copyProperties(dto,s); |
| | | return redisTemplate.hasKey((String)s.getMap().get("key")); |
| | | } |
| | | |
| | | /** |
| | | * 读åç¼å |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public Object get(final String key) { |
| | | |
| | | Object result = null; |
| | | ValueOperations<Serializable, Object> operations = redisTemplate.opsForValue(); |
| | | AppDTO dto = new AppDTO(); |
| | | Map map = new HashMap(); |
| | | map.put("key",StringEscapeUtils.unescapeHtml(key)); |
| | | dto.setMap(map); |
| | | AppDTO s = new AppDTO(); |
| | | BeanUtils.copyProperties(dto,s); |
| | | result = operations.get((String)s.getMap().get("key")); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * åå¸ æ·»å |
| | | * |
| | | * @param key |
| | | * @param hashKey |
| | | * @param value |
| | | */ |
| | | public void hmSet(String key, Object hashKey, Object value) { |
| | | HashOperations<String, Object, Object> hash = redisTemplate.opsForHash(); |
| | | hash.put(key, hashKey, value); |
| | | } |
| | | |
| | | /** |
| | | * åå¸è·åæ°æ® |
| | | * |
| | | * @param key |
| | | * @param hashKey |
| | | * @return |
| | | */ |
| | | public Object hmGet(String key, Object hashKey) { |
| | | HashOperations<String, Object, Object> hash = redisTemplate.opsForHash(); |
| | | return hash.get(key, hashKey); |
| | | } |
| | | |
| | | /** |
| | | * å表添å |
| | | * |
| | | * @param k |
| | | * @param v |
| | | */ |
| | | public void lPush(String k, Object v) { |
| | | ListOperations<String, Object> list = redisTemplate.opsForList(); |
| | | list.rightPush(k, v); |
| | | } |
| | | |
| | | /** |
| | | * å表è·å |
| | | * |
| | | * @param k |
| | | * @param l |
| | | * @param l1 |
| | | * @return |
| | | */ |
| | | public List<Object> lRange(String k, long l, long l1) { |
| | | ListOperations<String, Object> list = redisTemplate.opsForList(); |
| | | return list.range(k, l, l1); |
| | | } |
| | | |
| | | /** |
| | | * éåæ·»å |
| | | * |
| | | * @param key |
| | | * @param value |
| | | */ |
| | | public void add(String key, Object value) { |
| | | SetOperations<String, Object> set = redisTemplate.opsForSet(); |
| | | set.add(key, value); |
| | | } |
| | | |
| | | /** |
| | | * éåè·å |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public Set<Object> setMembers(String key) { |
| | | SetOperations<String, Object> set = redisTemplate.opsForSet(); |
| | | return set.members(key); |
| | | } |
| | | |
| | | /** |
| | | * æåºéåæ·»å |
| | | * |
| | | * @param key |
| | | * @param value |
| | | * @param scoure |
| | | */ |
| | | public void zAdd(String key, Object value, double scoure) { |
| | | ZSetOperations<String, Object> zset = redisTemplate.opsForZSet(); |
| | | zset.add(key, value, scoure); |
| | | } |
| | | |
| | | /** |
| | | * æåºéåè·å |
| | | * |
| | | * @param key |
| | | * @param scoure |
| | | * @param scoure1 |
| | | * @return |
| | | */ |
| | | public Set<Object> rangeByScore(String key, double scoure, double scoure1) { |
| | | ZSetOperations<String, Object> zset = redisTemplate.opsForZSet(); |
| | | return zset.rangeByScore(key, scoure, scoure1); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.SpecialFeeRate; |
| | | import com.nuvole.four.domain.dto.SpecialFeeRateDto; |
| | | import com.nuvole.four.domain.query.SpecialFeeRateQuery; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹çService |
| | | * @Author dqh |
| | | * @Date 2024-04-12 19:57:28 |
| | | */ |
| | | public interface SpecialFeeRateService{ |
| | | |
| | | int addSelective(SpecialFeeRateDto entity); |
| | | int editSelective(SpecialFeeRate entity); |
| | | SpecialFeeRate get(Long id); |
| | | int del(Long id); |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<SpecialFeeRate> getList(SpecialFeeRateQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:ç¹æ®è´¹çé
ç½®æ¥è¯¢ |
| | | * |
| | | * @date 2024-04-13 13:19 |
| | | **/ |
| | | SpecialFeeRateDto getConfig(Long industryId,Long channelId); |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.StoreIndustryManage; |
| | | import com.nuvole.four.domain.query.StoreIndustryManageQuery; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡çService |
| | | * @Author dqh |
| | | * @Date 2024-04-12 17:41:29 |
| | | */ |
| | | public interface StoreIndustryManageService{ |
| | | |
| | | int addSelective(StoreIndustryManage entity); |
| | | int editSelective(StoreIndustryManage entity); |
| | | StoreIndustryManage get(Long id); |
| | | int del(Long id); |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @param query |
| | | * @return æ¥è¯¢ç»æ |
| | | */ |
| | | List<StoreIndustryManage> getList(StoreIndustryManageQuery query); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢max(sortNo)çåºå·ä¿¡æ¯ |
| | | * è¿å = max(sortNo) + 10 |
| | | * |
| | | * @date 2024-04-12 18:17 |
| | | **/ |
| | | Integer getSort(); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢ææè¡ä¸æ |
| | | * |
| | | * @date 2024-04-12 18:47 |
| | | **/ |
| | | List<Map> getIndustryTree(Map map); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å表é»è®¤æ¹æ³ |
| | | * |
| | | * @date 2024-04-12 18:53 |
| | | **/ |
| | | List<StoreIndustryManage> getList(Map map); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service; |
| | | |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * ç±»æè¿°: æºæç®¡ç |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-11 10:57 |
| | | * @version 1.0 |
| | | **/ |
| | | public interface SysOrgService extends BaseService<SysOrg> { |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: è·åæºææ |
| | | * |
| | | * @date 2024-04-11 10:57 |
| | | **/ |
| | | List<Map> getTreeOrg(Map map); |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ ¹æ®çé项è·åæºæä¿¡æ¯ |
| | | * |
| | | * @date 2024-04-11 10:57 |
| | | **/ |
| | | List<SysOrg> selectListByPid(Long id, String name, String userOrgCode, Integer state); |
| | | |
| | | ChannelOrgConfigDetailDto queryNameAndParentName(Long orgId); |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.domain.query.ActivityDistributeRecordQuery; |
| | | import com.nuvole.four.mapper.ActivityDistributeRecordMapper; |
| | | import com.nuvole.four.mapper.ActivityFeeMapper; |
| | | import com.nuvole.four.mapper.SysOrgMapper; |
| | | import com.nuvole.four.service.ActivityDistributeRecordService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description æ´»å¨é¢ç®åé
Serviceå®ç°ç±» |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:36:24 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ActivityDistributeRecordServiceImpl implements ActivityDistributeRecordService { |
| | | |
| | | private final ActivityDistributeRecordMapper activityDistributeRecordMapper; |
| | | private final ActivityFeeMapper activityFeeMapper; |
| | | |
| | | private final SysOrgMapper sysOrgMapper; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public int addSelective(ActivityDistributeRecord entity){ |
| | | return activityDistributeRecordMapper.insertSelective(entity); |
| | | } |
| | | |
| | | @Override |
| | | public int editSelective(ActivityDistributeRecord entity){ |
| | | return activityDistributeRecordMapper.updateByPrimaryKeySelective(entity); |
| | | } |
| | | @Override |
| | | public ActivityDistributeRecord get(Long id){ |
| | | return activityDistributeRecordMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | public ActivityDistributeRecord getFeeByCondition(Long activityId,Long orgId){ |
| | | ActivityDistributeRecord record = activityDistributeRecordMapper.getFeeByCondition(activityId,orgId); |
| | | if(record != null){ |
| | | return record; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public ActivityFee getActivityFeeByIdAndOrgId(Long activityId,Long orgId){ |
| | | ActivityFee fee = activityFeeMapper.getActivityFeeByIdAndOrgId(activityId,orgId); |
| | | return fee; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int del(Long id){ |
| | | return activityDistributeRecordMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<ActivityDistributeRecord> getList(ActivityDistributeRecordQuery query) { |
| | | return activityDistributeRecordMapper.selectList(query); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: åé
é¢ç®æ¥è¯¢ |
| | | * é»è®¤ä»
æ¥è¯¢å½åç»å½äººçæºæä¸çº§ãä¸å
å«ä¸ä¸çº§ |
| | | * @date 2024-04-14 11:31 |
| | | **/ |
| | | @Override |
| | | public List<ActivityDistributeBudgetDto> getActivityDistributeRecordDetail(Long activityId) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long orgId = user.getOrgId(); |
| | | if(!user.getLoginName().equalsIgnoreCase("super") && orgId == null){ |
| | | throw new IllegalArgumentException("å½åç»å½äººæ æéåé
"); |
| | | } |
| | | SysOrg sysOrg = sysOrgMapper.selectByPrimaryKey(orgId); |
| | | if(sysOrg != null && sysOrg.getLv() == null){ |
| | | throw new IllegalArgumentException("å½åéæ©çæºæå±çº§ä¸ºç©º"); |
| | | } |
| | | List<ActivityDistributeBudgetDto> dtoList = new ArrayList<>(); |
| | | dtoList = activityDistributeRecordMapper.getActivityDistributeRecordDetail(orgId,activityId); |
| | | return dtoList; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:åé
é¢ç®ä¿å |
| | | * æidåè¿è¡æ´æ°ï¼æ åæ°å¢ |
| | | * |
| | | * @date 2024-04-14 13:41 |
| | | **/ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Integer batchInsertOrUpdate(List<ActivityDistributeRecord> recordList) { |
| | | if(CollectionUtils.isEmpty(recordList)){ |
| | | return 0; |
| | | } |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | //æ ¡éªé¢åº¦åé
|
| | | checkBudget(recordList); |
| | | recordList.forEach( r -> { |
| | | if (r.getId() == null) { |
| | | //æ°å¢èªå¨çæid |
| | | r.setId(IdGenerator.getId()); |
| | | r.setCreateBy(user.getId()); |
| | | r.setCreateTime(new Date()); |
| | | r.setTotalFee(r.getTotalFee()); |
| | | r.setUseFee(0L); |
| | | r.setSurplusFee(r.getTotalFee()); |
| | | //é»è®¤ç¶æå=0(æªå¼å§) |
| | | r.setStatus(0); |
| | | r.setDeleted(0); |
| | | SysOrg sysOrg = sysOrgMapper.selectByPrimaryKey(r.getOrgId()); |
| | | r.setOrgCode(sysOrg.getOrgCode()); |
| | | generateOrgLv(r, user.getOrgLv()); |
| | | }else{ |
| | | //todo surplusFeeæå¥½æ¯ä»è¡¨ééæ°æ¥è¯¢ï¼ä½¿ç¨total_fee - useFee = surplusFeeï¼ä»¥é¢é²æ´»å¨å¼å§å追å é¢ç®åºæ¯ã |
| | | //æ ¡éªæ´»å¨æ¯å¦=0(æªå¼å§)ï¼å¦åæ æ³ä¿®æ¹ |
| | | checkActivityStatus(r.getActivityId(),recordList.indexOf(r)); |
| | | r.setDeleted(0); |
| | | r.setTotalFee(r.getTotalFee()); |
| | | r.setSurplusFee(r.getTotalFee()); |
| | | r.setUpdateBy(user.getId()); |
| | | r.setUpdateTime(new Date()); |
| | | } |
| | | }); |
| | | activityDistributeRecordMapper.batchInsertOrUpdate(recordList); |
| | | //inputTotalFeeSum = åé
çä¸çº§é¢åº¦ï¼useFeeï¼ä¹å |
| | | Long inputTotalFeeSum = recordList.stream().mapToLong(ActivityDistributeRecord::getTotalFee).sum(); |
| | | updateParentFee(inputTotalFeeSum, user.getOrgId(), recordList.get(0).getActivityId()); |
| | | return 1; |
| | | } |
| | | /** |
| | | * åé
åå¤çç¶çº§(è¥æ)ãæ ç¶çº§åå¤çæ´»å¨æ¬èº«çuserFeeãsurplusFeeåæ®µ |
| | | * @param inputTotalFeeSum 使ç¨çé¢åº¦ |
| | | * @param orgId æºæid |
| | | * @param activityId æ´»å¨id |
| | | */ |
| | | private void updateParentFee(Long inputTotalFeeSum,Long orgId,Long activityId){ |
| | | if(inputTotalFeeSum == 0L){ |
| | | return; |
| | | } |
| | | ActivityDistributeRecord record = activityDistributeRecordMapper.getFeeByCondition(activityId,orgId); |
| | | if(record != null){ |
| | | record.setUseFee(inputTotalFeeSum); |
| | | record.setSurplusFee(record.getTotalFee() - inputTotalFeeSum); |
| | | activityDistributeRecordMapper.updateByPrimaryKeySelective(record); |
| | | }else{ |
| | | //æ´æ°æ´»å¨æ¬èº« |
| | | ActivityFee activityFee = activityFeeMapper.getActivityFeeByIdAndOrgId(activityId,orgId); |
| | | if(activityFee != null){ |
| | | activityFee.setUseFee(inputTotalFeeSum); |
| | | activityFee.setSurplusFee(activityFee.getTotalFee() - inputTotalFeeSum); |
| | | activityFeeMapper.updateByPrimaryKeySelective(activityFee); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * é¢ç®åé
é¢åº¦æ ¡éª |
| | | * useFee(å½å请æ±éå䏿æåé
é¢åº¦ç´¯å ) + surplusFee ⤠totalFee(æ´»å¨çæ»é¢åº¦) |
| | | * @param recordList å¾
ä¿åç é¢ç®åé
éå |
| | | */ |
| | | private void checkBudget(List<ActivityDistributeRecord> recordList){ |
| | | Long activityId = recordList.get(0).getActivityId(); |
| | | Long totalFee = 0L; |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long orgId = user.getOrgId(); |
| | | ActivityDistributeRecord record = activityDistributeRecordMapper.getFeeByCondition(activityId,orgId); |
| | | if (record == null) { |
| | | ActivityFee activityFee = activityFeeMapper.getActivityFeeByIdAndOrgId(activityId,orgId); |
| | | totalFee = activityFee.getTotalFee(); |
| | | }else{ |
| | | totalFee = record.getTotalFee(); |
| | | } |
| | | Long inputTotalFeeSum = recordList.stream().mapToLong(ActivityDistributeRecord::getTotalFee).sum(); |
| | | long surplusFee = totalFee - inputTotalFeeSum; |
| | | if(surplusFee < 0 ){ |
| | | throw new IllegalArgumentException("é¢ç®åé
è¶
åºæ»é¢åº¦,åé
失败"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * çææºorglv对åºçæä¸¾å¼ |
| | | * @param loginUserOrgLv å½åç»å½äººçorgLv |
| | | */ |
| | | private void generateOrgLv(ActivityDistributeRecord entity,Integer loginUserOrgLv){ |
| | | if(loginUserOrgLv == null){ |
| | | return; |
| | | } |
| | | switch (loginUserOrgLv){ |
| | | case 0: |
| | | entity.setLv1Id(1L); |
| | | break; |
| | | case 1: |
| | | entity.setLv2Id(2L); |
| | | break; |
| | | case 2: |
| | | entity.setLv3Id(3L); |
| | | case 3: |
| | | entity.setLv4Id(4L); |
| | | default: |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ ¡éªæ´»å¨æ¯å¦=0(æªå¼å§)ï¼å¦åæ æ³ä¿®æ¹ |
| | | * @param activityId æ´»å¨ID |
| | | * @param index å½åç¬¬å æ¡ |
| | | */ |
| | | private void checkActivityStatus(Long activityId,int index){ |
| | | ActivityFee activityFee = activityFeeMapper.selectByPrimaryKey(activityId); |
| | | if(activityFee.getStatus() != 0){ |
| | | String errMsg = String.format("第 {%s} æ¡æ´»å¨å·²å¼å§ï¼æ æ³åé
", index + 1); |
| | | throw new IllegalArgumentException(errMsg); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ActivityDistributeRecord; |
| | | import com.nuvole.four.domain.ActivityFee; |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.dto.ActivityDistributeBudgetDto; |
| | | import com.nuvole.four.domain.dto.ActivityFeeDetailDto; |
| | | import com.nuvole.four.domain.query.ActivityFeeQuery; |
| | | import com.nuvole.four.domain.query.ActivityShopRecordQuery; |
| | | import com.nuvole.four.mapper.ActivityDistributeRecordMapper; |
| | | import com.nuvole.four.mapper.ActivityFeeMapper; |
| | | import com.nuvole.four.mapper.ActivityShopRecordMapper; |
| | | import com.nuvole.four.mapper.SysUserMapper; |
| | | import com.nuvole.four.service.ActivityFeeService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.CodeUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è´¹ç补贴活å¨Serviceå®ç°ç±» |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:33:08 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ActivityFeeServiceImpl implements ActivityFeeService { |
| | | |
| | | private final ActivityFeeMapper activityFeeMapper; |
| | | private final ActivityDistributeRecordMapper activityDistributeRecordMapper; |
| | | private final ActivityShopRecordMapper activityShopRecordMapper; |
| | | private final SysUserMapper sysUserMapper; |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ°å»ºè´¹çè¡¥è´´æ´»å¨ |
| | | * |
| | | * @date 2024-04-13 22:00 |
| | | **/ |
| | | @Override |
| | | public int addSelective(ActivityFee entity){ |
| | | checkParam(entity); |
| | | entity.setId(IdGenerator.getId()); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | entity.setStatus(0); |
| | | entity.setDeleted(0); |
| | | //ææ»é¢åº¦åï¼é»è®¤åæ¥è®¾ç½®å©ä½é¢åº¦ï¼ä½¿ç¨é¢åº¦ |
| | | if(entity.getTotalFee() != null){ |
| | | entity.setSurplusFee(entity.getTotalFee()); |
| | | entity.setUseFee(0L); |
| | | } |
| | | entity.setOrgCode(user.getOrgCode()); |
| | | entity.setCode(CodeUtil.getTimeCode()); |
| | | entity.setOrgId(user.getOrgId()); |
| | | entity.setCreateBy(user.getId()); |
| | | entity.setCreateTime(new Date()); |
| | | return activityFeeMapper.insertSelective(entity); |
| | | } |
| | | |
| | | private void checkParam(ActivityFee entity){ |
| | | if(entity.getBeginTime().after(entity.getEndTime()) |
| | | && entity.getBeginTime().equals(entity.getEndTime())){ |
| | | throw new IllegalArgumentException("æ´»å¨å¼å§æ¶é´å¿
é¡»å°äºæ´»å¨ç»ææ¶é´"); |
| | | } |
| | | if(entity.getExpireTime().after(entity.getBeginTime()) |
| | | && entity.getBeginTime().equals(entity.getEndTime())){ |
| | | throw new IllegalArgumentException("æªæ¢æ¶é´å¿
é¡»å°äºæ´»å¨å¼å§æ¶é´"); |
| | | } |
| | | } |
| | | /** |
| | | * æ¹æ³æè¿°: ç¼è¾è´¹çè¡¥è´´æ´»å¨ |
| | | * |
| | | * @date 2024-04-13 22:01 |
| | | **/ |
| | | @Override |
| | | public int editSelective(ActivityFee entity){ |
| | | checkParam(entity); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | entity.setUpdateBy(user.getId()); |
| | | entity.setUpdateTime(new Date()); |
| | | //ææ»é¢åº¦åï¼é»è®¤åæ¥è®¾ç½®å©ä½é¢åº¦ï¼ä½¿ç¨é¢åº¦ |
| | | if(entity.getTotalFee() != null){ |
| | | entity.setSurplusFee(entity.getTotalFee()); |
| | | entity.setUseFee(0L); |
| | | } |
| | | return activityFeeMapper.updateByPrimaryKeySelective(entity); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢è´¹ç补贴活å¨è¯¦æ
|
| | | * |
| | | * @date 2024-04-13 22:01 |
| | | **/ |
| | | @Override |
| | | public ActivityFee get(Long id){ |
| | | return activityFeeMapper.selectByPrimaryKey(id); |
| | | } |
| | | @Override |
| | | public int del(Long id){ |
| | | return activityFeeMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å½åç»å½äººçæ¬çº§+ä¸çº§æºæçæ´»å¨æ°æ® |
| | | * |
| | | * @date 2024-04-20 17:06 |
| | | **/ |
| | | @Override |
| | | public List<ActivityFee> getList(ActivityFeeQuery query) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | if(!user.getLoginName().equalsIgnoreCase("super") && StrUtil.isBlank(user.getOrgCode())){ |
| | | throw new IllegalArgumentException("å½åç»å½äººçæºæcode为空"); |
| | | } |
| | | List<ActivityFee> feeList = new ArrayList<>(); |
| | | if(user.getLoginName().equalsIgnoreCase("super") || user.getOrgLv().equals(0)){ |
| | | //æ¥è¯¢å¹é
å½åç»å½äººorgCodeçæææ´»å¨ |
| | | query.setOrgCode(user.getOrgCode()); |
| | | feeList = activityFeeMapper.selectList(query); |
| | | } else { |
| | | //æ¥è¯¢åé
åºå»çæ´»å¨ä¿¡æ¯ï¼æ ¹æ®orgIdåæéè¿æ»¤ |
| | | query.setOrgId(user.getOrgId()); |
| | | query.setCreateBy(user.getId()); |
| | | feeList = activityFeeMapper.selectActivityWithDistribute(query); |
| | | } |
| | | return feeList; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å¼å§/忢 |
| | | * åæ¥åæ¢æ´»å¨è¡¨ãåæ·æ´»å¨è¡¨ãæºæé¢ç®åé
表 |
| | | **/ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int startOrStop(Long id, Integer status) { |
| | | //æ´»å¨æ°æ®æ ¡éª |
| | | ActivityFee fee = activityFeeMapper.selectByPrimaryKey(id); |
| | | if(fee == null){ |
| | | throw new IllegalArgumentException("æ´»å¨ä¸åå¨"); |
| | | } |
| | | if(fee.getStatus().equals(status)){ |
| | | throw new IllegalArgumentException(status == 1 ? "å½åæ´»å¨æ£å¨è¿è¡ä¸" : "å½åæ´»å¨å·²ç»ç»æäº"); |
| | | } |
| | | // æ´æ¹æ´»å¨è¡¨ç¶æ |
| | | updateActivityStatus(fee, status); |
| | | // æ´æ¹æºæé¢ç®åé
è¡¨ç¶æ |
| | | updateDistributeRecordStatus(id, status); |
| | | // æ´æ¹åæ·æ´»å¨è¡¨ç¶æ |
| | | updateShopRecordStatus(id, status); |
| | | // ç¶æ=å¼å§æ¶ï¼è¿è¡åæ·æ´»å¨é¢åº¦å¹³ååé
|
| | | if (status == 1) { |
| | | distributeFeeToShop(id, fee.getTotalFee()); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | /** |
| | | * æ´æ¹æ´»å¨è¡¨ç¶æ |
| | | **/ |
| | | private void updateActivityStatus(ActivityFee fee, Integer status) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long userId = user.getId(); |
| | | Date date = new Date(); |
| | | fee.setStatus(status); |
| | | fee.setUpdateBy(userId); |
| | | fee.setUpdateTime(date); |
| | | activityFeeMapper.updateByPrimaryKeySelective(fee); |
| | | } |
| | | |
| | | /** |
| | | * æ´æ¹æºæé¢ç®åé
è¡¨ç¶æ |
| | | */ |
| | | private void updateDistributeRecordStatus(Long id, Integer status) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long userId = user.getId(); |
| | | Date date = new Date(); |
| | | ActivityDistributeRecord distributeRecord = new ActivityDistributeRecord(); |
| | | distributeRecord.setActivityId(id); |
| | | distributeRecord.setStatus(status); |
| | | distributeRecord.setUpdateBy(userId); |
| | | distributeRecord.setUpdateTime(date); |
| | | activityDistributeRecordMapper.updateByActivityId(distributeRecord); |
| | | } |
| | | |
| | | /** |
| | | * æ´æ¹åæ·æ´»å¨è¡¨ç¶æ |
| | | */ |
| | | private void updateShopRecordStatus(Long id, Integer status) { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long userId = user.getId(); |
| | | Date date = new Date(); |
| | | ActivityShopRecord shopRecord = new ActivityShopRecord(); |
| | | shopRecord.setActivityId(id); |
| | | shopRecord.setStatus(status); |
| | | shopRecord.setUpdateBy(userId); |
| | | shopRecord.setUpdateTime(date); |
| | | activityShopRecordMapper.updateByActivityId(shopRecord); |
| | | } |
| | | |
| | | /** |
| | | * ç¶æ=å¼å§æ¶ï¼è¿è¡åæ·æ´»å¨é¢åº¦å¹³ååé
|
| | | * @param id æ´»å¨id |
| | | * @param totalFee æ´»å¨æ»é¢åº¦ |
| | | */ |
| | | private void distributeFeeToShop(Long id, Long totalFee) { |
| | | if(totalFee < 100L){ |
| | | throw new IllegalArgumentException("å½åæ´»å¨æ»é¢åº¦ä¸è¶³1å
,æ æ³å¼å§"); |
| | | } |
| | | ActivityShopRecordQuery query = new ActivityShopRecordQuery(); |
| | | query.setActivityId(id); |
| | | List<ActivityShopRecord> shopRecordList = activityShopRecordMapper.selectList(query); |
| | | if (!CollectionUtils.isEmpty(shopRecordList)) { |
| | | Integer[] surplusFee = distributeFeeToShop(shopRecordList.size(), totalFee); |
| | | shopRecordList.forEach(r -> { |
| | | Long userId = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC).getId(); |
| | | Date currentDate = new Date(); |
| | | Long totalFeePerShop = surplusFee[shopRecordList.indexOf(r)].longValue(); |
| | | r.setTotalFee(totalFeePerShop); |
| | | r.setSurplusFee(totalFeePerShop); |
| | | r.setUseFee(0L); |
| | | r.setUpdateBy(userId); |
| | | r.setUpdateTime(currentDate); |
| | | }); |
| | | activityShopRecordMapper.batchUpdate(shopRecordList); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * é¢åº¦å¹³ååé
|
| | | * @param number åé
æ°é |
| | | * @param total åé
æ»é¢ |
| | | * @return |
| | | */ |
| | | private Integer[] distributeFeeToShop(int number,Long total){ |
| | | int totalFee = total.intValue(); |
| | | Integer[] result = new Integer[number]; |
| | | int value = totalFee / number; |
| | | int index = totalFee - (value * number); |
| | | for (int i = 0; i < number; i++) { |
| | | if (i < index) { |
| | | result[i] = value + 1; |
| | | } else { |
| | | result[i] = value; |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æ´»å¨è¯¦æ
-æ´»å¨æ°æ® |
| | | **/ |
| | | @Override |
| | | public ActivityFeeDetailDto getActivityFeeDetail(Long id) { |
| | | ActivityFeeDetailDto detailDto = new ActivityFeeDetailDto(); |
| | | //æ´»å¨åºæ¬ä¿¡æ¯æ¥è¯¢ |
| | | ActivityFee activityFee = activityFeeMapper.selectByPrimaryKey(id); |
| | | BeanUtils.copyProperties(activityFee,detailDto); |
| | | //shopUseFees å·²æ¶èé¢åº¦ = ç»è®¡æ´»å¨åæ·çsum(usefee) |
| | | ActivityShopRecordQuery query = new ActivityShopRecordQuery(); |
| | | query.setActivityId(id); |
| | | List<ActivityShopRecord> recordList = activityShopRecordMapper.selectList(query); |
| | | if(!CollectionUtils.isEmpty(recordList)){ |
| | | Long shopUseFees = recordList.stream().mapToLong(ActivityShopRecord::getUseFee).sum(); |
| | | //å·²æ¶è = useFee |
| | | detailDto.setUseFee(shopUseFees); |
| | | } |
| | | //æ¥è¯¢æ´»å¨åé
åºå»çé¢ç®ä¿¡æ¯ï¼åé
åºå»çé¢ç®å±ç¤ºä¼æ¿æ¢å½åçæ´»å¨é¢ç®ï¼ |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | ActivityDistributeRecord record = activityDistributeRecordMapper.getFeeByCondition(id,user.getOrgId()); |
| | | if(record != null) { |
| | | detailDto.setTotalFee(record.getTotalFee()); |
| | | detailDto.setSurplusFee(record.getSurplusFee()); |
| | | } |
| | | //assigned = å·²åé
é¢åº¦ |
| | | detailDto.setAssigned(detailDto.getTotalFee() - detailDto.getSurplusFee()); |
| | | //å¹é
æ¥è¯¢å建人 |
| | | SysUser sysUser = sysUserMapper.getUserById(activityFee.getCreateBy()); |
| | | detailDto.setCreateUserName(sysUser.getUserName()); |
| | | //å½åæ´»å¨çé¢ç®åé
å表æ¥è¯¢ |
| | | List<ActivityDistributeBudgetDto> budgetDtoList = activityDistributeRecordMapper.getActivityDistributeRecordDetailByAId(id,user.getOrgCode()); |
| | | detailDto.setDistributeBudgets(budgetDtoList); |
| | | return detailDto; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.client.ShopServiceClient; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ActivityShopRecord; |
| | | import com.nuvole.four.domain.dto.ActivityShopRecordDto; |
| | | import com.nuvole.four.domain.params.ActivityShopRecordParam; |
| | | import com.nuvole.four.domain.query.ActivityShopRecordQuery; |
| | | import com.nuvole.four.mapper.ActivityFeeMapper; |
| | | import com.nuvole.four.mapper.ActivityShopRecordMapper; |
| | | import com.nuvole.four.service.ActivityShopRecordService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description æ´»å¨è¡¥è´´â䏿¥åæ·Serviceå®ç°ç±» |
| | | * @Author dqh |
| | | * @Date 2024-04-13 21:39:14 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class ActivityShopRecordServiceImpl implements ActivityShopRecordService { |
| | | |
| | | private final ActivityShopRecordMapper activityShopRecordMapper; |
| | | private final ShopServiceClient shopServiceClient; |
| | | private final ActivityFeeMapper activityFeeMapper; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public int addSelective(ActivityShopRecord entity) { |
| | | return activityShopRecordMapper.insertSelective(entity); |
| | | } |
| | | |
| | | @Override |
| | | public int editSelective(ActivityShopRecord entity) { |
| | | return activityShopRecordMapper.updateByPrimaryKeySelective(entity); |
| | | } |
| | | |
| | | @Override |
| | | public ActivityShopRecord get(Long id) { |
| | | return activityShopRecordMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | public int del(Long id) { |
| | | return activityShopRecordMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<ActivityShopRecord> getList(ActivityShopRecordQuery query) { |
| | | return activityShopRecordMapper.selectList(query); |
| | | } |
| | | |
| | | @Override |
| | | public Map getActRateByShopIdAndChannelId(Long shopId, Long channelId) { |
| | | return activityShopRecordMapper.getActRateByShopId(shopId, channelId); |
| | | } |
| | | |
| | | @Override |
| | | public int updShopSurplusFee(Long activityId, Long merchantShopId, Long channelId, Integer useFee) { |
| | | return activityShopRecordMapper.updShopSurplusFee(activityId, merchantShopId, channelId, useFee); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å·²ä¸æ¥åæ·å表 |
| | | * |
| | | * @date 2024-04-14 21:08 |
| | | **/ |
| | | @Override |
| | | public List<ActivityShopRecordDto> getAlreadyMerchantList(ActivityShopRecordParam param) { |
| | | //已䏿¥çåæ·å表 |
| | | List<ActivityShopRecordDto> dtoList = activityShopRecordMapper.getAlreadyMerchantList(param); |
| | | if(CollectionUtils.isEmpty(dtoList)){ |
| | | return dtoList; |
| | | } |
| | | //å
³èshopåºæ¥è¯¢åæ·ãåºéºçåæ®µä¿¡æ¯ |
| | | List<Long> shopIds = dtoList.stream().map(ActivityShopRecord::getMerchantShopId).collect(Collectors.toList()); |
| | | String ids = shopIds.stream().map(String::valueOf).collect(Collectors.joining(",")); |
| | | List<Map> mapList = shopServiceClient.selectShopMsgByIds(ids); |
| | | if(!CollectionUtils.isEmpty(mapList)){ |
| | | // å° mapList ä¸çæ°æ®åå¹¶å° dtoList ä¸ |
| | | dtoList.forEach( d -> { |
| | | ActivityShopRecordDto dto = d; |
| | | Map<String, Object> map = mapList.get(dtoList.indexOf(d)); |
| | | // åå¹¶ |
| | | mergeMapToDto(dto, map); |
| | | }); |
| | | } |
| | | return dtoList; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¹éæ·»å 䏿¥ |
| | | * |
| | | * @date 2024-04-15 9:46 |
| | | **/ |
| | | @Override |
| | | public Integer batchInsert(List<ActivityShopRecord> recordList) { |
| | | if(CollectionUtils.isEmpty(recordList)){ |
| | | return 0; |
| | | } |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | Long totalFee = activityFeeMapper.selectByPrimaryKey(recordList.get(0).getActivityId()).getTotalFee(); |
| | | recordList.forEach( r -> { |
| | | if (r.getId() == null) { |
| | | //æ°å¢èªå¨çæid |
| | | r.setId(IdGenerator.getId()); |
| | | r.setCreateBy(user.getId()); |
| | | r.setCreateTime(new Date()); |
| | | //䏿¥æ¶åªåæ´»å¨çæ»é¢åº¦ï¼å¾
è§¦åæ´»å¨å¼å§ï¼æå¼å§åé
é¢åº¦ |
| | | r.setTotalFee(totalFee); |
| | | r.setUseFee(0L); |
| | | r.setSurplusFee(totalFee); |
| | | //é»è®¤ç¶æå=0(æªå¼å§) |
| | | r.setStatus(0); |
| | | r.setDeleted(0); |
| | | }else{ |
| | | //é¢åº¦èªå¨åé
ï¼ä¸å
è®¸æ´æ°æä½ï¼ |
| | | String errMsg = String.format("第 {%s} æ¡ä¸å
许éå¤ä¸æ¥", recordList.indexOf(r) + 1); |
| | | throw new IllegalArgumentException(errMsg); |
| | | } |
| | | }); |
| | | return activityShopRecordMapper.batchInsert(recordList); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®shopIdsæ¥è¯¢ææè®°å½ |
| | | * |
| | | * @date 2024-04-15 11:23 |
| | | **/ |
| | | @Override |
| | | public List<ActivityShopRecord> selectByCondition(String[] ids,Long activityId) { |
| | | return activityShopRecordMapper.selectByCondition(ids,activityId); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: å° mapList ä¸çæ°æ®åå¹¶å° dtoList ä¸ |
| | | * |
| | | * @date 2024-04-14 22:56 |
| | | **/ |
| | | private void mergeMapToDto(ActivityShopRecordDto dto, Map<String, Object> map) { |
| | | dto.setManagerName((String)map.get("managerName")); |
| | | dto.setShopCode((String)map.get("shopCode")); |
| | | dto.setShopName((String)map.get("shopName")); |
| | | dto.setShopId((String)map.get("id")); |
| | | dto.setMerchantName((String) map.get("merchantName")); |
| | | dto.setContactName((String) map.get("contactName")); |
| | | dto.setContactMobile((String) map.get("contactMobile")); |
| | | dto.setOfflineWxRate((Double) map.get("wxRate")); |
| | | dto.setOfflineZfbRate((Double) map.get("zfbRate")); |
| | | dto.setOfflineUnionpayRate((Double) map.get("unionpayRate")); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ChannelInfo; |
| | | import com.nuvole.four.domain.dto.ChannelInfoDto; |
| | | import com.nuvole.four.mapper.ChannelInfoMapper; |
| | | import com.nuvole.four.service.ChannelInfoService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Desc: ééä¿¡æ¯ServiceImpl |
| | | * @Author: dqh |
| | | * @Date: 2024-04-09 |
| | | **/ |
| | | @Slf4j |
| | | @Service |
| | | public class ChannelInfoServiceImpl implements ChannelInfoService { |
| | | @Autowired |
| | | private ChannelInfoMapper channelInfoMapper; |
| | | @Override |
| | | public List<ChannelInfo> getList(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢ééå表 |
| | | **/ |
| | | @Override |
| | | public List<ChannelInfo> getList(ChannelInfo channelInfo) { |
| | | return channelInfoMapper.selectAll(channelInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:å页æ¥è¯¢ééå表 |
| | | **/ |
| | | @Override |
| | | public List<ChannelInfoDto> getPageList(ChannelInfo channelInfo) { |
| | | return channelInfoMapper.getPageList(channelInfo); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(ChannelInfo channelInfo) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer save(ChannelInfo channelInfo) { |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ°å¢éé |
| | | * |
| | | * @date 2024-04-11 14:39 |
| | | **/ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Integer saveChannelInfo(ChannelInfo channelInfo) { |
| | | ChannelInfo codeExists = channelInfoMapper.checkChannelCode(channelInfo.getChannelCode()); |
| | | if(codeExists != null){ |
| | | throw new IllegalArgumentException("éécodeéå¤"); |
| | | } |
| | | /* |
| | | * è§£æextendJsonçåç¬¦ä¸²åæ®µè½¬ä¸ºjsonåå¨ |
| | | * |
| | | **/ |
| | | if(StrUtil.isNotEmpty(channelInfo.getExtendJson())){ |
| | | Object object = JSON.parse(channelInfo.getExtendJson()); |
| | | if(object instanceof JSONArray){ |
| | | channelInfo.setExtendJson(channelInfo.getExtendJson()); |
| | | } |
| | | } |
| | | channelInfo.setId(IdGenerator.getId()); |
| | | channelInfo.setCreateTime(new Date()); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | channelInfo.setCreateBy(user.getId()); |
| | | channelInfo.setStatus(0); |
| | | return channelInfoMapper.insert(channelInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: ä¿®æ¹éé |
| | | * |
| | | * @date 2024-04-11 14:38 |
| | | **/ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Integer updateChannelInfo(ChannelInfo channelInfo) { |
| | | ChannelInfo codeExists = channelInfoMapper.checkChannelCode(channelInfo.getChannelCode()); |
| | | if(codeExists != null && !codeExists.getId().equals(channelInfo.getId())){ |
| | | throw new IllegalArgumentException("éécodeéå¤"); |
| | | } |
| | | /* |
| | | * è§£æextendJsonçåç¬¦ä¸²åæ®µè½¬ä¸ºjsonåå¨ |
| | | * |
| | | **/ |
| | | if(StrUtil.isNotEmpty(channelInfo.getExtendJson())){ |
| | | Object object = JSON.parse(channelInfo.getExtendJson()); |
| | | if(object instanceof JSONArray){ |
| | | channelInfo.setExtendJson(channelInfo.getExtendJson()); |
| | | } |
| | | } |
| | | channelInfo.setUpdateTime(new Date()); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | channelInfo.setUpdateBy(user.getId()); |
| | | return channelInfoMapper.updateByPrimaryKeySelective(channelInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®idæ¥è¯¢éé详æ
|
| | | * |
| | | * @date 2024-04-11 14:40 |
| | | **/ |
| | | @Override |
| | | public ChannelInfo getChannelInfo(Long id) { |
| | | return channelInfoMapper.selectByPrimaryKey(id); |
| | | } |
| | | /** |
| | | * æ¹æ³æè¿°:æ ¹æ®codeæ¥è¯¢éé |
| | | * |
| | | * @date 2024-04-11 14:40 |
| | | **/ |
| | | @Override |
| | | public ChannelInfo getDetailByCode(String channelCode) { |
| | | return channelInfoMapper.checkChannelCode(channelCode); |
| | | } |
| | | |
| | | @Override |
| | | public Integer update(ChannelInfo channelInfo) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer del(Long id) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public ChannelInfo getById(Long id) { |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.ChannelOrgConfig; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDto; |
| | | import com.nuvole.four.domain.dto.ConfigOrgDetailChannel; |
| | | import com.nuvole.four.domain.params.ChannelOrgConfigParam; |
| | | import com.nuvole.four.mapper.ChannelOrgConfigMapper; |
| | | import com.nuvole.four.service.ChannelOrgConfigService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @Desc: æºæééé
ç½®ServiceImpl |
| | | * @Author: dqh |
| | | * @Date: 2024-04-10 |
| | | **/ |
| | | @Slf4j |
| | | @Service |
| | | public class ChannelOrgConfigServiceImpl implements ChannelOrgConfigService { |
| | | @Autowired |
| | | private ChannelOrgConfigMapper channelOrgConfigMapper; |
| | | @Autowired |
| | | private ChannelInfoServiceImpl channelInfoService; |
| | | @Autowired |
| | | private SysOrgServiceImpl sysOrgService; |
| | | @Override |
| | | public List<ChannelOrgConfig> getList(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<ChannelOrgConfig> getList(ChannelOrgConfig channelOrgConfig) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(ChannelOrgConfig channelOrgConfig) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer save(ChannelOrgConfig channelOrgConfig) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer update(ChannelOrgConfig channelOrgConfig) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer del(Long id) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public ChannelOrgConfig getById(Long id) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public ChannelOrgConfig get(Long id) { |
| | | return channelOrgConfigMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Integer configChannel(ChannelOrgConfigParam configParam) { |
| | | Integer status = 0; |
| | | ChannelOrgConfig dbIsExists = channelOrgConfigMapper.selectByOrgIdAndChannelId(configParam.getOrgId(),configParam.getChannelInfoId()); |
| | | if(dbIsExists == null){ |
| | | //ä¸åå¨ï¼è¿è¡æ°æ°æ®åå
¥ |
| | | status = insertChannelConfig(configParam); |
| | | }else{ |
| | | //åæ°æ ¡éª |
| | | ChannelOrgConfig updateConfig = checkParam(dbIsExists,configParam); |
| | | //æ ¡éªéè¿åï¼è¿è¡æ°æ®ä¿®æ¹ |
| | | channelOrgConfigMapper.updateByPrimaryKeySelective(updateConfig); |
| | | } |
| | | return status; |
| | | } |
| | | |
| | | /** |
| | | * æºæééé
ç½®æ°æ®åå
¥ |
| | | */ |
| | | private Integer insertChannelConfig(ChannelOrgConfigParam configParam){ |
| | | ChannelOrgConfig channelOrgConfig = new ChannelOrgConfig(); |
| | | channelOrgConfig.setId(IdGenerator.getId()); |
| | | BeanUtils.copyProperties(configParam,channelOrgConfig); |
| | | Date date = new Date(); |
| | | channelOrgConfig.setDefaultOrNot(0); |
| | | channelOrgConfig.setCreateTime(date); |
| | | channelOrgConfig.setUpdateTime(date); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | channelOrgConfig.setCreateBy(user.getId()); |
| | | channelOrgConfig.setUpdateBy(user.getId()); |
| | | channelOrgConfigMapper.insert(channelOrgConfig); |
| | | return 1; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶åæ°é»è¾æ ¡éª |
| | | * @param dbConfig æ°æ®åºå·²åå¨çæ°æ® |
| | | * @param param 页é¢çè¯·æ±æ°æ® |
| | | */ |
| | | private ChannelOrgConfig checkParam(ChannelOrgConfig dbConfig,ChannelOrgConfigParam param){ |
| | | //dbConfig.defaultOrNot=1(é»è®¤éé)ãparam.status=0(ç¦ç¨)æ¶ï¼è¿åé误æè¿° |
| | | if(param.getStatus() != null && |
| | | (dbConfig.getDefaultOrNot().equals(1) && param.getStatus().equals(0))){ |
| | | throw new IllegalArgumentException("å½å为é»è®¤éé,ä¸è½ç¦ç¨"); |
| | | } |
| | | //dbConfig.status=0(ç¦ç¨)ãparam.defaultOrNot=1(é»è®¤éé)æ¶ï¼è¿åé误æè¿° |
| | | if(param.getDefaultOrNot() != null && |
| | | (dbConfig.getStatus().equals(0) && param.getDefaultOrNot().equals(1))){ |
| | | throw new IllegalArgumentException("å½åéé已被ç¦ç¨,ä¸è½åæ¢ä¸ºé»è®¤"); |
| | | } |
| | | //æ ¡éªé»è®¤é鿝å¦åå¨ |
| | | ChannelOrgConfig defaultChannelIsExists = channelOrgConfigMapper.queryDefaultChannelByOrgId(param.getOrgId()); |
| | | if(defaultChannelIsExists != null){ |
| | | /* |
| | | param.defaultOrNot=1(é»è®¤éé)ãä¸ è¯·æ±çééIDåæ°æ®åºçé»è®¤ééIDä¸çæ¶ |
| | | ç§»é¤åæçé»è®¤ééï¼æ´æ°å½åè¯·æ±æ°æ®ä¸ºé»è®¤éé |
| | | */ |
| | | if(param.getDefaultOrNot() != null && |
| | | (param.getDefaultOrNot().equals(1) && !defaultChannelIsExists.getChannelInfoId().equals(param.getChannelInfoId()))){ |
| | | ChannelOrgConfig config = new ChannelOrgConfig(); |
| | | config.setId(defaultChannelIsExists.getId()); |
| | | config.setDefaultOrNot(0); |
| | | channelOrgConfigMapper.updateByPrimaryKeySelective(config); |
| | | } |
| | | } |
| | | //æ ¡éªéè¿ï¼ç»è£
è¦å
¥åºçæ´æ°æ°æ® |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | dbConfig.setUpdateBy(user.getId()); |
| | | dbConfig.setUpdateTime(new Date()); |
| | | dbConfig.setStatus(param.getStatus()); |
| | | dbConfig.setDefaultOrNot(param.getDefaultOrNot()); |
| | | return dbConfig; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæééé
ç½®å表 |
| | | * ä»
å
å«å½åorgIdçä¸çº§ï¼ä¸å
å«(äºä¸å级ç) |
| | | * |
| | | * @param orgId éæ©çæºæID |
| | | * @param orgName æ¥è¯¢æ¡ä»¶æºæåç§° |
| | | */ |
| | | @Override |
| | | public List<ChannelOrgConfigDto> queryAllChannelOrg(Long orgId, String orgName) { |
| | | return channelOrgConfigMapper.selectAllList(orgId,orgName); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢æºæéé详æ
|
| | | * 详æ
ä¸çéé ä»
å
å«å½åorgId对åºçpId对åºçéé |
| | | * @date 2024-04-11 20:04 |
| | | **/ |
| | | @Override |
| | | public ChannelOrgConfigDetailDto getChannelOrgConfigDetail(Long orgId) { |
| | | // æ¥è¯¢å½åæºæãç¶çº§æºæä¿¡æ¯ |
| | | ChannelOrgConfigDetailDto dto = sysOrgService.queryNameAndParentName(orgId); |
| | | if(dto == null){ |
| | | return dto; |
| | | } |
| | | if(dto.getLv() == null){ |
| | | throw new IllegalArgumentException("å½åéæ©çæºæå±çº§ä¸ºç©º"); |
| | | } |
| | | List<ConfigOrgDetailChannel> channelList = null; |
| | | switch (dto.getLv()) { |
| | | case 0: |
| | | case 1: |
| | | // å¦ææºæå±çº§=0ã1(çå¸)ï¼æ¥è¯¢ææéé |
| | | channelList = channelOrgConfigMapper.selectAllAndChannelInfo(orgId); |
| | | break; |
| | | case 2: |
| | | case 3: |
| | | // å¦ææºæå±çº§=2ã3(å¿ãæ¯å±)ï¼æ¥è¯¢å½åæºæ+ç¶çº§æºæ ææç¶æ=1(å¼å¯)çéé |
| | | channelList = getValidChannelsForOrg(orgId, dto.getPId()); |
| | | break; |
| | | default: |
| | | throw new IllegalArgumentException("æºæå±çº§æ æ"); |
| | | } |
| | | |
| | | dto.setChannelList(channelList); |
| | | return dto; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢å½åæºæ+ç¶çº§æºæ ææç¶æ=1(å¼å¯)çéé |
| | | * |
| | | * @date 2024-04-12 10:27 |
| | | **/ |
| | | private List<ConfigOrgDetailChannel> getValidChannelsForOrg(Long orgId, Long parentId) { |
| | | List<ConfigOrgDetailChannel> orgConfigList = channelOrgConfigMapper.selectValidByCondition(orgId, parentId); |
| | | Map<Long,ConfigOrgDetailChannel> map = new HashMap<>(); |
| | | orgConfigList.forEach(c -> { |
| | | // ç¶çº§æºææï¼æ¬çº§æºææ çééï¼è®¾ç½®æ°æ®ä¸ºåå§åç¶æ |
| | | if (!c.getOrgId().equals(orgId)) { |
| | | c.setStatus(0); |
| | | c.setDefaultOrNot(0); |
| | | } |
| | | /* |
| | | æ¬çº§æºææï¼ç¶çº§ä¹æçééï¼å对ç¶çº§çæ°æ®è¿è¡åé¤ã |
| | | 使ç¨mapç¹æ§ï¼åè
è¦çæ¿æ¢åè
ï¼ |
| | | å
¶ä¸åè
=æºææ¬èº«ï¼åè
=ç¶çº§æºæçéé |
| | | */ |
| | | map.put(c.getChannelInfoId(),c); |
| | | }); |
| | | |
| | | return new ArrayList<>(map.values()); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.SpecialFeeRate; |
| | | import com.nuvole.four.domain.dto.SpecialFeeRateDto; |
| | | import com.nuvole.four.domain.dto.StoreIndustryManageDto; |
| | | import com.nuvole.four.domain.query.SpecialFeeRateQuery; |
| | | import com.nuvole.four.mapper.SpecialFeeRateMapper; |
| | | import com.nuvole.four.service.SpecialFeeRateService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡ç-ç¹æ®è¡ä¸è´¹çServiceå®ç°ç±» |
| | | * @Author dqh |
| | | * @Date 2024-04-12 19:57:28 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class SpecialFeeRateServiceImpl implements SpecialFeeRateService { |
| | | |
| | | private final SpecialFeeRateMapper specialFeeRateMapper; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¹å¤çç¹æ®è´¹ç |
| | | * idä¸ºç©ºåæ°å¢ï¼æå¼åä¿®æ¹ |
| | | **/ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addSelective(SpecialFeeRateDto entity){ |
| | | entity.setDeleted((short) 0); |
| | | entity.setStatus((short) 1); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | List<SpecialFeeRate> rateList =new ArrayList<>(); |
| | | //ç»è£
è¡ä¸éåçæ°æ®ï¼è¿è¡æ¹éæå
¥ æ æ´æ° |
| | | if(StrUtil.isNotBlank(entity.getIndustryManages())){ |
| | | Object object = JSON.parse(entity.getIndustryManages()); |
| | | if(object instanceof JSONArray){ |
| | | List<StoreIndustryManageDto> manageList = JSONArray.parseArray(entity.getIndustryManages(), StoreIndustryManageDto.class); |
| | | for (StoreIndustryManageDto i : manageList) { |
| | | SpecialFeeRate rate = new SpecialFeeRate(); |
| | | BeanUtils.copyProperties(entity, rate); |
| | | rate.setIndustryCode(i.getIndustryCode()); |
| | | rate.setIndustryName(i.getIndustryName()); |
| | | if (i.getId() == null) { |
| | | //æ°å¢èªå¨çæid |
| | | rate.setId(IdGenerator.getId()); |
| | | rate.setCreateBy(user.getId()); |
| | | rate.setCreateTime(new Date()); |
| | | }else{ |
| | | //ä¿®æ¹ç´æ¥åä¼ è¿æ¥çid |
| | | rate.setId(i.getId()); |
| | | rate.setUpdateBy(user.getId()); |
| | | rate.setUpdateTime(new Date()); |
| | | } |
| | | rateList.add(rate); |
| | | } |
| | | } |
| | | } |
| | | return specialFeeRateMapper.batchInsert(rateList); |
| | | } |
| | | |
| | | @Override |
| | | public int editSelective(SpecialFeeRate entity){ |
| | | return specialFeeRateMapper.updateByPrimaryKeySelective(entity); |
| | | } |
| | | @Override |
| | | public SpecialFeeRate get(Long id){ |
| | | return specialFeeRateMapper.selectByPrimaryKey(id); |
| | | } |
| | | @Override |
| | | public int del(Long id){ |
| | | return specialFeeRateMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<SpecialFeeRate> getList(SpecialFeeRateQuery query) { |
| | | return specialFeeRateMapper.selectList(query); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:ç¹æ®è´¹çé
ç½®æ¥è¯¢ |
| | | **/ |
| | | @Override |
| | | public SpecialFeeRateDto getConfig(Long industryId,Long channelId) { |
| | | //æ ¹æ®è¡ä¸idï¼æ¥è¯¢æå±ééçææç¹æ®è´¹çé
ç½® |
| | | List<SpecialFeeRate> specialFeeRateList = specialFeeRateMapper.selectByIndustryId(industryId,channelId); |
| | | SpecialFeeRateDto dto = new SpecialFeeRateDto(); |
| | | if(!CollectionUtils.isEmpty(specialFeeRateList)){ |
| | | JSONArray jsonArray = new JSONArray(); |
| | | specialFeeRateList.forEach( s -> { |
| | | BeanUtils.copyProperties(s,dto); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("id",String.valueOf(s.getId())); |
| | | jsonObject.put("industryCode",s.getIndustryCode()); |
| | | jsonObject.put("industryName",s.getIndustryName()); |
| | | jsonArray.add(jsonObject); |
| | | }); |
| | | dto.setIndustryManages(jsonArray.toJSONString()); |
| | | } |
| | | return dto; |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.StoreIndustryManage; |
| | | import com.nuvole.four.domain.query.StoreIndustryManageQuery; |
| | | import com.nuvole.four.mapper.StoreIndustryManageMapper; |
| | | import com.nuvole.four.service.StoreIndustryManageService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.IdGenerator; |
| | | import com.nuvole.util.TreeUtil; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description è¡ä¸ç®¡çServiceå®ç°ç±» |
| | | * @Author dqh |
| | | * @Date 2024-04-12 17:41:29 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class StoreIndustryManageServiceImpl implements StoreIndustryManageService { |
| | | |
| | | private final StoreIndustryManageMapper storeIndustryManageMapper; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ·»å è¡ä¸ç®¡ç |
| | | * |
| | | * @date 2024-04-12 18:29 |
| | | **/ |
| | | @Override |
| | | public int addSelective(StoreIndustryManage entity){ |
| | | entity.setId(IdGenerator.getId()); |
| | | if(entity.getPId() == null){ |
| | | entity.setPId(0L); |
| | | } |
| | | entity.setLevel(getLevel(entity.getPId())); |
| | | //çæcode |
| | | String code = generateCode(entity); |
| | | entity.setIndustryCode(code); |
| | | entity.setIndustryCode(Contants.CODE + entity.getLevel() + Contants.CODE + entity.getLevel()); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | entity.setCreateBy(user.getId()); |
| | | entity.setCreateTime(new Date()); |
| | | return storeIndustryManageMapper.insertSelective(entity); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: çææ¬çº§code |
| | | * |
| | | * @date 2024-04-13 21:57 |
| | | **/ |
| | | private String generateCode(StoreIndustryManage entity){ |
| | | StoreIndustryManage pManage = storeIndustryManageMapper.selectByPrimaryKey(entity.getPId()); |
| | | String parentCode = "";//ç¶çº§code |
| | | if (pManage != null) { |
| | | parentCode = pManage.getIndustryCode(); |
| | | parentCode = parentCode.substring(pManage.getIndustryCode().length()); |
| | | } |
| | | String maxCode = storeIndustryManageMapper.getMaxCode(entity.getPId(),parentCode); //æ¬çº§æå¤§code |
| | | if (StrUtil.isNotBlank(maxCode)){ |
| | | maxCode = maxCode.substring(entity.getIndustryCode().length()); |
| | | } |
| | | return maxCode; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:è·åå½åpId对åºçlevelå±çº§ |
| | | * |
| | | **/ |
| | | private Integer getLevel(Long pId){ |
| | | Integer level = null; |
| | | if(pId == null || pId == 0){ |
| | | level = 0; |
| | | } else { |
| | | //æ¥è¯¢å½åè¡ä¸çlevelï¼æ ¹æ®pIdçlevel + 1å¾åº |
| | | level = storeIndustryManageMapper.getLevel(pId); |
| | | } |
| | | return level; |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:ä¿®æ¹è¡ä¸ç®¡ç |
| | | * |
| | | * @date 2024-04-12 18:33 |
| | | **/ |
| | | @Override |
| | | public int editSelective(StoreIndustryManage entity){ |
| | | if(entity.getPId() == null){ |
| | | entity.setPId(0L); |
| | | } |
| | | entity.setLevel(getLevel(entity.getPId())); |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | entity.setUpdateBy(user.getId()); |
| | | entity.setUpdateTime(new Date()); |
| | | return storeIndustryManageMapper.updateByPrimaryKeySelective(entity); |
| | | } |
| | | @Override |
| | | public StoreIndustryManage get(Long id){ |
| | | return storeIndustryManageMapper.selectByPrimaryKey(id); |
| | | } |
| | | @Override |
| | | public int del(Long id){ |
| | | //æ ¡éªæ¯å¦åå¨åèç¹ï¼åå¨åä¸å
许å é¤ |
| | | int exists = storeIndustryManageMapper.selectByPid(id); |
| | | if(exists > 0){ |
| | | throw new IllegalArgumentException("åå¨ä¸çº§ï¼ä¸å
许å é¤"); |
| | | } |
| | | return storeIndustryManageMapper.deleteByPrimaryKey(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢è¡ä¸ç®¡çå表 |
| | | * |
| | | * @date 2024-04-12 18:52 |
| | | **/ |
| | | @Override |
| | | public List<StoreIndustryManage> getList(StoreIndustryManageQuery query) { |
| | | return storeIndustryManageMapper.selectList(query); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°:æ¥è¯¢å表é»è®¤æ¹æ³ |
| | | * |
| | | * @date 2024-04-12 18:52 |
| | | **/ |
| | | @Override |
| | | public List<StoreIndustryManage> getList(Map map) { |
| | | return storeIndustryManageMapper.selectAll(map); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢max(sortNo)çåºå·ä¿¡æ¯ |
| | | * è¿å = max(sortNo) + 10 |
| | | * |
| | | * @date 2024-04-12 18:17 |
| | | **/ |
| | | @Override |
| | | public Integer getSort() { |
| | | return storeIndustryManageMapper.getSort(); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: æ¥è¯¢ææè¡ä¸æ |
| | | * |
| | | * @date 2024-04-12 18:47 |
| | | **/ |
| | | @Override |
| | | public List<Map> getIndustryTree(Map map) { |
| | | PageHelper.orderBy("p_id,sort_no"); |
| | | List<StoreIndustryManage> list = this.getList(map); |
| | | return TreeUtil.convert2Tree(list); |
| | | } |
| | | } |
New file |
| | |
| | | package com.nuvole.four.service.impl; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.SysOrg; |
| | | import com.nuvole.four.domain.dto.ChannelOrgConfigDetailDto; |
| | | import com.nuvole.four.domain.extend.AppDTO; |
| | | import com.nuvole.four.mapper.SysOrgMapper; |
| | | import com.nuvole.four.service.SysOrgService; |
| | | import com.nuvole.four.util.SystemUtil; |
| | | import com.nuvole.util.TreeUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * ç±»æè¿°: |
| | | * |
| | | * @author dqh |
| | | * @date 2024-04-11 10:59 |
| | | * @version 1.0 |
| | | **/ |
| | | @Service |
| | | @Slf4j |
| | | @RequiredArgsConstructor |
| | | public class SysOrgServiceImpl implements SysOrgService { |
| | | |
| | | |
| | | @Value("${file.tmp-path}") |
| | | private String tempPath; |
| | | private final SysOrgMapper sysOrgMapper; |
| | | |
| | | |
| | | @Override |
| | | public List<SysOrg> getList(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<SysOrg> getList(SysOrg sysOrg) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(Map map) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getListOfMap(SysOrg SysOrg) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer save(SysOrg sysOrg) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer update(SysOrg sysOrg) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer del(Long id) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public SysOrg getById(Long id) { |
| | | return sysOrgMapper.selectByPrimaryKey(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¹æ³æè¿°: è·åæºææ |
| | | * |
| | | * @date 2024-04-11 10:59 |
| | | **/ |
| | | @Override |
| | | public List<Map> getTreeOrg(Map map) { |
| | | |
| | | AppDTO appDTO = new AppDTO(); |
| | | appDTO.setObject(map); |
| | | AppDTO a = new AppDTO(); |
| | | BeanUtils.copyProperties(appDTO, a); |
| | | map = (Map) a.getObject(); |
| | | |
| | | PageHelper.orderBy("pid,sort_no"); |
| | | |
| | | List<SysOrg> list = this.getList(map); |
| | | return TreeUtil.convert2Tree(list); |
| | | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<SysOrg> selectListByPid(Long id, String name, String userOrgCode, Integer state) { |
| | | Map map = new HashMap(); |
| | | if (id != null) { |
| | | map.put("pid", id); |
| | | } else { |
| | | SysUser user = SystemUtil.getLoginUser(Contants.LOGIN_TYPE_PC); |
| | | if (user.getOrgId() == null || user.getOrgLv() == null) { |
| | | map.put("pid", 0); |
| | | } else { |
| | | map.put("id", user.getOrgId()); |
| | | } |
| | | } |
| | | map.put("name", name); |
| | | map.put("userOrgCode", userOrgCode); |
| | | map.put("state", state); |
| | | |
| | | AppDTO appDTO = new AppDTO(); |
| | | appDTO.setObject(map); |
| | | AppDTO a = new AppDTO(); |
| | | BeanUtils.copyProperties(appDTO, a); |
| | | map = (Map) a.getObject(); |
| | | List<SysOrg> sysOrgList = sysOrgMapper.selectAll(map); |
| | | return sysOrgList; |
| | | } |
| | | |
| | | @Override |
| | | public ChannelOrgConfigDetailDto queryNameAndParentName(Long orgId) { |
| | | return sysOrgMapper.queryNameAndParentName(orgId); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four.util; |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.nuvole.constants.SystemConstants; |
| | | import com.nuvole.four.contants.Contants; |
| | | import com.nuvole.four.domain.StoreMemberInfo; |
| | | import com.nuvole.four.domain.StoreSupplierInfoAccount; |
| | | import com.nuvole.four.service.RedisService; |
| | | import com.nuvole.util.JWTUtil; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import org.apache.commons.lang.StringEscapeUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | |
| | | |
| | | /** |
| | | * ç³»ç»å·¥å
·ç±» |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/3 20:10 |
| | | */ |
| | | @Component |
| | | public class SystemUtil { |
| | | |
| | | private static RedisService redisService; |
| | | |
| | | @Autowired |
| | | public void setRedisService(RedisService redisService) { |
| | | SystemUtil.redisService = redisService; |
| | | } |
| | | |
| | | /** |
| | | * è·årequest对象 |
| | | * |
| | | * @param |
| | | * @return : javax.servlet.http.HttpServletRequest |
| | | * @author ChenLong |
| | | * @date 2019/5/8 16:50 |
| | | * @version 1.0 |
| | | */ |
| | | public static HttpServletRequest getRequest() { |
| | | ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); |
| | | HttpServletRequest request = requestAttributes.getRequest(); |
| | | return request; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®keyè·åheaderå¼ |
| | | * |
| | | * @param k |
| | | * @param k |
| | | * @return : java.lang.String |
| | | * @author ChenLong |
| | | * @date 2019/5/8 16:55 |
| | | * @version 1.0 |
| | | */ |
| | | public static String getHeader(String k) { |
| | | return StringEscapeUtils.unescapeHtml(getRequest().getHeader(k)); |
| | | } |
| | | |
| | | /** |
| | | * åtoken |
| | | */ |
| | | public static String getToken(String loginType) { |
| | | if (loginType.equals(Contants.LOGIN_TYPE_PC)) { |
| | | return getPcToken(); |
| | | } else if (loginType.equals(Contants.LOGIN_TYPE_WECHAT)) { |
| | | return getWechatToken(); |
| | | } else if (loginType.equals(Contants.LOGIN_TYPE_MANAGER_APP)) { |
| | | return getManagerAppToken(); |
| | | } else if (loginType.equals(Contants.SCAN_WECHAT_TOKEN_HEADER)) { |
| | | return getScanToken(); |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * è·åheaderä¸çæ«ç ä» token |
| | | */ |
| | | public static String getScanToken() { |
| | | return getHeader(SystemConstants.SCAN_WECHAT_TOKEN_HEADER); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åheaderä¸PC token |
| | | * |
| | | * @param |
| | | * @return : java.lang.String |
| | | * @author ChenLong |
| | | * @date 2019/5/8 16:57 |
| | | * @version 1.0 |
| | | */ |
| | | public static String getPcToken() { |
| | | return getHeader(SystemConstants.BASE_PC_TOKEN_HEADER); |
| | | } |
| | | |
| | | /** |
| | | * è·åheaderä¸PC ä¾è´§å头 |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getSupplierPcToken() { |
| | | return getHeader(SystemConstants.SUPPLIER_PC_TOKEN_HEADER); |
| | | } |
| | | |
| | | /** |
| | | * è·åheaderä¸çWECHAT token |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/14 11:43 |
| | | */ |
| | | public static String getWechatToken() { |
| | | return getHeader(SystemConstants.SHOP_WECHAT_TOKEN_HEADER); |
| | | } |
| | | |
| | | /** |
| | | * è·åheaderä¸ç客æ·ç»çapp token |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/9/3 15:31 |
| | | */ |
| | | public static String getManagerAppToken() { |
| | | return getHeader(SystemConstants.MANAGER_APP_TOKEN_HEADER); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®tokenè·åpcç»å½ç¨æ·ä¿¡æ¯ |
| | | * |
| | | * @param token |
| | | * @return : com.nuvole.merchant.domain.StoreMerchantShopAccount |
| | | * @author ChenLong |
| | | * @date 2019/5/8 17:00 |
| | | * @version 1.0 |
| | | */ |
| | | public static SysUser getPcLoginUserByToken(String token) { |
| | | try { |
| | | token = JWTUtil.getSubOfClaims(token); |
| | | } catch (Exception e) { |
| | | return null; |
| | | } |
| | | |
| | | String redisK = Convert.toStr(redisService.get(SystemConstants.BASE_PC_USER_PREFIX + token)); |
| | | SysUser s = (SysUser) redisService.get(redisK); |
| | | return s; |
| | | } |
| | | public static StoreSupplierInfoAccount getSupplierLoginUserByToken(String token) { |
| | | try { |
| | | token = JWTUtil.getSubOfClaims(token); |
| | | } catch (Exception e) { |
| | | return null; |
| | | } |
| | | |
| | | String redisK = Convert.toStr(redisService.get(SystemConstants.BASE_PC_USER_PREFIX + token)); |
| | | StoreSupplierInfoAccount s = (StoreSupplierInfoAccount) redisService.get(redisK); |
| | | return s; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®tokenè·åwechatç»å½ç¨æ·ä¿¡æ¯ |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/6/14 11:44 |
| | | */ |
| | | public static StoreMemberInfo getWechatLoginUserByToken(String token) { |
| | | return (StoreMemberInfo) redisService.get(SystemConstants.SHOP_WECHAT_USER_PREFIX + token); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®tokenè·åæ«ç ä»ç»å½ç¨æ· |
| | | * |
| | | * @param token |
| | | * @return |
| | | */ |
| | | public static StoreMemberInfo getScanLoginUserByToken(String token) { |
| | | return (StoreMemberInfo) redisService.get(SystemConstants.SCAN_WECHAT_USER_PREFIX + token); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®tokenè·å客æ·ç»çappç»å½ç¨æ·ä¿¡æ¯ |
| | | * |
| | | * @Author: lc |
| | | * @Date: 2019/9/3 15:33 |
| | | */ |
| | | public static SysUser getManagerAppLoginUserByToken(String token) { |
| | | try { |
| | | token = JWTUtil.getSubOfClaims(token); |
| | | } catch (Exception e) { |
| | | return new SysUser(); |
| | | } |
| | | if (redisService.get(SystemConstants.MANAGER_APP_USER_PREFIX + token) == null) { |
| | | return new SysUser(); |
| | | } |
| | | String redisK = Convert.toStr(redisService.get(SystemConstants.MANAGER_APP_USER_PREFIX + token)); |
| | | SysUser s = (SysUser) redisService.get(redisK); |
| | | return s; |
| | | } |
| | | // |
| | | // public static StoreSupplierInfoAccount getLoginSupplierUser() { |
| | | // StoreSupplierInfoAccount supplierInfo = getPcLoginUserByToken(getPcToken()); |
| | | // if (supplierInfo == null) { |
| | | // return new StoreSupplierInfoAccount(); |
| | | // } |
| | | // StoreSupplierInfoAccount s = new StoreSupplierInfoAccount(); |
| | | // BeanUtils.copyProperties(supplierInfo, s); |
| | | // supplierInfo = s; |
| | | // return supplierInfo; |
| | | // } |
| | | |
| | | /** |
| | | * å综ååå°PC/客æ·ç»çappç»å½ä¿¡æ¯ |
| | | */ |
| | | public static SysUser getLoginUser(String loginType) { |
| | | if (loginType.equals(Contants.LOGIN_TYPE_PC)) { |
| | | SysUser sysUser = getPcLoginUserByToken(getPcToken()); |
| | | if (sysUser == null) { |
| | | return new SysUser(); |
| | | } |
| | | SysUser s = new SysUser(); |
| | | BeanUtils.copyProperties(sysUser, s); |
| | | sysUser = s; |
| | | return sysUser; |
| | | } else if (loginType.equals(Contants.LOGIN_TYPE_MANAGER_APP)) { |
| | | SysUser sysUser = getManagerAppLoginUserByToken(getManagerAppToken()); |
| | | SysUser s = new SysUser(); |
| | | BeanUtils.copyProperties(sysUser, s); |
| | | sysUser = s; |
| | | return sysUser; |
| | | } |
| | | return new SysUser(); |
| | | } |
| | | |
| | | /** |
| | | * ååå微信ç»å½ä¿¡æ¯ |
| | | */ |
| | | public static StoreMemberInfo getMemberInfo() { |
| | | StoreMemberInfo storeMemberInfo = getWechatLoginUserByToken(getWechatToken()); |
| | | if (storeMemberInfo != null) { |
| | | StoreMemberInfo s = new StoreMemberInfo(); |
| | | BeanUtils.copyProperties(storeMemberInfo, s); |
| | | storeMemberInfo = s; |
| | | } |
| | | return storeMemberInfo; |
| | | } |
| | | |
| | | /************************************* è·åç»å½ä¿¡æ¯ *****************************************/ |
| | | |
| | | /** |
| | | * è·åç»å½ä¿¡æ¯ï¼åæ·pcååæ·appï¼ |
| | | */ |
| | | public static StoreSupplierInfoAccount getSupplierLoginUser(String loginType) { |
| | | if (loginType.equals(Contants.LOGIN_TYPE_PC)) { |
| | | StoreSupplierInfoAccount storeSupplierInfoAccount = getPcLoginSupplierUserByToken(getSupplierPcToken()); |
| | | StoreSupplierInfoAccount sto = new StoreSupplierInfoAccount(); |
| | | BeanUtils.copyProperties(storeSupplierInfoAccount, sto); |
| | | return sto; |
| | | } |
| | | return new StoreSupplierInfoAccount(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®tokenè·åpcç»å½ç¨æ·ä¿¡æ¯ |
| | | */ |
| | | public static StoreSupplierInfoAccount getPcLoginSupplierUserByToken(String token) { |
| | | try { |
| | | token = JWTUtil.getSubOfClaims(token); |
| | | } catch (Exception e) { |
| | | return new StoreSupplierInfoAccount(); |
| | | } |
| | | if (redisService.get(SystemConstants.SUPPLIER_PC_USER_PREFIX + token) == null) { |
| | | return new StoreSupplierInfoAccount(); |
| | | } |
| | | return (StoreSupplierInfoAccount) redisService.get(SystemConstants.SUPPLIER_PC_USER_PREFIX + token); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | aliPay.pid=2088231183410951 |
| | | #\u5E94\u7528appid(\u548C\u5546\u6237id\u7ED1\u5B9A\u8FC7) |
| | | aliPay.app-id=2021003199690698 |
| | | #\u63A5\u4E0B\u6765\u4E09\u4E2A\u7528\u6765\u786E\u4FDDSSL |
| | | #\u5546\u6237\u79C1\u94A5 |
| | | aliPay.merchant-private-key=MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCDTfN2hvaTa5yzAZ59TrJj7Cmejp7tPgm1qCgPwGBxiyPGpwJ2QCLGvmZk/kYFlvcivVZojLNynW3jQRe0zCz6jllSSNRBk3aOhLgmbsooc2OqLoFJE9mVJOeeQBiALXP4yup03u7adJgO+ATl0sTTRnGnvem5VxzREN1XuPnBj4+RunpQ0NfB5jolRXeDlVVZmVD2GyQrHDsHwkZsAEvidn93RD2SkAYa1BonRho5+SgOhaSmsq9kD3yRIaNtKh6Nyv6yrBb4XnHYPmykKl2LUhUg9arXTB0901Q4IV+Ys5SF6oTS/sRhZycLDYUqMd5LbEb284OAmTAklwYBLbe3AgMBAAECggEAJvLIdTAzlCcnpDGmwaTGZb132wCTQ+xTFP98Yq+96/BJ/HMt18XOiwWPegWy35WYWUWwi/KwiB8KqY51abvm26u98xqHW6xSTpQvy7axYK5ZsfF5iCPLNuJrkhWRLvRMolAOm/xE/af4Mvh++2051THgJNHAsqmUcq99+Ld13mQ1wq4KunaNsVDkG0FRFmWViNN48GmyEqpX/5eeVFbkEfKcXd7wwvi2EbgJud8op2TELX16cEaLBynMGdqcNmm13nEKbqqatyLln2xPN+yeyx72ndm5uMBW0mrpsgn15KgRSakFH3cZ1Ou2rNk5MYZ3pv4cGUsok7xWllcqL1mAgQKBgQD19MEsbBSkrzyTiLDkpgMS9XHOKrPPVcA6+EGLeG7ceCtzBOrr9MRGh0FuquJKyq7vYhE6RqLHQ2oLaGLFfhWj0HZ2vdcyGF0rHJUGJYsq3X1uc2E+vvKzGZzGCBTrNYUneBP47JNgv5lGwBDmJzn7mDc6OpYgezXiI0w4FOp0QwKBgQCIqp6G4Y7KrEgGh9xCfMW5PynOLIBfNKSNGTM4XvTGUVe2eZMRid2J6+GIEC8aJZQ8Oc/3JvMaTeIUnSyPwDoIbtvk4PWjvvTjQJZ0jkS4KR6VcVCwHlO7OXiOOlMlLr53Wwdx304wsfR9/oESVVs3A2hrc//PwbBI6bk0PLORfQKBgQDCytUzGWZAB4kyT0/JxrEokrtPTQKbco6MJZHDo94pPgMrVPm5ZmEMepKX0z7lfSCO9lwui0LgDcQuxL11LCZ3VuJ7qF6GjkU7n6dm9tUBXem5UCf0ScZtkhtXu47Vuc17NN6chsEyHoyGPBcmMGr7l9Ili8DaeLp0HwB+ahJFgQKBgDg9zsM/K54oS/O0EWajJlNXtQKNub50UYtnZXa7TQwYCXqkiWtcSvkpQ0TVNC0Ube5i9DyHoN+gUXueOupldvxlcsS79xqNyQWEXOZWbd1DvrxNR6FSua6AtiYBxpm0pNlFcsjf1rOfaDg5djBvQ/xdwKkHsaxzzvISjQ78NAGZAoGABK0g/t77vpwNo7+jskMQyGLwnNjOZiS/xA2fcj+0GAqYkDIHNiZTE5mniqX5TR7ioeozxI1jhYm6dMMa5BeOWUiCHW/Gvr1aM6MBcVFZ9nxSfPu6gyk8dO4FQRq5FsW7/0r9VSo/KBF7DuJoHOIBn0pO1piXr4UPrdj6p4DaYvE= |
| | | #\u652F\u4ED8\u5B9D\u516C\u94A5 |
| | | aliPay.public-key=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtNBk2gZh3qdCxYcYQc3GO2l6A9js6KCU87d4QryrxWxTCVCTMQlM8OjTXHShfKcgDwE/dt0EHmn1pfEYYKPB4a37OfdxH9UZoW9pOu/Ws+EEOhHCheejYAYVtbPXllLGoPqKVy556lAYqofvpwhbe0d98WIcfRsQLpMkePWCg8KiXNL7+CPcTbqbI+167PrmvkQJ3vXRpr9Pkf/SJBkD59WVYrewnEainiiNVIQ+GpG9cSZYN6CRKnS9PW0zovBIgMszgB/62DrN0F0WyHgyBmiiwD0NjuaCmT19/WmaX4/VeDJ8MdtiV5mC0CMFJYTTAxq4J5oaHPjr99JTOFkApwIDAQAB |
| | | #TODO: #\u5BF9\u79F0\u52A0\u5BC6\u5BC6\u94A5 |
| | | # content-key: |
| | | #\u63A5\u4E0B\u6765\u4E09\u4E2A\u662F\u76F8\u5173\u5730\u5740 |
| | | #\u652F\u4ED8\u5B9D\u7F51\u5173 |
| | | aliPay.gateway-url=https://openapi.alipay.com/gateway.do |
| | | #\u63A5\u6536\u7ED3\u679C\u901A\u77E5\u5730\u5740 |
| | | aliPay.notify-url=xxxxxxxxxxx |
| | | #\u9875\u9762\u8DF3\u8F6C\u540C\u6B65\u901A\u77E5\u9875\u9762\u8DEF\u5F84 |
| | | aliPay.return-url=xxxxxxxxxxx |
New file |
| | |
| | | -----BEGIN PRIVATE KEY----- |
| | | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDOALnyQsjza9Fu |
| | | bSRx0KbF2zx1XD/B7AE+8yDQMRluKtmbsnJ1A0Eh60VPmCmj68KrhzpvNFtX80mD |
| | | Ov/CRHEZ1lwAGIphFt658jABdW67Z83SWSxojIf6AVh074accEzhnuIg2NTQNlKm |
| | | VNtsFR919pf4HZI4VcN4pVYJRH/8g7UytJ/N6CnZPpFRxZOtKBbDDkazY/vY1+Af |
| | | kRQgPIRIneAAGE0AbKodFktPe9aDn3/SusfNVVwg6keIEtnQVvvHh6CZoQEXp6mY |
| | | 5RcaTTuiFJL6hHtGqozwKrYdaXgp/2rxyMBkqg2QACOgVUCSDLcRSuNAgePNTDbh |
| | | jntKa1oNAgMBAAECggEAT2zQRKujNtc3JFBIYOmFo3tn0AgFPQt1X4P1/s8vct5q |
| | | kDE5GAxtLFq9mnacd2sK339/9ChHn51ZlpNE0O36fW+8gPz1PYHH1gGeqLFSREc9 |
| | | gACJsrWcJ7QlGtDPIbnaqpLLtMZlJvIK476L6xwpyR2OckdUfQv0FawJhAE5J24f |
| | | WkzlAKlAhAJ/M9RMv8QYz3HRnaMFcdY2s6cxcFPVYLFsO2R+5nQfFII3X4Z6fD+r |
| | | B3a/KMZHwcVFSBvRkikSKlhWAYQdHPiLZpORh32bMd03APceOxsOTN/wf9qwrcKF |
| | | O5qnHhEFjpOthwZQ56s2YVrn6zLEhVFSoAvaKuUNMQKBgQDtuGXxF3w5Lhip9trz |
| | | 1MQXyTgywecyFSE5vaUK7WL74EQu/s0U3UCOb6SuOtyeHOJoOpGGuzUm0ZtDNo+k |
| | | bVGHRs2gu8iQDURD8FYExTOEFgLa4g9PUstlAASeUGT5dbrZWOiHpPHrfR1O04sQ |
| | | uc6vp0yk08mXY43EOLMRPCU7twKBgQDd1/WdRVUcv2Fc2xA57D1UKlGWzk4H7Ao1 |
| | | TBmduszUwKCPr02gqdlCIUCzT7rhACWIq2SOmd8zKVNnOjL9zmMlmwCXadb/HLrE |
| | | NqbmSmkUUMayj91zvcwtASWXvf2kBg56MUDOmuuveLbcJfKXcs49GssMEhPZPRDr |
| | | AbRdoIngWwKBgQCOJxSexSJ9tvj8uidYY8UXTDaU86rjIguKUcOd8zKb2BIt4CSW |
| | | 82+lPVHG9l/zFOa22T8oyE4SdolX+gqPkueL82UHVwOqUKSf09o8ZAhYVilC5qet |
| | | EZ+bOBWK7hxTqHkhe68hXhtkbJ7YAlxIljPoiiyk7BjCtL+TtSwvhD3npQKBgQCY |
| | | AsInaPnAQBdMFEOTHSCNCo5roqPvY7s++A1ZekWexvt+WWX84EWhvb1i4RAx2vLd |
| | | Kmw2FpPNr9SZmFSWe5SOkR6fogOTPbFwf+5vQK+uHwd4FYJuK7C7adzDlIk3mnrT |
| | | GerJZ3h1/WZ3hX0sb5uIXVKiy8RUCDcOgVWBDl9LnwKBgBx1snMWzSUXj1+1JSOl |
| | | pmFimM4YOPtFsiDFw+ntKPB7DIpYYFMxGYMYHh3kzB4F8nbTG1wC92s27DEGMdom |
| | | cIsR8kdngn//BtFhgyrq3dUD6ILb4t3kXW4/FAbPXB5v/ABXFp8eXzxoOSrCFBGC |
| | | SlwQbd8MtRbLLh/U1vdnBWr9 |
| | | -----END PRIVATE KEY----- |
New file |
| | |
| | | server: |
| | | port: 9060 |
| | | eureka: |
| | | client: |
| | | service-url: |
| | | defaultZone: http://localhost:9000/eureka/ |
| | | file: |
| | | server: https://yqzx.jinmingyuan.com/file |
| | | base-path: /ecosphereShop |
| | | tmp-path: /tmp |
| | | poster: |
| | | path: /ecosphereShop |
| | | #####夿°æ®æºé
ç½®##### |
| | | #master |
| | | spring: |
| | | datasource: |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | url: jdbc:mysql://116.198.40.76:3306/ecosphere_shop_basics?characterEncoding=utf8&autoReconnect=true&useSSL=false |
| | | username: root |
| | | password: Bjjmy_2020 |
| | | redis: |
| | | host: 116.198.40.76 |
| | | port: 6379 |
| | | password: Jmy2019. |
| | | database: 2 |
| | | #rabbitMQ |
| | | rabbitmq: |
| | | host: 116.198.40.76 |
| | | port: 5672 |
| | | username: super |
| | | password: Jmy2019. |
| | | virtual-host: ecosphere |
| | | #å®¢ç®¡ç³»ç» |
| | | kg: |
| | | #æ¥å£å°å |
| | | serverUrl: https://172.16.16.8 |
| | | #è¯ä¹¦è·¯å¾ |
| | | certsUrl: C:\Users\å为\Desktop\zfxt.pfx |
| | | #è¯ä¹¦key |
| | | clientKey: ENC(G8cCcaj9gPzCLXW2vy4y3ap/Llx+W3GkvtpQP7vwFFo=) |
| | | #è¯ä¹¦TurstKey |
| | | clientTurstKey: ENC(G8cCcaj9gPzCLXW2vy4y3ap/Llx+W3GkvtpQP7vwFFo=) |
| | | swagger: |
| | | enable: true |
| | | #å¤ç½æ¥å£æ¯å¦èµ°callæå¡ |
| | | service-type: false |
| | | |
| | | # æ°å¤§éposé»è®¤appid |
| | | newpos: |
| | | appid: new_land |
| | | appsecret: pj@2Cs&& |
| | | |
| | | # 微信æ¯ä»ç¨åºé
ç½® |
| | | wxminipay: |
| | | # appid: wx22159c42a5805166 |
| | | # mchid: 1251666601 |
| | | # mchid: 1630059373 |
| | | # appsecretKey: 9b16661a70453becdbc47dc53f6137a4 |
| | | # appsecretKey: 340ea8ab9886b9a446ea1ef6eb238d29 |
| | | # appsecretKey: 554ee5cf4bfe46d18adfc87e5daa1105 |
| | | # appsecretKey: Zhongzhouzhihuishuili12345678901 |
| | | # appsecretKey: 13d81c197caf4d41bc8afc183f43109f |
| | | # serverDomain: http://localhost:9090 |
| | | serverDomain: http://1.14.252.104:7101/${spring.application.name} |
| | | #人æå°å |
| | | ren: |
| | | serverUrl: https://www.data-ren.com |
| | | #éè¦åPropertiesConstants.payWayä¸è´ |
| | | payWay: 2 |
| | | # 0ç¸å 1 ä¸å |
| | | payGiveSame: 1 |
| | | # ä¸éæ¯ä»é
ç½®æä»¶è·¯å¾ |
| | | zhongJinPayConfigPath: D:\\MyProjects\\jmy\\ecosphere\\ecosphere-merchant\\src\\main\\resources\\cncpConfig\\payment |
| | | |
| | | # æ¯å¦å¯ç¨æ²³ååä¿¡æ¯ä» |
| | | hnnxpay: |
| | | enabled: true |
New file |
| | |
| | | server: |
| | | port: 9062 |
| | | eureka: |
| | | client: |
| | | service-url: |
| | | defaultZone: http://localhost:9000/eureka/ |
| | | # instance: |
| | | # #使ç¨ipæ¿ä»£å®ä¾å |
| | | # prefer-ip-address: true |
| | | # #设置å®ä¾çID为ip:port |
| | | # instance-id: 1.14.252.104:7104 |
| | | file: |
| | | server: https://yqzx.jinmingyuan.com/file |
| | | base-path: /ecosphereShopKf |
| | | tmp-path: D:/tmp |
| | | poster: |
| | | path: /ecosphereShopKf |
| | | #####夿°æ®æºé
ç½®##### |
| | | #master |
| | | spring: |
| | | datasource: |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | url: jdbc:mysql://116.198.40.76:3306/ecosphere_base_four_payment_kf?characterEncoding=utf8&autoReconnect=true&useSSL=false |
| | | username: root |
| | | password: Bjjmy_2020 |
| | | redis: |
| | | host: 116.198.40.76 |
| | | port: 6379 |
| | | password: Jmy2019. |
| | | database: 5 |
| | | #rabbitMQ |
| | | rabbitmq: |
| | | host: 116.198.40.76 |
| | | port: 5672 |
| | | username: super |
| | | password: Jmy2019. |
| | | virtual-host: ecosphereKf |
| | | #å®¢ç®¡ç³»ç» |
| | | kg: |
| | | #æ¥å£å°å |
| | | serverUrl: https://172.16.16.8 |
| | | #è¯ä¹¦è·¯å¾ |
| | | certsUrl: C:\Users\å为\Desktop\zfxt.pfx |
| | | #è¯ä¹¦key |
| | | clientKey: ENC(G8cCcaj9gPzCLXW2vy4y3ap/Llx+W3GkvtpQP7vwFFo=) |
| | | #è¯ä¹¦TurstKey |
| | | clientTurstKey: ENC(G8cCcaj9gPzCLXW2vy4y3ap/Llx+W3GkvtpQP7vwFFo=) |
| | | swagger: |
| | | enable: true |
| | | #å¤ç½æ¥å£æ¯å¦èµ°callæå¡ |
| | | service-type: false |
| | | |
| | | # æ°å¤§éposé»è®¤appid |
| | | newpos: |
| | | appid: new_land |
| | | appsecret: pj@2Cs&& |
| | | |
| | | # 微信æ¯ä»ç¨åºé
ç½® |
| | | wxminipay: |
| | | # appid: wx22159c42a5805166 |
| | | # mchid: 1251666601 |
| | | # mchid: 1630059373 |
| | | # appsecretKey: 9b16661a70453becdbc47dc53f6137a4 |
| | | # appsecretKey: 340ea8ab9886b9a446ea1ef6eb238d29 |
| | | # appsecretKey: 554ee5cf4bfe46d18adfc87e5daa1105 |
| | | # appsecretKey: Zhongzhouzhihuishuili12345678901 |
| | | # appsecretKey: 13d81c197caf4d41bc8afc183f43109f |
| | | # serverDomain: http://localhost:9090 |
| | | serverDomain: http://116.198.40.76:9010/${spring.application.name} |
| | | #人æå°å |
| | | ren: |
| | | serverUrl: https://www.data-ren.com |
| | | #éè¦åPropertiesConstants.payWayä¸è´ |
| | | payWay: 2 |
| | | # 0ç¸å 1 ä¸å |
| | | payGiveSame: 1 |
| | | # ä¸éæ¯ä»é
ç½®æä»¶è·¯å¾ |
| | | zhongJinPayConfigPath: D:\\MyProjects\\jmy\\ecosphere\\ecosphere-merchant\\src\\main\\resources\\cncpConfig\\payment |
| | | offLinePay: |
| | | hnnx: true |
New file |
| | |
| | | spring.profiles.active=dev |
| | | # \u94F6\u884C\u5361\u98CE\u683C 1\u90AE\u653F\u7EFF\u5361 2\u91D1\u71D5\u5361 |
| | | bank.card.style=1 |
New file |
| | |
| | | swagger: |
| | | base-package: com.nuvole.four |
| | | spring: |
| | | http: |
| | | encoding: |
| | | charset: UTF-8 |
| | | enabled: true |
| | | force: true |
| | | servlet: |
| | | #å
è®¸ä¼ è¾æä»¶å¤§å°é
ç½® |
| | | multipart: |
| | | max-file-size: 100Mb |
| | | max-request-size: 200Mb |
| | | application: |
| | | name: service-four-payment |
| | | redis: |
| | | jedis: |
| | | pool: |
| | | max-active: 2000 |
| | | max-wait: -1 |
| | | max-idle: 10 |
| | | min-idle: 0 |
| | | timeout: 30000 |
| | | #druid 龿¥æ± |
| | | rabbitmq: |
| | | publisher-confirms: true |
| | | publisher-returns: true |
| | | listener: |
| | | direct: |
| | | acknowledge-mode: manual |
| | | simple: |
| | | acknowledge-mode: manual |
| | | datasource: |
| | | druid: |
| | | min-idle: 5 |
| | | initial-size: 5 |
| | | async-init: true |
| | | async-close-connection-enable: true |
| | | max-active: 150 |
| | | max-wait: 60000 |
| | | time-between-eviction-runs-millis: 60000 |
| | | min-evictable-idle-time-millis: 30000 |
| | | validation-query: SELECT 1 FROM DUAL |
| | | test-while-idle: true |
| | | test-on-borrow: false |
| | | test-on-return: false |
| | | pool-prepared-statements: true |
| | | max-pool-prepared-statement-per-connection-size: 20 |
| | | filters: stat,wall,log4j2 |
| | | connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
| | | web-stat-filter: |
| | | enabled: true |
| | | url-pattern: /* |
| | | exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*" |
| | | session-stat-enable: true |
| | | profile-enable: true |
| | | stat-view-servlet: |
| | | enabled: false |
| | | url-pattern: /druid/* |
| | | login-username: stqAdmin |
| | | login-password: m2UdVE40efM6A8FsCznj31JBt |
| | | reset-enable: false |
| | | allow: 127.0.0.1 |
| | | # deny: é»åå |
| | | filter: |
| | | stat: |
| | | enabled: true |
| | | log-slow-sql: true |
| | | slow-sql-millis: 3000 |
| | | merge-sql: true |
| | | db-type: mysql |
| | | wall: |
| | | enabled: true |
| | | db-type: mysql |
| | | config: |
| | | alter-table-allow: false |
| | | truncate-allow: false |
| | | drop-table-allow: false |
| | | none-base-statement-allow: false |
| | | update-where-alay-true-check: true |
| | | select-into-outfile-allow: false |
| | | metadata-allow: true |
| | | log-violation: true |
| | | throw-exception: true |
| | | #èµæºæä»¶æ å° |
| | | resources: |
| | | static-locations: classpath:/static/,classpath:/public/,file:${file.upPath},file:${file.sysPath},file:${file.poster.path} |
| | | banner: |
| | | location: banner.txt |
| | | jackson: |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | time-zone: GMT+8 |
| | | #mybaitsæ å°é
ç½® |
| | | mybatis: |
| | | mapper-locations: classpath:mapping/**/*Mapper.xml |
| | | type-aliases-package: com.nuvole.four.domain |
| | | configuration: |
| | | map-underscore-to-camel-case: true |
| | | pagehelper: |
| | | helper-dialect: mysql |
| | | reasonable: false |
| | | support-methods-s'y'sarguments: true |
| | | params: count=countSql |
| | | #æ¥å¿é
ç½® |
| | | logging: |
| | | file: log/out.log |
| | | pattern: |
| | | console: "%d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n" |
| | | file: "%d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n" |
| | | level: |
| | | root: info |
| | | com.nuvole.four: debug |
| | | feign: |
| | | hystrix: |
| | | enabled: true |
| | | hystrix: |
| | | command: |
| | | default: |
| | | execution: |
| | | isolation: |
| | | thread: |
| | | timeoutInMilliseconds: 32000 |
| | | ribbon: |
| | | ConnectTimeout: 10000 |
| | | ReadTimeout: 30000 |
| | | server: |
| | | tomcat: |
| | | uri-encoding: UTF-8 |
| | | max-threads: 1000 |
| | | max-connections: 1000 |
| | | basedir: tomcat |
| | | |
| | | tl: |
| | | could: |
| | | fee: 0 |
| | | # ä¼åæ¥é
ç½® |
| | | memberFlash: |
| | | #æ¯å¨å å¼å¯ 5 为å¨äºï¼7ä¸ºå¨æ¥ |
| | | startWeekDay: 5 |
New file |
| | |
| | | .::::. |
| | | .::::::::. |
| | | ::::::::::: |
| | | ..:::::::::::' |
| | | '::::::::::::' |
| | | .:::::::::: |
| | | '::::::::::::::.. |
| | | ..::::::::::::. 女ç¥ä¿ä½,ä»£ç æ bug |
| | | ``:::::::::::::::: |
| | | ::::``:::::::::' .:::. |
| | | ::::' ':::::' .::::::::. |
| | | .::::' :::: .:::::::'::::. |
| | | .:::' ::::: .:::::::::' ':::::. |
| | | .::' :::::.:::::::::' ':::::. |
| | | .::' ::::::::::::::' ``::::. |
| | | ...::: ::::::::::::' ``::. |
| | | ```` ':. ':::::::::' ::::.. |
| | | '.:::::' ':'````.. |
| | | :: Spring Boot :: (v2.0.3.RELEASE) |
New file |
| | |
| | | EBusinessID=1328568 |
| | | AppKey=29e39a04-582e-479c-bf0d-f0d5f9ca4897 |
| | | Type=EMS |
| | | ReqURL=http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx |
New file |
| | |
| | | ftp.url=116.198.39.83 |
| | | ftp.username=mysftp |
| | | ftp.mixpd=Bjjmy_2020 |
New file |
| | |
| | | # \u6CB3\u5357\u519C\u4FE1 |
| | | #\u4EA4\u6613\u4E0A\u9001 |
| | | hnnx.url=http://221.176.112.3:8030/SericeCenter |
| | | #\u4E00\u7EA7\u5546\u6237\u53F7 |
| | | hnnx.merNbr=010020170801000001 |
| | | #\u5E73\u53F0\u53F7 |
| | | hnnx.appCode=00000000004 |
| | | #\u8BC1\u4E66 |
| | | hnnx.certPath=classpath:/hnnx/hnnxopenbank.pfx |
| | | #\u8BC1\u4E66\u5BC6\u7801 |
| | | hnnx.certPwd=11111111 |
| | | #\u9A8C\u7B7E\u516C\u94A5 \u8BB0\u5F97\u52A0\n |
| | | hnnx.pubKey=MIIDIjCCAgqgAwIBAgIEAaI2OjANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJD\nTjELMAkGA1UECAwCSE4xCzAJBgNVBAcMAkpaMQ0wCwYDVQQKDARDU0lJMQ0wCwYD\nVQQLDARDU0lJMQwwCgYDVQQDDANndW8wHhcNMTcxMTMwMTcxNTQ4WhcNMTcxMTMw\nMTcxNzI4WjBTMQswCQYDVQQGEwJDTjELMAkGA1UECAwCSE4xCzAJBgNVBAcMAkpa\nMQ0wCwYDVQQKDARDU0lJMQ0wCwYDVQQLDARDU0lJMQwwCgYDVQQDDANndW8wggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCcsoPLxmFskLaYXu6oIIyqfx9O\nrjoToBIdO2M05V4YjSsbyGgjNe4EMjeTmw6OeNUt66VZg755E85OoyQddcESTqLL\nEiAlVT/ExFeGsabwuV8Dz+HZDm8OYP1yLeyB2rsGauQrS4ZTBnFCQKedu71pvXX6\n8WC9b5DCEyDBScpNAOZpz4kgp41i4/Aeak1iF5dwCLzbzo5QxWv0we+vxOGfns+f\nTzxov+JVUz9VakW16spSR3bOonlS4xSxx196+j/fTjTyEu4zreH0IIbUZVZAyRQf\nueIdUQg1Y6FaywfGp0oeqy/a/kh/meY07yEhANTiJ+Y0fFmkbGu4dDeGDc31AgMB\nAAEwDQYJKoZIhvcNAQELBQADggEBAEkn51qfzUD/8A5bzUqrOkvi2fHHWWNnJLoJ\nt9AU4mUyRzV8uy9vi17HfHZf2sn4cXl4May+6ziiccVcEgU4FtY6BSPFfViHT1nR\nwCAqtRofjHtRHUCcIpfGl4cchl9syJJIqZvFqylvs1ffiRkl3I3JvzeQkB/3/C2P\nFOojS6sZVnRELGYhUv1J+unmS4cUcZyzYBR/UUYaZCSRpNroj+bV1Ghs4a4O+mhv\nMQsug07Nl2TZchabojn0IJvTZboGJREvvC//L64gL/qEq3LftLMXxHrfzys8lzxq\nRt2dTeElqm7uubLzIB/nqeibt6/gn37lOtBI2XUza6mz/iTUhoQ= |
| | | hnnx.platSubMerchantId=11 |
| | | hnnx.branchId=111 |
| | | |
| | | |
| | | #\u5FEB\u6377\u652F\u4ED8 |
| | | hnnx.kjUrl=http://221.176.112.3:8006/pmPay |
| | | #\u4E00\u7EA7\u5546\u6237\u53F7 |
| | | hnnx.kjMerNbr=010020170801000001 |
| | | #\u516C\u94A5 |
| | | hnnx.kjPubKey=MIIETzCCAzegAwIBAgIFQAJ5QwYwDQYJKoZIhvcNAQELBQAwXTELMAkGA1UEBhMC\nQ04xMDAuBgNVBAoTJ0NoaW5hIEZpbmFuY2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEcMBoGA1UEAxMTQ0ZDQSBBQ1MgVEVTVCBPQ0EzMTAeFw0xNzExMTMwMTI4\nMzJaFw0xOTExMTMwMTI4MzJaMHgxCzAJBgNVBAYTAkNOMRcwFQYDVQQKEw5DRkNBIFJTQSAwQ0EzMTERMA8GA1UECxMITG9jYWwgUkExGTAXBgNVBAsTEE9yZ2FuaXph\ndGlvbmFsLTExIjAgBgNVBAMMGTA1MUDlrp3mtqZAMzM1MzY1MjQ1MTIyQDEwggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDSOGkcidudBD+EW6wFJ7wMOUnC\nbcSsatN1nK8i3xV8CXFqFLZI+tna/5pFf1vkwFpZzT/o9RfQTGVwX6TYaqcqiHxR\nBOodQvgnsjDj9R3gFA8T4i2fPo59F1hU0hoEuyi/4kpAq+Jtgmd2m48/ffVx8lZc\nIoGV2xi2drWdkyggilO+BCSrYm9CYjUk3o3aD78IYXbX3cIGhJdZwlRWCfkXxVtz\nMgTV3L8tmACZFwyb3mwSKKCRRwX4vrQ1KKRJleI7g0/gD5Pab/SCdVT8gmZ0N8Jx\n5YOkggQJM/FhTnokQuU3Eq3tCTPcH80US2nd9PvlWk/NB3oElBnf4oSetWLpAgMB\nAAGjgfowgfcwPwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2Nz\ncHRlc3QuY2ZjYS5jb20uY246ODAvb2NzcDAfBgNVHSMEGDAWgBSaPbSuZVj7zloF\neCagbSsEhrrG7DAMBgNVHRMBAf8EAjAAMDcGA1UdHwQwMC4wLKAqoCiGJmh0dHA6\nLy8yMTAuNzQuNDIuMy9PQ0EzMS9SU0EvY3JsMjcuY3JsMA4GA1UdDwEB/wQEAwIG\nwDAdBgNVHQ4EFgQUpd28TFA5+9PLZKvv/fgC8JMCVE8wHQYDVR0lBBYwFAYIKwYB\nBQUHAwIGCCsGAQUFBwMEMA0GCSqGSIb3DQEBCwUAA4IBAQAH2k5a4U+2taGiFJPh\nMgT2LVXe+93OQ7Jw0zV7IPaSqGnCnGL8GGow5m3zzI0e23DVDI1va45odnbB1Wdf\nf95Sqfl0Qm+dLhe2yFJVVO0KPT11/aNj7WjLCo2VGSTWvIrITukC9P9Am8Nq9aNt\nH7yVUTY4R71yAIDbFgQpoxqFiY1kf3lxnF52ZvCr42iDqljgD64Vq172qTYWKgiM\nCJKGk8sZkx9V9Xu9C+nqmSEz+PUkPbI4k7D/PISiaOQJ8Zi/qZJ2JaeEfx1eK8AF\n9PXx6z1nCGg8O+q1F+JWBqwcU3Xqls8oUivcHDwDWNsiAuoI/4Hn05BSvFReGe5I\n6c7M |
| | | #\u8BC1\u4E66 |
| | | hnnx.kjCertPath=classpath:/hnnx/merchant-rsa.pfx |
| | | #\u8BC1\u4E66\u5BC6\u7801 |
| | | hnnx.kjCertPwd=HNNX |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityDistributeRecordMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.ActivityDistributeRecord" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="org_id" property="orgId" jdbcType="BIGINT" /> |
| | | <result column="org_name" property="orgName" jdbcType="VARCHAR" /> |
| | | <result column="org_code" property="orgCode" jdbcType="VARCHAR" /> |
| | | <result column="activity_id" property="activityId" jdbcType="BIGINT" /> |
| | | <result column="total_fee" property="totalFee" jdbcType="BIGINT" /> |
| | | <result column="use_fee" property="useFee" jdbcType="BIGINT" /> |
| | | <result column="surplus_fee" property="surplusFee" jdbcType="BIGINT" /> |
| | | <result column="lv1_id" property="lv1Id" jdbcType="BIGINT" /> |
| | | <result column="lv2_id" property="lv2Id" jdbcType="BIGINT" /> |
| | | <result column="lv3_id" property="lv3Id" jdbcType="BIGINT" /> |
| | | <result column="lv4_id" property="lv4Id" jdbcType="BIGINT" /> |
| | | <result column="status" property="status" jdbcType="INTEGER" /> |
| | | <result column="deleted" property="deleted" jdbcType="INTEGER" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, org_id, org_name, org_code, activity_id, total_fee, use_fee, surplus_fee, lv1_id, lv2_id, lv3_id, lv4_id, status, deleted, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from activity_distribute_record |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | update activity_distribute_record set deleted = 1 |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.ActivityDistributeRecord" > |
| | | insert into activity_distribute_record ( |
| | | id, |
| | | org_id, |
| | | org_name, |
| | | org_code, |
| | | activity_id, |
| | | total_fee, |
| | | use_fee, |
| | | surplus_fee, |
| | | lv1_id, |
| | | lv2_id, |
| | | lv3_id, |
| | | lv4_id, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{orgId,jdbcType=BIGINT}, |
| | | #{orgName,jdbcType=VARCHAR}, |
| | | #{orgCode,jdbcType=VARCHAR}, |
| | | #{activityId,jdbcType=BIGINT}, |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | #{useFee,jdbcType=BIGINT}, |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | #{lv1Id,jdbcType=BIGINT}, |
| | | #{lv2Id,jdbcType=BIGINT}, |
| | | #{lv3Id,jdbcType=BIGINT}, |
| | | #{lv4Id,jdbcType=BIGINT}, |
| | | #{status,jdbcType=INTEGER}, |
| | | #{deleted,jdbcType=INTEGER}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.ActivityDistributeRecord" > |
| | | insert into activity_distribute_record |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | org_id, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | org_name, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | org_code, |
| | | </if> |
| | | <if test="activityId != null" > |
| | | activity_id, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee, |
| | | </if> |
| | | <if test="lv1Id != null" > |
| | | lv1_id, |
| | | </if> |
| | | <if test="lv2Id != null" > |
| | | lv2_id, |
| | | </if> |
| | | <if test="lv3Id != null" > |
| | | lv3_id, |
| | | </if> |
| | | <if test="lv4Id != null" > |
| | | lv4_id, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | #{orgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="activityId != null" > |
| | | #{activityId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv1Id != null" > |
| | | #{lv1Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv2Id != null" > |
| | | #{lv2Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv3Id != null" > |
| | | #{lv3Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv4Id != null" > |
| | | #{lv4Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ActivityDistributeRecord" > |
| | | update activity_distribute_record |
| | | <set > |
| | | <if test="orgId != null" > |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | org_name = #{orgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="activityId != null" > |
| | | activity_id = #{activityId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv1Id != null" > |
| | | lv1_id = #{lv1Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv2Id != null" > |
| | | lv2_id = #{lv2Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv3Id != null" > |
| | | lv3_id = #{lv3Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv4Id != null" > |
| | | lv4_id = #{lv4Id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ActivityDistributeRecord" > |
| | | update activity_distribute_record |
| | | set |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | org_name = #{orgName,jdbcType=VARCHAR}, |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | activity_id = #{activityId,jdbcType=BIGINT}, |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | lv1_id = #{lv1Id,jdbcType=BIGINT}, |
| | | lv2_id = #{lv2Id,jdbcType=BIGINT}, |
| | | lv3_id = #{lv3Id,jdbcType=BIGINT}, |
| | | lv4_id = #{lv4Id,jdbcType=BIGINT}, |
| | | status = #{status,jdbcType=INTEGER}, |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityFeeMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.ActivityFee" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="org_id" property="orgId" jdbcType="BIGINT" /> |
| | | <result column="org_code" property="orgCode" jdbcType="VARCHAR" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="code" property="code" jdbcType="VARCHAR" /> |
| | | <result column="begin_time" property="beginTime" jdbcType="TIMESTAMP" /> |
| | | <result column="end_time" property="endTime" jdbcType="TIMESTAMP" /> |
| | | <result column="expire_time" property="expireTime" jdbcType="TIMESTAMP" /> |
| | | <result column="total_fee" property="totalFee" jdbcType="BIGINT" /> |
| | | <result column="use_fee" property="useFee" jdbcType="BIGINT" /> |
| | | <result column="surplus_fee" property="surplusFee" jdbcType="BIGINT" /> |
| | | <result column="online_agree_wx_rate" property="onlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_zfb_rate" property="onlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_unionpay_rate" property="onlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_wx_rate" property="offlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_zfb_rate" property="offlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_unionpay_rate" property="offlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_wx_rate" property="onlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_zfb_rate" property="onlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_unionpay_rate" property="onlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_wx_rate" property="offlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_zfb_rate" property="offlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_unionpay_rate" property="offlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="status" property="status" jdbcType="INTEGER" /> |
| | | <result column="deleted" property="deleted" jdbcType="INTEGER" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, org_id, org_code, name, code, begin_time, end_time, expire_time, total_fee, use_fee, surplus_fee, online_agree_wx_rate, online_agree_zfb_rate, online_agree_unionpay_rate, offline_agree_wx_rate, offline_agree_zfb_rate, offline_agree_unionpay_rate, online_mer_wx_rate, online_mer_zfb_rate, online_mer_unionpay_rate, offline_mer_wx_rate, offline_mer_zfb_rate, offline_mer_unionpay_rate, status, deleted, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from activity_fee |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | update activity_fee set deleted = 1 |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.ActivityFee" > |
| | | insert into activity_fee ( |
| | | id, |
| | | org_id, |
| | | org_code, |
| | | name, |
| | | code, |
| | | begin_time, |
| | | end_time, |
| | | expire_time, |
| | | total_fee, |
| | | use_fee, |
| | | surplus_fee, |
| | | online_agree_wx_rate, |
| | | online_agree_zfb_rate, |
| | | online_agree_unionpay_rate, |
| | | offline_agree_wx_rate, |
| | | offline_agree_zfb_rate, |
| | | offline_agree_unionpay_rate, |
| | | online_mer_wx_rate, |
| | | online_mer_zfb_rate, |
| | | online_mer_unionpay_rate, |
| | | offline_mer_wx_rate, |
| | | offline_mer_zfb_rate, |
| | | offline_mer_unionpay_rate, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{orgId,jdbcType=BIGINT}, |
| | | #{orgCode,jdbcType=VARCHAR}, |
| | | #{name,jdbcType=VARCHAR}, |
| | | #{code,jdbcType=VARCHAR}, |
| | | #{beginTime,jdbcType=TIMESTAMP}, |
| | | #{endTime,jdbcType=TIMESTAMP}, |
| | | #{expireTime,jdbcType=TIMESTAMP}, |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | #{useFee,jdbcType=BIGINT}, |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{status,jdbcType=INTEGER}, |
| | | #{deleted,jdbcType=INTEGER}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.ActivityFee" > |
| | | insert into activity_fee |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | org_id, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | org_code, |
| | | </if> |
| | | <if test="name != null" > |
| | | name, |
| | | </if> |
| | | <if test="code != null" > |
| | | code, |
| | | </if> |
| | | <if test="beginTime != null" > |
| | | begin_time, |
| | | </if> |
| | | <if test="endTime != null" > |
| | | end_time, |
| | | </if> |
| | | <if test="expireTime != null" > |
| | | expire_time, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="name != null" > |
| | | #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="code != null" > |
| | | #{code,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="beginTime != null" > |
| | | #{beginTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="endTime != null" > |
| | | #{endTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="expireTime != null" > |
| | | #{expireTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ActivityFee" > |
| | | update activity_fee |
| | | <set > |
| | | <if test="orgId != null" > |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgCode != null" > |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="name != null" > |
| | | name = #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="code != null" > |
| | | code = #{code,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="beginTime != null" > |
| | | begin_time = #{beginTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="endTime != null" > |
| | | end_time = #{endTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="expireTime != null" > |
| | | expire_time = #{expireTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ActivityFee" > |
| | | update activity_fee |
| | | set |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | name = #{name,jdbcType=VARCHAR}, |
| | | code = #{code,jdbcType=VARCHAR}, |
| | | begin_time = #{beginTime,jdbcType=TIMESTAMP}, |
| | | end_time = #{endTime,jdbcType=TIMESTAMP}, |
| | | expire_time = #{expireTime,jdbcType=TIMESTAMP}, |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | status = #{status,jdbcType=INTEGER}, |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityShopRecordMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.ActivityShopRecord" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="activity_id" property="activityId" jdbcType="BIGINT" /> |
| | | <result column="merchant_shop_id" property="merchantShopId" jdbcType="BIGINT" /> |
| | | <result column="channel_id" property="channelId" jdbcType="BIGINT" /> |
| | | <result column="channel_name" property="channelName" jdbcType="VARCHAR" /> |
| | | <result column="total_fee" property="totalFee" jdbcType="BIGINT" /> |
| | | <result column="third_shop_no" property="thirdShopNo" jdbcType="VARCHAR" /> |
| | | <result column="use_fee" property="useFee" jdbcType="BIGINT" /> |
| | | <result column="surplus_fee" property="surplusFee" jdbcType="BIGINT" /> |
| | | <result column="status" property="status" jdbcType="INTEGER" /> |
| | | <result column="deleted" property="deleted" jdbcType="INTEGER" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, activity_id, merchant_shop_id, channel_id, channel_name, total_fee, third_shop_no, use_fee, surplus_fee, status, deleted, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from activity_shop_record |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | update activity_shop_record set deleted = 1 |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.ActivityShopRecord" > |
| | | insert into activity_shop_record ( |
| | | id, |
| | | activity_id, |
| | | merchant_shop_id, |
| | | channel_id, |
| | | channel_name, |
| | | total_fee, |
| | | third_shop_no, |
| | | use_fee, |
| | | surplus_fee, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{activityId,jdbcType=BIGINT}, |
| | | #{merchantShopId,jdbcType=BIGINT}, |
| | | #{channelId,jdbcType=BIGINT}, |
| | | #{channelName,jdbcType=VARCHAR}, |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | #{thirdShopNo,jdbcType=VARCHAR}, |
| | | #{useFee,jdbcType=BIGINT}, |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | #{status,jdbcType=INTEGER}, |
| | | #{deleted,jdbcType=INTEGER}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.ActivityShopRecord" > |
| | | insert into activity_shop_record |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="activityId != null" > |
| | | activity_id, |
| | | </if> |
| | | <if test="merchantShopId != null" > |
| | | merchant_shop_id, |
| | | </if> |
| | | <if test="channelId != null" > |
| | | channel_id, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | channel_name, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee, |
| | | </if> |
| | | <if test="thirdShopNo != null" > |
| | | third_shop_no, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="activityId != null" > |
| | | #{activityId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="merchantShopId != null" > |
| | | #{merchantShopId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelId != null" > |
| | | #{channelId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | #{channelName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="thirdShopNo != null" > |
| | | #{thirdShopNo,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ActivityShopRecord" > |
| | | update activity_shop_record |
| | | <set > |
| | | <if test="activityId != null" > |
| | | activity_id = #{activityId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="merchantShopId != null" > |
| | | merchant_shop_id = #{merchantShopId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelId != null" > |
| | | channel_id = #{channelId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | channel_name = #{channelName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="totalFee != null" > |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="thirdShopNo != null" > |
| | | third_shop_no = #{thirdShopNo,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="useFee != null" > |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="surplusFee != null" > |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ActivityShopRecord" > |
| | | update activity_shop_record |
| | | set |
| | | activity_id = #{activityId,jdbcType=BIGINT}, |
| | | merchant_shop_id = #{merchantShopId,jdbcType=BIGINT}, |
| | | channel_id = #{channelId,jdbcType=BIGINT}, |
| | | channel_name = #{channelName,jdbcType=VARCHAR}, |
| | | total_fee = #{totalFee,jdbcType=BIGINT}, |
| | | third_shop_no = #{thirdShopNo,jdbcType=VARCHAR}, |
| | | use_fee = #{useFee,jdbcType=BIGINT}, |
| | | surplus_fee = #{surplusFee,jdbcType=BIGINT}, |
| | | status = #{status,jdbcType=INTEGER}, |
| | | deleted = #{deleted,jdbcType=INTEGER}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ChannelInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.ChannelInfo" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="channel_code" property="channelCode" jdbcType="VARCHAR" /> |
| | | <result column="channel_name" property="channelName" jdbcType="VARCHAR" /> |
| | | <result column="extend_json" property="extendJson" jdbcType="VARCHAR" /> |
| | | <result column="online_agree_wx_rate" property="onlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_zfb_rate" property="onlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_unionpay_rate" property="onlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_wx_rate" property="offlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_zfb_rate" property="offlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_unionpay_rate" property="offlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_wx_rate" property="onlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_zfb_rate" property="onlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_unionpay_rate" property="onlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_wx_rate" property="offlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_zfb_rate" property="offlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_unionpay_rate" property="offlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="certification" property="certification" jdbcType="VARCHAR" /> |
| | | <result column="status" property="status" jdbcType="INTEGER" /> |
| | | <result column="remark" property="remark" jdbcType="VARCHAR" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, channel_code, channel_name, extend_json, online_agree_wx_rate, online_agree_zfb_rate, online_agree_unionpay_rate, offline_agree_wx_rate, offline_agree_zfb_rate, offline_agree_unionpay_rate, online_mer_wx_rate, online_mer_zfb_rate, online_mer_unionpay_rate, offline_mer_wx_rate, offline_mer_zfb_rate, offline_mer_unionpay_rate, certification, status, remark, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from channel_info |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | delete from channel_info |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.ChannelInfo" > |
| | | insert into channel_info ( |
| | | id, |
| | | channel_code, |
| | | channel_name, |
| | | extend_json, |
| | | online_agree_wx_rate, |
| | | online_agree_zfb_rate, |
| | | online_agree_unionpay_rate, |
| | | offline_agree_wx_rate, |
| | | offline_agree_zfb_rate, |
| | | offline_agree_unionpay_rate, |
| | | online_mer_wx_rate, |
| | | online_mer_zfb_rate, |
| | | online_mer_unionpay_rate, |
| | | offline_mer_wx_rate, |
| | | offline_mer_zfb_rate, |
| | | offline_mer_unionpay_rate, |
| | | certification, |
| | | status, |
| | | remark, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{channelCode,jdbcType=VARCHAR}, |
| | | #{channelName,jdbcType=VARCHAR}, |
| | | #{extendJson,jdbcType=VARCHAR}, |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{certification,jdbcType=VARCHAR}, |
| | | #{status,jdbcType=INTEGER}, |
| | | #{remark,jdbcType=VARCHAR}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.ChannelInfo" > |
| | | insert into channel_info |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="channelCode != null" > |
| | | channel_code, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | channel_name, |
| | | </if> |
| | | <if test="extendJson != null" > |
| | | extend_json, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate, |
| | | </if> |
| | | <if test="certification != null" > |
| | | certification, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="remark != null" > |
| | | remark, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelCode != null" > |
| | | #{channelCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | #{channelName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="extendJson != null" > |
| | | #{extendJson,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="certification != null" > |
| | | #{certification,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="remark != null" > |
| | | #{remark,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ChannelInfo" > |
| | | update channel_info |
| | | <set > |
| | | <if test="channelCode != null" > |
| | | channel_code = #{channelCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="channelName != null" > |
| | | channel_name = #{channelName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="extendJson != null" > |
| | | extend_json = #{extendJson,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="certification != null" > |
| | | certification = #{certification,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="remark != null" > |
| | | remark = #{remark,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ChannelInfo" > |
| | | update channel_info |
| | | set |
| | | channel_code = #{channelCode,jdbcType=VARCHAR}, |
| | | channel_name = #{channelName,jdbcType=VARCHAR}, |
| | | extend_json = #{extendJson,jdbcType=VARCHAR}, |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | certification = #{certification,jdbcType=VARCHAR}, |
| | | status = #{status,jdbcType=INTEGER}, |
| | | remark = #{remark,jdbcType=VARCHAR}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ChannelOrgConfigMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.ChannelOrgConfig" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="org_id" property="orgId" jdbcType="BIGINT" /> |
| | | <result column="org_name" property="orgName" jdbcType="VARCHAR" /> |
| | | <result column="p_org_name" property="pOrgName" jdbcType="VARCHAR" /> |
| | | <result column="channel_info_id" property="channelInfoId" jdbcType="BIGINT" /> |
| | | <result column="default_or_not" property="defaultOrNot" jdbcType="INTEGER" /> |
| | | <result column="status" property="status" jdbcType="INTEGER" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, org_id, org_name, p_org_name, channel_info_id, default_or_not, status, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from channel_org_config |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | delete from channel_org_config |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.ChannelOrgConfig" > |
| | | insert into channel_org_config ( |
| | | id, |
| | | org_id, |
| | | org_name, |
| | | p_org_name, |
| | | channel_info_id, |
| | | default_or_not, |
| | | status, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{orgId,jdbcType=BIGINT}, |
| | | #{orgName,jdbcType=VARCHAR}, |
| | | #{pOrgName,jdbcType=VARCHAR}, |
| | | #{channelInfoId,jdbcType=BIGINT}, |
| | | #{defaultOrNot,jdbcType=INTEGER}, |
| | | #{status,jdbcType=INTEGER}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.ChannelOrgConfig" > |
| | | insert into channel_org_config |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | org_id, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | org_name, |
| | | </if> |
| | | <if test="pOrgName != null" > |
| | | p_org_name, |
| | | </if> |
| | | <if test="channelInfoId != null" > |
| | | channel_info_id, |
| | | </if> |
| | | <if test="defaultOrNot != null" > |
| | | default_or_not, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgId != null" > |
| | | #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | #{orgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="pOrgName != null" > |
| | | #{pOrgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="channelInfoId != null" > |
| | | #{channelInfoId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="defaultOrNot != null" > |
| | | #{defaultOrNot,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ChannelOrgConfig" > |
| | | update channel_org_config |
| | | <set > |
| | | <if test="orgId != null" > |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="orgName != null" > |
| | | org_name = #{orgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="pOrgName != null" > |
| | | p_org_name = #{pOrgName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="channelInfoId != null" > |
| | | channel_info_id = #{channelInfoId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="defaultOrNot != null" > |
| | | default_or_not = #{defaultOrNot,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ChannelOrgConfig" > |
| | | update channel_org_config |
| | | set |
| | | org_id = #{orgId,jdbcType=BIGINT}, |
| | | org_name = #{orgName,jdbcType=VARCHAR}, |
| | | p_org_name = #{pOrgName,jdbcType=VARCHAR}, |
| | | channel_info_id = #{channelInfoId,jdbcType=BIGINT}, |
| | | default_or_not = #{defaultOrNot,jdbcType=INTEGER}, |
| | | status = #{status,jdbcType=INTEGER}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.SpecialFeeRateMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.SpecialFeeRate" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="channel_id" property="channelId" jdbcType="BIGINT" /> |
| | | <result column="industry_manage_id" property="industryManageId" jdbcType="BIGINT" /> |
| | | <result column="industry_code" property="industryCode" jdbcType="VARCHAR" /> |
| | | <result column="online_agree_wx_rate" property="onlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_zfb_rate" property="onlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_agree_unionpay_rate" property="onlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_wx_rate" property="offlineAgreeWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_zfb_rate" property="offlineAgreeZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_agree_unionpay_rate" property="offlineAgreeUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_wx_rate" property="onlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_zfb_rate" property="onlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="online_mer_unionpay_rate" property="onlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_wx_rate" property="offlineMerWxRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_zfb_rate" property="offlineMerZfbRate" jdbcType="DECIMAL" /> |
| | | <result column="offline_mer_unionpay_rate" property="offlineMerUnionpayRate" jdbcType="DECIMAL" /> |
| | | <result column="industry_name" property="industryName" jdbcType="VARCHAR" /> |
| | | <result column="status" property="status" jdbcType="SMALLINT" /> |
| | | <result column="deleted" property="deleted" jdbcType="SMALLINT" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, channel_id, industry_manage_id, industry_code, online_agree_wx_rate, online_agree_zfb_rate, online_agree_unionpay_rate, offline_agree_wx_rate, offline_agree_zfb_rate, offline_agree_unionpay_rate, online_mer_wx_rate, online_mer_zfb_rate, online_mer_unionpay_rate, offline_mer_wx_rate, offline_mer_zfb_rate, offline_mer_unionpay_rate, industry_name, status, deleted, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from special_fee_rate |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | update special_fee_rate set deleted = 1 |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.SpecialFeeRate" > |
| | | insert into special_fee_rate ( |
| | | id, |
| | | channel_id, |
| | | industry_manage_id, |
| | | industry_code, |
| | | online_agree_wx_rate, |
| | | online_agree_zfb_rate, |
| | | online_agree_unionpay_rate, |
| | | offline_agree_wx_rate, |
| | | offline_agree_zfb_rate, |
| | | offline_agree_unionpay_rate, |
| | | online_mer_wx_rate, |
| | | online_mer_zfb_rate, |
| | | online_mer_unionpay_rate, |
| | | offline_mer_wx_rate, |
| | | offline_mer_zfb_rate, |
| | | offline_mer_unionpay_rate, |
| | | industry_name, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{channelId,jdbcType=BIGINT}, |
| | | #{industryManageId,jdbcType=BIGINT}, |
| | | #{industryCode,jdbcType=VARCHAR}, |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | #{industryName,jdbcType=VARCHAR}, |
| | | #{status,jdbcType=SMALLINT}, |
| | | #{deleted,jdbcType=SMALLINT}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.SpecialFeeRate" > |
| | | insert into special_fee_rate |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="channelId != null" > |
| | | channel_id, |
| | | </if> |
| | | <if test="industryManageId != null" > |
| | | industry_manage_id, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | industry_code, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | industry_name, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="channelId != null" > |
| | | #{channelId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryManageId != null" > |
| | | #{industryManageId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | #{industryCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | #{industryName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | #{deleted,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.SpecialFeeRate" > |
| | | update special_fee_rate |
| | | <set > |
| | | <if test="channelId != null" > |
| | | channel_id = #{channelId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryManageId != null" > |
| | | industry_manage_id = #{industryManageId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | industry_code = #{industryCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="onlineAgreeWxRate != null" > |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeZfbRate != null" > |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate != null" > |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeWxRate != null" > |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeZfbRate != null" > |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate != null" > |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerWxRate != null" > |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerZfbRate != null" > |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="onlineMerUnionpayRate != null" > |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerWxRate != null" > |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerZfbRate != null" > |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="offlineMerUnionpayRate != null" > |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | industry_name = #{industryName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted = #{deleted,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.SpecialFeeRate" > |
| | | update special_fee_rate |
| | | set |
| | | channel_id = #{channelId,jdbcType=BIGINT}, |
| | | industry_manage_id = #{industryManageId,jdbcType=BIGINT}, |
| | | industry_code = #{industryCode,jdbcType=VARCHAR}, |
| | | online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL}, |
| | | offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL}, |
| | | offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL}, |
| | | online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL}, |
| | | online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL}, |
| | | online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL}, |
| | | offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL}, |
| | | offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL}, |
| | | industry_name = #{industryName,jdbcType=VARCHAR}, |
| | | status = #{status,jdbcType=SMALLINT}, |
| | | deleted = #{deleted,jdbcType=SMALLINT}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.StoreIndustryManageMapper" > |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.StoreIndustryManage" > |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="p_id" property="pId" jdbcType="BIGINT" /> |
| | | <result column="industry_name" property="industryName" jdbcType="VARCHAR" /> |
| | | <result column="industry_code" property="industryCode" jdbcType="VARCHAR" /> |
| | | <result column="sort_no" property="sortNo" jdbcType="INTEGER" /> |
| | | <result column="is_special" property="isSpecial" jdbcType="SMALLINT" /> |
| | | <result column="level" property="level" jdbcType="INTEGER" /> |
| | | <result column="status" property="status" jdbcType="SMALLINT" /> |
| | | <result column="deleted" property="deleted" jdbcType="SMALLINT" /> |
| | | <result column="create_by" property="createBy" jdbcType="BIGINT" /> |
| | | <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="update_by" property="updateBy" jdbcType="BIGINT" /> |
| | | <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | id, p_id, industry_name, industry_code, sort_no, is_special, level, status, deleted, create_by, create_time, update_by, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from store_industry_manage |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > |
| | | update store_industry_manage set deleted = 1 |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.StoreIndustryManage" > |
| | | insert into store_industry_manage ( |
| | | id, |
| | | p_id, |
| | | industry_name, |
| | | industry_code, |
| | | sort_no, |
| | | is_special, |
| | | level, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | ) |
| | | values ( |
| | | #{id,jdbcType=BIGINT}, |
| | | #{pId,jdbcType=BIGINT}, |
| | | #{industryName,jdbcType=VARCHAR}, |
| | | #{industryCode,jdbcType=VARCHAR}, |
| | | #{sortNo,jdbcType=INTEGER}, |
| | | #{isSpecial,jdbcType=SMALLINT}, |
| | | #{level,jdbcType=INTEGER}, |
| | | #{status,jdbcType=SMALLINT}, |
| | | #{deleted,jdbcType=SMALLINT}, |
| | | #{createBy,jdbcType=BIGINT}, |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | #{updateTime,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.StoreIndustryManage" > |
| | | insert into store_industry_manage |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="pId != null" > |
| | | p_id, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | industry_name, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | industry_code, |
| | | </if> |
| | | <if test="sortNo != null" > |
| | | sort_no, |
| | | </if> |
| | | <if test="isSpecial != null" > |
| | | is_special, |
| | | </if> |
| | | <if test="level != null" > |
| | | level, |
| | | </if> |
| | | <if test="status != null" > |
| | | status, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="pId != null" > |
| | | #{pId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | #{industryName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | #{industryCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="sortNo != null" > |
| | | #{sortNo,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="isSpecial != null" > |
| | | #{isSpecial,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="level != null" > |
| | | #{level,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="status != null" > |
| | | #{status,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | #{deleted,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.StoreIndustryManage" > |
| | | update store_industry_manage |
| | | <set > |
| | | <if test="pId != null" > |
| | | p_id = #{pId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="industryName != null" > |
| | | industry_name = #{industryName,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="industryCode != null" > |
| | | industry_code = #{industryCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="sortNo != null" > |
| | | sort_no = #{sortNo,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="isSpecial != null" > |
| | | is_special = #{isSpecial,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="level != null" > |
| | | level = #{level,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="status != null" > |
| | | status = #{status,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="deleted != null" > |
| | | deleted = #{deleted,jdbcType=SMALLINT}, |
| | | </if> |
| | | <if test="createBy != null" > |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="createTime != null" > |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="updateBy != null" > |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="updateTime != null" > |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.StoreIndustryManage" > |
| | | update store_industry_manage |
| | | set |
| | | p_id = #{pId,jdbcType=BIGINT}, |
| | | industry_name = #{industryName,jdbcType=VARCHAR}, |
| | | industry_code = #{industryCode,jdbcType=VARCHAR}, |
| | | sort_no = #{sortNo,jdbcType=INTEGER}, |
| | | is_special = #{isSpecial,jdbcType=SMALLINT}, |
| | | level = #{level,jdbcType=INTEGER}, |
| | | status = #{status,jdbcType=SMALLINT}, |
| | | deleted = #{deleted,jdbcType=SMALLINT}, |
| | | create_by = #{createBy,jdbcType=BIGINT}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | update_by = #{updateBy,jdbcType=BIGINT}, |
| | | update_time = #{updateTime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="selectAll" parameterType="map" resultMap="BaseResultMap"> |
| | | select <include refid="Base_Column_List" /> from store_industry_manage |
| | | <where> |
| | | deleted = 0 |
| | | <choose> |
| | | <when test="pId != null"> |
| | | and p_id = #{pId} |
| | | </when> |
| | | <otherwise> |
| | | <if test="id != null"> |
| | | and id = #{id} |
| | | </if> |
| | | </otherwise> |
| | | </choose> |
| | | <if test="industryName != null and industryName != '' "> |
| | | and industry_name like CONCAT('%',#{industryName},'%') |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status = #{status} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.SysOrgMapper"> |
| | | <resultMap id="BaseResultMap" type="com.nuvole.four.domain.SysOrg"> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="name" jdbcType="VARCHAR" property="name" /> |
| | | <result column="org_code" jdbcType="VARCHAR" property="orgCode" /> |
| | | <result column="user_org_code" jdbcType="VARCHAR" property="userOrgCode" /> |
| | | <result column="pid" jdbcType="BIGINT" property="pid" /> |
| | | <result column="lv" jdbcType="INTEGER" property="lv" /> |
| | | <result column="sort_no" jdbcType="INTEGER" property="sortNo" /> |
| | | <result column="state" jdbcType="INTEGER" property="state" /> |
| | | <result column="note" jdbcType="VARCHAR" property="note" /> |
| | | <result column="lon" jdbcType="VARCHAR" property="lon" /> |
| | | <result column="lat" jdbcType="VARCHAR" property="lat" /> |
| | | <result column="phone" jdbcType="VARCHAR" property="phone" /> |
| | | <result column="open_time" jdbcType="VARCHAR" property="openTime" /> |
| | | <result column="address" jdbcType="VARCHAR" property="address" /> |
| | | </resultMap> |
| | | <resultMap id="xqMap" type="HashMap"> |
| | | <result column="id" property="key" jdbcType="BIGINT"/> |
| | | <result column="name" property="value" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | id, name, org_code, user_org_code, pid, lv, sort_no, state, note, lon, lat,phone,open_time, address |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from sys_org |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | delete from sys_org |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.nuvole.four.domain.SysOrg"> |
| | | insert into sys_org (id, name, org_code, |
| | | user_org_code, pid, lv, |
| | | sort_no, state, note, |
| | | lon, lat,phone,open_time, address) |
| | | values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, |
| | | #{userOrgCode,jdbcType=VARCHAR}, #{pid,jdbcType=BIGINT}, #{lv,jdbcType=INTEGER}, |
| | | #{sortNo,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, |
| | | #{lon,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{openTime,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.nuvole.four.domain.SysOrg"> |
| | | insert into sys_org |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="name != null"> |
| | | name, |
| | | </if> |
| | | <if test="orgCode != null"> |
| | | org_code, |
| | | </if> |
| | | <if test="userOrgCode != null"> |
| | | user_org_code, |
| | | </if> |
| | | <if test="pid != null"> |
| | | pid, |
| | | </if> |
| | | <if test="lv != null"> |
| | | lv, |
| | | </if> |
| | | <if test="sortNo != null"> |
| | | sort_no, |
| | | </if> |
| | | <if test="state != null"> |
| | | state, |
| | | </if> |
| | | <if test="note != null"> |
| | | note, |
| | | </if> |
| | | <if test="lon != null"> |
| | | lon, |
| | | </if> |
| | | <if test="lat != null"> |
| | | lat, |
| | | </if> |
| | | <if test="phone != null"> |
| | | phone, |
| | | </if> |
| | | <if test="openTime != null"> |
| | | open_time, |
| | | </if> |
| | | <if test="address != null"> |
| | | address, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="name != null"> |
| | | #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="orgCode != null"> |
| | | #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="userOrgCode != null"> |
| | | #{userOrgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="pid != null"> |
| | | #{pid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv != null"> |
| | | #{lv,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="sortNo != null"> |
| | | #{sortNo,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="state != null"> |
| | | #{state,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="note != null"> |
| | | #{note,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="lon != null"> |
| | | #{lon,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="lat != null"> |
| | | #{lat,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="phone != null"> |
| | | #{phone,jdbcType=VARCHAR}, |
| | | </if> <if test="openTime != null"> |
| | | #{openTime,jdbcType=VARCHAR}, |
| | | </if> <if test="address != null"> |
| | | #{address,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.SysOrg"> |
| | | update sys_org |
| | | <set> |
| | | <if test="name != null"> |
| | | name = #{name,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="orgCode != null"> |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="userOrgCode != null"> |
| | | user_org_code = #{userOrgCode,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="pid != null"> |
| | | pid = #{pid,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="lv != null"> |
| | | lv = #{lv,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="sortNo != null"> |
| | | sort_no = #{sortNo,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="state != null"> |
| | | state = #{state,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="note != null"> |
| | | note = #{note,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="lon != null"> |
| | | lon = #{lon,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="lat != null"> |
| | | lat = #{lat,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="phone != null"> |
| | | phone = #{phone,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="openTime != null"> |
| | | open_time = #{openTime,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="address != null"> |
| | | address = #{address,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.SysOrg"> |
| | | update sys_org |
| | | set name = #{name,jdbcType=VARCHAR}, |
| | | org_code = #{orgCode,jdbcType=VARCHAR}, |
| | | user_org_code = #{userOrgCode,jdbcType=VARCHAR}, |
| | | pid = #{pid,jdbcType=BIGINT}, |
| | | lv = #{lv,jdbcType=INTEGER}, |
| | | sort_no = #{sortNo,jdbcType=INTEGER}, |
| | | state = #{state,jdbcType=INTEGER}, |
| | | note = #{note,jdbcType=VARCHAR}, |
| | | lon = #{lon,jdbcType=VARCHAR}, |
| | | lat = #{lat,jdbcType=VARCHAR}, |
| | | phone = #{phone,jdbcType=VARCHAR}, |
| | | open_time = #{openTime,jdbcType=VARCHAR}, |
| | | address = #{address,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectAll" parameterType="map" resultMap="BaseResultMap"> |
| | | select <include refid="Base_Column_List" /> from sys_org |
| | | <where> |
| | | <choose> |
| | | <when test="pid != null"> |
| | | and pid = #{pid} |
| | | </when> |
| | | <otherwise> |
| | | <if test="id != null"> |
| | | and id = #{id} |
| | | </if> |
| | | </otherwise> |
| | | </choose> |
| | | <if test="name!=null and name!=''"> |
| | | and name like CONCAT('%',#{name},'%') |
| | | </if> |
| | | <if test="userOrgCode!=null and userOrgCode!=''"> |
| | | and user_org_code like CONCAT(CONCAT('%',#{userOrgCode},'%')) |
| | | </if> |
| | | <if test="state!=null"> |
| | | and state = #{state} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectAllOfMap" parameterType="map" resultType="map"> |
| | | select <include refid="Base_Column_List" /> from sys_org |
| | | </select> |
| | | |
| | | |
| | | <select id="getOrgByCode" parameterType="string" resultMap="BaseResultMap"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from sys_org |
| | | where org_code=#{code} |
| | | </select> |
| | | <select id="getBranchByOrgCode" resultType="map"> |
| | | select (SELECT COUNT(u.id) from sys_user u where u.org_id = org.id |
| | | <if test="userType != null"> |
| | | and user_type = #{userType} |
| | | </if> |
| | | ) managerNum, |
| | | org.id as id, |
| | | org.name as name, |
| | | org.org_code as orgCode, |
| | | org.user_org_code as userOrgCode, |
| | | org.pid as pid, |
| | | org.lv as lv, |
| | | org.sort_no as sortNo, |
| | | org.state as state, |
| | | org.note as note, |
| | | org.lon as lon, |
| | | org.lat as lat, |
| | | org.phone as phone, |
| | | org.open_time as openTime, |
| | | org.address as address |
| | | from sys_org org |
| | | LEFT JOIN sys_org o2 on o2.id = org.pid |
| | | LEFT JOIN sys_org o1 on o1.id = o2.pid |
| | | where org.lv=3 |
| | | <if test="code !=null and code !=''"> |
| | | and org.org_code like CONCAT( #{code},'%') |
| | | </if> |
| | | <if test="keyText !=null and keyText !=''"> |
| | | and ( |
| | | org.address like concat('%',#{keyText},'%') |
| | | or org.`name` like concat('%',#{keyText},'%') |
| | | or o1.`name` like concat('%',#{keyText},'%') |
| | | or o2.`name` like concat('%',#{keyText},'%') |
| | | ) |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectOrgByCode" parameterType="string" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sys_org where user_org_code = #{code} |
| | | </select> |
| | | |
| | | <insert id="batchImportOrg" parameterType="list"> |
| | | insert into sys_org |
| | | (id,name,org_code,user_org_code,pid,lv,sort_no,state,note) |
| | | values |
| | | <foreach collection="list" index="i" item="n" separator=","> |
| | | ( |
| | | #{n.id}, |
| | | #{n.name}, |
| | | #{n.orgCode}, |
| | | #{n.userOrgCode}, |
| | | #{n.pid}, |
| | | #{n.lv}, |
| | | #{n.sortNo}, |
| | | #{n.state}, |
| | | #{n.note} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | | <select id="getListForRoleUser" parameterType="map" resultMap="BaseResultMap"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from sys_org |
| | | |
| | | <where> |
| | | and state = 1 |
| | | <choose> |
| | | <when test="pid != null"> |
| | | and pid = #{pid} |
| | | </when> |
| | | <otherwise> |
| | | and id = #{orgId} |
| | | </otherwise> |
| | | </choose> |
| | | </where> |
| | | </select> |
| | | <!-- æ¤æ¹æ³ä¸ºæºæçº§èéæ©æå
¬ç¨æ¹æ³,æ
éä¿®æ¹ --> |
| | | <select id="getOrgForSelector" parameterType="long" resultMap="BaseResultMap"> |
| | | select <include refid="Base_Column_List"/> |
| | | from sys_org |
| | | <where> |
| | | and state = 1 |
| | | <if test="pid != null"> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="rootId != null"> |
| | | and id = #{rootId} |
| | | </if> |
| | | <if test="pid == null and rootId==null"> |
| | | and pid = 0 |
| | | </if> |
| | | </where> |
| | | order by sort_no |
| | | </select> |
| | | |
| | | <select id="getByOrgCode" parameterType="com.nuvole.four.domain.SysOrg" resultType="integer"> |
| | | select count(id) from sys_org |
| | | <where> |
| | | <if test="userOrgCode != null"> |
| | | and user_org_code = #{userOrgCode} |
| | | </if> |
| | | <if test="id != null"> |
| | | and id != #{id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityDistributeRecordMapper" > |
| | | <select id="selectList" parameterType="com.nuvole.four.domain.query.ActivityDistributeRecordQuery" resultType="com.nuvole.four.domain.ActivityDistributeRecord"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from activity_distribute_record |
| | | <where> |
| | | <if test="orgId!=null"> |
| | | and org_id =#{orgId} |
| | | </if> |
| | | <if test="orgName!=null and orgName!=''"> |
| | | and org_name like concat('%',#{orgName},'%') |
| | | </if> |
| | | <if test="totalFee!=null"> |
| | | and total_fee =#{totalFee} |
| | | </if> |
| | | <if test="useFee!=null"> |
| | | and use_fee =#{useFee} |
| | | </if> |
| | | <if test="surplusFee!=null"> |
| | | and surplus_fee =#{surplusFee} |
| | | </if> |
| | | <if test="lv1Id!=null"> |
| | | and lv1_id =#{lv1Id} |
| | | </if> |
| | | <if test="lv2Id!=null"> |
| | | and lv2_id =#{lv2Id} |
| | | </if> |
| | | <if test="lv3Id!=null"> |
| | | and lv3_id =#{lv3Id} |
| | | </if> |
| | | <if test="lv4Id!=null"> |
| | | and lv4_id =#{lv4Id} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status =#{status} |
| | | </if> |
| | | <if test="deleted!=null"> |
| | | and deleted =#{deleted} |
| | | </if> |
| | | <if test="createBy!=null"> |
| | | and create_by =#{createBy} |
| | | </if> |
| | | <if test="createTime!=null"> |
| | | and create_time =#{createTime} |
| | | </if> |
| | | <if test="updateBy!=null"> |
| | | and update_by =#{updateBy} |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | and update_time =#{updateTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getActivityDistributeRecordDetail" parameterType="java.lang.Long" |
| | | resultType="com.nuvole.four.domain.dto.ActivityDistributeBudgetDto"> |
| | | SELECT |
| | | adr.id, |
| | | adr.total_fee totalFee, |
| | | adr.surplus_fee surplusFee, |
| | | so.id orgId, |
| | | so.NAME orgName, |
| | | so.org_code orgCode, |
| | | so.pid pId, |
| | | so.lv orgLv, |
| | | IFNULL( adr.use_fee, 0 ) useFee, |
| | | if( adr.id is null, 0, 1) useOrNot |
| | | FROM |
| | | sys_org so |
| | | LEFT JOIN activity_distribute_record adr ON adr.org_id = so.id |
| | | AND adr.deleted = 0 and adr.activity_id = #{activityId} |
| | | <where> |
| | | <if test="orgId != null"> |
| | | and so.pid = #{orgId} |
| | | </if> |
| | | </where> |
| | | GROUP BY |
| | | so.id |
| | | ORDER BY |
| | | sort_no |
| | | </select> |
| | | |
| | | |
| | | <select id="getActivityDistributeRecordDetailByAId" parameterType="java.lang.Long" |
| | | resultType="com.nuvole.four.domain.dto.ActivityDistributeBudgetDto"> |
| | | SELECT |
| | | adr.id, |
| | | adr.total_fee totalFee, |
| | | adr.surplus_fee surplusFee, |
| | | so.id orgId, |
| | | so.NAME orgName, |
| | | so.org_code orgCode, |
| | | so.pid pId, |
| | | so.lv orgLv, |
| | | IFNULL( adr.use_fee, 0 ) useFee |
| | | FROM |
| | | sys_org so |
| | | JOIN activity_distribute_record adr ON adr.org_id = so.id |
| | | AND adr.deleted = 0 and adr.activity_id = #{activityId} |
| | | <where> |
| | | AND adr.deleted = 0 |
| | | <if test="activityId != null"> |
| | | and adr.activity_id = #{activityId} |
| | | </if> |
| | | <if test="orgCode!=null and orgCode!=''"> |
| | | and adr.org_code like concat(#{orgCode}, '%') |
| | | </if> |
| | | </where> |
| | | GROUP BY |
| | | so.id |
| | | ORDER BY |
| | | sort_no |
| | | </select> |
| | | |
| | | <select id="selectAllByActivityIds" resultType="com.nuvole.four.domain.ActivityDistributeRecord"> |
| | | select * from activity_distribute_record |
| | | <where> |
| | | and deleted = 0 |
| | | <if test="ids != null"> |
| | | and activity_id = in |
| | | <foreach collection="ids" open="(" separator="," item="item" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <insert id="batchInsertOrUpdate" parameterType="list"> |
| | | insert into activity_distribute_record |
| | | (id,org_id,org_name,org_code,activity_id,total_fee,use_fee,surplus_fee,lv1_id,lv2_id,lv3_id,lv4_id,status,deleted,create_by,create_time,update_by,update_time) |
| | | values |
| | | <foreach collection="list" item="i" separator=","> |
| | | ( |
| | | #{i.id}, |
| | | #{i.orgId}, |
| | | #{i.orgName}, |
| | | #{i.orgCode}, |
| | | #{i.activityId}, |
| | | #{i.totalFee}, |
| | | #{i.useFee}, |
| | | #{i.surplusFee}, |
| | | #{i.lv1Id}, |
| | | #{i.lv2Id}, |
| | | #{i.lv3Id}, |
| | | #{i.lv4Id}, |
| | | #{i.status}, |
| | | #{i.deleted}, |
| | | #{i.createBy}, |
| | | #{i.createTime}, |
| | | #{i.updateBy}, |
| | | #{i.updateTime} |
| | | ) |
| | | </foreach> |
| | | ON duplicate KEY UPDATE |
| | | use_fee = values(use_fee), |
| | | deleted = values(deleted), |
| | | update_by = values(update_by), |
| | | update_time = values(update_time) |
| | | </insert> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityFeeMapper" > |
| | | <select id="selectList" parameterType="com.nuvole.four.domain.query.ActivityFeeQuery" resultType="com.nuvole.four.domain.ActivityFee"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from activity_fee |
| | | <where> |
| | | deleted = 0 |
| | | <if test="orgId!=null"> |
| | | and org_id =#{orgId} |
| | | </if> |
| | | <if test="orgCode!=null and orgCode!=''"> |
| | | and org_code like concat(#{orgCode}, '%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and name like concat('%',#{name},'%') |
| | | </if> |
| | | <if test="code!=null and code!=''"> |
| | | and code like concat('%',#{code},'%') |
| | | </if> |
| | | <if test="beginTime!=null"> |
| | | and begin_time =#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null"> |
| | | and end_time =#{endTime} |
| | | </if> |
| | | <if test="expireTime!=null"> |
| | | and expire_time =#{expireTime} |
| | | </if> |
| | | <if test="totalFee!=null"> |
| | | and total_fee =#{totalFee} |
| | | </if> |
| | | <if test="useFee!=null"> |
| | | and use_fee =#{useFee} |
| | | </if> |
| | | <if test="surplusFee!=null"> |
| | | and surplus_fee =#{surplusFee} |
| | | </if> |
| | | <if test="onlineAgreeWxRate!=null"> |
| | | and online_agree_wx_rate =#{onlineAgreeWxRate} |
| | | </if> |
| | | <if test="onlineAgreeZfbRate!=null"> |
| | | and online_agree_zfb_rate =#{onlineAgreeZfbRate} |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate!=null"> |
| | | and online_agree_unionpay_rate =#{onlineAgreeUnionpayRate} |
| | | </if> |
| | | <if test="offlineAgreeWxRate!=null"> |
| | | and offline_agree_wx_rate =#{offlineAgreeWxRate} |
| | | </if> |
| | | <if test="offlineAgreeZfbRate!=null"> |
| | | and offline_agree_zfb_rate =#{offlineAgreeZfbRate} |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate!=null"> |
| | | and offline_agree_unionpay_rate =#{offlineAgreeUnionpayRate} |
| | | </if> |
| | | <if test="onlineMerWxRate!=null"> |
| | | and online_mer_wx_rate =#{onlineMerWxRate} |
| | | </if> |
| | | <if test="onlineMerZfbRate!=null"> |
| | | and online_mer_zfb_rate =#{onlineMerZfbRate} |
| | | </if> |
| | | <if test="onlineMerUnionpayRate!=null"> |
| | | and online_mer_unionpay_rate =#{onlineMerUnionpayRate} |
| | | </if> |
| | | <if test="offlineMerWxRate!=null"> |
| | | and offline_mer_wx_rate =#{offlineMerWxRate} |
| | | </if> |
| | | <if test="offlineMerZfbRate!=null"> |
| | | and offline_mer_zfb_rate =#{offlineMerZfbRate} |
| | | </if> |
| | | <if test="offlineMerUnionpayRate!=null"> |
| | | and offline_mer_unionpay_rate =#{offlineMerUnionpayRate} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status =#{status} |
| | | </if> |
| | | <if test="deleted!=null"> |
| | | and deleted =#{deleted} |
| | | </if> |
| | | <if test="createBy!=null"> |
| | | and create_by =#{createBy} |
| | | </if> |
| | | <if test="createTime!=null"> |
| | | and create_time =#{createTime} |
| | | </if> |
| | | <if test="updateBy!=null"> |
| | | and update_by =#{updateBy} |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | and update_time =#{updateTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectActivityWithDistribute" parameterType="com.nuvole.four.domain.query.ActivityFeeQuery" resultType="com.nuvole.four.domain.ActivityFee"> |
| | | SELECT |
| | | af.id , |
| | | adr.org_id, |
| | | adr.org_code, |
| | | af.`name`, |
| | | af.code, |
| | | af.begin_time, |
| | | af.end_time, |
| | | af.expire_time, |
| | | af.offline_mer_wx_rate, |
| | | af.offline_mer_zfb_rate, |
| | | af.offline_mer_unionpay_rate, |
| | | af.`status`, |
| | | af.create_time, |
| | | af.create_by |
| | | FROM |
| | | activity_fee af |
| | | JOIN activity_distribute_record adr ON adr.activity_id = af.id |
| | | and af.deleted = 0 |
| | | <where> |
| | | <if test="orgId != null"> |
| | | and adr.org_id = #{orgId} |
| | | </if> |
| | | <if test="orgCode!=null and orgCode!=''"> |
| | | and adr.org_code like concat(#{orgCode}, '%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and af.name like concat('%',#{name},'%') |
| | | </if> |
| | | <if test="code!=null and code!=''"> |
| | | and af.code like concat('%',#{code},'%') |
| | | </if> |
| | | <if test="beginTime!=null"> |
| | | and af.begin_time =#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null"> |
| | | and af.end_time =#{endTime} |
| | | </if> |
| | | <if test="expireTime!=null"> |
| | | and af.expire_time =#{expireTime} |
| | | </if> |
| | | </where> |
| | | UNION |
| | | SELECT |
| | | af.id, |
| | | '', |
| | | '', |
| | | af.`name`, |
| | | af.CODE, |
| | | af.begin_time, |
| | | af.end_time, |
| | | af.expire_time, |
| | | af.offline_mer_wx_rate, |
| | | af.offline_mer_zfb_rate, |
| | | af.offline_mer_unionpay_rate, |
| | | af.`status`, |
| | | af.create_time, |
| | | af.create_by |
| | | FROM |
| | | activity_fee af |
| | | WHERE |
| | | af.deleted = 0 |
| | | AND af.create_by = #{createBy} |
| | | |
| | | </select> |
| | | |
| | | <select id="getActivityFeeDetail" resultType="com.nuvole.four.domain.dto.ActivityDistributeBudgetDto"> |
| | | SELECT |
| | | adr.id, |
| | | af.total_fee totalFee, |
| | | af.surplus_fee surplusFee, |
| | | so.id orgId, |
| | | so.NAME orgName, |
| | | so.org_code orgCode, |
| | | so.lv orgLv, |
| | | so.pid pId, |
| | | IFNULL( af.use_fee, 0 ) useFee, |
| | | if( adr.id is null, 0, 1) useOrNot |
| | | FROM |
| | | sys_org so |
| | | LEFT JOIN activity_distribute_record adr ON adr.org_id = so.id AND adr.deleted = 0 |
| | | left join activity_fee af on af.id = adr.activity_id and af.deleted = 0 |
| | | where so.pid = #{orgId} |
| | | GROUP BY |
| | | so.id |
| | | ORDER BY |
| | | sort_no |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ActivityShopRecordMapper" > |
| | | <select id="selectList" parameterType="com.nuvole.four.domain.query.ActivityShopRecordQuery" resultType="com.nuvole.four.domain.ActivityShopRecord"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from activity_shop_record |
| | | <where> |
| | | deleted = 0 |
| | | <if test="activityId!=null"> |
| | | and activity_id =#{activityId} |
| | | </if> |
| | | <if test="merchantShopId!=null"> |
| | | and merchant_shop_id =#{merchantShopId} |
| | | </if> |
| | | <if test="channelId!=null"> |
| | | and channel_id =#{channelId} |
| | | </if> |
| | | <if test="channelName!=null and channelName!=''"> |
| | | and channel_name like concat('%',#{channelName},'%') |
| | | </if> |
| | | <if test="totalFee!=null"> |
| | | and total_fee =#{totalFee} |
| | | </if> |
| | | <if test="thirdShopNo!=null and thirdShopNo!=''"> |
| | | and third_shop_no like concat('%',#{thirdShopNo},'%') |
| | | </if> |
| | | <if test="useFee!=null"> |
| | | and use_fee =#{useFee} |
| | | </if> |
| | | <if test="surplusFee!=null"> |
| | | and surplus_fee =#{surplusFee} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status =#{status} |
| | | </if> |
| | | <if test="deleted!=null"> |
| | | and deleted =#{deleted} |
| | | </if> |
| | | <if test="createBy!=null"> |
| | | and create_by =#{createBy} |
| | | </if> |
| | | <if test="createTime!=null"> |
| | | and create_time =#{createTime} |
| | | </if> |
| | | <if test="updateBy!=null"> |
| | | and update_by =#{updateBy} |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | and update_time =#{updateTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getActRateByShopId" resultType="map"> |
| | | SELECT |
| | | feeAct.online_mer_wx_rate onlineMerWxRate, |
| | | feeAct.online_mer_zfb_rate onlineMerZfbRate, |
| | | feeAct.online_mer_unionpay_rate onlineMerUnionpayRate , |
| | | feeAct.offline_mer_wx_rate offlineMerWxRate, |
| | | feeAct.offline_mer_zfb_rate offlineMerZfbRate, |
| | | feeAct.offline_mer_unionpay_rate offlineMerUnionpayRate, |
| | | shopRec.surplus_fee surplusFee, |
| | | shopRec.activity_id activityId, |
| | | shopRec.merchant_shop_id merchantShopId, |
| | | shopRec.channel_id channelId |
| | | FROM |
| | | activity_shop_record shopRec |
| | | LEFT JOIN activity_fee feeAct ON feeAct.id = shopRec.activity_id |
| | | <where> |
| | | NOW() BETWEEN feeAct.begin_time |
| | | AND feeAct.end_time |
| | | AND feeAct.`status` = 1 |
| | | AND feeAct.deleted = 0 |
| | | AND shopRec.deleted = 0 |
| | | AND shopRec.`status` = 1 |
| | | <if test="shopId != null"> |
| | | AND shopRec.merchant_shop_id = #{shopId} |
| | | </if> |
| | | <if test="channelId != null"> |
| | | AND shopRec.channel_id = #{channelId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="getAlreadyMerchantList" resultType="com.nuvole.four.domain.dto.ActivityShopRecordDto"> |
| | | select * from activity_shop_record |
| | | <where> |
| | | deleted = 0 and activity_id = #{activityId} |
| | | <if test="merchantId != null"> |
| | | and merchant_shop_id =#{merchantId} |
| | | </if> |
| | | <if test="channelId != null"> |
| | | and channel_id = #{channelId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectByCondition" resultType="com.nuvole.four.domain.ActivityShopRecord"> |
| | | select * from activity_shop_record |
| | | <where> |
| | | and deleted = 0 and activity_id = #{activityId} |
| | | <if test="ids != null"> |
| | | and merchant_shop_id in |
| | | <foreach collection="ids" item="item" index="index" |
| | | open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="updShopSurplusFee"> |
| | | UPDATE activity_shop_record |
| | | SET use_fee = IFNULL(use_fee,0) + #{useFee}, |
| | | surplus_fee = IFNULL(surplus_fee,total_fee) - #{useFee} |
| | | WHERE |
| | | activity_id = #{activityId} |
| | | AND merchant_shop_id = #{merchantShopId} |
| | | AND channel_id =#{channelId} |
| | | </update> |
| | | |
| | | <insert id="batchInsert" parameterType="list"> |
| | | insert into activity_shop_record |
| | | (id, |
| | | activity_id, |
| | | merchant_shop_id, |
| | | channel_id, |
| | | channel_name, |
| | | total_fee, |
| | | third_shop_no, |
| | | use_fee, |
| | | surplus_fee, |
| | | status, |
| | | deleted, |
| | | create_by, |
| | | create_time) |
| | | values |
| | | <foreach collection="list" item="i" separator=","> |
| | | ( |
| | | #{i.id}, |
| | | #{i.activityId}, |
| | | #{i.merchantShopId}, |
| | | #{i.channelId}, |
| | | #{i.channelName}, |
| | | #{i.totalFee}, |
| | | #{i.thirdShopNo}, |
| | | #{i.useFee}, |
| | | #{i.surplusFee}, |
| | | #{i.status}, |
| | | #{i.deleted}, |
| | | #{i.createBy}, |
| | | #{i.createTime} |
| | | ) |
| | | </foreach> |
| | | ON duplicate KEY UPDATE |
| | | update_by = values(update_by), |
| | | update_time = values(update_time) |
| | | </insert> |
| | | |
| | | <insert id="batchUpdate" parameterType="list"> |
| | | insert into activity_shop_record |
| | | (id, |
| | | total_fee, |
| | | use_fee, |
| | | surplus_fee, |
| | | update_by, |
| | | update_time) |
| | | values |
| | | <foreach collection="list" item="i" separator=","> |
| | | ( |
| | | #{i.id}, |
| | | #{i.totalFee}, |
| | | #{i.useFee}, |
| | | #{i.surplusFee}, |
| | | #{i.updateBy}, |
| | | #{i.updateTime} |
| | | ) |
| | | </foreach> |
| | | ON duplicate KEY UPDATE |
| | | total_fee = values(total_fee), |
| | | use_fee = values(use_fee), |
| | | surplus_fee = values(surplus_fee), |
| | | update_by = values(update_by), |
| | | update_time = values(update_time) |
| | | </insert> |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ChannelInfoMapper"> |
| | | <select id="selectAll" parameterType="com.nuvole.four.domain.ChannelInfo" |
| | | resultType="com.nuvole.four.domain.ChannelInfo"> |
| | | select |
| | | <include refid="Base_Column_List"></include> |
| | | from channel_info |
| | | <where> |
| | | <if test="channelName != null and channelName != '' "> |
| | | and channel_name = #{channelName} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status = #{status} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getPageList" parameterType="com.nuvole.four.domain.ChannelInfo" |
| | | resultType="com.nuvole.four.domain.dto.ChannelInfoDto"> |
| | | select ci.*,su.user_name createUserName from channel_info ci left join sys_user su on ci.create_by = su.id |
| | | <where> |
| | | <if test="channelName != null and channelName != '' "> |
| | | and ci.channel_name = #{channelName} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and ci.status = #{status} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.ChannelOrgConfigMapper"> |
| | | |
| | | <select id="selectAllList" parameterType="com.nuvole.four.domain.dto.ChannelOrgConfigDto" |
| | | resultType="com.nuvole.four.domain.dto.ChannelOrgConfigDto"> |
| | | SELECT so.id orgId,so.name orgName,so.org_code orgCode,so.pid pId,coc.update_time updateTime,IFNULL(count(coc.id),0) configCount FROM sys_org so LEFT JOIN channel_org_config coc ON coc.org_id = so.id |
| | | <where> |
| | | so.state = 1 |
| | | <if test="orgName != null and orgName != '' "> |
| | | and so.name like CONCAT(CONCAT('%',#{orgName},'%')) |
| | | </if> |
| | | <if test="orgId != null"> |
| | | and so.pid = #{orgId} |
| | | </if> |
| | | </where> |
| | | GROUP BY so.id order by sort_no |
| | | </select> |
| | | |
| | | <select id="selectAll" parameterType="com.nuvole.four.domain.ChannelOrgConfig" |
| | | resultType="com.nuvole.four.domain.ChannelOrgConfig"> |
| | | select |
| | | <include refid="Base_Column_List"></include> |
| | | from channel_info |
| | | <where> |
| | | <if test="orgId != null"> |
| | | and org_id = #{orgId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.SpecialFeeRateMapper" > |
| | | <select id="selectList" parameterType="com.nuvole.four.domain.query.SpecialFeeRateQuery" resultType="com.nuvole.four.domain.SpecialFeeRate"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from special_fee_rate |
| | | <where> |
| | | <if test="channelId!=null"> |
| | | and channel_id =#{channelId} |
| | | </if> |
| | | <if test="industryManageId!=null"> |
| | | and industry_manage_id =#{industryManageId} |
| | | </if> |
| | | <if test="industryCode!=null and industryCode!=''"> |
| | | and industry_code like concat('%',#{industryCode},'%') |
| | | </if> |
| | | <if test="onlineAgreeWxRate!=null"> |
| | | and online_agree_wx_rate =#{onlineAgreeWxRate} |
| | | </if> |
| | | <if test="onlineAgreeZfbRate!=null"> |
| | | and online_agree_zfb_rate =#{onlineAgreeZfbRate} |
| | | </if> |
| | | <if test="onlineAgreeUnionpayRate!=null"> |
| | | and online_agree_unionpay_rate =#{onlineAgreeUnionpayRate} |
| | | </if> |
| | | <if test="offlineAgreeWxRate!=null"> |
| | | and offline_agree_wx_rate =#{offlineAgreeWxRate} |
| | | </if> |
| | | <if test="offlineAgreeZfbRate!=null"> |
| | | and offline_agree_zfb_rate =#{offlineAgreeZfbRate} |
| | | </if> |
| | | <if test="offlineAgreeUnionpayRate!=null"> |
| | | and offline_agree_unionpay_rate =#{offlineAgreeUnionpayRate} |
| | | </if> |
| | | <if test="onlineMerWxRate!=null"> |
| | | and online_mer_wx_rate =#{onlineMerWxRate} |
| | | </if> |
| | | <if test="onlineMerZfbRate!=null"> |
| | | and online_mer_zfb_rate =#{onlineMerZfbRate} |
| | | </if> |
| | | <if test="onlineMerUnionpayRate!=null"> |
| | | and online_mer_unionpay_rate =#{onlineMerUnionpayRate} |
| | | </if> |
| | | <if test="offlineMerWxRate!=null"> |
| | | and offline_mer_wx_rate =#{offlineMerWxRate} |
| | | </if> |
| | | <if test="offlineMerZfbRate!=null"> |
| | | and offline_mer_zfb_rate =#{offlineMerZfbRate} |
| | | </if> |
| | | <if test="offlineMerUnionpayRate!=null"> |
| | | and offline_mer_unionpay_rate =#{offlineMerUnionpayRate} |
| | | </if> |
| | | <if test="industryName!=null and industryName!=''"> |
| | | and industry_name like concat('%',#{industryName},'%') |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status =#{status} |
| | | </if> |
| | | <if test="deleted!=null"> |
| | | and deleted =#{deleted} |
| | | </if> |
| | | <if test="createBy!=null"> |
| | | and create_by =#{createBy} |
| | | </if> |
| | | <if test="createTime!=null"> |
| | | and create_time =#{createTime} |
| | | </if> |
| | | <if test="updateBy!=null"> |
| | | and update_by =#{updateBy} |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | and update_time =#{updateTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByIndustryId" parameterType="java.lang.Long" resultType="com.nuvole.four.domain.SpecialFeeRate"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | special_fee_rate |
| | | WHERE |
| | | deleted = 0 |
| | | AND industry_manage_id = #{industryId} and channel_id = #{channelId} |
| | | </select> |
| | | |
| | | |
| | | <insert id="batchInsert" parameterType="list"> |
| | | insert into special_fee_rate |
| | | (id, channel_id, industry_manage_id, industry_code, online_agree_wx_rate, online_agree_zfb_rate, online_agree_unionpay_rate, offline_agree_wx_rate, offline_agree_zfb_rate, offline_agree_unionpay_rate, online_mer_wx_rate, online_mer_zfb_rate, online_mer_unionpay_rate, offline_mer_wx_rate, offline_mer_zfb_rate, offline_mer_unionpay_rate, industry_name, status, deleted, create_by, create_time) |
| | | values |
| | | <foreach collection="list" item="i" separator=","> |
| | | ( |
| | | #{i.id}, |
| | | #{i.channelId}, |
| | | #{i.industryManageId}, |
| | | #{i.industryCode}, |
| | | #{i.onlineAgreeWxRate}, |
| | | #{i.onlineAgreeZfbRate}, |
| | | #{i.onlineAgreeUnionpayRate}, |
| | | #{i.offlineAgreeWxRate}, |
| | | #{i.offlineAgreeZfbRate}, |
| | | #{i.offlineAgreeUnionpayRate}, |
| | | #{i.onlineMerWxRate}, |
| | | #{i.onlineMerZfbRate}, |
| | | #{i.onlineMerUnionpayRate}, |
| | | #{i.offlineMerWxRate}, |
| | | #{i.offlineMerZfbRate}, |
| | | #{i.offlineMerUnionpayRate}, |
| | | #{i.industryName}, |
| | | #{i.status}, |
| | | #{i.deleted}, |
| | | #{i.createBy}, |
| | | #{i.createTime} |
| | | ) |
| | | </foreach> |
| | | ON duplicate KEY UPDATE |
| | | online_agree_wx_rate = values(online_agree_wx_rate), |
| | | online_agree_zfb_rate = values(online_agree_zfb_rate), |
| | | online_agree_unionpay_rate = values(online_agree_unionpay_rate), |
| | | offline_agree_wx_rate = values(offline_agree_wx_rate), |
| | | offline_agree_zfb_rate = values(offline_agree_zfb_rate), |
| | | offline_agree_unionpay_rate = values(offline_agree_unionpay_rate), |
| | | online_mer_wx_rate = values(online_mer_wx_rate), |
| | | online_mer_zfb_rate = values(online_mer_zfb_rate), |
| | | online_mer_unionpay_rate = values(online_mer_unionpay_rate), |
| | | offline_mer_wx_rate = values(offline_mer_wx_rate), |
| | | offline_mer_zfb_rate = values(offline_mer_zfb_rate), |
| | | offline_mer_unionpay_rate = values(offline_mer_unionpay_rate), |
| | | update_by = values(update_by), |
| | | update_time = values(update_time) |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?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.nuvole.four.mapper.StoreIndustryManageMapper" > |
| | | <select id="selectList" parameterType="com.nuvole.four.domain.query.StoreIndustryManageQuery" resultType="com.nuvole.four.domain.StoreIndustryManage"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from store_industry_manage |
| | | <where> |
| | | deleted = 0 |
| | | <if test="pId!=null"> |
| | | and p_id =#{pId} |
| | | </if> |
| | | <if test="industryName!=null and industryName!=''"> |
| | | and industry_name like concat('%',#{industryName},'%') |
| | | </if> |
| | | <if test="industryCode!=null and industryCode!=''"> |
| | | and industry_code like concat('%',#{industryCode},'%') |
| | | </if> |
| | | <if test="sortNo!=null"> |
| | | and sort_no =#{sortNo} |
| | | </if> |
| | | <if test="isSpecial!=null"> |
| | | and is_special =#{isSpecial} |
| | | </if> |
| | | <if test="level!=null"> |
| | | and level =#{level} |
| | | </if> |
| | | <if test="status!=null"> |
| | | and status =#{status} |
| | | </if> |
| | | <if test="createBy!=null"> |
| | | and create_by =#{createBy} |
| | | </if> |
| | | <if test="createTime!=null"> |
| | | and create_time =#{createTime} |
| | | </if> |
| | | <if test="updateBy!=null"> |
| | | and update_by =#{updateBy} |
| | | </if> |
| | | <if test="updateTime!=null"> |
| | | and update_time =#{updateTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | tl-pay: |
| | | url: http://test.allinpay.com/open/gateway |
| | | appId: 1549646645901975554 |
| | | secretKey: DCRXgrguX88HCi0lqWFZyjqsBJZdOzN4 |
| | | certPath: ./1549646645901975554.pfx |
| | | certPwd: 123456 |
| | | tlCertPath: ./TLCert-test.cer |
| | | accountSetNo: 400363 |
New file |
| | |
| | | #\u7FFC\u652F\u4ED8\u914D\u7F6E\u6587\u4EF6 |
| | | # \u5E73\u53F0\u5546\u5546\u6237\u53F7 |
| | | qdl.institutionCode=3178036951928327 |
| | | #\u5C0F\u7A0B\u5E8F\u4F7F\u7528\u7684\u4E3B\u5546\u6237\u53F7 |
| | | qdl.mainMerchantCode=610003141902948 |
| | | |
New file |
| | |
| | | ftp.url=116.198.39.83 |
| | | ftp.username=mysftp |
| | | ftp.mixpd=Bjjmy_2020 |
New file |
| | |
| | | -----BEGIN PRIVATE KEY----- |
| | | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDOALnyQsjza9Fu |
| | | bSRx0KbF2zx1XD/B7AE+8yDQMRluKtmbsnJ1A0Eh60VPmCmj68KrhzpvNFtX80mD |
| | | Ov/CRHEZ1lwAGIphFt658jABdW67Z83SWSxojIf6AVh074accEzhnuIg2NTQNlKm |
| | | VNtsFR919pf4HZI4VcN4pVYJRH/8g7UytJ/N6CnZPpFRxZOtKBbDDkazY/vY1+Af |
| | | kRQgPIRIneAAGE0AbKodFktPe9aDn3/SusfNVVwg6keIEtnQVvvHh6CZoQEXp6mY |
| | | 5RcaTTuiFJL6hHtGqozwKrYdaXgp/2rxyMBkqg2QACOgVUCSDLcRSuNAgePNTDbh |
| | | jntKa1oNAgMBAAECggEAT2zQRKujNtc3JFBIYOmFo3tn0AgFPQt1X4P1/s8vct5q |
| | | kDE5GAxtLFq9mnacd2sK339/9ChHn51ZlpNE0O36fW+8gPz1PYHH1gGeqLFSREc9 |
| | | gACJsrWcJ7QlGtDPIbnaqpLLtMZlJvIK476L6xwpyR2OckdUfQv0FawJhAE5J24f |
| | | WkzlAKlAhAJ/M9RMv8QYz3HRnaMFcdY2s6cxcFPVYLFsO2R+5nQfFII3X4Z6fD+r |
| | | B3a/KMZHwcVFSBvRkikSKlhWAYQdHPiLZpORh32bMd03APceOxsOTN/wf9qwrcKF |
| | | O5qnHhEFjpOthwZQ56s2YVrn6zLEhVFSoAvaKuUNMQKBgQDtuGXxF3w5Lhip9trz |
| | | 1MQXyTgywecyFSE5vaUK7WL74EQu/s0U3UCOb6SuOtyeHOJoOpGGuzUm0ZtDNo+k |
| | | bVGHRs2gu8iQDURD8FYExTOEFgLa4g9PUstlAASeUGT5dbrZWOiHpPHrfR1O04sQ |
| | | uc6vp0yk08mXY43EOLMRPCU7twKBgQDd1/WdRVUcv2Fc2xA57D1UKlGWzk4H7Ao1 |
| | | TBmduszUwKCPr02gqdlCIUCzT7rhACWIq2SOmd8zKVNnOjL9zmMlmwCXadb/HLrE |
| | | NqbmSmkUUMayj91zvcwtASWXvf2kBg56MUDOmuuveLbcJfKXcs49GssMEhPZPRDr |
| | | AbRdoIngWwKBgQCOJxSexSJ9tvj8uidYY8UXTDaU86rjIguKUcOd8zKb2BIt4CSW |
| | | 82+lPVHG9l/zFOa22T8oyE4SdolX+gqPkueL82UHVwOqUKSf09o8ZAhYVilC5qet |
| | | EZ+bOBWK7hxTqHkhe68hXhtkbJ7YAlxIljPoiiyk7BjCtL+TtSwvhD3npQKBgQCY |
| | | AsInaPnAQBdMFEOTHSCNCo5roqPvY7s++A1ZekWexvt+WWX84EWhvb1i4RAx2vLd |
| | | Kmw2FpPNr9SZmFSWe5SOkR6fogOTPbFwf+5vQK+uHwd4FYJuK7C7adzDlIk3mnrT |
| | | GerJZ3h1/WZ3hX0sb5uIXVKiy8RUCDcOgVWBDl9LnwKBgBx1snMWzSUXj1+1JSOl |
| | | pmFimM4YOPtFsiDFw+ntKPB7DIpYYFMxGYMYHh3kzB4F8nbTG1wC92s27DEGMdom |
| | | cIsR8kdngn//BtFhgyrq3dUD6ILb4t3kXW4/FAbPXB5v/ABXFp8eXzxoOSrCFBGC |
| | | SlwQbd8MtRbLLh/U1vdnBWr9 |
| | | -----END PRIVATE KEY----- |
New file |
| | |
| | | #\u670D\u52A1\u5546\u5546\u6237\u53F7 |
| | | wxpay.mch-id=1633049026 |
| | | #\u5546\u6237API\u8BC1\u4E66\u5E8F\u5217\u53F7 |
| | | wxpay.mch-serial-no=3EFA95814CE672B5C4A6AD59F53F3DFD50736EDB |
| | | #\u5546\u6237\u79C1\u94A5\u6587\u4EF6 |
| | | wxpay.private-key-path=classpath:/wxV3/apiclient_key.pem |
| | | #wxpay.private-key-path=/opt/home/ecosphere/jar3/apiclient_key.pem |
| | | #apiV3\u5BC6\u94A5 |
| | | wxpay.api-v3-key=G0W38atmAZkxIMn61zfu2lDoqdhLTjYC |
New file |
| | |
| | | #\u586B\u5199\u8981\u4E0A\u4F20\u5230\u7684\u5B58\u50A8\u6876\u540D\u79F0\uFF0C\u4F8B\u5982'example-bucket'\u3002 |
| | | ydOss.bucketName=ecosphere |
| | | #\u586B\u5199\u5B58\u50A8\u6876\uFF08Bucket\uFF09\u6240\u5728\u5730\u57DF\u5BF9\u5E94\u7684 endpoint \u548C Region\u3002 |
| | | # \u5185\u7F51 |
| | | ydOss.endpoint=eos.zhengzhou-4-internal.cmecloud.cn |
| | | # \u4E92\u8054\u7F51 |
| | | ydOss.endpointNet=https://eos.zhengzhou-4.cmecloud.cn |
| | | ydOss.region=zhengzhou4 |
| | | #\u586B\u5199 EOS \u8D26\u53F7\u7684\u8BA4\u8BC1\u4FE1\u606F\uFF0C\u6216\u8005\u5B50\u8D26\u53F7\u7684\u8BA4\u8BC1\u4FE1\u606F\u3002 |
| | | ydOss.accessKey=1PMC6XN2QVDEN6M6IWQB |
| | | ydOss.secretKey=tfbfDxHZGUIl7s3kb2fJyHCLtpZLydbzEhlTRmIy |
New file |
| | |
| | | package com.nuvole.four; |
| | | |
| | | import org.junit.Test; |
| | | import org.mybatis.generator.api.MyBatisGenerator; |
| | | import org.mybatis.generator.config.Configuration; |
| | | import org.mybatis.generator.config.xml.ConfigurationParser; |
| | | import org.mybatis.generator.internal.DefaultShellCallback; |
| | | import org.springframework.util.ResourceUtils; |
| | | |
| | | import java.io.File; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName MybatisGeneratorTest |
| | | * @Description Mybatis代ç çæå¨ |
| | | * @author ChenLong |
| | | * @date 2019/4/12 14:28 |
| | | * @version 1.0 |
| | | */ |
| | | public class MybatisGeneratorTest { |
| | | |
| | | @Test |
| | | public void testGenerator() throws Exception{ |
| | | List<String> warnings = new ArrayList<String>(); |
| | | boolean overwrite = true; |
| | | //æå® éåå·¥ç¨é
ç½®æä»¶ |
| | | File configFile = ResourceUtils.getFile("classpath:generatorConfig.xml"); |
| | | //File configFile = new File("generatorConfig.xml"); |
| | | ConfigurationParser cp = new ConfigurationParser(warnings); |
| | | Configuration config = cp.parseConfiguration(configFile); |
| | | DefaultShellCallback callback = new DefaultShellCallback(overwrite); |
| | | MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); |
| | | myBatisGenerator.generate(null); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.nuvole.four; |
| | | |
| | | import cn.hutool.core.util.NumberUtil; |
| | | import com.nuvole.base.domain.SysUser; |
| | | import com.tangmou.ConvertDto; |
| | | import org.junit.Test; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author ChenLong |
| | | * @version 1.0 |
| | | * @ClassName NumberTest |
| | | * @date 2019/6/20 17:37 |
| | | */ |
| | | public class NumberTest { |
| | | |
| | | @Test |
| | | public void testCeil() { |
| | | // System.out.println(NumberUtil.div(6, 5000)); |
| | | // System.out.println(6 / 5000); |
| | | // System.out.println(Math.ceil(NumberUtil.div(6, 5000))); |
| | | // Long a = 6L; |
| | | // System.out.println(a.floatValue()); |
| | | SysUser user = new SysUser(){{ |
| | | setId(1L); |
| | | setMobile("1233"); |
| | | }}; |
| | | List lis = new ArrayList(); |
| | | lis.add(user); |
| | | // user = ConvertDto.convert(user); |
| | | // System.out.println(user.getMobile().toString()); |
| | | Object o = ResponseEntity.ok(null).getBody(); |
| | | System.out.println(user.getId().toString()); |
| | | System.out.println(lis.toString()); |
| | | |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE generatorConfiguration |
| | | PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
| | | <generatorConfiguration> |
| | | |
| | | <classPathEntry |
| | | location="D:\workspace\mysql-connector-java-5.1.23-bin.jar"/> |
| | | <context id="Mysql" targetRuntime="MyBatis3" defaultModelType="flat"> |
| | | |
| | | <commentGenerator> |
| | | <property name="suppressAllComments" value="false"></property> |
| | | <property name="suppressDate" value="false"></property> |
| | | |
| | | <property name="addRemarkComments" value="true"/> |
| | | <property name="author" value="system-generator"/> |
| | | |
| | | <property name="javaFileEncoding" value="utf-8"/> |
| | | </commentGenerator> |
| | | |
| | | <jdbcConnection driverClass="com.mysql.jdbc.Driver" |
| | | connectionURL="jdbc:mysql://116.198.40.76:3306/ecosphere_base_four_payment_kf?useSSL=false" |
| | | userId="root" |
| | | password="Bjjmy_2020"> |
| | | <property name="nullCatalogMeansCurrent" value="true"/> |
| | | </jdbcConnection> |
| | | |
| | | <javaTypeResolver> |
| | | <property name="forceBigDecimals" value="false"/> |
| | | </javaTypeResolver> |
| | | |
| | | <javaModelGenerator targetPackage="com.nuvole.four.domain" targetProject="src/main/java"> |
| | | <property name="enableSubPackages" value="true"></property> |
| | | <property name="trimStrings" value="true"></property> |
| | | </javaModelGenerator> |
| | | |
| | | <sqlMapGenerator targetPackage="mapping" targetProject="src/main/resources"> |
| | | <property name="enableSubPackages" value="true"></property> |
| | | </sqlMapGenerator> |
| | | |
| | | <!--ANNOTATEDMAPPERï¼XMLMAPPER--> |
| | | <javaClientGenerator type="XMLMAPPER" targetPackage="com.nuvole.four.mapper" targetProject="src/main/java"> |
| | | <property name="enableSubPackages" value="true"/> |
| | | </javaClientGenerator> |
| | | |
| | | <!-- % 表示ææç表 --> |
| | | <!-- è¦çæç表 tableNameæ¯æ°æ®åºä¸ç表åæè§å¾å domainObjectNameæ¯å®ä½ç±»å--> |
| | | <table tableName="channel_org_config" |
| | | enableCountByExample="false" |
| | | enableUpdateByExample="false" |
| | | enableDeleteByExample="false" |
| | | enableSelectByExample="false" |
| | | selectByExampleQueryId="false" |
| | | ></table> |
| | | </context> |
| | | </generatorConfiguration> |