fix(重新搭建表,重构代码)
commit
19b65ff744
|
@ -85,6 +85,10 @@ public class SysUser extends BaseEntity {
|
|||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
private Long companyId;
|
||||
/**
|
||||
* 帐号状态(0正常 1停用)
|
||||
*/
|
||||
|
|
|
@ -16,5 +16,11 @@
|
|||
<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>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,84 @@
|
|||
package com.muyu.businessPlatform.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 电子围栏对象 fence
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class Fence extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 电子围栏名称 */
|
||||
@Excel(name = "电子围栏名称")
|
||||
private String name;
|
||||
|
||||
/** 围栏类型 */
|
||||
@Excel(name = "围栏类型")
|
||||
private String fenceType;
|
||||
|
||||
/** 经纬度信息 */
|
||||
@Excel(name = "经纬度信息")
|
||||
private String longitudeAndLatitude;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setFenceType(String fenceType)
|
||||
{
|
||||
this.fenceType = fenceType;
|
||||
}
|
||||
|
||||
public String getFenceType()
|
||||
{
|
||||
return fenceType;
|
||||
}
|
||||
public void setLongitudeAndLatitude(String longitudeAndLatitude)
|
||||
{
|
||||
this.longitudeAndLatitude = longitudeAndLatitude;
|
||||
}
|
||||
|
||||
public String getLongitudeAndLatitude()
|
||||
{
|
||||
return longitudeAndLatitude;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("fenceType", getFenceType())
|
||||
.append("longitudeAndLatitude", getLongitudeAndLatitude())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,257 @@
|
|||
package com.muyu.businessPlatform.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 车辆对象 vehicle
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class Vehicle extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 车辆id */
|
||||
private Long id;
|
||||
|
||||
/** 车辆vin */
|
||||
@Excel(name = "车辆vin")
|
||||
private String vin;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String brand;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
private String model;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date productionDate;
|
||||
|
||||
/** 车身类型 */
|
||||
@Excel(name = "车身类型")
|
||||
private String bodyType;
|
||||
|
||||
/** 车身颜色 */
|
||||
@Excel(name = "车身颜色")
|
||||
private String color;
|
||||
|
||||
/** 发动机排量 */
|
||||
@Excel(name = "发动机排量")
|
||||
private BigDecimal engineCapacity;
|
||||
|
||||
/** 燃油类型 */
|
||||
@Excel(name = "燃油类型")
|
||||
private String fuelType;
|
||||
|
||||
/** 变速器类型 */
|
||||
@Excel(name = "变速器类型")
|
||||
private String transmission;
|
||||
|
||||
/** 驱动方式 */
|
||||
@Excel(name = "驱动方式")
|
||||
private String driveType;
|
||||
|
||||
/** 行驶里程 */
|
||||
@Excel(name = "行驶里程")
|
||||
private BigDecimal mileage;
|
||||
|
||||
/** 注册日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 车牌号码 */
|
||||
@Excel(name = "车牌号码")
|
||||
private String licenseNumber;
|
||||
|
||||
/** 持有者 */
|
||||
@Excel(name = "持有者")
|
||||
private String holder;
|
||||
|
||||
/** 车辆类型 */
|
||||
@Excel(name = "车辆类型")
|
||||
private String vehicleType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setVin(String vin)
|
||||
{
|
||||
this.vin = vin;
|
||||
}
|
||||
|
||||
public String getVin()
|
||||
{
|
||||
return vin;
|
||||
}
|
||||
public void setBrand(String brand)
|
||||
{
|
||||
this.brand = brand;
|
||||
}
|
||||
|
||||
public String getBrand()
|
||||
{
|
||||
return brand;
|
||||
}
|
||||
public void setModel(String model)
|
||||
{
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setProductionDate(Date productionDate)
|
||||
{
|
||||
this.productionDate = productionDate;
|
||||
}
|
||||
|
||||
public Date getProductionDate()
|
||||
{
|
||||
return productionDate;
|
||||
}
|
||||
public void setBodyType(String bodyType)
|
||||
{
|
||||
this.bodyType = bodyType;
|
||||
}
|
||||
|
||||
public String getBodyType()
|
||||
{
|
||||
return bodyType;
|
||||
}
|
||||
public void setColor(String color)
|
||||
{
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getColor()
|
||||
{
|
||||
return color;
|
||||
}
|
||||
public void setEngineCapacity(BigDecimal engineCapacity)
|
||||
{
|
||||
this.engineCapacity = engineCapacity;
|
||||
}
|
||||
|
||||
public BigDecimal getEngineCapacity()
|
||||
{
|
||||
return engineCapacity;
|
||||
}
|
||||
public void setFuelType(String fuelType)
|
||||
{
|
||||
this.fuelType = fuelType;
|
||||
}
|
||||
|
||||
public String getFuelType()
|
||||
{
|
||||
return fuelType;
|
||||
}
|
||||
public void setTransmission(String transmission)
|
||||
{
|
||||
this.transmission = transmission;
|
||||
}
|
||||
|
||||
public String getTransmission()
|
||||
{
|
||||
return transmission;
|
||||
}
|
||||
public void setDriveType(String driveType)
|
||||
{
|
||||
this.driveType = driveType;
|
||||
}
|
||||
|
||||
public String getDriveType()
|
||||
{
|
||||
return driveType;
|
||||
}
|
||||
public void setMileage(BigDecimal mileage)
|
||||
{
|
||||
this.mileage = mileage;
|
||||
}
|
||||
|
||||
public BigDecimal getMileage()
|
||||
{
|
||||
return mileage;
|
||||
}
|
||||
public void setRegistrationDate(Date registrationDate)
|
||||
{
|
||||
this.registrationDate = registrationDate;
|
||||
}
|
||||
|
||||
public Date getRegistrationDate()
|
||||
{
|
||||
return registrationDate;
|
||||
}
|
||||
public void setLicenseNumber(String licenseNumber)
|
||||
{
|
||||
this.licenseNumber = licenseNumber;
|
||||
}
|
||||
|
||||
public String getLicenseNumber()
|
||||
{
|
||||
return licenseNumber;
|
||||
}
|
||||
public void setHolder(String holder)
|
||||
{
|
||||
this.holder = holder;
|
||||
}
|
||||
|
||||
public String getHolder()
|
||||
{
|
||||
return holder;
|
||||
}
|
||||
public void setVehicleType(String vehicleType)
|
||||
{
|
||||
this.vehicleType = vehicleType;
|
||||
}
|
||||
|
||||
public String getVehicleType()
|
||||
{
|
||||
return vehicleType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("vin", getVin())
|
||||
.append("brand", getBrand())
|
||||
.append("model", getModel())
|
||||
.append("productionDate", getProductionDate())
|
||||
.append("bodyType", getBodyType())
|
||||
.append("color", getColor())
|
||||
.append("engineCapacity", getEngineCapacity())
|
||||
.append("fuelType", getFuelType())
|
||||
.append("transmission", getTransmission())
|
||||
.append("driveType", getDriveType())
|
||||
.append("mileage", getMileage())
|
||||
.append("registrationDate", getRegistrationDate())
|
||||
.append("licenseNumber", getLicenseNumber())
|
||||
.append("holder", getHolder())
|
||||
.append("vehicleType", getVehicleType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -90,5 +90,11 @@
|
|||
<artifactId>muyu-common-core</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-businessPlatform-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.businessPlatform.controller;
|
||||
|
||||
import com.muyu.businessPlatform.domain.Fence;
|
||||
import com.muyu.businessPlatform.service.IFenceService;
|
||||
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 org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电子围栏Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fence")
|
||||
public class FenceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IFenceService fenceService;
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Fence>> list(Fence fence)
|
||||
{
|
||||
startPage();
|
||||
List<Fence> list = fenceService.selectFenceList(fence);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出电子围栏列表
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:export")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Fence fence)
|
||||
{
|
||||
List<Fence> list = fenceService.selectFenceList(fence);
|
||||
ExcelUtil<Fence> util = new ExcelUtil<Fence>(Fence.class);
|
||||
util.exportExcel(response, list, "电子围栏数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子围栏详细信息
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(fenceService.selectFenceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电子围栏
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:add")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Fence fence)
|
||||
{
|
||||
return toAjax(fenceService.insertFence(fence));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电子围栏
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:edit")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Fence fence)
|
||||
{
|
||||
return toAjax(fenceService.updateFence(fence));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子围栏
|
||||
*/
|
||||
@RequiresPermissions("fence:fence:remove")
|
||||
@Log(title = "电子围栏", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(fenceService.deleteFenceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.businessPlatform.controller;
|
||||
|
||||
import com.muyu.businessPlatform.domain.Vehicle;
|
||||
import com.muyu.businessPlatform.service.IVehicleService;
|
||||
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 org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/vehicle")
|
||||
public class VehicleController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IVehicleService vehicleService;
|
||||
|
||||
/**
|
||||
* 查询车辆列表
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Vehicle>> list(Vehicle vehicle)
|
||||
{
|
||||
startPage();
|
||||
List<Vehicle> list = vehicleService.selectVehicleList(vehicle);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车辆列表
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:export")
|
||||
@Log(title = "车辆", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Vehicle vehicle)
|
||||
{
|
||||
List<Vehicle> list = vehicleService.selectVehicleList(vehicle);
|
||||
ExcelUtil<Vehicle> util = new ExcelUtil<Vehicle>(Vehicle.class);
|
||||
util.exportExcel(response, list, "车辆数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车辆详细信息
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(vehicleService.selectVehicleById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:add")
|
||||
@Log(title = "车辆", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Vehicle vehicle)
|
||||
{
|
||||
return toAjax(vehicleService.insertVehicle(vehicle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:edit")
|
||||
@Log(title = "车辆", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Vehicle vehicle)
|
||||
{
|
||||
return toAjax(vehicleService.updateVehicle(vehicle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆
|
||||
*/
|
||||
@RequiresPermissions("vehicle:vehicle:remove")
|
||||
@Log(title = "车辆", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(vehicleService.deleteVehicleByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.muyu.businessPlatform.mapper;
|
||||
|
||||
|
||||
import com.muyu.businessPlatform.domain.Fence;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电子围栏Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface FenceMapper
|
||||
{
|
||||
/**
|
||||
* 查询电子围栏
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 电子围栏
|
||||
*/
|
||||
public Fence selectFenceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 电子围栏集合
|
||||
*/
|
||||
public List<Fence> selectFenceList(Fence fence);
|
||||
|
||||
/**
|
||||
* 新增电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFence(Fence fence);
|
||||
|
||||
/**
|
||||
* 修改电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFence(Fence fence);
|
||||
|
||||
/**
|
||||
* 删除电子围栏
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFenceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除电子围栏
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFenceByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.muyu.businessPlatform.mapper;
|
||||
|
||||
|
||||
import com.muyu.businessPlatform.domain.Vehicle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface VehicleMapper
|
||||
{
|
||||
/**
|
||||
* 查询车辆
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 车辆
|
||||
*/
|
||||
public Vehicle selectVehicleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询车辆列表
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 车辆集合
|
||||
*/
|
||||
public List<Vehicle> selectVehicleList(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 新增车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertVehicle(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 修改车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateVehicle(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 删除车辆
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVehicleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除车辆
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVehicleByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.muyu.businessPlatform.service;
|
||||
|
||||
|
||||
import com.muyu.businessPlatform.domain.Fence;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电子围栏Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IFenceService
|
||||
{
|
||||
/**
|
||||
* 查询电子围栏
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 电子围栏
|
||||
*/
|
||||
public Fence selectFenceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 电子围栏集合
|
||||
*/
|
||||
public List<Fence> selectFenceList(Fence fence);
|
||||
|
||||
/**
|
||||
* 新增电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFence(Fence fence);
|
||||
|
||||
/**
|
||||
* 修改电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFence(Fence fence);
|
||||
|
||||
/**
|
||||
* 批量删除电子围栏
|
||||
*
|
||||
* @param ids 需要删除的电子围栏主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFenceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除电子围栏信息
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFenceById(Long id);
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.muyu.businessPlatform.service;
|
||||
|
||||
|
||||
import com.muyu.businessPlatform.domain.Vehicle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IVehicleService
|
||||
{
|
||||
/**
|
||||
* 查询车辆
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 车辆
|
||||
*/
|
||||
public Vehicle selectVehicleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询车辆列表
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 车辆集合
|
||||
*/
|
||||
public List<Vehicle> selectVehicleList(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 新增车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertVehicle(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 修改车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateVehicle(Vehicle vehicle);
|
||||
|
||||
/**
|
||||
* 批量删除车辆
|
||||
*
|
||||
* @param ids 需要删除的车辆主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVehicleByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除车辆信息
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteVehicleById(Long id);
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.muyu.businessPlatform.service.impl;
|
||||
|
||||
import com.muyu.businessPlatform.domain.Fence;
|
||||
import com.muyu.businessPlatform.mapper.FenceMapper;
|
||||
import com.muyu.businessPlatform.service.IFenceService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电子围栏Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class FenceServiceImpl implements IFenceService
|
||||
{
|
||||
@Autowired
|
||||
private FenceMapper fenceMapper;
|
||||
|
||||
/**
|
||||
* 查询电子围栏
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 电子围栏
|
||||
*/
|
||||
@Override
|
||||
public Fence selectFenceById(Long id)
|
||||
{
|
||||
return fenceMapper.selectFenceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电子围栏列表
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 电子围栏
|
||||
*/
|
||||
@Override
|
||||
public List<Fence> selectFenceList(Fence fence)
|
||||
{
|
||||
return fenceMapper.selectFenceList(fence);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertFence(Fence fence)
|
||||
{
|
||||
fence.setCreateTime(DateUtils.getNowDate());
|
||||
return fenceMapper.insertFence(fence);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电子围栏
|
||||
*
|
||||
* @param fence 电子围栏
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateFence(Fence fence)
|
||||
{
|
||||
fence.setUpdateTime(DateUtils.getNowDate());
|
||||
return fenceMapper.updateFence(fence);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电子围栏
|
||||
*
|
||||
* @param ids 需要删除的电子围栏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFenceByIds(Long[] ids)
|
||||
{
|
||||
return fenceMapper.deleteFenceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子围栏信息
|
||||
*
|
||||
* @param id 电子围栏主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFenceById(Long id)
|
||||
{
|
||||
return fenceMapper.deleteFenceById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.businessPlatform.service.impl;
|
||||
|
||||
import com.muyu.businessPlatform.domain.Vehicle;
|
||||
import com.muyu.businessPlatform.mapper.VehicleMapper;
|
||||
import com.muyu.businessPlatform.service.IVehicleService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class VehicleServiceImpl implements IVehicleService
|
||||
{
|
||||
@Autowired
|
||||
private VehicleMapper vehicleMapper;
|
||||
|
||||
/**
|
||||
* 查询车辆
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 车辆
|
||||
*/
|
||||
@Override
|
||||
public Vehicle selectVehicleById(Long id)
|
||||
{
|
||||
return vehicleMapper.selectVehicleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询车辆列表
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 车辆
|
||||
*/
|
||||
@Override
|
||||
public List<Vehicle> selectVehicleList(Vehicle vehicle)
|
||||
{
|
||||
return vehicleMapper.selectVehicleList(vehicle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertVehicle(Vehicle vehicle)
|
||||
{
|
||||
vehicle.setCreateTime(DateUtils.getNowDate());
|
||||
return vehicleMapper.insertVehicle(vehicle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆
|
||||
*
|
||||
* @param vehicle 车辆
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateVehicle(Vehicle vehicle)
|
||||
{
|
||||
vehicle.setUpdateTime(DateUtils.getNowDate());
|
||||
return vehicleMapper.updateVehicle(vehicle);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除车辆
|
||||
*
|
||||
* @param ids 需要删除的车辆主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteVehicleByIds(Long[] ids)
|
||||
{
|
||||
return vehicleMapper.deleteVehicleByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆信息
|
||||
*
|
||||
* @param id 车辆主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteVehicleById(Long id)
|
||||
{
|
||||
return vehicleMapper.deleteVehicleById(id);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9400
|
||||
port: 9402
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
<?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.businessPlatform.mapper.FenceMapper">
|
||||
|
||||
<resultMap type="com.muyu.businessPlatform.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>
|
||||
|
||||
<select id="selectFenceList" parameterType="com.muyu.businessPlatform.domain.Fence" resultMap="FenceResult">
|
||||
<include refid="selectFenceVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="fenceType != null and fenceType != ''"> and fence_type = #{fenceType}</if>
|
||||
<if test="longitudeAndLatitude != null and longitudeAndLatitude != ''"> and longitude_and_latitude = #{longitudeAndLatitude}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectFenceById" parameterType="Long" resultMap="FenceResult">
|
||||
<include refid="selectFenceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertFence" parameterType="com.muyu.businessPlatform.domain.Fence" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into fence
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="fenceType != null">fence_type,</if>
|
||||
<if test="longitudeAndLatitude != null">longitude_and_latitude,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="fenceType != null">#{fenceType},</if>
|
||||
<if test="longitudeAndLatitude != null">#{longitudeAndLatitude},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateFence" parameterType="com.muyu.businessPlatform.domain.Fence">
|
||||
update fence
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="fenceType != null">fence_type = #{fenceType},</if>
|
||||
<if test="longitudeAndLatitude != null">longitude_and_latitude = #{longitudeAndLatitude},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteFenceById" parameterType="Long">
|
||||
delete from fence where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteFenceByIds" parameterType="String">
|
||||
delete from fence where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,146 @@
|
|||
<?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.businessPlatform.mapper.VehicleMapper">
|
||||
|
||||
<resultMap type="com.muyu.businessPlatform.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>
|
||||
|
||||
<select id="selectVehicleList" parameterType="com.muyu.businessPlatform.domain.Vehicle" resultMap="VehicleResult">
|
||||
<include refid="selectVehicleVo"/>
|
||||
<where>
|
||||
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
||||
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
|
||||
<if test="model != null and model != ''"> and model = #{model}</if>
|
||||
<if test="productionDate != null "> and production_date = #{productionDate}</if>
|
||||
<if test="bodyType != null and bodyType != ''"> and body_type = #{bodyType}</if>
|
||||
<if test="color != null and color != ''"> and color = #{color}</if>
|
||||
<if test="engineCapacity != null "> and engine_capacity = #{engineCapacity}</if>
|
||||
<if test="fuelType != null and fuelType != ''"> and fuel_type = #{fuelType}</if>
|
||||
<if test="transmission != null and transmission != ''"> and transmission = #{transmission}</if>
|
||||
<if test="driveType != null and driveType != ''"> and drive_type = #{driveType}</if>
|
||||
<if test="mileage != null "> and mileage = #{mileage}</if>
|
||||
<if test="registrationDate != null "> and registration_date = #{registrationDate}</if>
|
||||
<if test="licenseNumber != null and licenseNumber != ''"> and license_number = #{licenseNumber}</if>
|
||||
<if test="holder != null and holder != ''"> and holder = #{holder}</if>
|
||||
<if test="vehicleType != null and vehicleType != ''"> and vehicle_type = #{vehicleType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectVehicleById" parameterType="Long" resultMap="VehicleResult">
|
||||
<include refid="selectVehicleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertVehicle" parameterType="com.muyu.businessPlatform.domain.Vehicle" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into vehicle
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="vin != null">vin,</if>
|
||||
<if test="brand != null">brand,</if>
|
||||
<if test="model != null">model,</if>
|
||||
<if test="productionDate != null">production_date,</if>
|
||||
<if test="bodyType != null">body_type,</if>
|
||||
<if test="color != null">color,</if>
|
||||
<if test="engineCapacity != null">engine_capacity,</if>
|
||||
<if test="fuelType != null">fuel_type,</if>
|
||||
<if test="transmission != null">transmission,</if>
|
||||
<if test="driveType != null">drive_type,</if>
|
||||
<if test="mileage != null">mileage,</if>
|
||||
<if test="registrationDate != null">registration_date,</if>
|
||||
<if test="licenseNumber != null">license_number,</if>
|
||||
<if test="holder != null">holder,</if>
|
||||
<if test="vehicleType != null">vehicle_type,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="vin != null">#{vin},</if>
|
||||
<if test="brand != null">#{brand},</if>
|
||||
<if test="model != null">#{model},</if>
|
||||
<if test="productionDate != null">#{productionDate},</if>
|
||||
<if test="bodyType != null">#{bodyType},</if>
|
||||
<if test="color != null">#{color},</if>
|
||||
<if test="engineCapacity != null">#{engineCapacity},</if>
|
||||
<if test="fuelType != null">#{fuelType},</if>
|
||||
<if test="transmission != null">#{transmission},</if>
|
||||
<if test="driveType != null">#{driveType},</if>
|
||||
<if test="mileage != null">#{mileage},</if>
|
||||
<if test="registrationDate != null">#{registrationDate},</if>
|
||||
<if test="licenseNumber != null">#{licenseNumber},</if>
|
||||
<if test="holder != null">#{holder},</if>
|
||||
<if test="vehicleType != null">#{vehicleType},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateVehicle" parameterType="com.muyu.businessPlatform.domain.Vehicle">
|
||||
update vehicle
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="vin != null">vin = #{vin},</if>
|
||||
<if test="brand != null">brand = #{brand},</if>
|
||||
<if test="model != null">model = #{model},</if>
|
||||
<if test="productionDate != null">production_date = #{productionDate},</if>
|
||||
<if test="bodyType != null">body_type = #{bodyType},</if>
|
||||
<if test="color != null">color = #{color},</if>
|
||||
<if test="engineCapacity != null">engine_capacity = #{engineCapacity},</if>
|
||||
<if test="fuelType != null">fuel_type = #{fuelType},</if>
|
||||
<if test="transmission != null">transmission = #{transmission},</if>
|
||||
<if test="driveType != null">drive_type = #{driveType},</if>
|
||||
<if test="mileage != null">mileage = #{mileage},</if>
|
||||
<if test="registrationDate != null">registration_date = #{registrationDate},</if>
|
||||
<if test="licenseNumber != null">license_number = #{licenseNumber},</if>
|
||||
<if test="holder != null">holder = #{holder},</if>
|
||||
<if test="vehicleType != null">vehicle_type = #{vehicleType},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteVehicleById" parameterType="Long">
|
||||
delete from vehicle where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteVehicleByIds" parameterType="String">
|
||||
delete from vehicle where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,89 +0,0 @@
|
|||
package com.muyu.authentication.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.authentication.domain.req.AuthenticationQueryReq;
|
||||
import com.muyu.authentication.domain.req.AuthenticationSaveReq;
|
||||
import com.muyu.authentication.domain.req.AuthenticationEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 认证对象 authentication
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("authentication")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Authentication", description = "认证")
|
||||
public class Authentication extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业认证主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long id;
|
||||
|
||||
/** 审核报告人 */
|
||||
@Excel(name = "审核报告人")
|
||||
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
|
||||
private String auditor;
|
||||
|
||||
/** 待审核,已通过,未通过 */
|
||||
@Excel(name = "待审核,已通过,未通过")
|
||||
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
|
||||
private String stat;
|
||||
|
||||
/** 审核报告 */
|
||||
@Excel(name = "审核报告")
|
||||
@ApiModelProperty(name = "审核报告", value = "审核报告")
|
||||
private String auditReason;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Authentication queryBuild( AuthenticationQueryReq authenticationQueryReq){
|
||||
return Authentication.builder()
|
||||
.auditor(authenticationQueryReq.getAuditor())
|
||||
.stat(authenticationQueryReq.getStat())
|
||||
.auditReason(authenticationQueryReq.getAuditReason())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Authentication saveBuild(AuthenticationSaveReq authenticationSaveReq){
|
||||
return Authentication.builder()
|
||||
.auditor(authenticationSaveReq.getAuditor())
|
||||
.stat(authenticationSaveReq.getStat())
|
||||
.auditReason(authenticationSaveReq.getAuditReason())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Authentication editBuild(Long id, AuthenticationEditReq authenticationEditReq){
|
||||
return Authentication.builder()
|
||||
.id(id)
|
||||
.auditor(authenticationEditReq.getAuditor())
|
||||
.stat(authenticationEditReq.getStat())
|
||||
.auditReason(authenticationEditReq.getAuditReason())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.muyu.authentication.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;
|
||||
|
||||
/**
|
||||
* 认证对象 authentication
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "AuthenticationEditReq", description = "认证")
|
||||
public class AuthenticationEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 审核报告人 */
|
||||
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
|
||||
private String auditor;
|
||||
|
||||
/** 待审核,已通过,未通过 */
|
||||
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
|
||||
private String stat;
|
||||
|
||||
/** 审核报告 */
|
||||
@ApiModelProperty(name = "审核报告", value = "审核报告")
|
||||
private String auditReason;
|
||||
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package com.muyu.authentication.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;
|
||||
|
||||
/**
|
||||
* 认证对象 authentication
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "AuthenticationQueryReq", description = "认证")
|
||||
public class AuthenticationQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 审核报告人 */
|
||||
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
|
||||
private String auditor;
|
||||
|
||||
/** 待审核,已通过,未通过 */
|
||||
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
|
||||
private String stat;
|
||||
|
||||
/** 审核报告 */
|
||||
@ApiModelProperty(name = "审核报告", value = "审核报告")
|
||||
private String auditReason;
|
||||
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
package com.muyu.authentication.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;
|
||||
|
||||
/**
|
||||
* 认证对象 authentication
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "AuthenticationSaveReq", description = "认证")
|
||||
public class AuthenticationSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业认证主键 */
|
||||
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long id;
|
||||
|
||||
/** 审核报告人 */
|
||||
|
||||
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
|
||||
private String auditor;
|
||||
|
||||
/** 待审核,已通过,未通过 */
|
||||
|
||||
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
|
||||
private String stat;
|
||||
|
||||
/** 审核报告 */
|
||||
|
||||
@ApiModelProperty(name = "审核报告", value = "审核报告")
|
||||
private String auditReason;
|
||||
|
||||
}
|
|
@ -1,181 +0,0 @@
|
|||
package com.muyu.company.domain;
|
||||
|
||||
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.company.domain.req.CompanyQueryReq;
|
||||
import com.muyu.company.domain.req.CompanySaveReq;
|
||||
import com.muyu.company.domain.req.CompanyEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业对象 company
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("company")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Company", description = "企业")
|
||||
public class Company extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private Long id;
|
||||
|
||||
/** 企业名称 */
|
||||
@Excel(name = "企业名称")
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String companyName;
|
||||
|
||||
/** 法定代理人 */
|
||||
@Excel(name = "法定代理人")
|
||||
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
|
||||
private String legalRepresentative;
|
||||
|
||||
/** 企业注册时获得的合法经营凭证号码 */
|
||||
@Excel(name = "企业注册时获得的合法经营凭证号码")
|
||||
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
|
||||
/** 企业成立的日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业成立的日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
|
||||
private Date companyTime;
|
||||
|
||||
/** 经营范围 */
|
||||
@Excel(name = "经营范围")
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String sphereOfBusiness;
|
||||
|
||||
/** 注册地址 */
|
||||
@Excel(name = "注册地址")
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String registeredAddress;
|
||||
|
||||
/** 负责人电话 */
|
||||
@Excel(name = "负责人电话")
|
||||
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
|
||||
private String companyPhone;
|
||||
|
||||
/** 负责人邮箱 */
|
||||
@Excel(name = "负责人邮箱")
|
||||
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
|
||||
private String companyMailbox;
|
||||
|
||||
/** 企业当前的状态,如正常状态,暂停,注销 */
|
||||
@Excel(name = "企业当前的状态,如正常状态,暂停,注销")
|
||||
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
|
||||
private String companyStatus;
|
||||
|
||||
/** 企业入驻时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
|
||||
private Date enterTime;
|
||||
|
||||
/** 企业认证主键 */
|
||||
@Excel(name = "企业认证主键")
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long authenticationId;
|
||||
|
||||
/** 开通服务主键 */
|
||||
@Excel(name = "开通服务主键")
|
||||
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
|
||||
private Long liberalServiceId;
|
||||
|
||||
/** 增值服务主键 */
|
||||
@Excel(name = "增值服务主键")
|
||||
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
|
||||
private Long appreciationServiceId;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
@ApiModelProperty(name = "用户ID", value = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Company queryBuild( CompanyQueryReq companyQueryReq){
|
||||
return Company.builder()
|
||||
.companyName(companyQueryReq.getCompanyName())
|
||||
.legalRepresentative(companyQueryReq.getLegalRepresentative())
|
||||
.businessLicenseNumber(companyQueryReq.getBusinessLicenseNumber())
|
||||
.companyTime(companyQueryReq.getCompanyTime())
|
||||
.sphereOfBusiness(companyQueryReq.getSphereOfBusiness())
|
||||
.registeredAddress(companyQueryReq.getRegisteredAddress())
|
||||
.companyPhone(companyQueryReq.getCompanyPhone())
|
||||
.companyMailbox(companyQueryReq.getCompanyMailbox())
|
||||
.companyStatus(companyQueryReq.getCompanyStatus())
|
||||
.enterTime(companyQueryReq.getEnterTime())
|
||||
.authenticationId(companyQueryReq.getAuthenticationId())
|
||||
.liberalServiceId(companyQueryReq.getLiberalServiceId())
|
||||
.appreciationServiceId(companyQueryReq.getAppreciationServiceId())
|
||||
.userId(companyQueryReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Company saveBuild(CompanySaveReq companySaveReq){
|
||||
return Company.builder()
|
||||
.companyName(companySaveReq.getCompanyName())
|
||||
.legalRepresentative(companySaveReq.getLegalRepresentative())
|
||||
.businessLicenseNumber(companySaveReq.getBusinessLicenseNumber())
|
||||
.companyTime(companySaveReq.getCompanyTime())
|
||||
.sphereOfBusiness(companySaveReq.getSphereOfBusiness())
|
||||
.registeredAddress(companySaveReq.getRegisteredAddress())
|
||||
.companyPhone(companySaveReq.getCompanyPhone())
|
||||
.companyMailbox(companySaveReq.getCompanyMailbox())
|
||||
.companyStatus(companySaveReq.getCompanyStatus())
|
||||
.enterTime(companySaveReq.getEnterTime())
|
||||
.authenticationId(companySaveReq.getAuthenticationId())
|
||||
.liberalServiceId(companySaveReq.getLiberalServiceId())
|
||||
.appreciationServiceId(companySaveReq.getAppreciationServiceId())
|
||||
.userId(companySaveReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Company editBuild(Long id, CompanyEditReq companyEditReq){
|
||||
return Company.builder()
|
||||
.id(id)
|
||||
.companyName(companyEditReq.getCompanyName())
|
||||
.legalRepresentative(companyEditReq.getLegalRepresentative())
|
||||
.businessLicenseNumber(companyEditReq.getBusinessLicenseNumber())
|
||||
.companyTime(companyEditReq.getCompanyTime())
|
||||
.sphereOfBusiness(companyEditReq.getSphereOfBusiness())
|
||||
.registeredAddress(companyEditReq.getRegisteredAddress())
|
||||
.companyPhone(companyEditReq.getCompanyPhone())
|
||||
.companyMailbox(companyEditReq.getCompanyMailbox())
|
||||
.companyStatus(companyEditReq.getCompanyStatus())
|
||||
.enterTime(companyEditReq.getEnterTime())
|
||||
.authenticationId(companyEditReq.getAuthenticationId())
|
||||
.liberalServiceId(companyEditReq.getLiberalServiceId())
|
||||
.appreciationServiceId(companyEditReq.getAppreciationServiceId())
|
||||
.userId(companyEditReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
package com.muyu.company.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;
|
||||
|
||||
/**
|
||||
* 企业对象 company
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "CompanyEditReq", description = "企业")
|
||||
public class CompanyEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业名称 */
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String companyName;
|
||||
|
||||
/** 法定代理人 */
|
||||
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
|
||||
private String legalRepresentative;
|
||||
|
||||
/** 企业注册时获得的合法经营凭证号码 */
|
||||
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
|
||||
/** 企业成立的日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
|
||||
private Date companyTime;
|
||||
|
||||
/** 经营范围 */
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String sphereOfBusiness;
|
||||
|
||||
/** 注册地址 */
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String registeredAddress;
|
||||
|
||||
/** 负责人电话 */
|
||||
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
|
||||
private String companyPhone;
|
||||
|
||||
/** 负责人邮箱 */
|
||||
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
|
||||
private String companyMailbox;
|
||||
|
||||
/** 企业当前的状态,如正常状态,暂停,注销 */
|
||||
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
|
||||
private String companyStatus;
|
||||
|
||||
/** 企业入驻时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
|
||||
private Date enterTime;
|
||||
|
||||
/** 企业认证主键 */
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long authenticationId;
|
||||
|
||||
/** 开通服务主键 */
|
||||
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
|
||||
private Long liberalServiceId;
|
||||
|
||||
/** 增值服务主键 */
|
||||
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
|
||||
private Long appreciationServiceId;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(name = "用户ID", value = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
package com.muyu.company.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;
|
||||
|
||||
/**
|
||||
* 企业对象 company
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "CompanyQueryReq", description = "企业")
|
||||
public class CompanyQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业名称 */
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String companyName;
|
||||
|
||||
/** 法定代理人 */
|
||||
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
|
||||
private String legalRepresentative;
|
||||
|
||||
/** 企业注册时获得的合法经营凭证号码 */
|
||||
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
|
||||
/** 企业成立的日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
|
||||
private Date companyTime;
|
||||
|
||||
/** 经营范围 */
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String sphereOfBusiness;
|
||||
|
||||
/** 注册地址 */
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String registeredAddress;
|
||||
|
||||
/** 负责人电话 */
|
||||
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
|
||||
private String companyPhone;
|
||||
|
||||
/** 负责人邮箱 */
|
||||
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
|
||||
private String companyMailbox;
|
||||
|
||||
/** 企业当前的状态,如正常状态,暂停,注销 */
|
||||
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
|
||||
private String companyStatus;
|
||||
|
||||
/** 企业入驻时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
|
||||
private Date enterTime;
|
||||
|
||||
/** 企业认证主键 */
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long authenticationId;
|
||||
|
||||
/** 开通服务主键 */
|
||||
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
|
||||
private Long liberalServiceId;
|
||||
|
||||
/** 增值服务主键 */
|
||||
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
|
||||
private Long appreciationServiceId;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(name = "用户ID", value = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
}
|
|
@ -1,105 +0,0 @@
|
|||
package com.muyu.company.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;
|
||||
|
||||
/**
|
||||
* 企业对象 company
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "CompanySaveReq", description = "企业")
|
||||
public class CompanySaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private Long id;
|
||||
|
||||
/** 企业名称 */
|
||||
|
||||
@ApiModelProperty(name = "企业名称", value = "企业名称")
|
||||
private String companyName;
|
||||
|
||||
/** 法定代理人 */
|
||||
|
||||
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
|
||||
private String legalRepresentative;
|
||||
|
||||
/** 企业注册时获得的合法经营凭证号码 */
|
||||
|
||||
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
|
||||
/** 企业成立的日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
|
||||
private Date companyTime;
|
||||
|
||||
/** 经营范围 */
|
||||
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String sphereOfBusiness;
|
||||
|
||||
/** 注册地址 */
|
||||
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String registeredAddress;
|
||||
|
||||
/** 负责人电话 */
|
||||
|
||||
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
|
||||
private String companyPhone;
|
||||
|
||||
/** 负责人邮箱 */
|
||||
|
||||
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
|
||||
private String companyMailbox;
|
||||
|
||||
/** 企业当前的状态,如正常状态,暂停,注销 */
|
||||
|
||||
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
|
||||
private String companyStatus;
|
||||
|
||||
/** 企业入驻时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
|
||||
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
|
||||
private Date enterTime;
|
||||
|
||||
/** 企业认证主键 */
|
||||
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long authenticationId;
|
||||
|
||||
/** 开通服务主键 */
|
||||
|
||||
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
|
||||
private Long liberalServiceId;
|
||||
|
||||
/** 增值服务主键 */
|
||||
|
||||
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
|
||||
private Long appreciationServiceId;
|
||||
|
||||
/** 用户ID */
|
||||
|
||||
@ApiModelProperty(name = "用户ID", value = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 增值对象 add_service
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class AddService extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 增值属性 */
|
||||
@Excel(name = "增值属性")
|
||||
private String addValue;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal addDecimal;
|
||||
|
||||
/** 修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date updaetTime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setAddValue(String addValue)
|
||||
{
|
||||
this.addValue = addValue;
|
||||
}
|
||||
|
||||
public String getAddValue()
|
||||
{
|
||||
return addValue;
|
||||
}
|
||||
public void setAddDecimal(BigDecimal addDecimal)
|
||||
{
|
||||
this.addDecimal = addDecimal;
|
||||
}
|
||||
|
||||
public BigDecimal getAddDecimal()
|
||||
{
|
||||
return addDecimal;
|
||||
}
|
||||
public void setUpdaetTime(Date updaetTime)
|
||||
{
|
||||
this.updaetTime = updaetTime;
|
||||
}
|
||||
|
||||
public Date getUpdaetTime()
|
||||
{
|
||||
return updaetTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("addValue", getAddValue())
|
||||
.append("addDecimal", getAddDecimal())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updaetTime", getUpdaetTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业认证对象 certification
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class Certification extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 审核报告人 */
|
||||
@Excel(name = "审核报告人")
|
||||
private String auidtor;
|
||||
|
||||
/** 审核状态 */
|
||||
@Excel(name = "审核状态")
|
||||
private String status;
|
||||
|
||||
/** 审核报告 */
|
||||
@Excel(name = "审核报告")
|
||||
private String auditReason;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setAuidtor(String auidtor)
|
||||
{
|
||||
this.auidtor = auidtor;
|
||||
}
|
||||
|
||||
public String getAuidtor()
|
||||
{
|
||||
return auidtor;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAuditReason(String auditReason)
|
||||
{
|
||||
this.auditReason = auditReason;
|
||||
}
|
||||
|
||||
public String getAuditReason()
|
||||
{
|
||||
return auditReason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("auidtor", getAuidtor())
|
||||
.append("status", getStatus())
|
||||
.append("auditReason", getAuditReason())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,257 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 企业对象 enterprise
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class Enterprise extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 企业名称 */
|
||||
@Excel(name = "企业名称")
|
||||
private String enterpriseName;
|
||||
|
||||
/** 法定代表人 */
|
||||
@Excel(name = "法定代表人")
|
||||
private String legalPerson;
|
||||
|
||||
/** 经营执照凭证号码 */
|
||||
@Excel(name = "经营执照凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
|
||||
/** 企业成立时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业成立时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date establishmentDate;
|
||||
|
||||
/** 经营范围 */
|
||||
@Excel(name = "经营范围")
|
||||
private String businessScope;
|
||||
|
||||
/** 注册地址 */
|
||||
@Excel(name = "注册地址")
|
||||
private String address;
|
||||
|
||||
/** 企业联系方式 */
|
||||
@Excel(name = "企业联系方式")
|
||||
private String contactPhone;
|
||||
|
||||
/** 公司邮箱 */
|
||||
@Excel(name = "公司邮箱")
|
||||
private String email;
|
||||
|
||||
/** 企业当前状态 */
|
||||
@Excel(name = "企业当前状态")
|
||||
private String status;
|
||||
|
||||
/** 企业入驻平台时期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业入驻平台时期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 企业认证id */
|
||||
@Excel(name = "企业认证id")
|
||||
private Long certificationId;
|
||||
|
||||
/** 认证时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date authenticationDate;
|
||||
|
||||
/** 服务级别 */
|
||||
@Excel(name = "服务级别")
|
||||
private Long serviceLevel;
|
||||
|
||||
/** 开通服务id */
|
||||
@Excel(name = "开通服务id")
|
||||
private Long openServerId;
|
||||
|
||||
/** 增值服务id */
|
||||
@Excel(name = "增值服务id")
|
||||
private Long addServerId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setEnterpriseName(String enterpriseName)
|
||||
{
|
||||
this.enterpriseName = enterpriseName;
|
||||
}
|
||||
|
||||
public String getEnterpriseName()
|
||||
{
|
||||
return enterpriseName;
|
||||
}
|
||||
public void setLegalPerson(String legalPerson)
|
||||
{
|
||||
this.legalPerson = legalPerson;
|
||||
}
|
||||
|
||||
public String getLegalPerson()
|
||||
{
|
||||
return legalPerson;
|
||||
}
|
||||
public void setBusinessLicenseNumber(String businessLicenseNumber)
|
||||
{
|
||||
this.businessLicenseNumber = businessLicenseNumber;
|
||||
}
|
||||
|
||||
public String getBusinessLicenseNumber()
|
||||
{
|
||||
return businessLicenseNumber;
|
||||
}
|
||||
public void setEstablishmentDate(Date establishmentDate)
|
||||
{
|
||||
this.establishmentDate = establishmentDate;
|
||||
}
|
||||
|
||||
public Date getEstablishmentDate()
|
||||
{
|
||||
return establishmentDate;
|
||||
}
|
||||
public void setBusinessScope(String businessScope)
|
||||
{
|
||||
this.businessScope = businessScope;
|
||||
}
|
||||
|
||||
public String getBusinessScope()
|
||||
{
|
||||
return businessScope;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setContactPhone(String contactPhone)
|
||||
{
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public String getContactPhone()
|
||||
{
|
||||
return contactPhone;
|
||||
}
|
||||
public void setEmail(String email)
|
||||
{
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getEmail()
|
||||
{
|
||||
return email;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setRegistrationDate(Date registrationDate)
|
||||
{
|
||||
this.registrationDate = registrationDate;
|
||||
}
|
||||
|
||||
public Date getRegistrationDate()
|
||||
{
|
||||
return registrationDate;
|
||||
}
|
||||
public void setCertificationId(Long certificationId)
|
||||
{
|
||||
this.certificationId = certificationId;
|
||||
}
|
||||
|
||||
public Long getCertificationId()
|
||||
{
|
||||
return certificationId;
|
||||
}
|
||||
public void setAuthenticationDate(Date authenticationDate)
|
||||
{
|
||||
this.authenticationDate = authenticationDate;
|
||||
}
|
||||
|
||||
public Date getAuthenticationDate()
|
||||
{
|
||||
return authenticationDate;
|
||||
}
|
||||
public void setServiceLevel(Long serviceLevel)
|
||||
{
|
||||
this.serviceLevel = serviceLevel;
|
||||
}
|
||||
|
||||
public Long getServiceLevel()
|
||||
{
|
||||
return serviceLevel;
|
||||
}
|
||||
public void setOpenServerId(Long openServerId)
|
||||
{
|
||||
this.openServerId = openServerId;
|
||||
}
|
||||
|
||||
public Long getOpenServerId()
|
||||
{
|
||||
return openServerId;
|
||||
}
|
||||
public void setAddServerId(Long addServerId)
|
||||
{
|
||||
this.addServerId = addServerId;
|
||||
}
|
||||
|
||||
public Long getAddServerId()
|
||||
{
|
||||
return addServerId;
|
||||
}
|
||||
|
||||
@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("certificationId", getCertificationId())
|
||||
.append("authenticationDate", getAuthenticationDate())
|
||||
.append("serviceLevel", getServiceLevel())
|
||||
.append("openServerId", getOpenServerId())
|
||||
.append("addServerId", getAddServerId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 开通类型对象 open_service
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class OpenService extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 开通状态 */
|
||||
@Excel(name = "开通状态")
|
||||
private String activateTheService;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setActivateTheService(String activateTheService)
|
||||
{
|
||||
this.activateTheService = activateTheService;
|
||||
}
|
||||
|
||||
public String getActivateTheService()
|
||||
{
|
||||
return activateTheService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("activateTheService", getActivateTheService())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 支付对象 pay_for
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public class PayFor extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 企业id */
|
||||
@Excel(name = "企业id")
|
||||
private Long enterpriseId;
|
||||
|
||||
/** 增值金额 */
|
||||
@Excel(name = "增值金额")
|
||||
private BigDecimal price;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setEnterpriseId(Long enterpriseId)
|
||||
{
|
||||
this.enterpriseId = enterpriseId;
|
||||
}
|
||||
|
||||
public Long getEnterpriseId()
|
||||
{
|
||||
return enterpriseId;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("enterpriseId", getEnterpriseId())
|
||||
.append("price", getPrice())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
package com.muyu.liberal.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.liberal.domain.req.LiberalQueryReq;
|
||||
import com.muyu.liberal.domain.req.LiberalSaveReq;
|
||||
import com.muyu.liberal.domain.req.LiberalEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 开通服务对象 liberal
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("liberal")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Liberal", description = "开通服务")
|
||||
public class Liberal extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 开通主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "开通主键", value = "开通主键")
|
||||
private Long id;
|
||||
|
||||
/** 1开通 2未开通 */
|
||||
@Excel(name = "1开通 2未开通")
|
||||
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
|
||||
private String activateTheService;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Liberal queryBuild( LiberalQueryReq liberalQueryReq){
|
||||
return Liberal.builder()
|
||||
.activateTheService(liberalQueryReq.getActivateTheService())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Liberal saveBuild(LiberalSaveReq liberalSaveReq){
|
||||
return Liberal.builder()
|
||||
.activateTheService(liberalSaveReq.getActivateTheService())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Liberal editBuild(Long id, LiberalEditReq liberalEditReq){
|
||||
return Liberal.builder()
|
||||
.id(id)
|
||||
.activateTheService(liberalEditReq.getActivateTheService())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package com.muyu.liberal.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;
|
||||
|
||||
/**
|
||||
* 开通服务对象 liberal
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "LiberalEditReq", description = "开通服务")
|
||||
public class LiberalEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 1开通 2未开通 */
|
||||
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
|
||||
private String activateTheService;
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package com.muyu.liberal.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;
|
||||
|
||||
/**
|
||||
* 开通服务对象 liberal
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "LiberalQueryReq", description = "开通服务")
|
||||
public class LiberalQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 1开通 2未开通 */
|
||||
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
|
||||
private String activateTheService;
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
package com.muyu.liberal.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;
|
||||
|
||||
/**
|
||||
* 开通服务对象 liberal
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "LiberalSaveReq", description = "开通服务")
|
||||
public class LiberalSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 开通主键 */
|
||||
|
||||
@ApiModelProperty(name = "开通主键", value = "开通主键")
|
||||
private Long id;
|
||||
|
||||
/** 1开通 2未开通 */
|
||||
|
||||
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
|
||||
private String activateTheService;
|
||||
|
||||
}
|
|
@ -1,90 +0,0 @@
|
|||
package com.muyu.pay.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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.pay.domain.req.PayQueryReq;
|
||||
import com.muyu.pay.domain.req.PaySaveReq;
|
||||
import com.muyu.pay.domain.req.PayEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 支付对象 pay
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("pay")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Pay", description = "支付")
|
||||
public class Pay extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "支付主键", value = "支付主键")
|
||||
private Long id;
|
||||
|
||||
/** 企业主键 */
|
||||
@Excel(name = "企业主键")
|
||||
@ApiModelProperty(name = "企业主键", value = "企业主键")
|
||||
private Long companyId;
|
||||
|
||||
/** 支付方式主键 */
|
||||
@Excel(name = "支付方式主键")
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long paymentId;
|
||||
|
||||
/** 增值需要支付的价格 */
|
||||
@Excel(name = "增值需要支付的价格")
|
||||
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
|
||||
private BigDecimal appreciationDecimal;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Pay queryBuild( PayQueryReq payQueryReq){
|
||||
return Pay.builder()
|
||||
.companyId(payQueryReq.getCompanyId())
|
||||
.paymentId(payQueryReq.getPaymentId())
|
||||
.appreciationDecimal(payQueryReq.getAppreciationDecimal())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Pay saveBuild(PaySaveReq paySaveReq){
|
||||
return Pay.builder()
|
||||
.companyId(paySaveReq.getCompanyId())
|
||||
.paymentId(paySaveReq.getPaymentId())
|
||||
.appreciationDecimal(paySaveReq.getAppreciationDecimal())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Pay editBuild(Long id, PayEditReq payEditReq){
|
||||
return Pay.builder()
|
||||
.id(id)
|
||||
.companyId(payEditReq.getCompanyId())
|
||||
.paymentId(payEditReq.getPaymentId())
|
||||
.appreciationDecimal(payEditReq.getAppreciationDecimal())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
package com.muyu.pay.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 支付对象 pay
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PayEditReq", description = "支付")
|
||||
public class PayEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业主键 */
|
||||
@ApiModelProperty(name = "企业主键", value = "企业主键")
|
||||
private Long companyId;
|
||||
|
||||
/** 支付方式主键 */
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long paymentId;
|
||||
|
||||
/** 增值需要支付的价格 */
|
||||
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
|
||||
private BigDecimal appreciationDecimal;
|
||||
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
package com.muyu.pay.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 支付对象 pay
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PayQueryReq", description = "支付")
|
||||
public class PayQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 企业主键 */
|
||||
@ApiModelProperty(name = "企业主键", value = "企业主键")
|
||||
private Long companyId;
|
||||
|
||||
/** 支付方式主键 */
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long paymentId;
|
||||
|
||||
/** 增值需要支付的价格 */
|
||||
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
|
||||
private BigDecimal appreciationDecimal;
|
||||
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
package com.muyu.pay.domain.req;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 支付对象 pay
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PaySaveReq", description = "支付")
|
||||
public class PaySaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付主键 */
|
||||
|
||||
@ApiModelProperty(name = "支付主键", value = "支付主键")
|
||||
private Long id;
|
||||
|
||||
/** 企业主键 */
|
||||
|
||||
@ApiModelProperty(name = "企业主键", value = "企业主键")
|
||||
private Long companyId;
|
||||
|
||||
/** 支付方式主键 */
|
||||
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long paymentId;
|
||||
|
||||
/** 增值需要支付的价格 */
|
||||
|
||||
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
|
||||
private BigDecimal appreciationDecimal;
|
||||
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
package com.muyu.payment.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.payment.domain.req.PaymentQueryReq;
|
||||
import com.muyu.payment.domain.req.PaymentSaveReq;
|
||||
import com.muyu.payment.domain.req.PaymentEditReq;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 支付方式对象 payment
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("payment")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "Payment", description = "支付方式")
|
||||
public class Payment extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付方式主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long id;
|
||||
|
||||
/** 支付方式 */
|
||||
@Excel(name = "支付方式")
|
||||
@ApiModelProperty(name = "支付方式", value = "支付方式")
|
||||
private String payment;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static Payment queryBuild( PaymentQueryReq paymentQueryReq){
|
||||
return Payment.builder()
|
||||
.payment(paymentQueryReq.getPayment())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static Payment saveBuild(PaymentSaveReq paymentSaveReq){
|
||||
return Payment.builder()
|
||||
.payment(paymentSaveReq.getPayment())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static Payment editBuild(Long id, PaymentEditReq paymentEditReq){
|
||||
return Payment.builder()
|
||||
.id(id)
|
||||
.payment(paymentEditReq.getPayment())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package com.muyu.payment.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;
|
||||
|
||||
/**
|
||||
* 支付方式对象 payment
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PaymentEditReq", description = "支付方式")
|
||||
public class PaymentEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付方式 */
|
||||
@ApiModelProperty(name = "支付方式", value = "支付方式")
|
||||
private String payment;
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package com.muyu.payment.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;
|
||||
|
||||
/**
|
||||
* 支付方式对象 payment
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PaymentQueryReq", description = "支付方式")
|
||||
public class PaymentQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付方式 */
|
||||
@ApiModelProperty(name = "支付方式", value = "支付方式")
|
||||
private String payment;
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
package com.muyu.payment.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;
|
||||
|
||||
/**
|
||||
* 支付方式对象 payment
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "PaymentSaveReq", description = "支付方式")
|
||||
public class PaymentSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 支付方式主键 */
|
||||
|
||||
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
|
||||
private Long id;
|
||||
|
||||
/** 支付方式 */
|
||||
|
||||
@ApiModelProperty(name = "支付方式", value = "支付方式")
|
||||
private String payment;
|
||||
|
||||
}
|
|
@ -96,6 +96,12 @@
|
|||
<artifactId>muyu-common-core</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-businessPlatform-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.IAddServiceService;
|
||||
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 org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 增值Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/AddService")
|
||||
public class AddServiceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IAddServiceService addServiceService;
|
||||
|
||||
/**
|
||||
* 查询增值列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:AddService:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<AddService>> list(AddService addService)
|
||||
{
|
||||
startPage();
|
||||
List<AddService> list = addServiceService.selectAddServiceList(addService);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出增值列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:AddService: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("authentication:AddService:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(addServiceService.selectAddServiceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增增值
|
||||
*/
|
||||
@RequiresPermissions("authentication:AddService:add")
|
||||
@Log(title = "增值", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody AddService addService)
|
||||
{
|
||||
return toAjax(addServiceService.insertAddService(addService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改增值
|
||||
*/
|
||||
@RequiresPermissions("authentication:AddService:edit")
|
||||
@Log(title = "增值", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody AddService addService)
|
||||
{
|
||||
return toAjax(addServiceService.updateAddService(addService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除增值
|
||||
*/
|
||||
@RequiresPermissions("authentication:AddService:remove")
|
||||
@Log(title = "增值", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(addServiceService.deleteAddServiceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.domain.Authentication;
|
||||
import com.muyu.authentication.domain.req.AuthenticationEditReq;
|
||||
import com.muyu.authentication.domain.req.AuthenticationQueryReq;
|
||||
import com.muyu.authentication.domain.req.AuthenticationSaveReq;
|
||||
import com.muyu.authentication.service.AuthenticationService;
|
||||
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 io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 认证Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Api(tags = "认证")
|
||||
@RestController
|
||||
@RequestMapping("/authentication")
|
||||
public class AuthenticationController extends BaseController {
|
||||
@Autowired
|
||||
private AuthenticationService authenticationService;
|
||||
|
||||
/**
|
||||
* 查询认证列表
|
||||
*/
|
||||
@ApiOperation("获取认证列表")
|
||||
@RequiresPermissions("authentication:authentication:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Authentication>> list(AuthenticationQueryReq authenticationQueryReq) {
|
||||
startPage();
|
||||
List<Authentication> list = authenticationService.list(Authentication.queryBuild(authenticationQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出认证列表
|
||||
*/
|
||||
@ApiOperation("导出认证列表")
|
||||
@RequiresPermissions("authentication:authentication:export")
|
||||
@Log(title = "认证", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Authentication authentication) {
|
||||
List<Authentication> list = authenticationService.list(authentication);
|
||||
ExcelUtil<Authentication> util = new ExcelUtil<Authentication>(Authentication.class);
|
||||
util.exportExcel(response, list, "认证数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取认证详细信息
|
||||
*/
|
||||
@ApiOperation("获取认证详细信息")
|
||||
@RequiresPermissions("authentication:authentication:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Authentication> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(authenticationService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:authentication:add")
|
||||
@Log(title = "认证", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增认证")
|
||||
public Result<String> add(@RequestBody AuthenticationSaveReq authenticationSaveReq) {
|
||||
return toAjax(authenticationService.save(Authentication.saveBuild(authenticationSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:authentication:edit")
|
||||
@Log(title = "认证", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改认证")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody AuthenticationEditReq authenticationEditReq) {
|
||||
return toAjax(authenticationService.updateById(Authentication.editBuild(id,authenticationEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:authentication: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(authenticationService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.ICertificationService;
|
||||
import com.muyu.domain.Certification;
|
||||
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 org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业认证Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/certification")
|
||||
public class CertificationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICertificationService certificationService;
|
||||
|
||||
/**
|
||||
* 查询企业认证列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:certification:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Certification>> list(Certification certification)
|
||||
{
|
||||
startPage();
|
||||
List<Certification> list = certificationService.selectCertificationList(certification);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业认证列表
|
||||
*/
|
||||
@RequiresPermissions("authentication: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("authentication:certification:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(certificationService.selectCertificationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:certification:add")
|
||||
@Log(title = "企业认证", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Certification certification)
|
||||
{
|
||||
return toAjax(certificationService.insertCertification(certification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:certification:edit")
|
||||
@Log(title = "企业认证", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Certification certification)
|
||||
{
|
||||
return toAjax(certificationService.updateCertification(certification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业认证
|
||||
*/
|
||||
@RequiresPermissions("authentication:certification:remove")
|
||||
@Log(title = "企业认证", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(certificationService.deleteCertificationByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,111 +0,0 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.muyu.authentication.service.CompanyService;
|
||||
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.company.domain.Company;
|
||||
import com.muyu.company.domain.req.CompanyQueryReq;
|
||||
import com.muyu.company.domain.req.CompanySaveReq;
|
||||
import com.muyu.company.domain.req.CompanyEditReq;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 企业Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Api(tags = "企业")
|
||||
@RestController
|
||||
@RequestMapping("/company")
|
||||
public class CompanyController extends BaseController {
|
||||
@Autowired
|
||||
private CompanyService companyService;
|
||||
|
||||
/**
|
||||
* 查询企业列表
|
||||
*/
|
||||
@ApiOperation("获取企业列表")
|
||||
@RequiresPermissions("authentication:company:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Company>> list(CompanyQueryReq companyQueryReq) {
|
||||
startPage();
|
||||
List<Company> list = companyService.list(Company.queryBuild(companyQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业列表
|
||||
*/
|
||||
@ApiOperation("导出企业列表")
|
||||
@RequiresPermissions("authentication:company:export")
|
||||
@Log(title = "企业", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Company company) {
|
||||
List<Company> list = companyService.list(company);
|
||||
ExcelUtil<Company> util = new ExcelUtil<Company>(Company.class);
|
||||
util.exportExcel(response, list, "企业数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取企业详细信息
|
||||
*/
|
||||
@ApiOperation("获取企业详细信息")
|
||||
@RequiresPermissions("authentication:company:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Company> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(companyService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:company:add")
|
||||
@Log(title = "企业", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增企业")
|
||||
public Result<String> add(@RequestBody CompanySaveReq companySaveReq) {
|
||||
return toAjax(companyService.save(Company.saveBuild(companySaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:company:edit")
|
||||
@Log(title = "企业", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改企业")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody CompanyEditReq companyEditReq) {
|
||||
return toAjax(companyService.updateById(Company.editBuild(id,companyEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:company: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(companyService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.muyu.authentication.service.IEnterpriseService;
|
||||
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.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.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 企业Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/enterprise")
|
||||
public class EnterpriseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEnterpriseService enterpriseService;
|
||||
|
||||
/**
|
||||
* 查询企业列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:enterprise:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Enterprise>> list(Enterprise enterprise)
|
||||
{
|
||||
startPage();
|
||||
List<Enterprise> list = enterpriseService.selectEnterpriseList(enterprise);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业列表
|
||||
*/
|
||||
@RequiresPermissions("authentication: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("authentication:enterprise:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(enterpriseService.selectEnterpriseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:enterprise:add")
|
||||
@Log(title = "企业", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody Enterprise enterprise)
|
||||
{
|
||||
return toAjax(enterpriseService.insertEnterprise(enterprise));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:enterprise:edit")
|
||||
@Log(title = "企业", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody Enterprise enterprise)
|
||||
{
|
||||
return toAjax(enterpriseService.updateEnterprise(enterprise));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业
|
||||
*/
|
||||
@RequiresPermissions("authentication:enterprise:remove")
|
||||
@Log(title = "企业", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(enterpriseService.deleteEnterpriseByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,107 +0,0 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.LiberalService;
|
||||
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.liberal.domain.Liberal;
|
||||
import com.muyu.liberal.domain.req.LiberalEditReq;
|
||||
import com.muyu.liberal.domain.req.LiberalQueryReq;
|
||||
import com.muyu.liberal.domain.req.LiberalSaveReq;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通服务Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Api(tags = "开通服务")
|
||||
@RestController
|
||||
@RequestMapping("/liberal")
|
||||
public class LiberalController extends BaseController {
|
||||
@Autowired
|
||||
private LiberalService liberalService;
|
||||
|
||||
/**
|
||||
* 查询开通服务列表
|
||||
*/
|
||||
@ApiOperation("获取开通服务列表")
|
||||
@RequiresPermissions("authentication:liberal:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Liberal>> list(LiberalQueryReq liberalQueryReq) {
|
||||
startPage();
|
||||
List<Liberal> list = liberalService.list(Liberal.queryBuild(liberalQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出开通服务列表
|
||||
*/
|
||||
@ApiOperation("导出开通服务列表")
|
||||
@RequiresPermissions("authentication:liberal:export")
|
||||
@Log(title = "开通服务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Liberal liberal) {
|
||||
List<Liberal> list = liberalService.list(liberal);
|
||||
ExcelUtil<Liberal> util = new ExcelUtil<Liberal>(Liberal.class);
|
||||
util.exportExcel(response, list, "开通服务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取开通服务详细信息
|
||||
*/
|
||||
@ApiOperation("获取开通服务详细信息")
|
||||
@RequiresPermissions("authentication:liberal:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Liberal> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(liberalService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开通服务
|
||||
*/
|
||||
@RequiresPermissions("authentication:liberal:add")
|
||||
@Log(title = "开通服务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增开通服务")
|
||||
public Result<String> add(@RequestBody LiberalSaveReq liberalSaveReq) {
|
||||
return toAjax(liberalService.save(Liberal.saveBuild(liberalSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开通服务
|
||||
*/
|
||||
@RequiresPermissions("authentication:liberal:edit")
|
||||
@Log(title = "开通服务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改开通服务")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody LiberalEditReq liberalEditReq) {
|
||||
return toAjax(liberalService.updateById(Liberal.editBuild(id,liberalEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开通服务
|
||||
*/
|
||||
@RequiresPermissions("authentication:liberal: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(liberalService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.IOpenServiceService;
|
||||
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.OpenService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通类型Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/openService")
|
||||
public class OpenServiceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IOpenServiceService openServiceService;
|
||||
|
||||
/**
|
||||
* 查询开通类型列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<OpenService>> list(OpenService openService)
|
||||
{
|
||||
startPage();
|
||||
List<OpenService> list = openServiceService.selectOpenServiceList(openService);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出开通类型列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:export")
|
||||
@Log(title = "开通类型", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OpenService openService)
|
||||
{
|
||||
List<OpenService> list = openServiceService.selectOpenServiceList(openService);
|
||||
ExcelUtil<OpenService> util = new ExcelUtil<OpenService>(OpenService.class);
|
||||
util.exportExcel(response, list, "开通类型数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取开通类型详细信息
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result<OpenService> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return Result.success(openServiceService.selectOpenServiceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开通类型
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:add")
|
||||
@Log(title = "开通类型", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody OpenService openService)
|
||||
{
|
||||
return toAjax(openServiceService.insertOpenService(openService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开通类型
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:edit")
|
||||
@Log(title = "开通类型", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody OpenService openService)
|
||||
{
|
||||
return toAjax(openServiceService.updateOpenService(openService));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除开通类型
|
||||
*/
|
||||
@RequiresPermissions("authentication:openService:remove")
|
||||
@Log(title = "开通类型", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(openServiceService.deleteOpenServiceByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.PayService;
|
||||
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.pay.domain.Pay;
|
||||
import com.muyu.pay.domain.req.PayEditReq;
|
||||
import com.muyu.pay.domain.req.PayQueryReq;
|
||||
import com.muyu.pay.domain.req.PaySaveReq;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Api(tags = "支付")
|
||||
@RestController
|
||||
@RequestMapping("/pay")
|
||||
public class PayController extends BaseController {
|
||||
@Autowired
|
||||
private PayService payService;
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*/
|
||||
@ApiOperation("获取支付列表")
|
||||
@RequiresPermissions("authentication:pay:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Pay>> list(PayQueryReq payQueryReq) {
|
||||
startPage();
|
||||
List<Pay> list = payService.list(Pay.queryBuild(payQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出支付列表
|
||||
*/
|
||||
@ApiOperation("导出支付列表")
|
||||
@RequiresPermissions("authentication:pay:export")
|
||||
@Log(title = "支付", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Pay pay) {
|
||||
List<Pay> list = payService.list(pay);
|
||||
ExcelUtil<Pay> util = new ExcelUtil<Pay>(Pay.class);
|
||||
util.exportExcel(response, list, "支付数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付详细信息
|
||||
*/
|
||||
@ApiOperation("获取支付详细信息")
|
||||
@RequiresPermissions("authentication:pay:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Pay> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(payService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:pay:add")
|
||||
@Log(title = "支付", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增支付")
|
||||
public Result<String> add(@RequestBody PaySaveReq paySaveReq) {
|
||||
return toAjax(payService.save(Pay.saveBuild(paySaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:pay:edit")
|
||||
@Log(title = "支付", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改支付")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody PayEditReq payEditReq) {
|
||||
return toAjax(payService.updateById(Pay.editBuild(id,payEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:pay: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(payService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.IPayForService;
|
||||
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.PayFor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/for")
|
||||
public class PayForController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPayForService payForService;
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<PayFor>> list(PayFor payFor)
|
||||
{
|
||||
startPage();
|
||||
List<PayFor> list = payForService.selectPayForList(payFor);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出支付列表
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:export")
|
||||
@Log(title = "支付", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PayFor payFor)
|
||||
{
|
||||
List<PayFor> list = payForService.selectPayForList(payFor);
|
||||
ExcelUtil<PayFor> util = new ExcelUtil<PayFor>(PayFor.class);
|
||||
util.exportExcel(response, list, "支付数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付详细信息
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(payForService.selectPayForById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:add")
|
||||
@Log(title = "支付", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody PayFor payFor)
|
||||
{
|
||||
return toAjax(payForService.insertPayFor(payFor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:edit")
|
||||
@Log(title = "支付", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody PayFor payFor)
|
||||
{
|
||||
return toAjax(payForService.updatePayFor(payFor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付
|
||||
*/
|
||||
@RequiresPermissions("authentication:for:remove")
|
||||
@Log(title = "支付", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(payForService.deletePayForByIds(ids));
|
||||
}
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
package com.muyu.authentication.controller;
|
||||
|
||||
import com.muyu.authentication.service.PaymentService;
|
||||
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.payment.domain.Payment;
|
||||
import com.muyu.payment.domain.req.PaymentEditReq;
|
||||
import com.muyu.payment.domain.req.PaymentQueryReq;
|
||||
import com.muyu.payment.domain.req.PaymentSaveReq;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付方式Controller
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Api(tags = "支付方式")
|
||||
@RestController
|
||||
@RequestMapping("/payment")
|
||||
public class PaymentController extends BaseController {
|
||||
@Autowired
|
||||
private PaymentService paymentService;
|
||||
|
||||
/**
|
||||
* 查询支付方式列表
|
||||
*/
|
||||
@ApiOperation("获取支付方式列表")
|
||||
@RequiresPermissions("authentication:payment:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<Payment>> list(PaymentQueryReq paymentQueryReq) {
|
||||
startPage();
|
||||
List<Payment> list = paymentService.list(Payment.queryBuild(paymentQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出支付方式列表
|
||||
*/
|
||||
@ApiOperation("导出支付方式列表")
|
||||
@RequiresPermissions("authentication:payment:export")
|
||||
@Log(title = "支付方式", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Payment payment) {
|
||||
List<Payment> list = paymentService.list(payment);
|
||||
ExcelUtil<Payment> util = new ExcelUtil<Payment>(Payment.class);
|
||||
util.exportExcel(response, list, "支付方式数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付方式详细信息
|
||||
*/
|
||||
@ApiOperation("获取支付方式详细信息")
|
||||
@RequiresPermissions("authentication:payment:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<Payment> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(paymentService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付方式
|
||||
*/
|
||||
@RequiresPermissions("authentication:payment:add")
|
||||
@Log(title = "支付方式", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增支付方式")
|
||||
public Result<String> add(@RequestBody PaymentSaveReq paymentSaveReq) {
|
||||
return toAjax(paymentService.save(Payment.saveBuild(paymentSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付方式
|
||||
*/
|
||||
@RequiresPermissions("authentication:payment:edit")
|
||||
@Log(title = "支付方式", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改支付方式")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody PaymentEditReq paymentEditReq) {
|
||||
return toAjax(paymentService.updateById(Payment.editBuild(id,paymentEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付方式
|
||||
*/
|
||||
@RequiresPermissions("authentication:payment: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(paymentService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.muyu.domain.AddService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 增值Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
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,14 +0,0 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.authentication.domain.Authentication;
|
||||
|
||||
/**
|
||||
* 认证Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface AuthenticationMapper extends BaseMapper<Authentication> {
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.muyu.domain.Certification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业认证Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
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,15 +0,0 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.company.domain.Company;
|
||||
|
||||
/**
|
||||
* 企业Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface CompanyMapper extends BaseMapper<Company> {
|
||||
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.domain.Enterprise;
|
||||
|
||||
/**
|
||||
* 企业Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
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);
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.liberal.domain.Liberal;
|
||||
|
||||
/**
|
||||
* 开通服务Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface LiberalMapper extends BaseMapper<Liberal> {
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.muyu.domain.OpenService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通类型Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface OpenServiceMapper
|
||||
{
|
||||
/**
|
||||
* 查询开通类型
|
||||
*
|
||||
* @param id 开通类型主键
|
||||
* @return 开通类型
|
||||
*/
|
||||
public OpenService selectOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询开通类型列表
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 开通类型集合
|
||||
*/
|
||||
public List<OpenService> selectOpenServiceList(OpenService openService);
|
||||
|
||||
/**
|
||||
* 新增开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOpenService(OpenService openService);
|
||||
|
||||
/**
|
||||
* 修改开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOpenService(OpenService openService);
|
||||
|
||||
/**
|
||||
* 删除开通类型
|
||||
*
|
||||
* @param id 开通类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除开通类型
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.muyu.domain.PayFor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface PayForMapper
|
||||
{
|
||||
/**
|
||||
* 查询支付
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 支付
|
||||
*/
|
||||
public PayFor selectPayForById(Long id);
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 支付集合
|
||||
*/
|
||||
public List<PayFor> selectPayForList(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 新增支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPayFor(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 修改支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePayFor(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 删除支付
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayForById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除支付
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayForByIds(Long[] ids);
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.pay.domain.Pay;
|
||||
|
||||
/**
|
||||
* 支付Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface PayMapper extends BaseMapper<Pay> {
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package com.muyu.authentication.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.payment.domain.Payment;
|
||||
|
||||
/**
|
||||
* 支付方式Mapper接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface PaymentMapper extends BaseMapper<Payment> {
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.authentication.domain.Authentication;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 认证Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface AuthenticationService extends IService<Authentication> {
|
||||
/**
|
||||
* 查询认证列表
|
||||
*
|
||||
* @param authentication 认证
|
||||
* @return 认证集合
|
||||
*/
|
||||
public List<Authentication> list(Authentication authentication);
|
||||
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.company.domain.Company;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 企业Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface CompanyService extends IService<Company> {
|
||||
/**
|
||||
* 查询企业列表
|
||||
*
|
||||
* @param company 企业
|
||||
* @return 企业集合
|
||||
*/
|
||||
public List<Company> list(Company company);
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.muyu.domain.AddService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 增值Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IAddServiceService
|
||||
{
|
||||
/**
|
||||
* 查询增值
|
||||
*
|
||||
* @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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.muyu.domain.Certification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业认证Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface ICertificationService
|
||||
{
|
||||
/**
|
||||
* 查询企业认证
|
||||
*
|
||||
* @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);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.domain.Enterprise;
|
||||
|
||||
/**
|
||||
* 企业Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IEnterpriseService
|
||||
{
|
||||
/**
|
||||
* 查询企业
|
||||
*
|
||||
* @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);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.muyu.domain.OpenService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通类型Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IOpenServiceService
|
||||
{
|
||||
/**
|
||||
* 查询开通类型
|
||||
*
|
||||
* @param id 开通类型主键
|
||||
* @return 开通类型
|
||||
*/
|
||||
public OpenService selectOpenServiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询开通类型列表
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 开通类型集合
|
||||
*/
|
||||
public List<OpenService> selectOpenServiceList(OpenService openService);
|
||||
|
||||
/**
|
||||
* 新增开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOpenService(OpenService openService);
|
||||
|
||||
/**
|
||||
* 修改开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOpenService(OpenService openService);
|
||||
|
||||
/**
|
||||
* 批量删除开通类型
|
||||
*
|
||||
* @param ids 需要删除的开通类型主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除开通类型信息
|
||||
*
|
||||
* @param id 开通类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOpenServiceById(Long id);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.muyu.domain.PayFor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
public interface IPayForService
|
||||
{
|
||||
/**
|
||||
* 查询支付
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 支付
|
||||
*/
|
||||
public PayFor selectPayForById(Long id);
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 支付集合
|
||||
*/
|
||||
public List<PayFor> selectPayForList(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 新增支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPayFor(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 修改支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePayFor(PayFor payFor);
|
||||
|
||||
/**
|
||||
* 批量删除支付
|
||||
*
|
||||
* @param ids 需要删除的支付主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayForByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除支付信息
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePayForById(Long id);
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.liberal.domain.Liberal;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通服务Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface LiberalService extends IService<Liberal> {
|
||||
/**
|
||||
* 查询开通服务列表
|
||||
*
|
||||
* @param liberal 开通服务
|
||||
* @return 开通服务集合
|
||||
*/
|
||||
public List<Liberal> list(Liberal liberal);
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.pay.domain.Pay;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface PayService extends IService<Pay> {
|
||||
/**
|
||||
* 查询支付列表
|
||||
*
|
||||
* @param pay 支付
|
||||
* @return 支付集合
|
||||
*/
|
||||
public List<Pay> list(Pay pay);
|
||||
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
package com.muyu.authentication.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.payment.domain.Payment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付方式Service接口
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
public interface PaymentService extends IService<Payment> {
|
||||
/**
|
||||
* 查询支付方式列表
|
||||
*
|
||||
* @param payment 支付方式
|
||||
* @return 支付方式集合
|
||||
*/
|
||||
public List<Payment> list(Payment payment);
|
||||
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.muyu.authentication.mapper.AddServiceMapper;
|
||||
import com.muyu.authentication.service.IAddServiceService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.AddService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 增值Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class AddServiceServiceImpl implements IAddServiceService
|
||||
{
|
||||
@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)
|
||||
{
|
||||
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,52 +0,0 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.authentication.domain.Authentication;
|
||||
import com.muyu.authentication.mapper.AuthenticationMapper;
|
||||
import com.muyu.authentication.service.AuthenticationService;
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 认证Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AuthenticationServiceImpl extends ServiceImpl<AuthenticationMapper, Authentication> implements AuthenticationService {
|
||||
|
||||
/**
|
||||
* 查询认证列表
|
||||
*
|
||||
* @param authentication 认证
|
||||
* @return 认证
|
||||
*/
|
||||
@Override
|
||||
public List<Authentication> list(Authentication authentication) {
|
||||
LambdaQueryWrapper<Authentication> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(authentication.getAuditor())){
|
||||
queryWrapper.eq(Authentication::getAuditor, authentication.getAuditor());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(authentication.getStat())){
|
||||
queryWrapper.eq(Authentication::getStat, authentication.getStat());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(authentication.getAuditReason())){
|
||||
queryWrapper.eq(Authentication::getAuditReason, authentication.getAuditReason());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.muyu.authentication.mapper.CertificationMapper;
|
||||
import com.muyu.authentication.service.ICertificationService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.Certification;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业认证Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class CertificationServiceImpl implements ICertificationService
|
||||
{
|
||||
@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,97 +0,0 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.authentication.mapper.CompanyMapper;
|
||||
import com.muyu.authentication.service.CompanyService;
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.company.domain.Company;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
||||
/**
|
||||
* 企业Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService {
|
||||
|
||||
/**
|
||||
* 查询企业列表
|
||||
*
|
||||
* @param company 企业
|
||||
* @return 企业
|
||||
*/
|
||||
@Override
|
||||
public List<Company> list(Company company) {
|
||||
LambdaQueryWrapper<Company> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(company.getCompanyName())){
|
||||
queryWrapper.like(Company::getCompanyName, company.getCompanyName());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getLegalRepresentative())){
|
||||
queryWrapper.eq(Company::getLegalRepresentative, company.getLegalRepresentative());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getBusinessLicenseNumber())){
|
||||
queryWrapper.eq(Company::getBusinessLicenseNumber, company.getBusinessLicenseNumber());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getCompanyTime())){
|
||||
queryWrapper.eq(Company::getCompanyTime, company.getCompanyTime());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getSphereOfBusiness())){
|
||||
queryWrapper.eq(Company::getSphereOfBusiness, company.getSphereOfBusiness());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getRegisteredAddress())){
|
||||
queryWrapper.eq(Company::getRegisteredAddress, company.getRegisteredAddress());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getCompanyPhone())){
|
||||
queryWrapper.eq(Company::getCompanyPhone, company.getCompanyPhone());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getCompanyMailbox())){
|
||||
queryWrapper.eq(Company::getCompanyMailbox, company.getCompanyMailbox());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getCompanyStatus())){
|
||||
queryWrapper.eq(Company::getCompanyStatus, company.getCompanyStatus());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getEnterTime())){
|
||||
queryWrapper.eq(Company::getEnterTime, company.getEnterTime());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getAuthenticationId())){
|
||||
queryWrapper.eq(Company::getAuthenticationId, company.getAuthenticationId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getLiberalServiceId())){
|
||||
queryWrapper.eq(Company::getLiberalServiceId, company.getLiberalServiceId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getAppreciationServiceId())){
|
||||
queryWrapper.eq(Company::getAppreciationServiceId, company.getAppreciationServiceId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(company.getUserId())){
|
||||
queryWrapper.eq(Company::getUserId, company.getUserId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.authentication.mapper.EnterpriseMapper;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.domain.Enterprise;
|
||||
import com.muyu.authentication.service.IEnterpriseService;
|
||||
|
||||
/**
|
||||
* 企业Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class EnterpriseServiceImpl implements IEnterpriseService
|
||||
{
|
||||
@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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业
|
||||
*
|
||||
* @param enterprise 企业
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEnterprise(Enterprise enterprise)
|
||||
{
|
||||
enterprise.setCreateTime(DateUtils.getNowDate());
|
||||
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);
|
||||
}
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.authentication.mapper.LiberalMapper;
|
||||
import com.muyu.authentication.service.LiberalService;
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import com.muyu.liberal.domain.Liberal;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通服务Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class LiberalServiceImpl extends ServiceImpl<LiberalMapper, Liberal> implements LiberalService {
|
||||
|
||||
/**
|
||||
* 查询开通服务列表
|
||||
*
|
||||
* @param liberal 开通服务
|
||||
* @return 开通服务
|
||||
*/
|
||||
@Override
|
||||
public List<Liberal> list(Liberal liberal) {
|
||||
LambdaQueryWrapper<Liberal> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(liberal.getActivateTheService())){
|
||||
queryWrapper.eq(Liberal::getActivateTheService, liberal.getActivateTheService());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.muyu.authentication.mapper.OpenServiceMapper;
|
||||
import com.muyu.authentication.service.IOpenServiceService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.OpenService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 开通类型Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class OpenServiceServiceImpl implements IOpenServiceService
|
||||
{
|
||||
@Autowired
|
||||
private OpenServiceMapper openServiceMapper;
|
||||
|
||||
/**
|
||||
* 查询开通类型
|
||||
*
|
||||
* @param id 开通类型主键
|
||||
* @return 开通类型
|
||||
*/
|
||||
@Override
|
||||
public OpenService selectOpenServiceById(Long id)
|
||||
{
|
||||
return openServiceMapper.selectOpenServiceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询开通类型列表
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 开通类型
|
||||
*/
|
||||
@Override
|
||||
public List<OpenService> selectOpenServiceList(OpenService openService)
|
||||
{
|
||||
return openServiceMapper.selectOpenServiceList(openService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOpenService(OpenService openService)
|
||||
{
|
||||
openService.setCreateTime(DateUtils.getNowDate());
|
||||
return openServiceMapper.insertOpenService(openService);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改开通类型
|
||||
*
|
||||
* @param openService 开通类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOpenService(OpenService 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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.muyu.authentication.mapper.PayForMapper;
|
||||
import com.muyu.authentication.service.IPayForService;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.domain.PayFor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-31
|
||||
*/
|
||||
@Service
|
||||
public class PayForServiceImpl implements IPayForService
|
||||
{
|
||||
@Autowired
|
||||
private PayForMapper payForMapper;
|
||||
|
||||
/**
|
||||
* 查询支付
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 支付
|
||||
*/
|
||||
@Override
|
||||
public PayFor selectPayForById(Long id)
|
||||
{
|
||||
return payForMapper.selectPayForById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 支付
|
||||
*/
|
||||
@Override
|
||||
public List<PayFor> selectPayForList(PayFor payFor)
|
||||
{
|
||||
return payForMapper.selectPayForList(payFor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPayFor(PayFor payFor)
|
||||
{
|
||||
payFor.setCreateTime(DateUtils.getNowDate());
|
||||
return payForMapper.insertPayFor(payFor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付
|
||||
*
|
||||
* @param payFor 支付
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePayFor(PayFor payFor)
|
||||
{
|
||||
payFor.setUpdateTime(DateUtils.getNowDate());
|
||||
return payForMapper.updatePayFor(payFor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除支付
|
||||
*
|
||||
* @param ids 需要删除的支付主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePayForByIds(Long[] ids)
|
||||
{
|
||||
return payForMapper.deletePayForByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付信息
|
||||
*
|
||||
* @param id 支付主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePayForById(Long id)
|
||||
{
|
||||
return payForMapper.deletePayForById(id);
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.authentication.mapper.PayMapper;
|
||||
import com.muyu.authentication.service.PayService;
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import com.muyu.pay.domain.Pay;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class PayServiceImpl extends ServiceImpl<PayMapper, Pay> implements PayService {
|
||||
|
||||
/**
|
||||
* 查询支付列表
|
||||
*
|
||||
* @param pay 支付
|
||||
* @return 支付
|
||||
*/
|
||||
@Override
|
||||
public List<Pay> list(Pay pay) {
|
||||
LambdaQueryWrapper<Pay> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(pay.getCompanyId())){
|
||||
queryWrapper.eq(Pay::getCompanyId, pay.getCompanyId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(pay.getPaymentId())){
|
||||
queryWrapper.eq(Pay::getPaymentId, pay.getPaymentId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(pay.getAppreciationDecimal())){
|
||||
queryWrapper.eq(Pay::getAppreciationDecimal, pay.getAppreciationDecimal());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
package com.muyu.authentication.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.authentication.mapper.PaymentMapper;
|
||||
import com.muyu.authentication.service.PaymentService;
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import com.muyu.payment.domain.Payment;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付方式Service业务层处理
|
||||
*
|
||||
* @author wan
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {
|
||||
|
||||
/**
|
||||
* 查询支付方式列表
|
||||
*
|
||||
* @param payment 支付方式
|
||||
* @return 支付方式
|
||||
*/
|
||||
@Override
|
||||
public List<Payment> list(Payment payment) {
|
||||
LambdaQueryWrapper<Payment> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(payment.getPayment())){
|
||||
queryWrapper.eq(Payment::getPayment, payment.getPayment());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9400
|
||||
port: 9401
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
|
@ -0,0 +1,82 @@
|
|||
<?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.authentication.mapper.AddServiceMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.AddService" id="AddServiceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="addValue" column="add_value" />
|
||||
<result property="addDecimal" column="add_decimal" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updaetTime" column="updaet_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAddServiceVo">
|
||||
select id, add_value, add_decimal, create_by, create_time, update_by, updaet_time, remark 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>
|
||||
<if test="addDecimal != null "> and add_decimal = #{addDecimal}</if>
|
||||
<if test="updaetTime != null "> and updaet_time = #{updaetTime}</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="addDecimal != null">add_decimal,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updaetTime != null">updaet_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="addValue != null">#{addValue},</if>
|
||||
<if test="addDecimal != null">#{addDecimal},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updaetTime != null">#{updaetTime},</if>
|
||||
<if test="remark != null">#{remark},</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="addDecimal != null">add_decimal = #{addDecimal},</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="updaetTime != null">updaet_time = #{updaetTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</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>
|
|
@ -0,0 +1,86 @@
|
|||
<?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.authentication.mapper.CertificationMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.Certification" id="CertificationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="auidtor" column="auidtor" />
|
||||
<result property="status" column="status" />
|
||||
<result property="auditReason" column="audit_reason" />
|
||||
<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="selectCertificationVo">
|
||||
select id, auidtor, status, audit_reason, create_by, create_time, update_by, update_time, remark from certification
|
||||
</sql>
|
||||
|
||||
<select id="selectCertificationList" parameterType="com.muyu.domain.Certification" resultMap="CertificationResult">
|
||||
<include refid="selectCertificationVo"/>
|
||||
<where>
|
||||
<if test="auidtor != null and auidtor != ''"> and auidtor = #{auidtor}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</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="auidtor != null">auidtor,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="auditReason != null">audit_reason,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="auidtor != null">#{auidtor},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="auditReason != null">#{auditReason},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCertification" parameterType="com.muyu.domain.Certification">
|
||||
update certification
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="auidtor != null">auidtor = #{auidtor},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="auditReason != null">audit_reason = #{auditReason},</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>
|
||||
<if test="remark != null">remark = #{remark},</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>
|
|
@ -0,0 +1,146 @@
|
|||
<?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.authentication.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="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="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, enterprise_name, legal_person, business_license_number, establishment_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>
|
||||
|
||||
<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="certificationId != null "> and certification_id = #{certificationId}</if>
|
||||
<if test="authenticationDate != null "> and authentication_date = #{authenticationDate}</if>
|
||||
<if test="serviceLevel != null "> and service_level = #{serviceLevel}</if>
|
||||
<if test="openServerId != null "> and open_server_id = #{openServerId}</if>
|
||||
<if test="addServerId != null "> and add_server_id = #{addServerId}</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="certificationId != null">certification_id,</if>
|
||||
<if test="authenticationDate != null">authentication_date,</if>
|
||||
<if test="serviceLevel != null">service_level,</if>
|
||||
<if test="openServerId != null">open_server_id,</if>
|
||||
<if test="addServerId != null">add_server_id,</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>
|
||||
<if test="remark != null">remark,</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="certificationId != null">#{certificationId},</if>
|
||||
<if test="authenticationDate != null">#{authenticationDate},</if>
|
||||
<if test="serviceLevel != null">#{serviceLevel},</if>
|
||||
<if test="openServerId != null">#{openServerId},</if>
|
||||
<if test="addServerId != null">#{addServerId},</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>
|
||||
<if test="remark != null">#{remark},</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="certificationId != null">certification_id = #{certificationId},</if>
|
||||
<if test="authenticationDate != null">authentication_date = #{authenticationDate},</if>
|
||||
<if test="serviceLevel != null">service_level = #{serviceLevel},</if>
|
||||
<if test="openServerId != null">open_server_id = #{openServerId},</if>
|
||||
<if test="addServerId != null">add_server_id = #{addServerId},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
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>
|
|
@ -0,0 +1,78 @@
|
|||
<?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.authentication.mapper.OpenServiceMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.OpenService" id="OpenServiceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="activateTheService" column="activate_the_service" />
|
||||
<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="selectOpenServiceVo">
|
||||
select id, activate_the_service, create_by, create_time, update_by, update_time, remark from open_service
|
||||
</sql>
|
||||
|
||||
<select id="selectOpenServiceList" parameterType="com.muyu.domain.OpenService" 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.OpenService">
|
||||
insert into open_service
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="activateTheService != null">activate_the_service,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="activateTheService != null">#{activateTheService},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOpenService" parameterType="com.muyu.domain.OpenService">
|
||||
update open_service
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="activateTheService != null">activate_the_service = #{activateTheService},</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>
|
||||
<if test="remark != null">remark = #{remark},</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>
|
|
@ -0,0 +1,81 @@
|
|||
<?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.authentication.mapper.PayForMapper">
|
||||
|
||||
<resultMap type="com.muyu.domain.PayFor" id="PayForResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="enterpriseId" column="enterprise_id" />
|
||||
<result property="price" column="price" />
|
||||
<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="selectPayForVo">
|
||||
select id, enterprise_id, price, create_by, create_time, update_by, update_time, remark from pay_for
|
||||
</sql>
|
||||
|
||||
<select id="selectPayForList" parameterType="com.muyu.domain.PayFor" resultMap="PayForResult">
|
||||
<include refid="selectPayForVo"/>
|
||||
<where>
|
||||
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
|
||||
<if test="price != null "> and price = #{price}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPayForById" parameterType="Long" resultMap="PayForResult">
|
||||
<include refid="selectPayForVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPayFor" parameterType="com.muyu.domain.PayFor" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pay_for
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">enterprise_id,</if>
|
||||
<if test="price != null">price,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">#{enterpriseId},</if>
|
||||
<if test="price != null">#{price},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePayFor" parameterType="com.muyu.domain.PayFor">
|
||||
update pay_for
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
|
||||
<if test="price != null">price = #{price},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePayForById" parameterType="Long">
|
||||
delete from pay_for where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePayForByIds" parameterType="String">
|
||||
delete from pay_for where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -1,22 +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.authentication.mapper.AuthenticationMapper">
|
||||
|
||||
<resultMap type="com.muyu.authentication.domain.Authentication" id="AuthenticationResult">
|
||||
<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="selectAuthenticationVo">
|
||||
select id, auditor, stat, audit_reason, remark, create_by, create_time, update_by, update_time from authentication
|
||||
</sql>
|
||||
</mapper>
|
|
@ -1,33 +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.company.mapper.CompanyMapper">
|
||||
|
||||
<resultMap type="com.muyu.company.domain.Company" id="CompanyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="legalRepresentative" column="legal_representative" />
|
||||
<result property="businessLicenseNumber" column="business_license_number" />
|
||||
<result property="companyTime" column="company_time" />
|
||||
<result property="sphereOfBusiness" column="sphere_of_business" />
|
||||
<result property="registeredAddress" column="registered_address" />
|
||||
<result property="companyPhone" column="company_phone" />
|
||||
<result property="companyMailbox" column="company_mailbox" />
|
||||
<result property="companyStatus" column="company_status" />
|
||||
<result property="enterTime" column="enter_time" />
|
||||
<result property="authenticationId" column="authentication_id" />
|
||||
<result property="liberalServiceId" column="liberal_service_id" />
|
||||
<result property="appreciationServiceId" column="appreciation_service_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<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="selectCompanyVo">
|
||||
select id, company_name, legal_representative, business_license_number, company_time, sphere_of_business, registered_address, company_phone, company_mailbox, company_status, enter_time, authentication_id, liberal_service_id, appreciation_service_id, user_id, remark, create_by, create_time, update_by, update_time from company
|
||||
</sql>
|
||||
</mapper>
|
|
@ -1,20 +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.liberal.mapper.LiberalMapper">
|
||||
|
||||
<resultMap type="com.muyu.liberal.domain.Liberal" id="LiberalResult">
|
||||
<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="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectLiberalVo">
|
||||
select id, activate_the_service, remark, create_by, create_time, update_by, update_time from liberal
|
||||
</sql>
|
||||
</mapper>
|
|
@ -1,22 +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.pay.mapper.PayMapper">
|
||||
|
||||
<resultMap type="com.muyu.pay.domain.Pay" id="PayResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyId" column="company_id" />
|
||||
<result property="paymentId" column="payment_id" />
|
||||
<result property="appreciationDecimal" column="appreciation_decimal" />
|
||||
<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="selectPayVo">
|
||||
select id, company_id, payment_id, appreciation_decimal, remark, create_by, create_time, update_by, update_time from pay
|
||||
</sql>
|
||||
</mapper>
|
|
@ -1,20 +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.payment.mapper.PaymentMapper">
|
||||
|
||||
<resultMap type="com.muyu.payment.domain.Payment" id="PaymentResult">
|
||||
<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="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPaymentVo">
|
||||
select id, payment, remark, create_by, create_time, update_by, update_time from payment
|
||||
</sql>
|
||||
</mapper>
|
|
@ -230,6 +230,7 @@
|
|||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
|
||||
<if test="loginDate != null">login_date = #{loginDate},</if>
|
||||
<if test="companyId != null">company_id = #{companyId},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
update_time = sysdate()
|
||||
|
|
Loading…
Reference in New Issue