数据集市后台代码提交
parent
9863b40919
commit
852aa9177a
|
@ -8,8 +8,12 @@
|
|||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="cloud-market-common" />
|
||||
<module name="cloud-market-server" />
|
||||
<module name="cloud-mart-polymeriza-clinet" />
|
||||
<module name="cloud-mark-ali-server" />
|
||||
<module name="cloud-mart-ali-client" />
|
||||
<module name="cloud-market-client" />
|
||||
<module name="cloud-market-remote" />
|
||||
<module name="cloud-mart-polymeriza-server" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
|
|
|
@ -5,10 +5,22 @@
|
|||
<file url="file://$PROJECT_DIR$/cloud-market-client/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/cloud-mart-polymeriza-clinet/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/cloud-mart-polymeriza-clinet/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/cloud-mart-polymeriza-server/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/cloud-mart-polymeriza-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-polymerization/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/cloud-mark-ali-server/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/cloud-mark-ali-server/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/cloud-mart-ali-client/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/cloud-mart-ali-client/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/cloud-mart-ali/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||
</component>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<changelist name="在进行更新之前于_2024_9_1_11_32_取消提交了变更_[更改]" date="1725161557430" recycled="false" toDelete="true">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/在进行更新之前于_2024_9_1_11_32_取消提交了变更_[更改]/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="在进行更新之前于 2024/9/1 11:32 取消提交了变更 [更改]" />
|
||||
</changelist>
|
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@ FROM openjdk:17-jdk
|
|||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneifon/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
|
||||
|
||||
VOLUME ["/home/logs/cloud-market"]
|
||||
VOLUME ["/home/logs/cloud-zhangyi-market-mark"]
|
||||
|
||||
COPY cloud-market-server/target/cloud-market.jar /home/app.jar
|
||||
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
package com.muyu.market.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.*;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
|
||||
/**
|
||||
* 订单详情对象 sys_datawarehouse
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-01
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Setter
|
||||
@Getter
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("sys_datawarehouse")
|
||||
public class SysDatawarehouse{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 订单id */
|
||||
@TableId( type = IdType.AUTO)
|
||||
private Long orderId;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderBian;
|
||||
|
||||
/** 下单时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date orderTime;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String shopName;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String orderName;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
private String phone;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal orderScore;
|
||||
|
||||
/** 支付方式 */
|
||||
@Excel(name = "支付方式")
|
||||
private String payway;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderBian", getOrderBian())
|
||||
.append("orderTime", getOrderTime())
|
||||
.append("userId", getUserId())
|
||||
.append("shopName", getShopName())
|
||||
.append("orderName", getOrderName())
|
||||
.append("phone", getPhone())
|
||||
.append("orderScore", getOrderScore())
|
||||
.append("payway", getPayway())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package com.muyu.market.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
@ -25,17 +26,17 @@ import java.util.Date;
|
|||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "sys_firminfo",autoResultMap = true)
|
||||
public class SysFirm extends BaseEntity{
|
||||
public class SysFirm {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业数据id */
|
||||
@TableId(value = "firm_id",type = IdType.AUTO)
|
||||
private Long firmId;
|
||||
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
@Excel(name = "企业id")
|
||||
private Long adminsid;
|
||||
|
||||
|
||||
/** 企业名称 */
|
||||
|
@ -75,99 +76,12 @@ public class SysFirm extends BaseEntity{
|
|||
@Excel(name = "余额")
|
||||
private BigDecimal firmScore;
|
||||
|
||||
public Long getFirmId() {
|
||||
return firmId;
|
||||
}
|
||||
|
||||
public void setFirmId(Long firmId) {
|
||||
this.firmId = firmId;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
userId = userId;
|
||||
}
|
||||
|
||||
public String getFirmTem() {
|
||||
return firmTem;
|
||||
}
|
||||
|
||||
public void setFirmTem(String firmTem) {
|
||||
this.firmTem = firmTem;
|
||||
}
|
||||
|
||||
public String getNames() {
|
||||
return names;
|
||||
}
|
||||
|
||||
public void setNames(String names) {
|
||||
this.names = names;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getFirmRegion() {
|
||||
return firmRegion;
|
||||
}
|
||||
|
||||
public void setFirmRegion(String firmRegion) {
|
||||
this.firmRegion = firmRegion;
|
||||
}
|
||||
|
||||
public String getFirmFrom() {
|
||||
return firmFrom;
|
||||
}
|
||||
|
||||
public void setFirmFrom(String firmFrom) {
|
||||
this.firmFrom = firmFrom;
|
||||
}
|
||||
|
||||
public String getSocialReputation() {
|
||||
return socialReputation;
|
||||
}
|
||||
|
||||
public void setSocialReputation(String socialReputation) {
|
||||
this.socialReputation = socialReputation;
|
||||
}
|
||||
|
||||
public String getBusinessLicense() {
|
||||
return businessLicense;
|
||||
}
|
||||
|
||||
public void setBusinessLicense(String businessLicense) {
|
||||
this.businessLicense = businessLicense;
|
||||
}
|
||||
|
||||
public Date getFirmTime() {
|
||||
return firmTime;
|
||||
}
|
||||
|
||||
public void setFirmTime(Date firmTime) {
|
||||
this.firmTime = firmTime;
|
||||
}
|
||||
|
||||
public BigDecimal getFirmScore() {
|
||||
return firmScore;
|
||||
}
|
||||
|
||||
public void setFirmScore(BigDecimal firmScore) {
|
||||
this.firmScore = firmScore;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("firmId", getFirmId())
|
||||
.append("userId", getUserId())
|
||||
.append("adminsid", getAdminsid())
|
||||
.append("firmTem", getFirmTem())
|
||||
.append("names", getNames())
|
||||
.append("position", getPosition())
|
||||
|
|
|
@ -0,0 +1,127 @@
|
|||
package com.muyu.market.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName(value = "sys_invoices",autoResultMap = true)
|
||||
public class SysInvoice {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 企业数据序号 */
|
||||
@TableId(value = "order_id",type = IdType.AUTO)
|
||||
private Long orderId;
|
||||
|
||||
|
||||
@Excel(name = "企业id")
|
||||
private String orderBian;
|
||||
|
||||
|
||||
/** 企业名称 */
|
||||
@Excel(name = "公司/企业名")
|
||||
private String companyname;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String orderName;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "交易金额")
|
||||
private BigDecimal orderScore;
|
||||
|
||||
@Excel(name = "发票状态")
|
||||
private Long orderType;
|
||||
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date orderTimes;
|
||||
|
||||
|
||||
public Long getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getOrderBian() {
|
||||
return orderBian;
|
||||
}
|
||||
|
||||
public void setOrderBian(String orderBian) {
|
||||
this.orderBian = orderBian;
|
||||
}
|
||||
|
||||
public String getCompanyname() {
|
||||
return companyname;
|
||||
}
|
||||
|
||||
public void setCompanyname(String companyname) {
|
||||
this.companyname = companyname;
|
||||
}
|
||||
|
||||
public String getOrderName() {
|
||||
return orderName;
|
||||
}
|
||||
|
||||
public void setOrderName(String orderName) {
|
||||
this.orderName = orderName;
|
||||
}
|
||||
|
||||
public BigDecimal getOrderScore() {
|
||||
return orderScore;
|
||||
}
|
||||
|
||||
public void setOrderScore(BigDecimal orderScore) {
|
||||
this.orderScore = orderScore;
|
||||
}
|
||||
|
||||
public Long getOrderType() {
|
||||
return orderType;
|
||||
}
|
||||
|
||||
public void setOrderType(Long orderType) {
|
||||
this.orderType = orderType;
|
||||
}
|
||||
|
||||
public Date getOrderTimes() {
|
||||
return orderTimes;
|
||||
}
|
||||
|
||||
public void setOrderTimes(Date orderTimes) {
|
||||
this.orderTimes = orderTimes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderBian", getOrderBian())
|
||||
.append("companyname", getCompanyname())
|
||||
.append("orderName", getOrderName())
|
||||
.append("orderScore", getOrderScore())
|
||||
.append("orderTimes", getOrderTimes())
|
||||
.append("orderType", getOrderType())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
//package com.muyu.market.domain.realname;
|
||||
//
|
||||
//import lombok.AllArgsConstructor;
|
||||
//import lombok.Builder;
|
||||
//import lombok.Data;
|
||||
//import lombok.NoArgsConstructor;
|
||||
//
|
||||
//@Data
|
||||
//@Builder
|
||||
//@NoArgsConstructor
|
||||
//@AllArgsConstructor
|
||||
//public class RealNameReq {
|
||||
// /**
|
||||
// * 姓名
|
||||
// */
|
||||
// private String name;
|
||||
//
|
||||
// /**
|
||||
// * 身份证
|
||||
// */
|
||||
//
|
||||
// private String idCard;
|
||||
//}
|
|
@ -0,0 +1,16 @@
|
|||
//package com.muyu.market.domain.realname;
|
||||
//
|
||||
//import lombok.AllArgsConstructor;
|
||||
//import lombok.Builder;
|
||||
//import lombok.Data;
|
||||
//import lombok.NoArgsConstructor;
|
||||
//
|
||||
//@Data
|
||||
//@Builder
|
||||
//@NoArgsConstructor
|
||||
//@AllArgsConstructor
|
||||
//public class RealNameResp {
|
||||
// private String code;
|
||||
//
|
||||
// private String msg;
|
||||
//}
|
|
@ -0,0 +1,35 @@
|
|||
//package com.muyu.market.domain.realname.jvhe;
|
||||
//
|
||||
//import com.alibaba.fastjson2.annotation.JSONField;
|
||||
//import com.muyu.market.domain.realname.polymeriza.RealNameReq;
|
||||
//import lombok.AllArgsConstructor;
|
||||
//import lombok.Builder;
|
||||
//import lombok.Data;
|
||||
//import lombok.NoArgsConstructor;
|
||||
//
|
||||
//@Data
|
||||
//@Builder
|
||||
//@NoArgsConstructor
|
||||
//@AllArgsConstructor
|
||||
//public class JvheRealNameReq {
|
||||
// @JSONField(name = "idcard")
|
||||
// private String idCard;
|
||||
//
|
||||
// @JSONField(name = "realname")
|
||||
// private String realName;
|
||||
//
|
||||
// @JSONField(name = "orderid")
|
||||
// private int orderid;
|
||||
//
|
||||
// @JSONField(name = "key")
|
||||
// private String key;
|
||||
//
|
||||
// public static JvheRealNameReq realNameReqbuild(RealNameReq realNameReq) {
|
||||
// return JvheRealNameReq.builder()
|
||||
// .key("45324353243")
|
||||
// .idCard(realNameReq.getIdCard())
|
||||
// .realName(realNameReq.getRealName())
|
||||
// .orderid(0)
|
||||
// .build();
|
||||
// }
|
||||
//}
|
|
@ -0,0 +1,25 @@
|
|||
package com.muyu.market.domain.realname.jvhe;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class JvheRealNameResp {
|
||||
|
||||
|
||||
@JSONField(name = "idcard")
|
||||
private String idCard;
|
||||
|
||||
@JSONField(name = "realname")
|
||||
private String realName;
|
||||
|
||||
@JSONField(name = "orderid")
|
||||
private String orderid;
|
||||
private Integer res;
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.market.domain.realname.polymeriza;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PolyResult<T> {
|
||||
|
||||
private String reason;
|
||||
|
||||
private T result;
|
||||
|
||||
@JSONField(name = "error_code")
|
||||
private Integer errorCode;
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
//package com.muyu.market.domain.realname.polymeriza;
|
||||
//
|
||||
//import com.alibaba.fastjson2.annotation.JSONField;
|
||||
//import lombok.AllArgsConstructor;
|
||||
//import lombok.Builder;
|
||||
//import lombok.Data;
|
||||
//import lombok.NoArgsConstructor;
|
||||
//
|
||||
//@Data
|
||||
//@Builder
|
||||
//@NoArgsConstructor
|
||||
//@AllArgsConstructor
|
||||
//public class RealNameReq {
|
||||
//
|
||||
//
|
||||
// private String realName;
|
||||
// @JSONField(name = "idcard")
|
||||
// private String idCard;
|
||||
// private Integer res;
|
||||
//
|
||||
//
|
||||
//
|
||||
//}
|
|
@ -0,0 +1,27 @@
|
|||
//package com.muyu.market.domain.realname.polymeriza;
|
||||
//
|
||||
//import com.alibaba.fastjson2.annotation.JSONField;
|
||||
//import lombok.AllArgsConstructor;
|
||||
//import lombok.Builder;
|
||||
//import lombok.Data;
|
||||
//import lombok.NoArgsConstructor;
|
||||
//
|
||||
//@Data
|
||||
//@Builder
|
||||
//@NoArgsConstructor
|
||||
//@AllArgsConstructor
|
||||
//public class RealNameResp {
|
||||
//
|
||||
// @JSONField(name = "idcard")
|
||||
// private String idCard;
|
||||
//
|
||||
// @JSONField(name = "realname")
|
||||
// private String realName;
|
||||
//
|
||||
// @JSONField(name = "orderid")
|
||||
// private String orderid;
|
||||
//
|
||||
// @JSONField(name = "key")
|
||||
// private String key;
|
||||
//
|
||||
//}
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.market.retuen;
|
||||
|
||||
public interface BascApi<REQ, RES> {
|
||||
|
||||
|
||||
/**
|
||||
* 获取请求参数
|
||||
* @retuen
|
||||
*/
|
||||
|
||||
|
||||
RES send(REQ req);
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-market-polymerization</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-mart-polymeriza-clinet</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-market-polymerization</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-mart-polymeriza-server</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-market-common</artifactId>
|
||||
<version>3.6.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,13 @@
|
|||
package com.market.data.mart;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@SpringBootApplication
|
||||
public class DataMartPolumerApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DataMartPolumerApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
//package com.market.data.mart.service.imp;
|
||||
//
|
||||
//import com.muyu.market.domain.realname.jvhe.JvheRealNameReq;
|
||||
//import com.muyu.market.domain.realname.jvhe.JvheRealNameResp;
|
||||
//import com.muyu.market.domain.realname.polymeriza.PolyResult;
|
||||
//import com.muyu.market.domain.realname.polymeriza.RealNameReq;
|
||||
//import com.muyu.market.domain.realname.polymeriza.RealNameResp;
|
||||
//import com.muyu.market.retuen.BascApi;
|
||||
//import org.springframework.stereotype.Service;
|
||||
//
|
||||
//@Service("jvhe-real-name")
|
||||
//public class RealNameServiceImp implements BascApi<RealNameReq, RealNameResp> {
|
||||
// @Override
|
||||
// public RealNameResp send(RealNameReq realNameReq) {
|
||||
// JvheRealNameReq jvheRealNameReq = JvheRealNameReq.realNameReqbuild(realNameReq);
|
||||
// PolyResult<JvheRealNameResp> jvheRealNameRespPolyResult = sendApi(jvheRealNameReq);
|
||||
// return RealNameResp.builder().build();
|
||||
// }
|
||||
//
|
||||
//
|
||||
// public PolyResult<JvheRealNameResp> sendApi(JvheRealNameReq jvheRealNameReq)
|
||||
// {
|
||||
// //进行聚合数据的api调用
|
||||
// return new PolyResult<JvheRealNameResp>(){{
|
||||
// setErrorCode(0);
|
||||
// setReason("ok");
|
||||
// setResult(
|
||||
// JvheRealNameResp.builder()
|
||||
// .realName(jvheRealNameReq.getRealName())
|
||||
// .idCard(jvheRealNameReq.getIdCard())
|
||||
// .res(0)
|
||||
// .build()
|
||||
// );
|
||||
//}};
|
||||
// }
|
||||
//
|
||||
//}
|
|
@ -0,0 +1,51 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 10011
|
||||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 10.0.1.97:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: cloud-2112
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
application:
|
||||
# 应用名称
|
||||
name: cloud-apimaster
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: ${nacos.addr}
|
||||
|
||||
# 命名空间
|
||||
namespace: ${nacos.namespace}
|
||||
config:
|
||||
# 服务注册地址
|
||||
server-addr: ${nacos.addr}
|
||||
|
||||
# 命名空间
|
||||
namespace: ${nacos.namespace}
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
# 系统共享配置
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
# 系统环境Config共享配置
|
||||
- application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
# xxl-job 配置文件
|
||||
- application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
# rabbit 配置文件
|
||||
- application-rabbit-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.muyu.system.mapper: DEBUG
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-market</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-market-polymerization</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>cloud-mart-polymeriza-clinet</module>
|
||||
<module>cloud-mart-polymeriza-server</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
package com.market.ploymeriz;
|
||||
|
||||
public class Ploymeriz {
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
//package com.muyu.market.controller;
|
||||
//
|
||||
//
|
||||
//import com.muyu.market.domain.realname.jvhe.JvheRealNameResp;
|
||||
//import com.muyu.market.service.RealNameService;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
|
||||
//
|
||||
//import java.util.List;
|
||||
//
|
||||
//public class RealNameController extends AbstractRoutingDataSource {
|
||||
//
|
||||
// @Autowired
|
||||
// private RealNameService realNameService;
|
||||
// @Override
|
||||
// protected Object determineCurrentLookupKey() {
|
||||
// return realNameService.getDataSourceType() ;
|
||||
// }
|
||||
// public void someServiceMethod(){
|
||||
// realNameService.setDataSourceType("master");//写入操作
|
||||
//// 执行操作
|
||||
// realNameService.clearDataSourceType();
|
||||
// }
|
||||
//
|
||||
// public List<JvheRealNameResp> someServiceMethod2(){
|
||||
// realNameService.setDataSourceType("slave");//读操作
|
||||
//// 执行操作
|
||||
// realNameService.clearDataSourceType();
|
||||
//
|
||||
// return null;
|
||||
// }
|
||||
// public List<JvheRealNameResp> auxiliaryOperation() {
|
||||
// realNameService.setDataSourceType("auxiliary"); // 设置为辅数据源
|
||||
// // 执行特定操作
|
||||
// realNameService.clearDataSourceType();
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
|
@ -0,0 +1,117 @@
|
|||
package com.muyu.market.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.market.domain.SysDatawarehouse;
|
||||
import com.muyu.market.service.ISysDatawarehouseService;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
|
||||
/**
|
||||
* 订单详情Controller
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/datawarehouse")
|
||||
public class SysDatawarehouseController extends BaseController
|
||||
{
|
||||
@Resource
|
||||
private ISysDatawarehouseService sysDatawarehouseService;
|
||||
|
||||
/**
|
||||
* 查询订单详情列表
|
||||
*/
|
||||
@RequiresPermissions("ruleEngine:datawarehouse:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<SysDatawarehouse>> list(SysDatawarehouse sysDatawarehouse)
|
||||
{
|
||||
startPage();
|
||||
List<SysDatawarehouse> list = sysDatawarehouseService.selectSysDatawarehouseList(sysDatawarehouse);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出订单详情列表
|
||||
*/
|
||||
@RequiresPermissions("ruleEngine:datawarehouse:export")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysDatawarehouse sysDatawarehouse)
|
||||
{
|
||||
List<SysDatawarehouse> list = sysDatawarehouseService.selectSysDatawarehouseList(sysDatawarehouse);
|
||||
ExcelUtil<SysDatawarehouse> util = new ExcelUtil<SysDatawarehouse>(SysDatawarehouse.class);
|
||||
util.exportExcel(response, list, "订单详情数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详情详细信息
|
||||
*/
|
||||
@RequiresPermissions("ruleEngine:datawarehouse:query")
|
||||
@GetMapping(value = "/{orderId}")
|
||||
public Result<List<SysDatawarehouse>> getInfo(@PathVariable("orderId") Long orderId)
|
||||
{
|
||||
return success(sysDatawarehouseService.selectSysDatawarehouseByOrderId(orderId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单详情
|
||||
*/
|
||||
// @RequiresPermissions("ruleEngine:datawarehouse:add")
|
||||
// @PostMapping
|
||||
// public Result<Integer> add(
|
||||
// @Validated @RequestBody SysDatawarehouse sysDatawarehouse)
|
||||
// {
|
||||
// if (sysDatawarehouseService.checkIdUnique(sysDatawarehouse)) {
|
||||
// return error("新增 订单详情 '" + sysDatawarehouse + "'失败,订单详情已存在");
|
||||
// }
|
||||
// sysDatawarehouse.setCreateBy(SecurityUtils.getUsername());
|
||||
// return toAjax(sysDatawarehouseService.save(sysDatawarehouse));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 修改订单详情
|
||||
*/
|
||||
// @RequiresPermissions("ruleEngine:datawarehouse:edit")
|
||||
// @PutMapping
|
||||
// public Result<Integer> edit(
|
||||
// @Validated @RequestBody SysDatawarehouse sysDatawarehouse)
|
||||
// {
|
||||
// if (!sysDatawarehouseService.checkIdUnique(sysDatawarehouse)) {
|
||||
// return error("修改 订单详情 '" + sysDatawarehouse + "'失败,订单详情不存在");
|
||||
// }
|
||||
//// sysDatawarehouse.setUpdateBy(SecurityUtils.getUsername());
|
||||
//// return toAjax(sysDatawarehouseService.updateById(sysDatawarehouse));
|
||||
// }
|
||||
|
||||
/**
|
||||
* 删除订单详情
|
||||
*/
|
||||
|
||||
@RequiresPermissions("ruleEngine:datawarehouse:remove")
|
||||
@DeleteMapping("/{orderIds}")
|
||||
public Result<Integer> remove(@PathVariable("orderIds") Long[] orderIds)
|
||||
{
|
||||
sysDatawarehouseService.removeBatchByIds(Arrays.asList(orderIds));
|
||||
return success();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
package com.muyu.market.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.market.domain.SysFirm;
|
||||
import com.muyu.market.domain.SysInvoice;
|
||||
import com.muyu.market.service.SysInvoiceService;
|
||||
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.List;
|
||||
|
||||
import static com.muyu.common.core.utils.PageUtils.startPage;
|
||||
|
||||
/**
|
||||
* SysInvoiceController
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-3
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/sysInvoic")
|
||||
public class SysInvoiceController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private SysInvoiceService sysInvoiceService;
|
||||
|
||||
/**
|
||||
* Invoicef发票申请
|
||||
*/
|
||||
@RequiresPermissions("seleceinse:sysInvoic:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<SysInvoice>> list(SysInvoice sysInvoice)
|
||||
{
|
||||
startPage();
|
||||
List<SysInvoice> list = sysInvoiceService.sysinvoceList(sysInvoice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
//package com.muyu.market.controller;
|
||||
//
|
||||
//import com.muyu.market.domain.realname.RealNameReq;
|
||||
//import com.muyu.market.service.TestService;
|
||||
//import org.springframework.web.bind.annotation.PostMapping;
|
||||
//import org.springframework.web.bind.annotation.RequestBody;
|
||||
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||
//import org.springframework.web.bind.annotation.RestController;
|
||||
//
|
||||
//@RestController
|
||||
//@RequestMapping("/test")
|
||||
//public class TestController {
|
||||
//
|
||||
//
|
||||
// private TestService testService;
|
||||
// @PostMapping("/real/name")
|
||||
// public String realName(@RequestBody RealNameReq realNameReq){
|
||||
//
|
||||
//testService.realName(realNameReq);
|
||||
// return "ok";
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//}
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
* @author ruoyi
|
||||
* @date 2024-08-21
|
||||
*/
|
||||
@Service
|
||||
|
||||
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
|
||||
/**
|
||||
* 查询接口
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.market.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.market.domain.SysDatawarehouse;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 订单详情Mapper接口
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysDatawarehouseMapper extends BaseMapper<SysDatawarehouse> {
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.market.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.market.domain.SysInvoice;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
@Service
|
||||
public interface SysInvoiceMapper extends BaseMapper<SysInvoice> {
|
||||
|
||||
|
||||
List<SysInvoice> selectSysApitypeList(SysInvoice sysInvoice);
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.market.mapper;
|
||||
|
||||
public interface TestMapper {
|
||||
}
|
|
@ -12,7 +12,7 @@ import java.util.List;
|
|||
* @author ruoyi
|
||||
|
||||
*/
|
||||
@Service
|
||||
|
||||
public interface ISysApitypeService extends IService<SysApitype> {
|
||||
/**
|
||||
* 查询接口
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
package com.muyu.market.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.market.domain.SysDatawarehouse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单详情Service接口
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-01
|
||||
*/
|
||||
public interface ISysDatawarehouseService extends IService<SysDatawarehouse> {
|
||||
/**
|
||||
* 精确查询订单详情
|
||||
*
|
||||
* @param orderId 订单详情主键
|
||||
* @return 订单详情
|
||||
*/
|
||||
public SysDatawarehouse selectSysDatawarehouseByOrderId(Long orderId);
|
||||
|
||||
/**
|
||||
* 查询订单详情列表
|
||||
*
|
||||
* @param sysDatawarehouse 订单详情
|
||||
* @return 订单详情集合
|
||||
*/
|
||||
public List<SysDatawarehouse> selectSysDatawarehouseList(SysDatawarehouse sysDatawarehouse);
|
||||
|
||||
/**
|
||||
* 判断 订单详情 id是否唯一
|
||||
* @param sysDatawarehouse 订单详情
|
||||
* @return 结果
|
||||
*/
|
||||
Boolean checkIdUnique(SysDatawarehouse sysDatawarehouse);
|
||||
|
||||
}
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
* @author 2112A
|
||||
* @date 2024-08-25
|
||||
*/
|
||||
@Service
|
||||
|
||||
public interface ISysFirminfoService extends IService<SysFirm> {
|
||||
/**
|
||||
* 精确查询firmList
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.muyu.market.service;
|
||||
|
||||
public interface RealNameService {
|
||||
|
||||
|
||||
Object getDataSourceType();
|
||||
|
||||
void setDataSourceType(String master);
|
||||
|
||||
void clearDataSourceType();
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.market.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.market.domain.SysInvoice;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SysInvoiceService extends IService<SysInvoice> {
|
||||
|
||||
|
||||
List<SysInvoice> sysinvoceList(SysInvoice sysInvoice);
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.muyu.market.service;
|
||||
|
||||
//import com.muyu.market.domain.realname.RealNameReq;
|
||||
|
||||
public interface TestService {
|
||||
|
||||
/**
|
||||
* 实名认证
|
||||
* @param realNameReq
|
||||
*/
|
||||
// void realName(RealNameReq realNameReq);
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
//package com.muyu.market.service.impl;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//import com.muyu.market.domain.realname.RealNameReq;
|
||||
//import com.muyu.market.domain.realname.RealNameResp;
|
||||
//
|
||||
//import com.muyu.market.retuen.BascApi;
|
||||
//import com.muyu.market.service.RealNameService;
|
||||
//import org.springframework.stereotype.Service;
|
||||
//
|
||||
//import java.util.HashSet;
|
||||
//import java.util.Set;
|
||||
//
|
||||
//@Service("jvhe-real-name")
|
||||
//public class RealNameServiceImpl implements BascApi<RealNameReq, RealNameResp> {
|
||||
//
|
||||
//
|
||||
// private static final Set<String> realNameSet = new HashSet<String>() {{
|
||||
// add("张三-234423457654345676");
|
||||
// add("李四-234423457644345676");
|
||||
// add("忘我-234423457677345676");
|
||||
// add("赵六-234423455654345676");
|
||||
// add("田七-235646457654345676");
|
||||
// }};
|
||||
//
|
||||
// @Override
|
||||
// public RealNameResp send(RealNameReq realNameReq) {
|
||||
// if (realNameSet.add(realNameReq.getName() + realNameReq.getIdCard())) {
|
||||
// return RealNameResp.builder().code("0").msg("ok").build();
|
||||
// }
|
||||
//
|
||||
// throw new RuntimeException("线路抢修中!!!!");
|
||||
// }
|
||||
// private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();
|
||||
// public static void setDataSourceType(String dataSourceType){
|
||||
// contextHolder.set(dataSourceType);
|
||||
// }
|
||||
// public static String getDataSourceType(){
|
||||
// return contextHolder.get();
|
||||
// }
|
||||
// public static void clearDataSourceType(){
|
||||
// contextHolder.remove();
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
|
@ -0,0 +1,22 @@
|
|||
package com.muyu.market.service.impl;
|
||||
|
||||
import com.muyu.market.service.RealNameService;
|
||||
|
||||
public class RealNamesServiceImpl implements RealNameService {
|
||||
@Override
|
||||
public Object getDataSourceType() {
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDataSourceType(String master) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearDataSourceType() {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
package com.muyu.market.service.impl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.market.domain.SysDatawarehouse;
|
||||
import com.muyu.market.mapper.SysDatawarehouseMapper;
|
||||
import com.muyu.market.service.ISysDatawarehouseService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单详情Service业务层处理
|
||||
*
|
||||
* @author 2112A
|
||||
* @date 2024-09-01
|
||||
*/
|
||||
@Service
|
||||
public class SysDatawarehouseServiceImpl
|
||||
extends ServiceImpl<SysDatawarehouseMapper, SysDatawarehouse>
|
||||
implements ISysDatawarehouseService {
|
||||
|
||||
/**
|
||||
* 精确查询订单详情
|
||||
*
|
||||
* @param orderId 订单详情主键
|
||||
* @return 订单详情
|
||||
*/
|
||||
@Override
|
||||
public SysDatawarehouse selectSysDatawarehouseByOrderId(Long orderId)
|
||||
{
|
||||
LambdaQueryWrapper<SysDatawarehouse> queryWrapper = new LambdaQueryWrapper<>();
|
||||
Assert.notNull(orderId, "orderId不可为空");
|
||||
queryWrapper.eq(SysDatawarehouse::getOrderId, orderId);
|
||||
return this.getOne(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询订单详情列表
|
||||
*
|
||||
* @param sysDatawarehouse 订单详情
|
||||
* @return 订单详情
|
||||
*/
|
||||
@Override
|
||||
public List<SysDatawarehouse> selectSysDatawarehouseList(SysDatawarehouse sysDatawarehouse)
|
||||
{
|
||||
LambdaQueryWrapper<SysDatawarehouse> queryWrapper = new LambdaQueryWrapper<>();
|
||||
if (StringUtils.isNotEmpty(sysDatawarehouse.getOrderBian())){
|
||||
queryWrapper.eq(SysDatawarehouse::getOrderBian, sysDatawarehouse.getOrderBian());
|
||||
}
|
||||
// if (StringUtils.isNotEmpty(sysDatawarehouse.getOrderTime())){
|
||||
// queryWrapper.eq(SysDatawarehouse::getOrderTime, sysDatawarehouse.getOrderTime());
|
||||
// }
|
||||
// if (StringUtils.isNotEmpty(sysDatawarehouse.getUserId())){
|
||||
// queryWrapper.eq(SysDatawarehouse::getUserId, sysDatawarehouse.getUserId());
|
||||
// }
|
||||
if (StringUtils.isNotEmpty(sysDatawarehouse.getShopName())){
|
||||
queryWrapper.like(SysDatawarehouse::getShopName, sysDatawarehouse.getShopName());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(sysDatawarehouse.getOrderName())){
|
||||
queryWrapper.like(SysDatawarehouse::getOrderName, sysDatawarehouse.getOrderName());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(sysDatawarehouse.getPhone())){
|
||||
queryWrapper.eq(SysDatawarehouse::getPhone, sysDatawarehouse.getPhone());
|
||||
}
|
||||
// if (StringUtils.isNotEmpty(sysDatawarehouse.getOrderScore())){
|
||||
// queryWrapper.eq(SysDatawarehouse::getOrderScore, sysDatawarehouse.getOrderScore());
|
||||
// }
|
||||
if (StringUtils.isNotEmpty(sysDatawarehouse.getPayway())){
|
||||
queryWrapper.eq(SysDatawarehouse::getPayway, sysDatawarehouse.getPayway());
|
||||
}
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 唯一 判断
|
||||
* @param sysDatawarehouse 订单详情
|
||||
* @return 订单详情
|
||||
*/
|
||||
@Override
|
||||
public Boolean checkIdUnique(SysDatawarehouse sysDatawarehouse) {
|
||||
LambdaQueryWrapper<SysDatawarehouse> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(SysDatawarehouse::getOrderId, sysDatawarehouse.getOrderId());
|
||||
return this.count(queryWrapper) > 0;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.muyu.market.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.market.domain.SysInvoice;
|
||||
import com.muyu.market.mapper.SysFirminfoMapper;
|
||||
import com.muyu.market.mapper.SysInvoiceMapper;
|
||||
import com.muyu.market.service.SysInvoiceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
@Service
|
||||
public class SysInvoiceServiceImpl
|
||||
extends ServiceImpl<SysInvoiceMapper, SysInvoice>
|
||||
implements SysInvoiceService {
|
||||
|
||||
@Autowired
|
||||
private SysInvoiceMapper sysInvoiceMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public List<SysInvoice> sysinvoceList(SysInvoice sysInvoice) {
|
||||
return sysInvoiceMapper.selectSysApitypeList(sysInvoice);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.market.service.impl;
|
||||
|
||||
//import com.muyu.market.domain.realname.RealNameReq;
|
||||
import com.muyu.market.service.TestService;
|
||||
|
||||
|
||||
public class TestServiceImpl implements TestService {
|
||||
// @Override
|
||||
// public void realName(RealNameReq realNameReq) {
|
||||
//
|
||||
//
|
||||
//
|
||||
// }
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 10008
|
||||
port: 10007
|
||||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
|
|
|
@ -0,0 +1,91 @@
|
|||
<?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.muyu.market.mapper.SysDatawarehouseMapper">
|
||||
|
||||
<resultMap type="com.muyu.market.domain.SysDatawarehouse" id="SysDatawarehouseResult">
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="orderBian" column="order_bian" />
|
||||
<result property="orderTime" column="order_time" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="shopName" column="shop_name" />
|
||||
<result property="orderName" column="order_name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="orderScore" column="order_score" />
|
||||
<result property="payway" column="payway" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysDatawarehouseVo">
|
||||
select order_id, order_bian, order_time, user_id, shop_name, order_name, phone, order_score, payway from sys_datawarehouse
|
||||
</sql>
|
||||
|
||||
<select id="selectSysDatawarehouseList" parameterType="com.muyu.market.domain.SysDatawarehouse" resultMap="SysDatawarehouseResult">
|
||||
<include refid="selectSysDatawarehouseVo"/>
|
||||
<where>
|
||||
<if test="orderBian != null and orderBian != ''"> and order_bian = #{orderBian}</if>
|
||||
<if test="orderTime != null "> and order_time = #{orderTime}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="shopName != null and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if>
|
||||
<if test="orderName != null and orderName != ''"> and order_name like concat('%', #{orderName}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="orderScore != null "> and order_score = #{orderScore}</if>
|
||||
<if test="payway != null and payway != ''"> and payway = #{payway}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysDatawarehouseByOrderId" parameterType="Long" resultMap="SysDatawarehouseResult">
|
||||
<include refid="selectSysDatawarehouseVo"/>
|
||||
where order_id = #{orderId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysDatawarehouse" parameterType="com.muyu.market.domain.SysDatawarehouse" useGeneratedKeys="true" keyProperty="orderId">
|
||||
insert into sys_datawarehouse
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderBian != null">order_bian,</if>
|
||||
<if test="orderTime != null">order_time,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="shopName != null">shop_name,</if>
|
||||
<if test="orderName != null">order_name,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="orderScore != null">order_score,</if>
|
||||
<if test="payway != null">payway,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderBian != null">#{orderBian},</if>
|
||||
<if test="orderTime != null">#{orderTime},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="shopName != null">#{shopName},</if>
|
||||
<if test="orderName != null">#{orderName},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="orderScore != null">#{orderScore},</if>
|
||||
<if test="payway != null">#{payway},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysDatawarehouse" parameterType="com.muyu.market.domain.SysDatawarehouse">
|
||||
update sys_datawarehouse
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderBian != null">order_bian = #{orderBian},</if>
|
||||
<if test="orderTime != null">order_time = #{orderTime},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="shopName != null">shop_name = #{shopName},</if>
|
||||
<if test="orderName != null">order_name = #{orderName},</if>
|
||||
<if test="phone != null">phone = #{phone},</if>
|
||||
<if test="orderScore != null">order_score = #{orderScore},</if>
|
||||
<if test="payway != null">payway = #{payway},</if>
|
||||
</trim>
|
||||
where order_id = #{orderId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysDatawarehouseByOrderId" parameterType="Long">
|
||||
delete from sys_datawarehouse where order_id = #{orderId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysDatawarehouseByOrderIds" parameterType="String">
|
||||
delete from sys_datawarehouse where order_id in
|
||||
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
||||
#{orderId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -5,7 +5,7 @@
|
|||
<mapper namespace="com.muyu.market.mapper.SysFirminfoMapper">
|
||||
<resultMap type="com.muyu.market.domain.SysFirm" id="SysFirmResult">
|
||||
<result property="firmId" column="firm_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="adminsid" column="adminsid" />
|
||||
<result property="firmTem" column="firm_tem" />
|
||||
<result property="names" column="names" />
|
||||
<result property="position" column="position" />
|
||||
|
@ -18,7 +18,7 @@
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectSysFirminfoVo">
|
||||
select firm_id, user_id, firm_tem, names, position, firm_region, firm_from, social_reputation, business_license, firm_time, firm_score from sys_firminfo
|
||||
select firm_id, adminsid,firm_tem, names, position, firm_region, firm_from, social_reputation, business_license, firm_time, firm_score from sys_firminfo
|
||||
</sql>
|
||||
<select id="selectSysApitypeList" resultType="com.muyu.market.domain.SysFirm">
|
||||
<include refid="selectSysFirminfoVo"/>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<?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.muyu.market.mapper.SysInvoiceMapper">
|
||||
|
||||
<select id="selectSysApitypeList" resultType="com.muyu.market.domain.SysInvoice">
|
||||
SELECT order_id,order_bian,companyname,order_name,order_score,order_times,order_type FROM sys_datawarehouse LEFT JOIN
|
||||
sys_invoices on sys_datawarehouse.order_id=sys_invoices.serial
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-market</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-mark-ali-server</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,11 @@
|
|||
package com.market.data.mart;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class DataMartApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DataMartApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-mart-ali</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-mart-ali-client</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-market</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-mart-ali</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>cloud-mart-ali-client</module>
|
||||
<module>cloud-mark-ali-server</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
10
pom.xml
10
pom.xml
|
@ -18,6 +18,9 @@
|
|||
<module>cloud-market-client</module>
|
||||
<module>cloud-market-common</module>
|
||||
<module>cloud-market-remote</module>
|
||||
<module>cloud-market-polymerization</module>
|
||||
<module>cloud-mart-ali</module>
|
||||
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
|
@ -29,4 +32,11 @@
|
|||
<description>
|
||||
cloud-market数据集市模块
|
||||
</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue