企业列表出来了

master
张毅大神 2024-09-08 22:40:18 +08:00
parent 9863b40919
commit 55cb47df28
59 changed files with 396554 additions and 2848 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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();
}
}

View File

@ -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())

View File

@ -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();
}
}

View File

@ -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;
//}

View File

@ -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;
//}

View File

@ -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();
// }
//}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
//
//
//
//}

View File

@ -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;
//
//}

View File

@ -0,0 +1,14 @@
package com.muyu.market.retuen;
public interface BascApi<REQ, RES> {
/**
*
* @retuen
*/
RES send(REQ req);
}

View File

@ -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>

View File

@ -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>

View File

@ -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);
}
}

View File

@ -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()
// );
//}};
// }
//
//}

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,6 @@
package com.market.ploymeriz;
public class Ploymeriz {
}

View File

@ -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;
// }
//
//
//}

View File

@ -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();
}
}

View File

@ -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);
}
}

View File

@ -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";
// }
//
//
//
//}

View File

@ -14,7 +14,7 @@ import java.util.List;
* @author ruoyi
* @date 2024-08-21
*/
@Service
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
/**
*

View File

@ -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> {
}

View File

@ -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);
}

View File

@ -0,0 +1,4 @@
package com.muyu.market.mapper;
public interface TestMapper {
}

View File

@ -12,7 +12,7 @@ import java.util.List;
* @author ruoyi
*/
@Service
public interface ISysApitypeService extends IService<SysApitype> {
/**
*

View File

@ -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);
}

View File

@ -13,7 +13,7 @@ import java.util.List;
* @author 2112A
* @date 2024-08-25
*/
@Service
public interface ISysFirminfoService extends IService<SysFirm> {
/**
* firmList

View File

@ -0,0 +1,11 @@
package com.muyu.market.service;
public interface RealNameService {
Object getDataSourceType();
void setDataSourceType(String master);
void clearDataSourceType();
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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();
// }
//
//
//}
//
//
//
//
//
//
//
//

View File

@ -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() {
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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) {
//
//
//
// }
}

View File

@ -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>

View File

@ -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"/>

View File

@ -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>

View File

@ -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>

View File

@ -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);
}
}

View File

@ -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>

View File

@ -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
View File

@ -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>