feat():运营平台/客户业务系统(完善)
parent
6f6f8ade92
commit
2b7c46093f
|
@ -0,0 +1,20 @@
|
|||
<?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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-customer-business</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-customer-business-client</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,32 @@
|
|||
<?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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-customer-business</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-customer-business-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-core</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-security</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,89 @@
|
|||
package com.muyu.customer.business.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.customer.business.domain.req.FenceQueryReq;
|
||||
import com.muyu.customer.business.domain.req.FenceSaveReq;
|
||||
import com.muyu.customer.business.domain.req.FenceEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电子围栏对象 fence
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("fence")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Fence", description = "电子围栏")
|
||||
public class Fence extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "id", value = "id")
|
||||
private Long id;
|
||||
|
||||
/** 电子围栏名称 */
|
||||
@Excel(name = "电子围栏名称")
|
||||
@ApiModelProperty(name = "电子围栏名称", value = "电子围栏名称")
|
||||
private String name;
|
||||
|
||||
/** 围栏类型 */
|
||||
@Excel(name = "围栏类型")
|
||||
@ApiModelProperty(name = "围栏类型", value = "围栏类型")
|
||||
private String fenceType;
|
||||
|
||||
/** 经纬度信息 */
|
||||
@Excel(name = "经纬度信息")
|
||||
@ApiModelProperty(name = "经纬度信息", value = "经纬度信息")
|
||||
private String longitudeAndLatitude;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Fence queryBuild( FenceQueryReq fenceQueryReq){
|
||||
return Fence.builder()
|
||||
.name(fenceQueryReq.getName())
|
||||
.fenceType(fenceQueryReq.getFenceType())
|
||||
.longitudeAndLatitude(fenceQueryReq.getLongitudeAndLatitude())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Fence saveBuild(FenceSaveReq fenceSaveReq){
|
||||
return Fence.builder()
|
||||
.name(fenceSaveReq.getName())
|
||||
.fenceType(fenceSaveReq.getFenceType())
|
||||
.longitudeAndLatitude(fenceSaveReq.getLongitudeAndLatitude())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Fence editBuild(Long id, FenceEditReq fenceEditReq){
|
||||
return Fence.builder()
|
||||
.id(id)
|
||||
.name(fenceEditReq.getName())
|
||||
.fenceType(fenceEditReq.getFenceType())
|
||||
.longitudeAndLatitude(fenceEditReq.getLongitudeAndLatitude())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,197 @@
|
|||
package com.muyu.customer.business.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.customer.business.domain.req.VehicleQueryReq;
|
||||
import com.muyu.customer.business.domain.req.VehicleSaveReq;
|
||||
import com.muyu.customer.business.domain.req.VehicleEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆录入对象 vehicle
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("vehicle")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Vehicle", description = "车辆录入")
|
||||
public class Vehicle extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 车辆id */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "车辆id", value = "车辆id")
|
||||
private Long id;
|
||||
|
||||
/** 车辆vin */
|
||||
@Excel(name = "车辆vin")
|
||||
@ApiModelProperty(name = "车辆vin", value = "车辆vin")
|
||||
private String vin;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
@ApiModelProperty(name = "品牌", value = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty(name = "型号", value = "型号")
|
||||
private String model;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "生产日期", value = "生产日期")
|
||||
private Date productionDate;
|
||||
|
||||
/** 车身类型 */
|
||||
@Excel(name = "车身类型")
|
||||
@ApiModelProperty(name = "车身类型", value = "车身类型")
|
||||
private String bodyType;
|
||||
|
||||
/** 车身颜色 */
|
||||
@Excel(name = "车身颜色")
|
||||
@ApiModelProperty(name = "车身颜色", value = "车身颜色")
|
||||
private String color;
|
||||
|
||||
/** 发动机排量 */
|
||||
@Excel(name = "发动机排量")
|
||||
@ApiModelProperty(name = "发动机排量", value = "发动机排量")
|
||||
private BigDecimal engineCapacity;
|
||||
|
||||
/** 燃油类型 */
|
||||
@Excel(name = "燃油类型")
|
||||
@ApiModelProperty(name = "燃油类型", value = "燃油类型")
|
||||
private String fuelType;
|
||||
|
||||
/** 变速器类型 */
|
||||
@Excel(name = "变速器类型")
|
||||
@ApiModelProperty(name = "变速器类型", value = "变速器类型")
|
||||
private String transmission;
|
||||
|
||||
/** 驱动方式 */
|
||||
@Excel(name = "驱动方式")
|
||||
@ApiModelProperty(name = "驱动方式", value = "驱动方式")
|
||||
private String driveType;
|
||||
|
||||
/** 行驶里程 */
|
||||
@Excel(name = "行驶里程")
|
||||
@ApiModelProperty(name = "行驶里程", value = "行驶里程")
|
||||
private BigDecimal mileage;
|
||||
|
||||
/** 注册日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "注册日期", value = "注册日期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 车牌号码 */
|
||||
@Excel(name = "车牌号码")
|
||||
@ApiModelProperty(name = "车牌号码", value = "车牌号码")
|
||||
private String licenseNumber;
|
||||
|
||||
/** 持有者 */
|
||||
@Excel(name = "持有者")
|
||||
@ApiModelProperty(name = "持有者", value = "持有者")
|
||||
private String holder;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Excel(name = "车辆类型")
|
||||
@ApiModelProperty(name = "车辆类型", value = "车辆类型")
|
||||
private String vehicleType;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Vehicle queryBuild( VehicleQueryReq vehicleQueryReq){
|
||||
return Vehicle.builder()
|
||||
.vin(vehicleQueryReq.getVin())
|
||||
.brand(vehicleQueryReq.getBrand())
|
||||
.model(vehicleQueryReq.getModel())
|
||||
.productionDate(vehicleQueryReq.getProductionDate())
|
||||
.bodyType(vehicleQueryReq.getBodyType())
|
||||
.color(vehicleQueryReq.getColor())
|
||||
.engineCapacity(vehicleQueryReq.getEngineCapacity())
|
||||
.fuelType(vehicleQueryReq.getFuelType())
|
||||
.transmission(vehicleQueryReq.getTransmission())
|
||||
.driveType(vehicleQueryReq.getDriveType())
|
||||
.mileage(vehicleQueryReq.getMileage())
|
||||
.registrationDate(vehicleQueryReq.getRegistrationDate())
|
||||
.licenseNumber(vehicleQueryReq.getLicenseNumber())
|
||||
.holder(vehicleQueryReq.getHolder())
|
||||
.vehicleType(vehicleQueryReq.getVehicleType())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Vehicle saveBuild(VehicleSaveReq vehicleSaveReq){
|
||||
return Vehicle.builder()
|
||||
.vin(vehicleSaveReq.getVin())
|
||||
.brand(vehicleSaveReq.getBrand())
|
||||
.model(vehicleSaveReq.getModel())
|
||||
.productionDate(vehicleSaveReq.getProductionDate())
|
||||
.bodyType(vehicleSaveReq.getBodyType())
|
||||
.color(vehicleSaveReq.getColor())
|
||||
.engineCapacity(vehicleSaveReq.getEngineCapacity())
|
||||
.fuelType(vehicleSaveReq.getFuelType())
|
||||
.transmission(vehicleSaveReq.getTransmission())
|
||||
.driveType(vehicleSaveReq.getDriveType())
|
||||
.mileage(vehicleSaveReq.getMileage())
|
||||
.registrationDate(vehicleSaveReq.getRegistrationDate())
|
||||
.licenseNumber(vehicleSaveReq.getLicenseNumber())
|
||||
.holder(vehicleSaveReq.getHolder())
|
||||
.vehicleType(vehicleSaveReq.getVehicleType())
|
||||
.createTime(new Date())
|
||||
.createBy(SecurityUtils.getUsername())
|
||||
.remark(vehicleSaveReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Vehicle editBuild(Long id, VehicleEditReq vehicleEditReq){
|
||||
return Vehicle.builder()
|
||||
.id(id)
|
||||
.vin(vehicleEditReq.getVin())
|
||||
.brand(vehicleEditReq.getBrand())
|
||||
.model(vehicleEditReq.getModel())
|
||||
.productionDate(vehicleEditReq.getProductionDate())
|
||||
.bodyType(vehicleEditReq.getBodyType())
|
||||
.color(vehicleEditReq.getColor())
|
||||
.engineCapacity(vehicleEditReq.getEngineCapacity())
|
||||
.fuelType(vehicleEditReq.getFuelType())
|
||||
.transmission(vehicleEditReq.getTransmission())
|
||||
.driveType(vehicleEditReq.getDriveType())
|
||||
.mileage(vehicleEditReq.getMileage())
|
||||
.registrationDate(vehicleEditReq.getRegistrationDate())
|
||||
.licenseNumber(vehicleEditReq.getLicenseNumber())
|
||||
.holder(vehicleEditReq.getHolder())
|
||||
.vehicleType(vehicleEditReq.getVehicleType())
|
||||
.updateTime(new Date())
|
||||
.updateBy(SecurityUtils.getUsername())
|
||||
.remark(vehicleEditReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电子围栏对象 fence
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "FenceEditReq", description = "电子围栏")
|
||||
public class FenceEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 电子围栏名称 */
|
||||
@ApiModelProperty(name = "电子围栏名称", value = "电子围栏名称")
|
||||
private String name;
|
||||
|
||||
/** 围栏类型 */
|
||||
@ApiModelProperty(name = "围栏类型", value = "围栏类型")
|
||||
private String fenceType;
|
||||
|
||||
/** 经纬度信息 */
|
||||
@ApiModelProperty(name = "经纬度信息", value = "经纬度信息")
|
||||
private String longitudeAndLatitude;
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电子围栏对象 fence
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "FenceQueryReq", description = "电子围栏")
|
||||
public class FenceQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 电子围栏名称 */
|
||||
@ApiModelProperty(name = "电子围栏名称", value = "电子围栏名称")
|
||||
private String name;
|
||||
|
||||
/** 围栏类型 */
|
||||
@ApiModelProperty(name = "围栏类型", value = "围栏类型")
|
||||
private String fenceType;
|
||||
|
||||
/** 经纬度信息 */
|
||||
@ApiModelProperty(name = "经纬度信息", value = "经纬度信息")
|
||||
private String longitudeAndLatitude;
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电子围栏对象 fence
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "FenceSaveReq", description = "电子围栏")
|
||||
public class FenceSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
|
||||
@ApiModelProperty(name = "id", value = "id")
|
||||
private Long id;
|
||||
|
||||
/** 电子围栏名称 */
|
||||
|
||||
@ApiModelProperty(name = "电子围栏名称", value = "电子围栏名称")
|
||||
private String name;
|
||||
|
||||
/** 围栏类型 */
|
||||
|
||||
@ApiModelProperty(name = "围栏类型", value = "围栏类型")
|
||||
private String fenceType;
|
||||
|
||||
/** 经纬度信息 */
|
||||
|
||||
@ApiModelProperty(name = "经纬度信息", value = "经纬度信息")
|
||||
private String longitudeAndLatitude;
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆录入对象 vehicle
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "VehicleEditReq", description = "车辆录入")
|
||||
public class VehicleEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 车辆vin */
|
||||
@ApiModelProperty(name = "车辆vin", value = "车辆vin")
|
||||
private String vin;
|
||||
|
||||
/** 品牌 */
|
||||
@ApiModelProperty(name = "品牌", value = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 型号 */
|
||||
@ApiModelProperty(name = "型号", value = "型号")
|
||||
private String model;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "生产日期", value = "生产日期")
|
||||
private Date productionDate;
|
||||
|
||||
/** 车身类型 */
|
||||
@ApiModelProperty(name = "车身类型", value = "车身类型")
|
||||
private String bodyType;
|
||||
|
||||
/** 车身颜色 */
|
||||
@ApiModelProperty(name = "车身颜色", value = "车身颜色")
|
||||
private String color;
|
||||
|
||||
/** 发动机排量 */
|
||||
@ApiModelProperty(name = "发动机排量", value = "发动机排量")
|
||||
private BigDecimal engineCapacity;
|
||||
|
||||
/** 燃油类型 */
|
||||
@ApiModelProperty(name = "燃油类型", value = "燃油类型")
|
||||
private String fuelType;
|
||||
|
||||
/** 变速器类型 */
|
||||
@ApiModelProperty(name = "变速器类型", value = "变速器类型")
|
||||
private String transmission;
|
||||
|
||||
/** 驱动方式 */
|
||||
@ApiModelProperty(name = "驱动方式", value = "驱动方式")
|
||||
private String driveType;
|
||||
|
||||
/** 行驶里程 */
|
||||
@ApiModelProperty(name = "行驶里程", value = "行驶里程")
|
||||
private BigDecimal mileage;
|
||||
|
||||
/** 注册日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "注册日期", value = "注册日期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 车牌号码 */
|
||||
@ApiModelProperty(name = "车牌号码", value = "车牌号码")
|
||||
private String licenseNumber;
|
||||
|
||||
/** 持有者 */
|
||||
@ApiModelProperty(name = "持有者", value = "持有者")
|
||||
private String holder;
|
||||
|
||||
/** 车辆类型 */
|
||||
@ApiModelProperty(name = "车辆类型", value = "车辆类型")
|
||||
private String vehicleType;
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆录入对象 vehicle
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "VehicleQueryReq", description = "车辆录入")
|
||||
public class VehicleQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 车辆vin */
|
||||
@ApiModelProperty(name = "车辆vin", value = "车辆vin")
|
||||
private String vin;
|
||||
|
||||
/** 品牌 */
|
||||
@ApiModelProperty(name = "品牌", value = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 型号 */
|
||||
@ApiModelProperty(name = "型号", value = "型号")
|
||||
private String model;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "生产日期", value = "生产日期")
|
||||
private Date productionDate;
|
||||
|
||||
/** 车身类型 */
|
||||
@ApiModelProperty(name = "车身类型", value = "车身类型")
|
||||
private String bodyType;
|
||||
|
||||
/** 车身颜色 */
|
||||
@ApiModelProperty(name = "车身颜色", value = "车身颜色")
|
||||
private String color;
|
||||
|
||||
/** 发动机排量 */
|
||||
@ApiModelProperty(name = "发动机排量", value = "发动机排量")
|
||||
private BigDecimal engineCapacity;
|
||||
|
||||
/** 燃油类型 */
|
||||
@ApiModelProperty(name = "燃油类型", value = "燃油类型")
|
||||
private String fuelType;
|
||||
|
||||
/** 变速器类型 */
|
||||
@ApiModelProperty(name = "变速器类型", value = "变速器类型")
|
||||
private String transmission;
|
||||
|
||||
/** 驱动方式 */
|
||||
@ApiModelProperty(name = "驱动方式", value = "驱动方式")
|
||||
private String driveType;
|
||||
|
||||
/** 行驶里程 */
|
||||
@ApiModelProperty(name = "行驶里程", value = "行驶里程")
|
||||
private BigDecimal mileage;
|
||||
|
||||
/** 注册日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "注册日期", value = "注册日期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 车牌号码 */
|
||||
@ApiModelProperty(name = "车牌号码", value = "车牌号码")
|
||||
private String licenseNumber;
|
||||
|
||||
/** 持有者 */
|
||||
@ApiModelProperty(name = "持有者", value = "持有者")
|
||||
private String holder;
|
||||
|
||||
/** 车辆类型 */
|
||||
@ApiModelProperty(name = "车辆类型", value = "车辆类型")
|
||||
private String vehicleType;
|
||||
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.muyu.customer.business.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆录入对象 vehicle
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "VehicleSaveReq", description = "车辆录入")
|
||||
public class VehicleSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 车辆id */
|
||||
|
||||
@ApiModelProperty(name = "车辆id", value = "车辆id")
|
||||
private Long id;
|
||||
|
||||
/** 车辆vin */
|
||||
|
||||
@ApiModelProperty(name = "车辆vin", value = "车辆vin")
|
||||
private String vin;
|
||||
|
||||
/** 品牌 */
|
||||
|
||||
@ApiModelProperty(name = "品牌", value = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 型号 */
|
||||
|
||||
@ApiModelProperty(name = "型号", value = "型号")
|
||||
private String model;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "生产日期", value = "生产日期")
|
||||
private Date productionDate;
|
||||
|
||||
/** 车身类型 */
|
||||
|
||||
@ApiModelProperty(name = "车身类型", value = "车身类型")
|
||||
private String bodyType;
|
||||
|
||||
/** 车身颜色 */
|
||||
|
||||
@ApiModelProperty(name = "车身颜色", value = "车身颜色")
|
||||
private String color;
|
||||
|
||||
/** 发动机排量 */
|
||||
|
||||
@ApiModelProperty(name = "发动机排量", value = "发动机排量")
|
||||
private BigDecimal engineCapacity;
|
||||
|
||||
/** 燃油类型 */
|
||||
|
||||
@ApiModelProperty(name = "燃油类型", value = "燃油类型")
|
||||
private String fuelType;
|
||||
|
||||
/** 变速器类型 */
|
||||
|
||||
@ApiModelProperty(name = "变速器类型", value = "变速器类型")
|
||||
private String transmission;
|
||||
|
||||
/** 驱动方式 */
|
||||
|
||||
@ApiModelProperty(name = "驱动方式", value = "驱动方式")
|
||||
private String driveType;
|
||||
|
||||
/** 行驶里程 */
|
||||
|
||||
@ApiModelProperty(name = "行驶里程", value = "行驶里程")
|
||||
private BigDecimal mileage;
|
||||
|
||||
/** 注册日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "注册日期", value = "注册日期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 车牌号码 */
|
||||
|
||||
@ApiModelProperty(name = "车牌号码", value = "车牌号码")
|
||||
private String licenseNumber;
|
||||
|
||||
/** 持有者 */
|
||||
|
||||
@ApiModelProperty(name = "持有者", value = "持有者")
|
||||
private String holder;
|
||||
|
||||
/** 车辆类型 */
|
||||
|
||||
@ApiModelProperty(name = "车辆类型", value = "车辆类型")
|
||||
private String vehicleType;
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<?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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-customer-business</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-customer-business-remote</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,116 @@
|
|||
<?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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-customer-business</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-customer-business-server</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-customer-business-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- MuYu Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- MuYu Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- MuYu Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- MuYu Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- 加入maven deploy插件,当在deploy时,忽略些model-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
</project>
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.customer.business;
|
||||
|
||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||
import com.muyu.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 车联网客户业务系统启动类 MuYuCustomerBusinessApplication
|
||||
*
|
||||
* @author DeKangLiu
|
||||
* Date 2024/5/27 16:51
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableMyFeignClients
|
||||
@SpringBootApplication
|
||||
public class MuYuCustomerBusinessApplication {
|
||||
public static void main (String[] args) {
|
||||
SpringApplication.run(MuYuCustomerBusinessApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.muyu.customer.business.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.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.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.customer.business.domain.Fence;
|
||||
import com.muyu.customer.business.domain.req.FenceQueryReq;
|
||||
import com.muyu.customer.business.domain.req.FenceSaveReq;
|
||||
import com.muyu.customer.business.domain.req.FenceEditReq;
|
||||
import com.muyu.customer.business.service.FenceService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 电子围栏Controller
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Api(tags = "电子围栏")
|
||||
@RestController
|
||||
@RequestMapping("/fence")
|
||||
public class FenceController extends BaseController {
|
||||
@Autowired
|
||||
private FenceService fenceService;
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*/
|
||||
@ApiOperation("获取电子围栏列表")
|
||||
@RequiresPermissions("customerBusiness:fence:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Fence>> list(FenceQueryReq fenceQueryReq) {
|
||||
startPage();
|
||||
List<Fence> list = fenceService.list(Fence.queryBuild(fenceQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出电子围栏列表
|
||||
*/
|
||||
@ApiOperation("导出电子围栏列表")
|
||||
@RequiresPermissions("customerBusiness:fence:export")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Fence fence) {
|
||||
List<Fence> list = fenceService.list(fence);
|
||||
ExcelUtil<Fence> util = new ExcelUtil<Fence>(Fence.class);
|
||||
util.exportExcel(response, list, "电子围栏数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子围栏详细信息
|
||||
*/
|
||||
@ApiOperation("获取电子围栏详细信息")
|
||||
@RequiresPermissions("customerBusiness:fence:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Fence> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(fenceService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电子围栏
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:fence:add")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增电子围栏")
|
||||
public Result<String> add(@RequestBody FenceSaveReq fenceSaveReq) {
|
||||
return toAjax(fenceService.save(Fence.saveBuild(fenceSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电子围栏
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:fence:edit")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改电子围栏")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody FenceEditReq fenceEditReq) {
|
||||
return toAjax(fenceService.updateById(Fence.editBuild(id,fenceEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子围栏
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:fence:remove")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除电子围栏")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
|
||||
public Result<String> remove(@PathVariable List<Long> ids) {
|
||||
return toAjax(fenceService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.muyu.customer.business.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.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.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.customer.business.domain.Vehicle;
|
||||
import com.muyu.customer.business.domain.req.VehicleQueryReq;
|
||||
import com.muyu.customer.business.domain.req.VehicleSaveReq;
|
||||
import com.muyu.customer.business.domain.req.VehicleEditReq;
|
||||
import com.muyu.customer.business.service.VehicleService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 车辆录入Controller
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Api(tags = "车辆录入")
|
||||
@RestController
|
||||
@RequestMapping("/vehicle")
|
||||
public class VehicleController extends BaseController {
|
||||
@Autowired
|
||||
private VehicleService vehicleService;
|
||||
|
||||
/**
|
||||
* 查询车辆录入列表
|
||||
*/
|
||||
@ApiOperation("获取车辆录入列表")
|
||||
@RequiresPermissions("customerBusiness:vehicle:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Vehicle>> list(VehicleQueryReq vehicleQueryReq) {
|
||||
startPage();
|
||||
List<Vehicle> list = vehicleService.list(Vehicle.queryBuild(vehicleQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车辆录入列表
|
||||
*/
|
||||
@ApiOperation("导出车辆录入列表")
|
||||
@RequiresPermissions("customerBusiness:vehicle:export")
|
||||
@Log(title = "车辆录入", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Vehicle vehicle) {
|
||||
List<Vehicle> list = vehicleService.list(vehicle);
|
||||
ExcelUtil<Vehicle> util = new ExcelUtil<Vehicle>(Vehicle.class);
|
||||
util.exportExcel(response, list, "车辆录入数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车辆录入详细信息
|
||||
*/
|
||||
@ApiOperation("获取车辆录入详细信息")
|
||||
@RequiresPermissions("customerBusiness:vehicle:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Vehicle> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(vehicleService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆录入
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:vehicle:add")
|
||||
@Log(title = "车辆录入", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增车辆录入")
|
||||
public Result<String> add(@RequestBody VehicleSaveReq vehicleSaveReq) {
|
||||
return toAjax(vehicleService.save(Vehicle.saveBuild(vehicleSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆录入
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:vehicle:edit")
|
||||
@Log(title = "车辆录入", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改车辆录入")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody VehicleEditReq vehicleEditReq) {
|
||||
return toAjax(vehicleService.updateById(Vehicle.editBuild(id,vehicleEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆录入
|
||||
*/
|
||||
@RequiresPermissions("customerBusiness:vehicle:remove")
|
||||
@Log(title = "车辆录入", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除车辆录入")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
|
||||
public Result<String> remove(@PathVariable List<Long> ids) {
|
||||
return toAjax(vehicleService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.muyu.customer.business.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.customer.business.domain.Fence;
|
||||
|
||||
/**
|
||||
* 电子围栏Mapper接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface FenceMapper extends BaseMapper<Fence> {
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.muyu.customer.business.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.customer.business.domain.Vehicle;
|
||||
|
||||
/**
|
||||
* 车辆录入Mapper接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface VehicleMapper extends BaseMapper<Vehicle> {
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.muyu.customer.business.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.customer.business.domain.Fence;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 电子围栏Service接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface FenceService extends IService<Fence> {
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 电子围栏集合
|
||||
*/
|
||||
public List<Fence> list(Fence fence);
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.muyu.customer.business.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.customer.business.domain.Vehicle;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 车辆录入Service接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface VehicleService extends IService<Vehicle> {
|
||||
/**
|
||||
* 查询车辆录入列表
|
||||
*
|
||||
* @param vehicle 车辆录入
|
||||
* @return 车辆录入集合
|
||||
*/
|
||||
public List<Vehicle> list(Vehicle vehicle);
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
package com.muyu.customer.business.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.customer.business.mapper.FenceMapper;
|
||||
import com.muyu.customer.business.domain.Fence;
|
||||
import com.muyu.customer.business.service.FenceService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
||||
/**
|
||||
* 电子围栏Service业务层处理
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class FenceServiceImpl extends ServiceImpl<FenceMapper, Fence> implements FenceService {
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 电子围栏
|
||||
*/
|
||||
@Override
|
||||
public List<Fence> list(Fence fence) {
|
||||
LambdaQueryWrapper<Fence> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(fence.getName())){
|
||||
queryWrapper.like(Fence::getName, fence.getName());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(fence.getFenceType())){
|
||||
queryWrapper.eq(Fence::getFenceType, fence.getFenceType());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(fence.getLongitudeAndLatitude())){
|
||||
queryWrapper.eq(Fence::getLongitudeAndLatitude, fence.getLongitudeAndLatitude());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
package com.muyu.customer.business.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.customer.business.mapper.VehicleMapper;
|
||||
import com.muyu.customer.business.domain.Vehicle;
|
||||
import com.muyu.customer.business.service.VehicleService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
||||
/**
|
||||
* 车辆录入Service业务层处理
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class VehicleServiceImpl extends ServiceImpl<VehicleMapper, Vehicle> implements VehicleService {
|
||||
|
||||
/**
|
||||
* 查询车辆录入列表
|
||||
*
|
||||
* @param vehicle 车辆录入
|
||||
* @return 车辆录入
|
||||
*/
|
||||
@Override
|
||||
public List<Vehicle> list(Vehicle vehicle) {
|
||||
LambdaQueryWrapper<Vehicle> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getVin())){
|
||||
queryWrapper.eq(Vehicle::getVin, vehicle.getVin());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getBrand())){
|
||||
queryWrapper.eq(Vehicle::getBrand, vehicle.getBrand());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getModel())){
|
||||
queryWrapper.eq(Vehicle::getModel, vehicle.getModel());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getProductionDate())){
|
||||
queryWrapper.eq(Vehicle::getProductionDate, vehicle.getProductionDate());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getBodyType())){
|
||||
queryWrapper.eq(Vehicle::getBodyType, vehicle.getBodyType());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getColor())){
|
||||
queryWrapper.eq(Vehicle::getColor, vehicle.getColor());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getEngineCapacity())){
|
||||
queryWrapper.eq(Vehicle::getEngineCapacity, vehicle.getEngineCapacity());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getFuelType())){
|
||||
queryWrapper.eq(Vehicle::getFuelType, vehicle.getFuelType());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getTransmission())){
|
||||
queryWrapper.eq(Vehicle::getTransmission, vehicle.getTransmission());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getDriveType())){
|
||||
queryWrapper.eq(Vehicle::getDriveType, vehicle.getDriveType());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getMileage())){
|
||||
queryWrapper.eq(Vehicle::getMileage, vehicle.getMileage());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getRegistrationDate())){
|
||||
queryWrapper.eq(Vehicle::getRegistrationDate, vehicle.getRegistrationDate());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getLicenseNumber())){
|
||||
queryWrapper.eq(Vehicle::getLicenseNumber, vehicle.getLicenseNumber());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getHolder())){
|
||||
queryWrapper.eq(Vehicle::getHolder, vehicle.getHolder());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(vehicle.getVehicleType())){
|
||||
queryWrapper.eq(Vehicle::getVehicleType, vehicle.getVehicleType());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
|
@ -0,0 +1,29 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9206
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: muyu-customer-business
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 101.34.248.9:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 101.34.248.9:8848
|
||||
namespace: b9d88e07-8713-4ccd-8e98-d7c19f40fe74
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
logging:
|
||||
level:
|
||||
com.muyu.net.working.mapper: DEBUG
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/muyu-customer-business"/>
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.muyu" level="info"/>
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn"/>
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console"/>
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info"/>
|
||||
<appender-ref ref="file_error"/>
|
||||
</root>
|
||||
</configuration>
|
|
@ -0,0 +1,22 @@
|
|||
<?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.customer.business.mapper.FenceMapper">
|
||||
|
||||
<resultMap type="com.muyu.customer.business.domain.Fence" id="FenceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="fenceType" column="fence_type" />
|
||||
<result property="longitudeAndLatitude" column="longitude_and_latitude" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectFenceVo">
|
||||
select id, name, fence_type, longitude_and_latitude, create_by, create_time, update_by, update_time, remark from fence
|
||||
</sql>
|
||||
</mapper>
|
|
@ -0,0 +1,34 @@
|
|||
<?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.customer.business.mapper.VehicleMapper">
|
||||
|
||||
<resultMap type="com.muyu.customer.business.domain.Vehicle" id="VehicleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="vin" column="vin" />
|
||||
<result property="brand" column="brand" />
|
||||
<result property="model" column="model" />
|
||||
<result property="productionDate" column="production_date" />
|
||||
<result property="bodyType" column="body_type" />
|
||||
<result property="color" column="color" />
|
||||
<result property="engineCapacity" column="engine_capacity" />
|
||||
<result property="fuelType" column="fuel_type" />
|
||||
<result property="transmission" column="transmission" />
|
||||
<result property="driveType" column="drive_type" />
|
||||
<result property="mileage" column="mileage" />
|
||||
<result property="registrationDate" column="registration_date" />
|
||||
<result property="licenseNumber" column="license_number" />
|
||||
<result property="holder" column="holder" />
|
||||
<result property="vehicleType" column="vehicle_type" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectVehicleVo">
|
||||
select id, vin, brand, model, production_date, body_type, color, engine_capacity, fuel_type, transmission, drive_type, mileage, registration_date, license_number, holder, vehicle_type, create_by, create_time, update_by, update_time, remark from vehicle
|
||||
</sql>
|
||||
</mapper>
|
|
@ -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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-modules</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-customer-business</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>muyu-customer-business-client</module>
|
||||
<module>muyu-customer-business-remote</module>
|
||||
<module>muyu-customer-business-common</module>
|
||||
<module>muyu-customer-business-server</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,33 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/** 增值服务
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 9:03
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class AddService extends BaseEntity {
|
||||
/**
|
||||
*增值服务id
|
||||
* */
|
||||
private Long id;
|
||||
/**
|
||||
*增值类型
|
||||
* */
|
||||
private Integer addValue;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/** 企业认证表
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 9:05
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Certification extends BaseEntity {
|
||||
/**
|
||||
*企业认证id
|
||||
* **/
|
||||
private Long id;
|
||||
/**
|
||||
*审核报告人
|
||||
* **/
|
||||
private String auditor;
|
||||
/**
|
||||
*待审核,已通过,未通过
|
||||
* **/
|
||||
private String stat;
|
||||
/**
|
||||
*审核报告
|
||||
* **/
|
||||
private String auditReason;
|
||||
|
||||
|
||||
}
|
|
@ -1,227 +1,196 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.net.working.domain.req.EnterpriseQueryReq;
|
||||
import com.muyu.net.working.domain.req.EnterpriseSaveReq;
|
||||
import com.muyu.net.working.domain.req.EnterpriseEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/** 企业入驻
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 8:51
|
||||
/**
|
||||
* 企业信息对象 enterprise
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("enterprise")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Enterprise", description = "企业信息")
|
||||
public class Enterprise extends BaseEntity {
|
||||
/**
|
||||
*q企业入驻id
|
||||
* **/
|
||||
private Long id;
|
||||
/**
|
||||
*企业名称
|
||||
* **/
|
||||
private String enterpriseName;
|
||||
/**
|
||||
*法定代表人
|
||||
* **/
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private String id;
|
||||
|
||||
/** 企业名称 */
|
||||
@Excel(name = "企业名称")
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String ebterpriseName;
|
||||
|
||||
/** 法定代表人 */
|
||||
@Excel(name = "法定代表人")
|
||||
@ApiModelProperty(name = "法定代表人", value = "法定代表人")
|
||||
private String legalPerson;
|
||||
/**
|
||||
*企业注册时获得的合法经营码
|
||||
* **/
|
||||
private String businessLicenseNumber;
|
||||
/**
|
||||
*企业成立的日期
|
||||
* **/
|
||||
private Date establishmentDate;
|
||||
/**
|
||||
*经营范围
|
||||
* **/
|
||||
|
||||
/** 经营执照凭证号码 */
|
||||
@Excel(name = "经营执照凭证号码")
|
||||
@ApiModelProperty(name = "经营执照凭证号码", value = "经营执照凭证号码")
|
||||
private String businessLincenseNumber;
|
||||
|
||||
/** 企业成立时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业成立时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立时间", value = "企业成立时间")
|
||||
private Date estabinessDate;
|
||||
|
||||
/** 经营范围 */
|
||||
@Excel(name = "经营范围")
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String businessScope;
|
||||
/**
|
||||
*注册地址
|
||||
* **/
|
||||
|
||||
/** 注册地址 */
|
||||
@Excel(name = "注册地址")
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String address;
|
||||
/**
|
||||
*联系企业的电话
|
||||
* **/
|
||||
|
||||
/** 企业联系方式 */
|
||||
@Excel(name = "企业联系方式")
|
||||
@ApiModelProperty(name = "企业联系方式", value = "企业联系方式")
|
||||
private String contactPhone;
|
||||
/**
|
||||
*公司邮箱
|
||||
* **/
|
||||
|
||||
/** 公司邮箱 */
|
||||
@Excel(name = "公司邮箱")
|
||||
@ApiModelProperty(name = "公司邮箱", value = "公司邮箱")
|
||||
private String email;
|
||||
/**
|
||||
*企业当前的状态
|
||||
* **/
|
||||
|
||||
/** 企业当前状态 */
|
||||
@Excel(name = "企业当前状态")
|
||||
@ApiModelProperty(name = "企业当前状态", value = "企业当前状态")
|
||||
private String status;
|
||||
/**
|
||||
*企业入驻平台的日期
|
||||
* **/
|
||||
|
||||
/** 企业入驻平台时期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业入驻平台时期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻平台时期", value = "企业入驻平台时期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 企业认证id */
|
||||
@Excel(name = "企业认证id")
|
||||
@ApiModelProperty(name = "企业认证id", value = "企业认证id")
|
||||
private Long certificationId;
|
||||
|
||||
/** 认证时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "认证时间", value = "认证时间")
|
||||
private Date authenticationDate;
|
||||
|
||||
/** 服务级别 */
|
||||
@Excel(name = "服务级别")
|
||||
@ApiModelProperty(name = "服务级别", value = "服务级别")
|
||||
private Long serviceLevel;
|
||||
|
||||
/** 开通服务id */
|
||||
@Excel(name = "开通服务id")
|
||||
@ApiModelProperty(name = "开通服务id", value = "开通服务id")
|
||||
private Long openServerId;
|
||||
|
||||
/** 增值服务id */
|
||||
@Excel(name = "增值服务id")
|
||||
@ApiModelProperty(name = "增值服务id", value = "增值服务id")
|
||||
private Long addServerId;
|
||||
|
||||
/**
|
||||
*企业认证
|
||||
* **/
|
||||
private String certification;
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Enterprise queryBuild( EnterpriseQueryReq enterpriseQueryReq){
|
||||
return Enterprise.builder()
|
||||
.ebterpriseName(enterpriseQueryReq.getEbterpriseName())
|
||||
.legalPerson(enterpriseQueryReq.getLegalPerson())
|
||||
.businessLincenseNumber(enterpriseQueryReq.getBusinessLincenseNumber())
|
||||
.estabinessDate(enterpriseQueryReq.getEstabinessDate())
|
||||
.businessScope(enterpriseQueryReq.getBusinessScope())
|
||||
.address(enterpriseQueryReq.getAddress())
|
||||
.contactPhone(enterpriseQueryReq.getContactPhone())
|
||||
.email(enterpriseQueryReq.getEmail())
|
||||
.status(enterpriseQueryReq.getStatus())
|
||||
.registrationDate(enterpriseQueryReq.getRegistrationDate())
|
||||
.certificationId(enterpriseQueryReq.getCertificationId())
|
||||
.authenticationDate(enterpriseQueryReq.getAuthenticationDate())
|
||||
.serviceLevel(enterpriseQueryReq.getServiceLevel())
|
||||
.openServerId(enterpriseQueryReq.getOpenServerId())
|
||||
.addServerId(enterpriseQueryReq.getAddServerId())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
*开通服务id
|
||||
* **/
|
||||
private Long openServiceId;
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Enterprise saveBuild(EnterpriseSaveReq enterpriseSaveReq){
|
||||
return Enterprise.builder()
|
||||
.ebterpriseName(enterpriseSaveReq.getEbterpriseName())
|
||||
.legalPerson(enterpriseSaveReq.getLegalPerson())
|
||||
.businessLincenseNumber(enterpriseSaveReq.getBusinessLincenseNumber())
|
||||
.estabinessDate(enterpriseSaveReq.getEstabinessDate())
|
||||
.businessScope(enterpriseSaveReq.getBusinessScope())
|
||||
.address(enterpriseSaveReq.getAddress())
|
||||
.contactPhone(enterpriseSaveReq.getContactPhone())
|
||||
.email(enterpriseSaveReq.getEmail())
|
||||
.status(enterpriseSaveReq.getStatus())
|
||||
.registrationDate(enterpriseSaveReq.getRegistrationDate())
|
||||
.certificationId(enterpriseSaveReq.getCertificationId())
|
||||
.authenticationDate(enterpriseSaveReq.getAuthenticationDate())
|
||||
.serviceLevel(enterpriseSaveReq.getServiceLevel())
|
||||
.openServerId(enterpriseSaveReq.getOpenServerId())
|
||||
.addServerId(enterpriseSaveReq.getAddServerId())
|
||||
.createBy(enterpriseSaveReq.getCreateBy())
|
||||
.createTime(new Date())
|
||||
.remark(enterpriseSaveReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
*增值服务id
|
||||
* **/
|
||||
private Integer addServiceId;
|
||||
|
||||
/***
|
||||
* 开通服务
|
||||
* */
|
||||
private String openAdd;
|
||||
|
||||
|
||||
public String getOpenAdd() {
|
||||
return openAdd;
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Enterprise editBuild(String id, EnterpriseEditReq enterpriseEditReq){
|
||||
return Enterprise.builder()
|
||||
.id(id)
|
||||
.ebterpriseName(enterpriseEditReq.getEbterpriseName())
|
||||
.legalPerson(enterpriseEditReq.getLegalPerson())
|
||||
.businessLincenseNumber(enterpriseEditReq.getBusinessLincenseNumber())
|
||||
.estabinessDate(enterpriseEditReq.getEstabinessDate())
|
||||
.businessScope(enterpriseEditReq.getBusinessScope())
|
||||
.address(enterpriseEditReq.getAddress())
|
||||
.contactPhone(enterpriseEditReq.getContactPhone())
|
||||
.email(enterpriseEditReq.getEmail())
|
||||
.status(enterpriseEditReq.getStatus())
|
||||
.registrationDate(enterpriseEditReq.getRegistrationDate())
|
||||
.certificationId(enterpriseEditReq.getCertificationId())
|
||||
.authenticationDate(enterpriseEditReq.getAuthenticationDate())
|
||||
.serviceLevel(enterpriseEditReq.getServiceLevel())
|
||||
.openServerId(enterpriseEditReq.getOpenServerId())
|
||||
.addServerId(enterpriseEditReq.getAddServerId())
|
||||
.updateBy(enterpriseEditReq.getUpdateBy())
|
||||
.updateTime(new Date())
|
||||
.remark(enterpriseEditReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
public void setOpenAdd(String openAdd) {
|
||||
this.openAdd = openAdd;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getEnterpriseName() {
|
||||
return enterpriseName;
|
||||
}
|
||||
|
||||
public void setEnterpriseName(String enterpriseName) {
|
||||
this.enterpriseName = enterpriseName;
|
||||
}
|
||||
|
||||
public String getLegalPerson() {
|
||||
return legalPerson;
|
||||
}
|
||||
|
||||
public void setLegalPerson(String legalPerson) {
|
||||
this.legalPerson = legalPerson;
|
||||
}
|
||||
|
||||
public String getBusinessLicenseNumber() {
|
||||
return businessLicenseNumber;
|
||||
}
|
||||
|
||||
public void setBusinessLicenseNumber(String businessLicenseNumber) {
|
||||
this.businessLicenseNumber = businessLicenseNumber;
|
||||
}
|
||||
|
||||
public Date getEstablishmentDate() {
|
||||
return establishmentDate;
|
||||
}
|
||||
|
||||
public void setEstablishmentDate(Date establishmentData) {
|
||||
this.establishmentDate = establishmentData;
|
||||
}
|
||||
|
||||
public String getBusinessScope() {
|
||||
return businessScope;
|
||||
}
|
||||
|
||||
public void setBusinessScope(String businessScope) {
|
||||
this.businessScope = businessScope;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getContactPhone() {
|
||||
return contactPhone;
|
||||
}
|
||||
|
||||
public void setContactPhone(String contactPhone) {
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Date getRegistrationDate() {
|
||||
return registrationDate;
|
||||
}
|
||||
|
||||
public void setRegistrationDate(Date registrationDate) {
|
||||
this.registrationDate = registrationDate;
|
||||
}
|
||||
|
||||
|
||||
public String getCertification() {
|
||||
return certification;
|
||||
}
|
||||
|
||||
public void setCertification(String certification) {
|
||||
this.certification = certification;
|
||||
}
|
||||
|
||||
public Long getOpenServiceId() {
|
||||
return openServiceId;
|
||||
}
|
||||
|
||||
public void setOpenServiceId(Long openServiceId) {
|
||||
this.openServiceId = openServiceId;
|
||||
}
|
||||
|
||||
public Integer getAddServiceId() {
|
||||
return addServiceId;
|
||||
}
|
||||
|
||||
public void setAddServiceId(Integer addServiceId) {
|
||||
this.addServiceId = addServiceId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id",getId())
|
||||
.append("enterpriseName",getEnterpriseName())
|
||||
.append("legalPerson",getLegalPerson())
|
||||
.append("businessLicenseNumber",getBusinessLicenseNumber())
|
||||
.append("establishmentDate",getEstablishmentDate())
|
||||
.append("businessScope",getBusinessScope())
|
||||
.append("address",getAddress())
|
||||
.append("contactPhone",getContactPhone())
|
||||
.append("email",getEmail())
|
||||
.append("status",getStatus())
|
||||
.append("registrationDate",getRegistrationDate())
|
||||
.append("certification",getCertification())
|
||||
.append("openServiceId",getOpenServiceId())
|
||||
.append("addServiceId",getAddServiceId())
|
||||
.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** 电字围栏组
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 15:16
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class FenceGroups extends BaseEntity {
|
||||
/**
|
||||
*属性组id
|
||||
* */
|
||||
private Long id;
|
||||
/**
|
||||
*属性组名称
|
||||
* */
|
||||
private String groupName;
|
||||
/**
|
||||
*电子围栏集合
|
||||
* */
|
||||
private List<Fences> fencesList;
|
||||
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/** 电子围栏
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 15:11
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Fences extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*围栏id
|
||||
* **/
|
||||
private Long id;
|
||||
/**
|
||||
*围栏组id
|
||||
*
|
||||
* **/
|
||||
private String groupId;
|
||||
/**
|
||||
*电子围栏名称
|
||||
*
|
||||
* **/
|
||||
private String fenceName;
|
||||
/**
|
||||
*
|
||||
*围栏类型 :原型 多边
|
||||
* **/
|
||||
private String fenceType;
|
||||
/**
|
||||
*
|
||||
*半径
|
||||
* **/
|
||||
private Double radius;
|
||||
/**
|
||||
* 驶入 驶出
|
||||
*
|
||||
* **/
|
||||
private String eventType;
|
||||
/**
|
||||
*围栏状态
|
||||
*
|
||||
* **/
|
||||
private String staut;
|
||||
/**
|
||||
*坐标
|
||||
*
|
||||
* **/
|
||||
private String polygonPoints;
|
||||
}
|
|
@ -1,161 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 车辆基本信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Information extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 车辆vin */
|
||||
@Excel(name = "车辆vin")
|
||||
private String number;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Excel(name = "车辆类型")
|
||||
private Long typeId;
|
||||
|
||||
/** 电子围栏id */
|
||||
@Excel(name = "电子围栏id")
|
||||
private Long electronicId;
|
||||
|
||||
/** 电机厂商 */
|
||||
@Excel(name = "电机厂商")
|
||||
private String motor;
|
||||
|
||||
/** 电池厂商 */
|
||||
@Excel(name = "电池厂商")
|
||||
private String battery;
|
||||
|
||||
/** 电机编号 */
|
||||
@Excel(name = "电机编号")
|
||||
private String motorNumber;
|
||||
|
||||
/** 电池编号 */
|
||||
@Excel(name = "电池编号")
|
||||
private String batteryNumber;
|
||||
|
||||
/** 企业id */
|
||||
@Excel(name = "企业id")
|
||||
private Long enterpriseId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setNumber(String number)
|
||||
{
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNumber()
|
||||
{
|
||||
return number;
|
||||
}
|
||||
public void setTypeId(Long typeId)
|
||||
{
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public Long getTypeId()
|
||||
{
|
||||
return typeId;
|
||||
}
|
||||
public void setElectronicId(Long electronicId)
|
||||
{
|
||||
this.electronicId = electronicId;
|
||||
}
|
||||
|
||||
public Long getElectronicId()
|
||||
{
|
||||
return electronicId;
|
||||
}
|
||||
public void setMotor(String motor)
|
||||
{
|
||||
this.motor = motor;
|
||||
}
|
||||
|
||||
public String getMotor()
|
||||
{
|
||||
return motor;
|
||||
}
|
||||
public void setBattery(String battery)
|
||||
{
|
||||
this.battery = battery;
|
||||
}
|
||||
|
||||
public String getBattery()
|
||||
{
|
||||
return battery;
|
||||
}
|
||||
public void setMotorNumber(String motorNumber)
|
||||
{
|
||||
this.motorNumber = motorNumber;
|
||||
}
|
||||
|
||||
public String getMotorNumber()
|
||||
{
|
||||
return motorNumber;
|
||||
}
|
||||
public void setBatteryNumber(String batteryNumber)
|
||||
{
|
||||
this.batteryNumber = batteryNumber;
|
||||
}
|
||||
|
||||
public String getBatteryNumber()
|
||||
{
|
||||
return batteryNumber;
|
||||
}
|
||||
public void setEnterpriseId(Long enterpriseId)
|
||||
{
|
||||
this.enterpriseId = enterpriseId;
|
||||
}
|
||||
|
||||
public Long getEnterpriseId()
|
||||
{
|
||||
return enterpriseId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("number", getNumber())
|
||||
.append("typeId", getTypeId())
|
||||
.append("electronicId", getElectronicId())
|
||||
.append("motor", getMotor())
|
||||
.append("battery", getBattery())
|
||||
.append("motorNumber", getMotorNumber())
|
||||
.append("batteryNumber", getBatteryNumber())
|
||||
.append("enterpriseId", getEnterpriseId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/** 支付方式
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 9:35
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class ModeOfPayment extends BaseEntity {
|
||||
/***
|
||||
* 支付id
|
||||
* */
|
||||
private Long id;
|
||||
/***
|
||||
* 支付方式/类型
|
||||
* */
|
||||
private String payment;
|
||||
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**开通服务
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/26 9:19
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class OpenServiceAdd extends BaseEntity {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*开通服务id
|
||||
* */
|
||||
private Long id;
|
||||
/**
|
||||
*1开通 2未开通
|
||||
*
|
||||
* */
|
||||
private String ActivateTheService;
|
||||
|
||||
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/** 支付表
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 9:33
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor@SuperBuilder
|
||||
public class PayOf extends BaseEntity {
|
||||
/**
|
||||
* 支付id
|
||||
* */
|
||||
private Long id;
|
||||
/**
|
||||
* 企业id
|
||||
* */
|
||||
private Long enterpriseId;
|
||||
/**
|
||||
* 支付方式/类型(id)
|
||||
* */
|
||||
private Long modeOfPaymentId;
|
||||
/**
|
||||
* 需要支付的金额
|
||||
* */
|
||||
private Double price;
|
||||
|
||||
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 车辆类型信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Type extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Excel(name = "车辆类型")
|
||||
private String typeName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTypeName(String typeName)
|
||||
{
|
||||
this.typeName = typeName;
|
||||
}
|
||||
|
||||
public String getTypeName()
|
||||
{
|
||||
return typeName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("typeName", getTypeName())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
package com.muyu.net.working.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/** 车辆入驻表
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/26 20:31
|
||||
*/
|
||||
public class Vehicle extends BaseEntity {
|
||||
private Long id;
|
||||
// 车辆唯一标识
|
||||
private String vin;
|
||||
// 车辆识别号码(VIN)
|
||||
private String brand;// 品牌
|
||||
private String model;
|
||||
private int manufactureYear; // 生产年份
|
||||
private String bodyType; // 车身类型,例如"Sedan", "SUV"
|
||||
private String color; // 车身颜色
|
||||
private double engineCapacity;
|
||||
// 发动机排量,单位升
|
||||
private String fuelType; // 燃油类型,例如"Petrol", "Diesel", "Electric"
|
||||
private String transmission;// 变速器类型,例如"Automatic", "Manual"
|
||||
private String driveType; // 驱动方式,例如"FWD", "RWD", "AWD"
|
||||
private long mileage; // 行驶里程,单位公
|
||||
private Date registrationDate; // 注册日期
|
||||
private String registrationNumber; // 车牌号码
|
||||
private String ownerId;
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.muyu.net.working.domain.req;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业信息对象 enterprise
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "EnterpriseEditReq", description = "企业信息")
|
||||
public class EnterpriseEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业名称 */
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String ebterpriseName;
|
||||
|
||||
/** 法定代表人 */
|
||||
@ApiModelProperty(name = "法定代表人", value = "法定代表人")
|
||||
private String legalPerson;
|
||||
|
||||
/** 经营执照凭证号码 */
|
||||
@ApiModelProperty(name = "经营执照凭证号码", value = "经营执照凭证号码")
|
||||
private String businessLincenseNumber;
|
||||
|
||||
/** 企业成立时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立时间", value = "企业成立时间")
|
||||
private Date estabinessDate;
|
||||
|
||||
/** 经营范围 */
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String businessScope;
|
||||
|
||||
/** 注册地址 */
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String address;
|
||||
|
||||
/** 企业联系方式 */
|
||||
@ApiModelProperty(name = "企业联系方式", value = "企业联系方式")
|
||||
private String contactPhone;
|
||||
|
||||
/** 公司邮箱 */
|
||||
@ApiModelProperty(name = "公司邮箱", value = "公司邮箱")
|
||||
private String email;
|
||||
|
||||
/** 企业当前状态 */
|
||||
@ApiModelProperty(name = "企业当前状态", value = "企业当前状态")
|
||||
private String status;
|
||||
|
||||
/** 企业入驻平台时期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻平台时期", value = "企业入驻平台时期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 企业认证id */
|
||||
@ApiModelProperty(name = "企业认证id", value = "企业认证id")
|
||||
private Long certificationId;
|
||||
|
||||
/** 认证时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "认证时间", value = "认证时间")
|
||||
private Date authenticationDate;
|
||||
|
||||
/** 服务级别 */
|
||||
@ApiModelProperty(name = "服务级别", value = "服务级别")
|
||||
private Long serviceLevel;
|
||||
|
||||
/** 开通服务id */
|
||||
@ApiModelProperty(name = "开通服务id", value = "开通服务id")
|
||||
private Long openServerId;
|
||||
|
||||
/** 增值服务id */
|
||||
@ApiModelProperty(name = "增值服务id", value = "增值服务id")
|
||||
private Long addServerId;
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.muyu.net.working.domain.req;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业信息对象 enterprise
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "EnterpriseQueryReq", description = "企业信息")
|
||||
public class EnterpriseQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业名称 */
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String ebterpriseName;
|
||||
|
||||
/** 法定代表人 */
|
||||
@ApiModelProperty(name = "法定代表人", value = "法定代表人")
|
||||
private String legalPerson;
|
||||
|
||||
/** 经营执照凭证号码 */
|
||||
@ApiModelProperty(name = "经营执照凭证号码", value = "经营执照凭证号码")
|
||||
private String businessLincenseNumber;
|
||||
|
||||
/** 企业成立时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立时间", value = "企业成立时间")
|
||||
private Date estabinessDate;
|
||||
|
||||
/** 经营范围 */
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String businessScope;
|
||||
|
||||
/** 注册地址 */
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String address;
|
||||
|
||||
/** 企业联系方式 */
|
||||
@ApiModelProperty(name = "企业联系方式", value = "企业联系方式")
|
||||
private String contactPhone;
|
||||
|
||||
/** 公司邮箱 */
|
||||
@ApiModelProperty(name = "公司邮箱", value = "公司邮箱")
|
||||
private String email;
|
||||
|
||||
/** 企业当前状态 */
|
||||
@ApiModelProperty(name = "企业当前状态", value = "企业当前状态")
|
||||
private String status;
|
||||
|
||||
/** 企业入驻平台时期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻平台时期", value = "企业入驻平台时期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 企业认证id */
|
||||
@ApiModelProperty(name = "企业认证id", value = "企业认证id")
|
||||
private Long certificationId;
|
||||
|
||||
/** 认证时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "认证时间", value = "认证时间")
|
||||
private Date authenticationDate;
|
||||
|
||||
/** 服务级别 */
|
||||
@ApiModelProperty(name = "服务级别", value = "服务级别")
|
||||
private Long serviceLevel;
|
||||
|
||||
/** 开通服务id */
|
||||
@ApiModelProperty(name = "开通服务id", value = "开通服务id")
|
||||
private Long openServerId;
|
||||
|
||||
/** 增值服务id */
|
||||
@ApiModelProperty(name = "增值服务id", value = "增值服务id")
|
||||
private Long addServerId;
|
||||
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.muyu.net.working.domain.req;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业信息对象 enterprise
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "EnterpriseSaveReq", description = "企业信息")
|
||||
public class EnterpriseSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private String id;
|
||||
|
||||
/** 企业名称 */
|
||||
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String ebterpriseName;
|
||||
|
||||
/** 法定代表人 */
|
||||
|
||||
@ApiModelProperty(name = "法定代表人", value = "法定代表人")
|
||||
private String legalPerson;
|
||||
|
||||
/** 经营执照凭证号码 */
|
||||
|
||||
@ApiModelProperty(name = "经营执照凭证号码", value = "经营执照凭证号码")
|
||||
private String businessLincenseNumber;
|
||||
|
||||
/** 企业成立时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "企业成立时间", value = "企业成立时间")
|
||||
private Date estabinessDate;
|
||||
|
||||
/** 经营范围 */
|
||||
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String businessScope;
|
||||
|
||||
/** 注册地址 */
|
||||
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String address;
|
||||
|
||||
/** 企业联系方式 */
|
||||
|
||||
@ApiModelProperty(name = "企业联系方式", value = "企业联系方式")
|
||||
private String contactPhone;
|
||||
|
||||
/** 公司邮箱 */
|
||||
|
||||
@ApiModelProperty(name = "公司邮箱", value = "公司邮箱")
|
||||
private String email;
|
||||
|
||||
/** 企业当前状态 */
|
||||
|
||||
@ApiModelProperty(name = "企业当前状态", value = "企业当前状态")
|
||||
private String status;
|
||||
|
||||
/** 企业入驻平台时期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "企业入驻平台时期", value = "企业入驻平台时期")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 企业认证id */
|
||||
|
||||
@ApiModelProperty(name = "企业认证id", value = "企业认证id")
|
||||
private Long certificationId;
|
||||
|
||||
/** 认证时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "认证时间", value = "认证时间")
|
||||
private Date authenticationDate;
|
||||
|
||||
/** 服务级别 */
|
||||
|
||||
@ApiModelProperty(name = "服务级别", value = "服务级别")
|
||||
private Long serviceLevel;
|
||||
|
||||
/** 开通服务id */
|
||||
|
||||
@ApiModelProperty(name = "开通服务id", value = "开通服务id")
|
||||
private Long openServerId;
|
||||
|
||||
/** 增值服务id */
|
||||
|
||||
@ApiModelProperty(name = "增值服务id", value = "增值服务id")
|
||||
private Long addServerId;
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.networking;
|
||||
package com.muyu.net.working;
|
||||
|
||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||
|
@ -7,17 +7,17 @@ import org.springframework.boot.SpringApplication;
|
|||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/25 8:45
|
||||
* 车联网运营平台启动类 MuYuNetWorkingApplication
|
||||
*
|
||||
* @author DeKangLiu
|
||||
* Date 2024/5/26 21:45
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableMyFeignClients
|
||||
@SpringBootApplication
|
||||
public class NetworkingApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(NetworkingApplication.class, args);
|
||||
public class MuYuNetWorkingApplication {
|
||||
public static void main (String[] args) {
|
||||
SpringApplication.run(MuYuNetWorkingApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.muyu.net.working.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.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.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.net.working.domain.Enterprise;
|
||||
import com.muyu.net.working.domain.req.EnterpriseQueryReq;
|
||||
import com.muyu.net.working.domain.req.EnterpriseSaveReq;
|
||||
import com.muyu.net.working.domain.req.EnterpriseEditReq;
|
||||
import com.muyu.net.working.service.EnterpriseService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 企业信息Controller
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Api(tags = "企业信息")
|
||||
@RestController
|
||||
@RequestMapping("/car")
|
||||
public class EnterpriseController extends BaseController {
|
||||
@Autowired
|
||||
private EnterpriseService enterpriseService;
|
||||
|
||||
/**
|
||||
* 查询企业信息列表
|
||||
*/
|
||||
@ApiOperation("获取企业信息列表")
|
||||
@RequiresPermissions("netWorking:car:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Enterprise>> list(EnterpriseQueryReq enterpriseQueryReq) {
|
||||
startPage();
|
||||
List<Enterprise> list = enterpriseService.list(Enterprise.queryBuild(enterpriseQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业信息列表
|
||||
*/
|
||||
@ApiOperation("导出企业信息列表")
|
||||
@RequiresPermissions("netWorking:car:export")
|
||||
@Log(title = "企业信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Enterprise enterprise) {
|
||||
List<Enterprise> list = enterpriseService.list(enterprise);
|
||||
ExcelUtil<Enterprise> util = new ExcelUtil<Enterprise>(Enterprise.class);
|
||||
util.exportExcel(response, list, "企业信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取企业信息详细信息")
|
||||
@RequiresPermissions("netWorking:car:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "String", paramType = "path", dataTypeClass = String.class)
|
||||
public Result<Enterprise> getInfo(@PathVariable("id") String id) {
|
||||
return Result.success(enterpriseService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业信息
|
||||
*/
|
||||
@RequiresPermissions("netWorking:car:add")
|
||||
@Log(title = "企业信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增企业信息")
|
||||
public Result<String> add(@RequestBody EnterpriseSaveReq enterpriseSaveReq) {
|
||||
return toAjax(enterpriseService.save(Enterprise.saveBuild(enterpriseSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业信息
|
||||
*/
|
||||
@RequiresPermissions("netWorking:car:edit")
|
||||
@Log(title = "企业信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改企业信息")
|
||||
public Result<String> edit(@PathVariable String id, @RequestBody EnterpriseEditReq enterpriseEditReq) {
|
||||
return toAjax(enterpriseService.updateById(Enterprise.editBuild(id,enterpriseEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业信息
|
||||
*/
|
||||
@RequiresPermissions("netWorking:car:remove")
|
||||
@Log(title = "企业信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除企业信息")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "String", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
|
||||
public Result<String> remove(@PathVariable List<String> ids) {
|
||||
return toAjax(enterpriseService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.muyu.net.working.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.net.working.domain.Enterprise;
|
||||
|
||||
/**
|
||||
* 企业信息Mapper接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface EnterpriseMapper extends BaseMapper<Enterprise> {
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.muyu.net.working.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.net.working.domain.Enterprise;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 企业信息Service接口
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface EnterpriseService extends IService<Enterprise> {
|
||||
/**
|
||||
* 查询企业信息列表
|
||||
*
|
||||
* @param enterprise 企业信息
|
||||
* @return 企业信息集合
|
||||
*/
|
||||
public List<Enterprise> list(Enterprise enterprise);
|
||||
|
||||
}
|
|
@ -0,0 +1,101 @@
|
|||
package com.muyu.net.working.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.net.working.mapper.EnterpriseMapper;
|
||||
import com.muyu.net.working.domain.Enterprise;
|
||||
import com.muyu.net.working.service.EnterpriseService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
||||
/**
|
||||
* 企业信息Service业务层处理
|
||||
*
|
||||
* @author muyu
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseMapper, Enterprise> implements EnterpriseService {
|
||||
|
||||
/**
|
||||
* 查询企业信息列表
|
||||
*
|
||||
* @param enterprise 企业信息
|
||||
* @return 企业信息
|
||||
*/
|
||||
@Override
|
||||
public List<Enterprise> list(Enterprise enterprise) {
|
||||
LambdaQueryWrapper<Enterprise> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getEbterpriseName())){
|
||||
queryWrapper.like(Enterprise::getEbterpriseName, enterprise.getEbterpriseName());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getLegalPerson())){
|
||||
queryWrapper.eq(Enterprise::getLegalPerson, enterprise.getLegalPerson());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getBusinessLincenseNumber())){
|
||||
queryWrapper.eq(Enterprise::getBusinessLincenseNumber, enterprise.getBusinessLincenseNumber());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getEstabinessDate())){
|
||||
queryWrapper.eq(Enterprise::getEstabinessDate, enterprise.getEstabinessDate());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getBusinessScope())){
|
||||
queryWrapper.eq(Enterprise::getBusinessScope, enterprise.getBusinessScope());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getAddress())){
|
||||
queryWrapper.eq(Enterprise::getAddress, enterprise.getAddress());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getContactPhone())){
|
||||
queryWrapper.eq(Enterprise::getContactPhone, enterprise.getContactPhone());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getEmail())){
|
||||
queryWrapper.eq(Enterprise::getEmail, enterprise.getEmail());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getStatus())){
|
||||
queryWrapper.eq(Enterprise::getStatus, enterprise.getStatus());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getRegistrationDate())){
|
||||
queryWrapper.eq(Enterprise::getRegistrationDate, enterprise.getRegistrationDate());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getCertificationId())){
|
||||
queryWrapper.eq(Enterprise::getCertificationId, enterprise.getCertificationId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getAuthenticationDate())){
|
||||
queryWrapper.eq(Enterprise::getAuthenticationDate, enterprise.getAuthenticationDate());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getServiceLevel())){
|
||||
queryWrapper.eq(Enterprise::getServiceLevel, enterprise.getServiceLevel());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getOpenServerId())){
|
||||
queryWrapper.eq(Enterprise::getOpenServerId, enterprise.getOpenServerId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(enterprise.getAddServerId())){
|
||||
queryWrapper.eq(Enterprise::getAddServerId, enterprise.getAddServerId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.AddService;
|
||||
import com.muyu.networking.service.AddServiceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/addService")
|
||||
public class AddServiceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private AddServiceService addServiceService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:service:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<AddService>> list(AddService addService)
|
||||
{
|
||||
startPage();
|
||||
List<AddService> list = addServiceService.selectAddServiceList(addService);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:service:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, AddService addService)
|
||||
{
|
||||
List<AddService> list = addServiceService.selectAddServiceList(addService);
|
||||
ExcelUtil<AddService> util = new ExcelUtil<AddService>(AddService.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:service:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(addServiceService.selectAddServiceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody AddService addService)
|
||||
{
|
||||
return toAjax(addServiceService.insertAddService(addService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody AddService addService)
|
||||
{
|
||||
return toAjax(addServiceService.updateAddService(addService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(addServiceService.deleteAddServiceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.Certification;
|
||||
import com.muyu.networking.service.CertificationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/certification")
|
||||
public class CertificationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private CertificationService certificationService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:certification:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Certification>> list(Certification certification)
|
||||
{
|
||||
startPage();
|
||||
List<Certification> list = certificationService.selectCertificationList(certification);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:certification:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Certification certification)
|
||||
{
|
||||
List<Certification> list = certificationService.selectCertificationList(certification);
|
||||
ExcelUtil<Certification> util = new ExcelUtil<Certification>(Certification.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:certification:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(certificationService.selectCertificationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:certification:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Certification certification)
|
||||
{
|
||||
return toAjax(certificationService.insertCertification(certification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:certification:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Certification certification)
|
||||
{
|
||||
return toAjax(certificationService.updateCertification(certification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:certification:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(certificationService.deleteCertificationByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.Enterprise;
|
||||
import com.muyu.networking.service.EnterpriseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/enterprise")
|
||||
public class EnterpriseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private EnterpriseService enterpriseService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Enterprise>> list(Enterprise enterprise)
|
||||
{
|
||||
startPage();
|
||||
List<Enterprise> list = enterpriseService.selectEnterpriseList(enterprise);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Enterprise enterprise)
|
||||
{
|
||||
List<Enterprise> list = enterpriseService.selectEnterpriseList(enterprise);
|
||||
ExcelUtil<Enterprise> util = new ExcelUtil<Enterprise>(Enterprise.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(enterpriseService.selectEnterpriseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Enterprise enterprise)
|
||||
{
|
||||
return toAjax(enterpriseService.insertEnterprise(enterprise));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Enterprise enterprise)
|
||||
{
|
||||
return toAjax(enterpriseService.updateEnterprise(enterprise));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:enterprise:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(enterpriseService.deleteEnterpriseByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.domain.Information;
|
||||
import com.muyu.networking.service.IInformationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/information")
|
||||
public class InformationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IInformationService informationService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Information>> list(Information information)
|
||||
{
|
||||
startPage();
|
||||
List<Information> list = informationService.selectInformationList(information);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Information information)
|
||||
{
|
||||
List<Information> list = informationService.selectInformationList(information);
|
||||
ExcelUtil<Information> util = new ExcelUtil<Information>(Information.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(informationService.selectInformationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Information information)
|
||||
{
|
||||
return toAjax(informationService.insertInformation(information));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Information information)
|
||||
{
|
||||
return toAjax(informationService.updateInformation(information));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(informationService.deleteInformationByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.ModeOfPayment;
|
||||
import com.muyu.networking.service.ModeOfPaymentIdService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/id")
|
||||
public class ModeOfPaymentIdController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ModeOfPaymentIdService modeOfPaymentIdService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:id:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<ModeOfPayment>> list(ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
startPage();
|
||||
List<ModeOfPayment> list = modeOfPaymentIdService.selectModeOfPaymentIdList(modeOfPaymentId);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:id:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
List<ModeOfPayment> list = modeOfPaymentIdService.selectModeOfPaymentIdList(modeOfPaymentId);
|
||||
ExcelUtil<ModeOfPayment> util = new ExcelUtil<ModeOfPayment>(ModeOfPayment.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:id:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(modeOfPaymentIdService.selectModeOfPaymentIdById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:id:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
return toAjax(modeOfPaymentIdService.insertModeOfPaymentId(modeOfPaymentId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:id:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
return toAjax(modeOfPaymentIdService.updateModeOfPaymentId(modeOfPaymentId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:id:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(modeOfPaymentIdService.deleteModeOfPaymentIdByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.OpenServiceAdd;
|
||||
import com.muyu.networking.service.OpenServiceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/service")
|
||||
public class OpenServiceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private OpenServiceService openServiceService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:service:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<OpenServiceAdd>> list(OpenServiceAdd openService)
|
||||
{
|
||||
startPage();
|
||||
List<OpenServiceAdd> list = openServiceService.selectOpenServiceList(openService);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:service:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OpenServiceAdd openService)
|
||||
{
|
||||
List<OpenServiceAdd> list = openServiceService.selectOpenServiceList(openService);
|
||||
ExcelUtil<OpenServiceAdd> util = new ExcelUtil<OpenServiceAdd>(OpenServiceAdd.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:service:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(openServiceService.selectOpenServiceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody OpenServiceAdd openService)
|
||||
{
|
||||
return toAjax(openServiceService.insertOpenService(openService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody OpenServiceAdd openService)
|
||||
{
|
||||
return toAjax(openServiceService.updateOpenService(openService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:service:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(openServiceService.deleteOpenServiceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.PayOf;
|
||||
import com.muyu.networking.service.PayOfService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/for")
|
||||
public class PayForController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private PayOfService payForService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:for:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<PayOf>> list(PayOf payFor)
|
||||
{
|
||||
startPage();
|
||||
List<PayOf> list = payForService.selectPayOfList(payFor);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:for:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PayOf payFor)
|
||||
{
|
||||
List<PayOf> list = payForService.selectPayOfList(payFor);
|
||||
ExcelUtil<PayOf> util = new ExcelUtil<PayOf>(PayOf.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:for:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(payForService.selectPayOfById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:for:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody PayOf payFor)
|
||||
{
|
||||
return toAjax(payForService.insertPayOf(payFor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:for:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody PayOf payFor)
|
||||
{
|
||||
return toAjax(payForService.updatePayOf(payFor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:for:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(payForService.deletePayOfByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,99 +0,0 @@
|
|||
package com.muyu.networking.controller;
|
||||
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.domain.Type;
|
||||
import com.muyu.networking.service.ITypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/type")
|
||||
public class TypeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITypeService typeService;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:type:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Type>> list(Type type)
|
||||
{
|
||||
startPage();
|
||||
List<Type> list = typeService.selectTypeList(type);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
*/
|
||||
@RequiresPermissions("system:type:export")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Type type)
|
||||
{
|
||||
List<Type> list = typeService.selectTypeList(type);
|
||||
ExcelUtil<Type> util = new ExcelUtil<Type>(Type.class);
|
||||
util.exportExcel(response, list, "【请填写功能名称】数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取【请填写功能名称】详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:type:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(typeService.selectTypeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:type:add")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Type type)
|
||||
{
|
||||
return toAjax(typeService.insertType(type));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:type:edit")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Type type)
|
||||
{
|
||||
return toAjax(typeService.updateType(type));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*/
|
||||
@RequiresPermissions("system:type:remove")
|
||||
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(typeService.deleteTypeByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
|
||||
import com.muyu.domain.AddService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface AddServiceMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public AddService selectAddServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<AddService> selectAddServiceList(AddService addService);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAddService(AddService addService);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAddService(AddService addService);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAddServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAddServiceByIds(Long[] ids);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
|
||||
import com.muyu.domain.Certification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface CertificationMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Certification selectCertificationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Certification> selectCertificationList(Certification certification);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCertification(Certification certification);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCertification(Certification certification);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCertificationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCertificationByIds(Long[] ids);
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.muyu.domain.Enterprise;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface EnterpriseMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Enterprise selectEnterpriseById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Enterprise> selectEnterpriseList(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEnterprise(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEnterprise(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEnterpriseById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEnterpriseByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 修改开通服务状态
|
||||
* */
|
||||
public int updateEnterpriseStatus(Long id,String openAdd);
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.domain.Fences;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:21
|
||||
*/
|
||||
@Mapper
|
||||
public interface FenceMapper extends BaseMapper<Fences> {
|
||||
|
||||
int addFeace(Fences fences);
|
||||
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
|
||||
import com.muyu.domain.Information;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface InformationMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Information selectInformationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Information> selectInformationList(Information information);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInformation(Information information);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInformation(Information information);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInformationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInformationByIds(Long[] ids);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
|
||||
import com.muyu.domain.ModeOfPayment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface ModeOfPaymentIdMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public ModeOfPayment selectModeOfPaymentIdById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<ModeOfPayment> selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteModeOfPaymentIdById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteModeOfPaymentIdByIds(Long[] ids);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.muyu.domain.OpenServiceAdd;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface OpenServiceMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public OpenServiceAdd selectOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<OpenServiceAdd> selectOpenServiceList(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOpenService(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOpenService(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceByIds(Long[] ids);
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.muyu.domain.PayOf;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface PayOfMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public PayOf selectPayOfById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<PayOf> selectPayOfList(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPayOf(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePayOf(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayOfById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayOfByIds(Long[] ids);
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.muyu.domain.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface TypeMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Type selectTypeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Type> selectTypeList(Type type);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertType(Type type);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateType(Type type);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeByIds(Long[] ids);
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package com.muyu.networking.opFen;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/27 15:11
|
||||
*/
|
||||
@FeignClient("muyu-system")
|
||||
public interface SysUserNet {
|
||||
|
||||
@PostMapping("/system/user")
|
||||
public Result add (@Validated @RequestBody SysUser user);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.AddService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface AddServiceService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public AddService selectAddServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<AddService> selectAddServiceList(AddService addService);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAddService(AddService addService);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAddService(AddService addService);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAddServiceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAddServiceById(Long id);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.Certification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface CertificationService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Certification selectCertificationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Certification> selectCertificationList(Certification certification);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCertification(Certification certification);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCertification(Certification certification);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCertificationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCertificationById(Long id);
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
import com.muyu.domain.Enterprise;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface EnterpriseService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Enterprise selectEnterpriseById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Enterprise> selectEnterpriseList(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEnterprise(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEnterprise(Enterprise enterprise);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEnterpriseByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEnterpriseById(Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 修改服务开通的状态
|
||||
* **/
|
||||
public int updateEnterpriseStatus(Long id,String openAdd);
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.domain.Fences;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:22
|
||||
*/
|
||||
public interface FenceService extends IService<Fences> {
|
||||
|
||||
int insertFence(Fences fences);
|
||||
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.domain.Information;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface IInformationService extends IService<Information>
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Information selectInformationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Information> selectInformationList(Information information);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInformation(Information information);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInformation(Information information);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInformationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInformationById(Long id);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.Type;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface ITypeService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public Type selectTypeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<Type> selectTypeList(Type type);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertType(Type type);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateType(Type type);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeById(Long id);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.ModeOfPayment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface ModeOfPaymentIdService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public ModeOfPayment selectModeOfPaymentIdById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<ModeOfPayment> selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteModeOfPaymentIdByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteModeOfPaymentIdById(Long id);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.OpenServiceAdd;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface OpenServiceService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public OpenServiceAdd selectOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<OpenServiceAdd> selectOpenServiceList(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOpenService(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOpenService(OpenServiceAdd openService);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceById(Long id);
|
||||
}
|
|
@ -1,63 +0,0 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.muyu.domain.PayOf;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
public interface PayOfService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public PayOf selectPayOfById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<PayOf> selectPayOfList(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPayOf(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePayOf(PayOf PayOf);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayOfByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayOfById(Long id);
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.AddService;
|
||||
import com.muyu.networking.mapper.AddServiceMapper;
|
||||
import com.muyu.networking.service.AddServiceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class AddServiceServiceImpl implements AddServiceService
|
||||
{
|
||||
@Autowired
|
||||
private AddServiceMapper addServiceMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public AddService selectAddServiceById(Long id)
|
||||
{
|
||||
return addServiceMapper.selectAddServiceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<AddService> selectAddServiceList(AddService addService)
|
||||
{
|
||||
return addServiceMapper.selectAddServiceList(addService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertAddService(AddService addService)
|
||||
{
|
||||
addService.setCreateTime(DateUtils.getNowDate());
|
||||
return addServiceMapper.insertAddService(addService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param addService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAddService(AddService addService)
|
||||
{
|
||||
addService.setUpdateTime(DateUtils.getNowDate());
|
||||
return addServiceMapper.updateAddService(addService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAddServiceByIds(Long[] ids)
|
||||
{
|
||||
return addServiceMapper.deleteAddServiceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAddServiceById(Long id)
|
||||
{
|
||||
return addServiceMapper.deleteAddServiceById(id);
|
||||
}
|
||||
}
|
|
@ -1,99 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.Certification;
|
||||
import com.muyu.networking.mapper.CertificationMapper;
|
||||
import com.muyu.networking.service.CertificationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class CertificationServiceImpl implements CertificationService
|
||||
{
|
||||
@Autowired
|
||||
private CertificationMapper certificationMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public Certification selectCertificationById(Long id)
|
||||
{
|
||||
return certificationMapper.selectCertificationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<Certification> selectCertificationList(Certification certification)
|
||||
{
|
||||
return certificationMapper.selectCertificationList(certification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCertification(Certification certification)
|
||||
{
|
||||
certification.setCreateTime(DateUtils.getNowDate());
|
||||
return certificationMapper.insertCertification(certification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param certification 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCertification(Certification certification)
|
||||
{
|
||||
certification.setUpdateTime(DateUtils.getNowDate());
|
||||
return certificationMapper.updateCertification(certification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCertificationByIds(Long[] ids)
|
||||
{
|
||||
return certificationMapper.deleteCertificationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCertificationById(Long id)
|
||||
{
|
||||
return certificationMapper.deleteCertificationById(id);
|
||||
}
|
||||
}
|
|
@ -1,247 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.muyu.common.system.remote.RemoteUserService;
|
||||
import com.muyu.domain.Enterprise;
|
||||
import com.muyu.networking.mapper.EnterpriseMapper;
|
||||
import com.muyu.networking.service.EnterpriseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class EnterpriseServiceImpl implements EnterpriseService
|
||||
{
|
||||
@Autowired
|
||||
private EnterpriseMapper enterpriseMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public Enterprise selectEnterpriseById(Long id)
|
||||
{
|
||||
return enterpriseMapper.selectEnterpriseById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<Enterprise> selectEnterpriseList(Enterprise enterprise)
|
||||
{
|
||||
return enterpriseMapper.selectEnterpriseList(enterprise);
|
||||
}
|
||||
@Autowired
|
||||
private RemoteUserService remoteUserService;
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEnterprise(Enterprise enterprise)
|
||||
{
|
||||
enterprise.setCreateBy(SecurityUtils.getUsername());
|
||||
enterprise.setCreateTime(DateUtils.getNowDate());
|
||||
enterprise.setBusinessLicenseNumber(UUID.randomUUID().toString().replaceAll("-",""));
|
||||
enterprise.setStatus("1");
|
||||
enterprise.setCertification("1");
|
||||
enterprise.setOpenAdd("0");
|
||||
SysUser sysUser = SysUser.builder().userName(enterprise.getEnterpriseName())
|
||||
.password("admin")
|
||||
.nickName(enterprise.getEnterpriseName()).
|
||||
userType(String.valueOf(enterprise.getId()))
|
||||
.build();
|
||||
Result add = remoteUserService.add(sysUser);
|
||||
return enterpriseMapper.insertEnterprise(enterprise);
|
||||
}
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param enterprise 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEnterprise(Enterprise enterprise)
|
||||
{
|
||||
enterprise.setUpdateTime(DateUtils.getNowDate());
|
||||
return enterpriseMapper.updateEnterprise(enterprise);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEnterpriseByIds(Long[] ids)
|
||||
{
|
||||
return enterpriseMapper.deleteEnterpriseByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEnterpriseById(Long id)
|
||||
{
|
||||
return enterpriseMapper.deleteEnterpriseById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateEnterpriseStatus(Long id, String openAdd) {
|
||||
if (enterpriseMapper.updateEnterpriseStatus(id, openAdd) > 0) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//public void DockerMySQLExample() throws IOException {
|
||||
// //配置docker 客户端配置
|
||||
// DefaultDockerClientConfig.createDefaultConfigBuilder()
|
||||
// .withDockerHost("tcp://115.159.67.205:3306") // 使用Docker守护进程地址
|
||||
// .build();
|
||||
// DockerClient dockerClient = DockerClientBuilder.getInstance().build();
|
||||
//
|
||||
// try {
|
||||
// CreateContainerCmd createContainerCmd = dockerClient.createContainerCmd("mysql:latest")
|
||||
// .withName("my-mysql-container")
|
||||
// .withEnv("MYSQL_ROOT_PASSWORD=my-secret-pw");
|
||||
// CreateContainerResponse container = createContainerCmd.exec();
|
||||
// System.out.println("Created container " + container.getId());
|
||||
// dockerClient.startContainerCmd(container.getId()).exec();
|
||||
// InspectContainerResponse inspectContainerResponse = dockerClient.inspectContainerCmd(container.getId()).exec();
|
||||
// System.out.println("Started container " + container.getId());
|
||||
// System.out.println("Container started, inspecting logs:");
|
||||
// InputStream logs = dockerClient.logContainerCmd(container.getId())
|
||||
// .withStdErr(true)
|
||||
// .withStdOut(true)
|
||||
// .withFollowStream(true)
|
||||
// .exec();
|
||||
// try (BufferedReader reader = new BufferedReader(new InputStreamReader(logs))) {
|
||||
// String line;
|
||||
// while ((line = reader.readLine()) != null) {
|
||||
// System.out.println(line);
|
||||
// }
|
||||
// }
|
||||
// ExecCreateCmdResponse execCreateCmdResponse = dockerClient.execCreateCmd(container.getId())
|
||||
// .withCmd("mysql", "-u", "root", "-p", "my-secret-pw", "my_database")
|
||||
// .exec();
|
||||
// }
|
||||
// catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// dockerClient.close();
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// public void DockerMySQLExample() throws IOException {
|
||||
// // 配置Docker客户端
|
||||
// DefaultDockerClientConfig config = DefaultDockerClientConfig.createDefaultConfigBuilder()
|
||||
// .withDockerHost("tcp://115.159.67.205:3306") // 使用Docker守护进程地址
|
||||
// .build();
|
||||
// DockerClient dockerClient = DockerClientBuilder.getInstance(config).build();
|
||||
//
|
||||
// try {
|
||||
// // 创建新的MySQL容器
|
||||
// CreateContainerCmd createContainerCmd = dockerClient.createContainerCmd("mysql:latest")
|
||||
// .withName("my-mysql-container")
|
||||
// .withEnv("MYSQL_ROOT_PASSWORD=my-secret-pw");
|
||||
//
|
||||
// CreateContainerResponse container = createContainerCmd.exec();
|
||||
// System.out.println("Created container " + container.getId());
|
||||
//
|
||||
// // 启动MySQL容器
|
||||
// dockerClient.startContainerCmd(container.getId()).exec();
|
||||
//
|
||||
// // 执行初始化脚本
|
||||
// String initScript = "CREATE DATABASE IF NOT EXISTS mydb;\n" +
|
||||
// "GRANT ALL PRIVILEGES ON mydb.* TO 'myuser' IDENTIFIED BY 'mypass';";
|
||||
//
|
||||
// // 获取容器的进程信息
|
||||
// InspectContainerResponse inspectContainerResponse = dockerClient.inspectContainerCmd(container.getId()).exec();
|
||||
// String containerId = inspectContainerResponse.getId();
|
||||
//
|
||||
// // 将初始化脚本通过stdin传递给MySQL
|
||||
// String execId = dockerClient.execCreateCmd(containerId, "/bin/bash", "-c", "mysql -u root -p$MYSQL_ROOT_PASSWORD")
|
||||
// .withAttachStdout(true)
|
||||
// .withAttachStdin(true)
|
||||
// .exec()
|
||||
// .getId();
|
||||
//
|
||||
// try (ExecStartResultCallback callback = new ExecStartResultCallback()) {
|
||||
//
|
||||
// InputStream execStream = dockerClient.execStartCmd(execId).withDetach(false)
|
||||
// .withTty(false)
|
||||
// .withCmd(initScript)
|
||||
// .exec()
|
||||
// .getExecResult()
|
||||
// .getStdout();
|
||||
//
|
||||
// // 读取并打印脚本执行结果
|
||||
// BufferedReader reader = new BufferedReader(new InputStreamReader(execStream));
|
||||
// String line;
|
||||
// while ((line = reader.readLine()) != null) {
|
||||
// System.out.println(line);
|
||||
// }
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// } finally {
|
||||
// // 清理资源,移除容器
|
||||
// dockerClient.close();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.domain.Fences;
|
||||
import com.muyu.networking.mapper.FenceMapper;
|
||||
import com.muyu.networking.service.FenceService;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:23
|
||||
*/
|
||||
public class FenceServiceImpl extends ServiceImpl<FenceMapper, Fences> implements FenceService {
|
||||
|
||||
|
||||
@Override
|
||||
public int insertFence(Fences fences) {
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.Information;
|
||||
import com.muyu.networking.mapper.InformationMapper;
|
||||
import com.muyu.networking.service.IInformationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Service
|
||||
public class InformationServiceImpl implements IInformationService
|
||||
{
|
||||
@Autowired
|
||||
private InformationMapper informationMapper;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public Information selectInformationById(Long id)
|
||||
{
|
||||
return informationMapper.selectInformationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<Information> selectInformationList(Information information)
|
||||
{
|
||||
return informationMapper.selectInformationList(information);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInformation(Information information)
|
||||
{
|
||||
information.setCreateTime(DateUtils.getNowDate());
|
||||
return informationMapper.insertInformation(information);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param information 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInformation(Information information)
|
||||
{
|
||||
information.setUpdateTime(DateUtils.getNowDate());
|
||||
return informationMapper.updateInformation(information);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInformationByIds(Long[] ids)
|
||||
{
|
||||
return informationMapper.deleteInformationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInformationById(Long id)
|
||||
{
|
||||
return informationMapper.deleteInformationById(id);
|
||||
}
|
||||
}
|
|
@ -1,99 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.ModeOfPayment;
|
||||
import com.muyu.networking.mapper.ModeOfPaymentIdMapper;
|
||||
import com.muyu.networking.service.ModeOfPaymentIdService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class ModeOfPaymentIdServiceImpl implements ModeOfPaymentIdService
|
||||
{
|
||||
@Autowired
|
||||
private ModeOfPaymentIdMapper modeOfPaymentIdMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public ModeOfPayment selectModeOfPaymentIdById(Long id)
|
||||
{
|
||||
return modeOfPaymentIdMapper.selectModeOfPaymentIdById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<ModeOfPayment> selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
return modeOfPaymentIdMapper.selectModeOfPaymentIdList(modeOfPaymentId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
modeOfPaymentId.setCreateTime(DateUtils.getNowDate());
|
||||
return modeOfPaymentIdMapper.insertModeOfPaymentId(modeOfPaymentId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param modeOfPaymentId 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId)
|
||||
{
|
||||
modeOfPaymentId.setUpdateTime(DateUtils.getNowDate());
|
||||
return modeOfPaymentIdMapper.updateModeOfPaymentId(modeOfPaymentId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteModeOfPaymentIdByIds(Long[] ids)
|
||||
{
|
||||
return modeOfPaymentIdMapper.deleteModeOfPaymentIdByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteModeOfPaymentIdById(Long id)
|
||||
{
|
||||
return modeOfPaymentIdMapper.deleteModeOfPaymentIdById(id);
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.OpenServiceAdd;
|
||||
import com.muyu.networking.mapper.OpenServiceMapper;
|
||||
import com.muyu.networking.service.OpenServiceService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class OpenServiceServiceImpl implements OpenServiceService
|
||||
{
|
||||
@Autowired
|
||||
private OpenServiceMapper openServiceMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public OpenServiceAdd selectOpenServiceById(Long id)
|
||||
{
|
||||
return openServiceMapper.selectOpenServiceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<OpenServiceAdd> selectOpenServiceList(OpenServiceAdd openService)
|
||||
{
|
||||
return openServiceMapper.selectOpenServiceList(openService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOpenService(OpenServiceAdd openService)
|
||||
{
|
||||
openService.setCreateTime(DateUtils.getNowDate());
|
||||
return openServiceMapper.insertOpenService(openService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param openService 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOpenService(OpenServiceAdd openService)
|
||||
{
|
||||
openService.setUpdateTime(DateUtils.getNowDate());
|
||||
return openServiceMapper.updateOpenService(openService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOpenServiceByIds(Long[] ids)
|
||||
{
|
||||
return openServiceMapper.deleteOpenServiceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOpenServiceById(Long id)
|
||||
{
|
||||
return openServiceMapper.deleteOpenServiceById(id);
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.PayOf;
|
||||
import com.muyu.networking.mapper.PayOfMapper;
|
||||
import com.muyu.networking.service.PayOfService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-25
|
||||
*/
|
||||
@Service
|
||||
public class PayOfServiceImpl implements PayOfService
|
||||
{
|
||||
@Autowired
|
||||
private PayOfMapper payOfMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public PayOf selectPayOfById(Long id)
|
||||
{
|
||||
return payOfMapper.selectPayOfById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<PayOf> selectPayOfList(PayOf PayOf)
|
||||
{
|
||||
return payOfMapper.selectPayOfList(PayOf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPayOf(PayOf PayOf)
|
||||
{
|
||||
PayOf.setCreateTime(DateUtils.getNowDate());
|
||||
return payOfMapper.insertPayOf(PayOf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param PayOf 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePayOf(PayOf PayOf)
|
||||
{
|
||||
PayOf.setUpdateTime(DateUtils.getNowDate());
|
||||
return payOfMapper.updatePayOf(PayOf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePayOfByIds(Long[] ids)
|
||||
{
|
||||
return payOfMapper.deletePayOfByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePayOfById(Long id)
|
||||
{
|
||||
return payOfMapper.deletePayOfById(id);
|
||||
}
|
||||
}
|
|
@ -1,99 +0,0 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.Type;
|
||||
import com.muyu.networking.mapper.TypeMapper;
|
||||
import com.muyu.networking.service.ITypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
@Service
|
||||
public class TypeServiceImpl implements ITypeService
|
||||
{
|
||||
@Autowired
|
||||
private TypeMapper typeMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public Type selectTypeById(Long id)
|
||||
{
|
||||
return typeMapper.selectTypeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<Type> selectTypeList(Type type)
|
||||
{
|
||||
return typeMapper.selectTypeList(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertType(Type type)
|
||||
{
|
||||
type.setCreateTime(DateUtils.getNowDate());
|
||||
return typeMapper.insertType(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param type 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateType(Type type)
|
||||
{
|
||||
type.setUpdateTime(DateUtils.getNowDate());
|
||||
return typeMapper.updateType(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeByIds(Long[] ids)
|
||||
{
|
||||
return typeMapper.deleteTypeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeById(Long id)
|
||||
{
|
||||
return typeMapper.deleteTypeById(id);
|
||||
}
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
<?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.networking.mapper.AddServiceMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.AddService" id="AddServiceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="addValue" column="add_value" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAddServiceVo">
|
||||
select id, add_value, remark, create_by, create_time, update_time, update_by from add_service
|
||||
</sql>
|
||||
|
||||
<select id="selectAddServiceList" parameterType="com.muyu.domain.AddService" resultMap="AddServiceResult">
|
||||
<include refid="selectAddServiceVo"/>
|
||||
<where>
|
||||
<if test="addValue != null and addValue != ''"> and add_value = #{addValue}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectAddServiceById" parameterType="Long" resultMap="AddServiceResult">
|
||||
<include refid="selectAddServiceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAddService" parameterType="com.muyu.domain.AddService" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into add_service
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="addValue != null">add_value,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="addValue != null">#{addValue},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAddService" parameterType="com.muyu.domain.AddService">
|
||||
update add_service
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="addValue != null">add_value = #{addValue},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAddServiceById" parameterType="Long">
|
||||
delete from add_service where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAddServiceByIds" parameterType="String">
|
||||
delete from add_service where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,86 +0,0 @@
|
|||
<?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.networking.mapper.CertificationMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.Certification" id="CertificationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="auditor" column="auditor" />
|
||||
<result property="stat" column="stat" />
|
||||
<result property="auditReason" column="audit_reason" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCertificationVo">
|
||||
select id, auditor, stat, audit_reason, remark, create_by, create_time, update_by, update_time from certification
|
||||
</sql>
|
||||
|
||||
<select id="selectCertificationList" parameterType="com.muyu.domain.Certification" resultMap="CertificationResult">
|
||||
<include refid="selectCertificationVo"/>
|
||||
<where>
|
||||
<if test="auditor != null and auditor != ''"> and auditor = #{auditor}</if>
|
||||
<if test="stat != null and stat != ''"> and stat = #{stat}</if>
|
||||
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCertificationById" parameterType="Long" resultMap="CertificationResult">
|
||||
<include refid="selectCertificationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCertification" parameterType="com.muyu.domain.Certification" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into certification
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="auditor != null">auditor,</if>
|
||||
<if test="stat != null">stat,</if>
|
||||
<if test="auditReason != null">audit_reason,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="auditor != null">#{auditor},</if>
|
||||
<if test="stat != null">#{stat},</if>
|
||||
<if test="auditReason != null">#{auditReason},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCertification" parameterType="com.muyu.domain.Certification">
|
||||
update certification
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="auditor != null">auditor = #{auditor},</if>
|
||||
<if test="stat != null">stat = #{stat},</if>
|
||||
<if test="auditReason != null">audit_reason = #{auditReason},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCertificationById" parameterType="Long">
|
||||
delete from certification where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCertificationByIds" parameterType="String">
|
||||
delete from certification where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,134 +0,0 @@
|
|||
<?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.networking.mapper.EnterpriseMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.Enterprise" id="EnterpriseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="enterpriseName" column="enterprise_name" />
|
||||
<result property="legalPerson" column="legal_person" />
|
||||
<result property="businessLicenseNumber" column="business_license_number" />
|
||||
<result property="openAdd" column="open_add" />
|
||||
<result property="establishmentDate" column="establishment_date" />
|
||||
<result property="businessScope" column="business_scope" />
|
||||
<result property="address" column="address" />
|
||||
<result property="contactPhone" column="contact_phone" />
|
||||
<result property="email" column="email" />
|
||||
<result property="status" column="status" />
|
||||
<result property="registrationDate" column="registration_date" />
|
||||
<result property="certification" column="certification" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEnterpriseVo">
|
||||
select id, enterprise_name,open_add, legal_person, business_license_number, establishment_date, business_scope, address, contact_phone, email, status, registration_date, certification, remark, create_by, create_time, update_time, update_by from enterprise
|
||||
</sql>
|
||||
|
||||
<select id="selectEnterpriseList" parameterType="com.muyu.domain.Enterprise" resultMap="EnterpriseResult">
|
||||
<include refid="selectEnterpriseVo"/>
|
||||
<where>
|
||||
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
||||
<if test="legalPerson != null and legalPerson != ''"> and legal_person = #{legalPerson}</if>
|
||||
<if test="businessLicenseNumber != null and businessLicenseNumber != ''"> and business_license_number = #{businessLicenseNumber}</if>
|
||||
<if test="establishmentDate != null "> and establishment_date = #{establishmentDate}</if>
|
||||
<if test="businessScope != null and businessScope != ''"> and business_scope = #{businessScope}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
|
||||
<if test="email != null and email != ''"> and email = #{email}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="registrationDate != null "> and registration_date = #{registrationDate}</if>
|
||||
<if test="certification != null "> and certification = #{certification}</if>
|
||||
<if test="openAdd != null "> and open_add = #{openAdd}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEnterpriseById" parameterType="Long" resultMap="EnterpriseResult">
|
||||
<include refid="selectEnterpriseVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEnterprise" parameterType="com.muyu.domain.Enterprise" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into enterprise
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseName != null">enterprise_name,</if>
|
||||
<if test="legalPerson != null">legal_person,</if>
|
||||
<if test="businessLicenseNumber != null">business_license_number,</if>
|
||||
<if test="establishmentDate != null">establishment_date,</if>
|
||||
<if test="businessScope != null">business_scope,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="contactPhone != null">contact_phone,</if>
|
||||
<if test="email != null">email,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="registrationDate != null">registration_date,</if>
|
||||
<if test="certification != null">certification,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="openAdd != null">open_add,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseName != null">#{enterpriseName},</if>
|
||||
<if test="legalPerson != null">#{legalPerson},</if>
|
||||
<if test="businessLicenseNumber != null">#{businessLicenseNumber},</if>
|
||||
<if test="establishmentDate != null">#{establishmentDate},</if>
|
||||
<if test="businessScope != null">#{businessScope},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="contactPhone != null">#{contactPhone},</if>
|
||||
<if test="email != null">#{email},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="registrationDate != null">#{registrationDate},</if>
|
||||
<if test="certification != null">#{certification},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="openAdd != null">#{openAdd},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEnterprise" parameterType="com.muyu.domain.Enterprise">
|
||||
update enterprise
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
|
||||
<if test="legalPerson != null">legal_person = #{legalPerson},</if>
|
||||
<if test="businessLicenseNumber != null">business_license_number = #{businessLicenseNumber},</if>
|
||||
<if test="establishmentDate != null">establishment_date = #{establishmentDate},</if>
|
||||
<if test="businessScope != null">business_scope = #{businessScope},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
||||
<if test="email != null">email = #{email},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="registrationDate != null">registration_date = #{registrationDate},</if>
|
||||
<if test="certification != null">certification = #{certification},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="openAdd != null">open_add = #{openAdd},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateEnterpriseStatus">
|
||||
update enterprise set open_add = #{openAdd} where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEnterpriseById" parameterType="Long">
|
||||
delete from enterprise where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEnterpriseByIds" parameterType="String">
|
||||
delete from enterprise where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,107 +0,0 @@
|
|||
<?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.networking.mapper.InformationMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.Information" id="InformationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="number" column="number" />
|
||||
<result property="typeId" column="type_id" />
|
||||
<result property="electronicId" column="electronic_id" />
|
||||
<result property="motor" column="motor" />
|
||||
<result property="battery" column="battery" />
|
||||
<result property="motorNumber" column="motor_number" />
|
||||
<result property="batteryNumber" column="battery_number" />
|
||||
<result property="enterpriseId" column="enterprise_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectInformationVo">
|
||||
select id, number, type_id, electronic_id, motor, battery, motor_number, battery_number, enterprise_id, remark, create_by, create_time, update_time from information
|
||||
</sql>
|
||||
|
||||
<select id="selectInformationList" parameterType="com.muyu.domain.Information" resultMap="InformationResult">
|
||||
<include refid="selectInformationVo"/>
|
||||
<where>
|
||||
<if test="number != null and number != ''"> and number = #{number}</if>
|
||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||
<if test="electronicId != null "> and electronic_id = #{electronicId}</if>
|
||||
<if test="motor != null and motor != ''"> and motor = #{motor}</if>
|
||||
<if test="battery != null and battery != ''"> and battery = #{battery}</if>
|
||||
<if test="motorNumber != null and motorNumber != ''"> and motor_number = #{motorNumber}</if>
|
||||
<if test="batteryNumber != null and batteryNumber != ''"> and battery_number = #{batteryNumber}</if>
|
||||
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectInformationById" parameterType="Long" resultMap="InformationResult">
|
||||
<include refid="selectInformationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertInformation" parameterType="com.muyu.domain.Information" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into information
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="number != null">number,</if>
|
||||
<if test="typeId != null">type_id,</if>
|
||||
<if test="electronicId != null">electronic_id,</if>
|
||||
<if test="motor != null">motor,</if>
|
||||
<if test="battery != null">battery,</if>
|
||||
<if test="motorNumber != null">motor_number,</if>
|
||||
<if test="batteryNumber != null">battery_number,</if>
|
||||
<if test="enterpriseId != null">enterprise_id,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="number != null">#{number},</if>
|
||||
<if test="typeId != null">#{typeId},</if>
|
||||
<if test="electronicId != null">#{electronicId},</if>
|
||||
<if test="motor != null">#{motor},</if>
|
||||
<if test="battery != null">#{battery},</if>
|
||||
<if test="motorNumber != null">#{motorNumber},</if>
|
||||
<if test="batteryNumber != null">#{batteryNumber},</if>
|
||||
<if test="enterpriseId != null">#{enterpriseId},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateInformation" parameterType="com.muyu.domain.Information">
|
||||
update information
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="number != null">number = #{number},</if>
|
||||
<if test="typeId != null">type_id = #{typeId},</if>
|
||||
<if test="electronicId != null">electronic_id = #{electronicId},</if>
|
||||
<if test="motor != null">motor = #{motor},</if>
|
||||
<if test="battery != null">battery = #{battery},</if>
|
||||
<if test="motorNumber != null">motor_number = #{motorNumber},</if>
|
||||
<if test="batteryNumber != null">battery_number = #{batteryNumber},</if>
|
||||
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteInformationById" parameterType="Long">
|
||||
delete from information where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInformationByIds" parameterType="String">
|
||||
delete from information where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,76 +0,0 @@
|
|||
<?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.networking.mapper.ModeOfPaymentIdMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.ModeOfPayment" id="ModeOfPaymentIdResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="payment" column="payment" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectModeOfPaymentIdVo">
|
||||
select id, payment, remark, create_by, create_time, update_time, update_by from mode_of_payment_id
|
||||
</sql>
|
||||
|
||||
<select id="selectModeOfPaymentIdList" parameterType="com.muyu.domain.ModeOfPayment" resultMap="ModeOfPaymentIdResult">
|
||||
<include refid="selectModeOfPaymentIdVo"/>
|
||||
<where>
|
||||
<if test="payment != null and payment != ''"> and payment = #{payment}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectModeOfPaymentIdById" parameterType="Long" resultMap="ModeOfPaymentIdResult">
|
||||
<include refid="selectModeOfPaymentIdVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertModeOfPaymentId" parameterType="com.muyu.domain.ModeOfPayment" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into mode_of_payment_id
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="payment != null">payment,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="payment != null">#{payment},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateModeOfPaymentId" parameterType="com.muyu.domain.ModeOfPayment">
|
||||
update mode_of_payment_id
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="payment != null">payment = #{payment},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteModeOfPaymentIdById" parameterType="Long">
|
||||
delete from mode_of_payment_id where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteModeOfPaymentIdByIds" parameterType="String">
|
||||
delete from mode_of_payment_id where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,76 +0,0 @@
|
|||
<?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.networking.mapper.OpenServiceMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.OpenServiceAdd" id="OpenServiceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="activateTheService" column="activate_the_service" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOpenServiceVo">
|
||||
select id, activate_the_service, remark, create_by, create_time, update_time, update_by from open_service
|
||||
</sql>
|
||||
|
||||
<select id="selectOpenServiceList" parameterType="com.muyu.domain.OpenServiceAdd" resultMap="OpenServiceResult">
|
||||
<include refid="selectOpenServiceVo"/>
|
||||
<where>
|
||||
<if test="activateTheService != null and activateTheService != ''"> and activate_the_service = #{activateTheService}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOpenServiceById" parameterType="Long" resultMap="OpenServiceResult">
|
||||
<include refid="selectOpenServiceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertOpenService" parameterType="com.muyu.domain.OpenServiceAdd" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into open_service
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="activateTheService != null">activate_the_service,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="activateTheService != null">#{activateTheService},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOpenService" parameterType="com.muyu.domain.OpenServiceAdd">
|
||||
update open_service
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="activateTheService != null">activate_the_service = #{activateTheService},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOpenServiceById" parameterType="Long">
|
||||
delete from open_service where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOpenServiceByIds" parameterType="String">
|
||||
delete from open_service where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,86 +0,0 @@
|
|||
<?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.networking.mapper.PayOfMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.PayOf" id="PayForResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="enterpriseId" column="enterprise_id" />
|
||||
<result property="modeOfPaymentId" column="mode_of_payment_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPayForVo">
|
||||
select id, enterprise_id, mode_of_payment_id, price, remark, create_by, create_time, update_time, update_by from pay_for
|
||||
</sql>
|
||||
|
||||
<select id="selectPayOfList" parameterType="com.muyu.domain.PayOf" resultMap="PayForResult">
|
||||
<include refid="selectPayForVo"/>
|
||||
<where>
|
||||
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
|
||||
<if test="modeOfPaymentId != null "> and mode_of_payment_id = #{modeOfPaymentId}</if>
|
||||
<if test="price != null "> and price = #{price}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPayOfById" parameterType="Long" resultMap="PayForResult">
|
||||
<include refid="selectPayForVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPayOf" parameterType="com.muyu.domain.PayOf" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pay_for
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">enterprise_id,</if>
|
||||
<if test="modeOfPaymentId != null">mode_of_payment_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">#{enterpriseId},</if>
|
||||
<if test="modeOfPaymentId != null">#{modeOfPaymentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePayOf" parameterType="com.muyu.domain.PayOf">
|
||||
update pay_for
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
|
||||
<if test="modeOfPaymentId != null">mode_of_payment_id = #{modeOfPaymentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePayOfById" parameterType="Long">
|
||||
delete from pay_for where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePayOfByIds" parameterType="String">
|
||||
delete from pay_for where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,78 +0,0 @@
|
|||
<?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.networking.mapper.TypeMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.Type" id="TypeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="typeName" column="type_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTypeVo">
|
||||
select id, type_name, remark, create_by, create_time, update_time, update_by from type
|
||||
</sql>
|
||||
|
||||
<select id="selectTypeList" parameterType="com.muyu.domain.Type" resultMap="TypeResult">
|
||||
<include refid="selectTypeVo"/>
|
||||
<where>
|
||||
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTypeById" parameterType="Long" resultMap="TypeResult">
|
||||
<include refid="selectTypeVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertType" parameterType="com.muyu.domain.Type">
|
||||
insert into type
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="typeName != null">type_name,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="typeName != null">#{typeName},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateType" parameterType="com.muyu.domain.Type">
|
||||
update type
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="typeName != null">type_name = #{typeName},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTypeById" parameterType="Long">
|
||||
delete from type where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTypeByIds" parameterType="String">
|
||||
delete from type where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,34 @@
|
|||
<?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.net.working.mapper.EnterpriseMapper">
|
||||
|
||||
<resultMap type="com.muyu.net.working.domain.Enterprise" id="EnterpriseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="ebterpriseName" column="ebterprise_name" />
|
||||
<result property="legalPerson" column="legal_person" />
|
||||
<result property="businessLincenseNumber" column="business_lincense_number" />
|
||||
<result property="estabinessDate" column="estabiness_date" />
|
||||
<result property="businessScope" column="business_scope" />
|
||||
<result property="address" column="address" />
|
||||
<result property="contactPhone" column="contact_phone" />
|
||||
<result property="email" column="email" />
|
||||
<result property="status" column="status" />
|
||||
<result property="registrationDate" column="registration_date" />
|
||||
<result property="certificationId" column="certification_id" />
|
||||
<result property="authenticationDate" column="authentication_date" />
|
||||
<result property="serviceLevel" column="service_level" />
|
||||
<result property="openServerId" column="open_server_id" />
|
||||
<result property="addServerId" column="add_server_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEnterpriseVo">
|
||||
select id, ebterprise_name, legal_person, business_lincense_number, estabiness_date, business_scope, address, contact_phone, email, status, registration_date, certification_id, authentication_date, service_level, open_server_id, add_server_id, create_by, create_time, update_by, update_time, remark from enterprise
|
||||
</sql>
|
||||
</mapper>
|
|
@ -9,8 +9,10 @@
|
|||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>muyu-net-working</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<description>
|
||||
muyu-net-working车联网运营平台模块
|
||||
</description>
|
||||
<modules>
|
||||
<module>muyu-net-working-common</module>
|
||||
<module>muyu-net-working-server</module>
|
||||
|
@ -18,6 +20,8 @@
|
|||
<module>muyu-net-working-remote</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>muyu-net-working</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<module>muyu-job</module>
|
||||
<module>muyu-file</module>
|
||||
<module>muyu-net-working</module>
|
||||
<module>muyu-customer-business</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>muyu-modules</artifactId>
|
||||
|
|
Loading…
Reference in New Issue