修改后台框架为mybatis-plus
parent
2d6fa82838
commit
a4752c5955
|
|
@ -8,7 +8,7 @@ spring:
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://localhost:3306/cpxtdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://localhost:3306/cpxtdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: 1234
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ ruoyi:
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
server:
|
server:
|
||||||
# 服务器的HTTP端口,默认为8080
|
# 服务器的HTTP端口,默认为8080
|
||||||
port: 8080
|
port: 8888
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
|
|
@ -97,8 +97,8 @@ token:
|
||||||
# 令牌有效期(默认30分钟)
|
# 令牌有效期(默认30分钟)
|
||||||
expireTime: 30
|
expireTime: 30
|
||||||
|
|
||||||
# MyBatis配置
|
# MyBatis Plus配置
|
||||||
mybatis:
|
mybatis-plus:
|
||||||
# 搜索指定包别名
|
# 搜索指定包别名
|
||||||
typeAliasesPackage: com.cpxt.**.domain
|
typeAliasesPackage: com.cpxt.**.domain
|
||||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,18 @@
|
||||||
<artifactId>javax.servlet-api</artifactId>
|
<artifactId>javax.servlet-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- mybatis-plus 增强CRUD -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>3.5.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -28,9 +28,6 @@ public class BaseEntity implements Serializable
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
/** 更新者 */
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/** 更新时间 */
|
/** 更新时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
@ -38,6 +35,9 @@ public class BaseEntity implements Serializable
|
||||||
/** 备注 */
|
/** 备注 */
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
/** 请求参数 */
|
/** 请求参数 */
|
||||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||||
private Map<String, Object> params;
|
private Map<String, Object> params;
|
||||||
|
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
||||||
package com.cpxt.framework.config;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
import org.apache.ibatis.io.VFS;
|
|
||||||
import org.apache.ibatis.session.SqlSessionFactory;
|
|
||||||
import org.mybatis.spring.SqlSessionFactoryBean;
|
|
||||||
import org.mybatis.spring.boot.autoconfigure.SpringBootVFS;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.core.env.Environment;
|
|
||||||
import org.springframework.core.io.DefaultResourceLoader;
|
|
||||||
import org.springframework.core.io.Resource;
|
|
||||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
|
||||||
import org.springframework.core.io.support.ResourcePatternResolver;
|
|
||||||
import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
|
|
||||||
import org.springframework.core.type.classreading.MetadataReader;
|
|
||||||
import org.springframework.core.type.classreading.MetadataReaderFactory;
|
|
||||||
import org.springframework.util.ClassUtils;
|
|
||||||
import com.cpxt.common.utils.StringUtils;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Mybatis支持*匹配扫描包
|
|
||||||
*
|
|
||||||
* @author ruoyi
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
public class MyBatisConfig
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private Environment env;
|
|
||||||
|
|
||||||
static final String DEFAULT_RESOURCE_PATTERN = "**/*.class";
|
|
||||||
|
|
||||||
public static String setTypeAliasesPackage(String typeAliasesPackage)
|
|
||||||
{
|
|
||||||
ResourcePatternResolver resolver = (ResourcePatternResolver) new PathMatchingResourcePatternResolver();
|
|
||||||
MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resolver);
|
|
||||||
List<String> allResult = new ArrayList<String>();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
for (String aliasesPackage : typeAliasesPackage.split(","))
|
|
||||||
{
|
|
||||||
List<String> result = new ArrayList<String>();
|
|
||||||
aliasesPackage = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX
|
|
||||||
+ ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + DEFAULT_RESOURCE_PATTERN;
|
|
||||||
Resource[] resources = resolver.getResources(aliasesPackage);
|
|
||||||
if (resources != null && resources.length > 0)
|
|
||||||
{
|
|
||||||
MetadataReader metadataReader = null;
|
|
||||||
for (Resource resource : resources)
|
|
||||||
{
|
|
||||||
if (resource.isReadable())
|
|
||||||
{
|
|
||||||
metadataReader = metadataReaderFactory.getMetadataReader(resource);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName());
|
|
||||||
}
|
|
||||||
catch (ClassNotFoundException e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (result.size() > 0)
|
|
||||||
{
|
|
||||||
HashSet<String> hashResult = new HashSet<String>(result);
|
|
||||||
allResult.addAll(hashResult);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (allResult.size() > 0)
|
|
||||||
{
|
|
||||||
typeAliasesPackage = String.join(",", (String[]) allResult.toArray(new String[0]));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (IOException e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return typeAliasesPackage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Resource[] resolveMapperLocations(String[] mapperLocations)
|
|
||||||
{
|
|
||||||
ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
|
|
||||||
List<Resource> resources = new ArrayList<Resource>();
|
|
||||||
if (mapperLocations != null)
|
|
||||||
{
|
|
||||||
for (String mapperLocation : mapperLocations)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Resource[] mappers = resourceResolver.getResources(mapperLocation);
|
|
||||||
resources.addAll(Arrays.asList(mappers));
|
|
||||||
}
|
|
||||||
catch (IOException e)
|
|
||||||
{
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return resources.toArray(new Resource[resources.size()]);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception
|
|
||||||
{
|
|
||||||
String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage");
|
|
||||||
String mapperLocations = env.getProperty("mybatis.mapperLocations");
|
|
||||||
String configLocation = env.getProperty("mybatis.configLocation");
|
|
||||||
typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage);
|
|
||||||
VFS.addImplClass(SpringBootVFS.class);
|
|
||||||
|
|
||||||
final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
|
|
||||||
sessionFactory.setDataSource(dataSource);
|
|
||||||
sessionFactory.setTypeAliasesPackage(typeAliasesPackage);
|
|
||||||
sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ",")));
|
|
||||||
sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation));
|
|
||||||
return sessionFactory.getObject();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,62 @@
|
||||||
|
package com.cpxt.framework.config;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.DbType;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.inner.BlockAttackInnerInterceptor;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mybatis Plus 配置
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
@EnableTransactionManagement(proxyTargetClass = true)
|
||||||
|
@Configuration
|
||||||
|
public class MybatisPlusConfig
|
||||||
|
{
|
||||||
|
@Bean
|
||||||
|
public MybatisPlusInterceptor mybatisPlusInterceptor()
|
||||||
|
{
|
||||||
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
||||||
|
// 分页插件
|
||||||
|
interceptor.addInnerInterceptor(paginationInnerInterceptor());
|
||||||
|
// 乐观锁插件
|
||||||
|
interceptor.addInnerInterceptor(optimisticLockerInnerInterceptor());
|
||||||
|
// 阻断插件
|
||||||
|
interceptor.addInnerInterceptor(blockAttackInnerInterceptor());
|
||||||
|
return interceptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页插件,自动识别数据库类型 https://baomidou.com/guide/interceptor-pagination.html
|
||||||
|
*/
|
||||||
|
public PaginationInnerInterceptor paginationInnerInterceptor()
|
||||||
|
{
|
||||||
|
PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor();
|
||||||
|
// 设置数据库类型为mysql
|
||||||
|
paginationInnerInterceptor.setDbType(DbType.MYSQL);
|
||||||
|
// 设置最大单页限制数量,默认 500 条,-1 不受限制
|
||||||
|
paginationInnerInterceptor.setMaxLimit(-1L);
|
||||||
|
return paginationInnerInterceptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 乐观锁插件 https://baomidou.com/guide/interceptor-optimistic-locker.html
|
||||||
|
*/
|
||||||
|
public OptimisticLockerInnerInterceptor optimisticLockerInnerInterceptor()
|
||||||
|
{
|
||||||
|
return new OptimisticLockerInnerInterceptor();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 如果是对全表的删除或更新操作,就会终止该操作 https://baomidou.com/guide/interceptor-block-attack.html
|
||||||
|
*/
|
||||||
|
public BlockAttackInnerInterceptor blockAttackInnerInterceptor()
|
||||||
|
{
|
||||||
|
return new BlockAttackInnerInterceptor();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import lombok.Data;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
import com.cpxt.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车辆对象 biz_car
|
* 车辆对象 biz_car
|
||||||
*
|
*
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCar extends BaseEntity
|
@Data
|
||||||
|
public class BizCar
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -46,93 +49,14 @@ public class BizCar extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setModelId(Long modelId)
|
|
||||||
{
|
|
||||||
this.modelId = modelId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getModelId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return modelId;
|
|
||||||
}
|
|
||||||
public void setModelName(String modelName)
|
|
||||||
{
|
|
||||||
this.modelName = modelName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getModelName()
|
|
||||||
{
|
|
||||||
return modelName;
|
|
||||||
}
|
|
||||||
public void setCarType(String carType)
|
|
||||||
{
|
|
||||||
this.carType = carType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCarType()
|
|
||||||
{
|
|
||||||
return carType;
|
|
||||||
}
|
|
||||||
public void setCarNo(String carNo)
|
|
||||||
{
|
|
||||||
this.carNo = carNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCarNo()
|
|
||||||
{
|
|
||||||
return carNo;
|
|
||||||
}
|
|
||||||
public void setVin(String vin)
|
|
||||||
{
|
|
||||||
this.vin = vin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getVin()
|
|
||||||
{
|
|
||||||
return vin;
|
|
||||||
}
|
|
||||||
public void setSerialNo(String serialNo)
|
|
||||||
{
|
|
||||||
this.serialNo = serialNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSerialNo()
|
|
||||||
{
|
|
||||||
return serialNo;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("modelId", getModelId())
|
|
||||||
.append("modelName", getModelName())
|
|
||||||
.append("carType", getCarType())
|
|
||||||
.append("carNo", getCarNo())
|
|
||||||
.append("vin", getVin())
|
|
||||||
.append("serialNo", getSerialNo())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import java.util.Date;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车型对象 biz_car_model
|
* 车型对象 biz_car_model
|
||||||
|
|
@ -12,7 +12,8 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCarModel extends BaseEntity
|
@Data
|
||||||
|
public class BizCarModel
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -51,103 +52,14 @@ public class BizCarModel extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setBrand(String brand)
|
|
||||||
{
|
|
||||||
this.brand = brand;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBrand()
|
|
||||||
{
|
|
||||||
return brand;
|
|
||||||
}
|
|
||||||
public void setWeight(BigDecimal weight)
|
|
||||||
{
|
|
||||||
this.weight = weight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWeight()
|
|
||||||
{
|
|
||||||
return weight;
|
|
||||||
}
|
|
||||||
public void setVolume(BigDecimal volume)
|
|
||||||
{
|
|
||||||
this.volume = volume;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getVolume()
|
|
||||||
{
|
|
||||||
return volume;
|
|
||||||
}
|
|
||||||
public void setLength(BigDecimal length)
|
|
||||||
{
|
|
||||||
this.length = length;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLength()
|
|
||||||
{
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
public void setWidth(BigDecimal width)
|
|
||||||
{
|
|
||||||
this.width = width;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWidth()
|
|
||||||
{
|
|
||||||
return width;
|
|
||||||
}
|
|
||||||
public void setHeight(BigDecimal height)
|
|
||||||
{
|
|
||||||
this.height = height;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getHeight()
|
|
||||||
{
|
|
||||||
return height;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("brand", getBrand())
|
|
||||||
.append("weight", getWeight())
|
|
||||||
.append("volume", getVolume())
|
|
||||||
.append("length", getLength())
|
|
||||||
.append("width", getWidth())
|
|
||||||
.append("height", getHeight())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,22 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
import com.cpxt.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户对象 biz_customer
|
* 客户对象 biz_customer
|
||||||
*
|
*
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCustomer extends BaseEntity
|
@Data
|
||||||
|
public class BizCustomer
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -42,83 +47,14 @@ public class BizCustomer extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setFullName(String fullName)
|
|
||||||
{
|
|
||||||
this.fullName = fullName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFullName()
|
|
||||||
{
|
|
||||||
return fullName;
|
|
||||||
}
|
|
||||||
public void setLinkman(String linkman)
|
|
||||||
{
|
|
||||||
this.linkman = linkman;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkman()
|
|
||||||
{
|
|
||||||
return linkman;
|
|
||||||
}
|
|
||||||
public void setLinkphone(String linkphone)
|
|
||||||
{
|
|
||||||
this.linkphone = linkphone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkphone()
|
|
||||||
{
|
|
||||||
return linkphone;
|
|
||||||
}
|
|
||||||
public void setLevel(String level)
|
|
||||||
{
|
|
||||||
this.level = level;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLevel()
|
|
||||||
{
|
|
||||||
return level;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("fullName", getFullName())
|
|
||||||
.append("linkman", getLinkman())
|
|
||||||
.append("linkphone", getLinkphone())
|
|
||||||
.append("level", getLevel())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
import com.cpxt.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路线对象 biz_customer_route
|
* 路线对象 biz_customer_route
|
||||||
*
|
*
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCustomerRoute extends BaseEntity
|
public class BizCustomerRoute
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -34,63 +37,14 @@ public class BizCustomerRoute extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setCustomerId(Long customerId)
|
|
||||||
{
|
|
||||||
this.customerId = customerId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustomerId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return customerId;
|
|
||||||
}
|
|
||||||
public void setCustomerName(String customerName)
|
|
||||||
{
|
|
||||||
this.customerName = customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerName()
|
|
||||||
{
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("customerId", getCustomerId())
|
|
||||||
.append("customerName", getCustomerName())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路线店铺关联对象 biz_customer_route_shop
|
* 路线店铺关联对象 biz_customer_route_shop
|
||||||
|
|
@ -11,7 +9,8 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCustomerRouteShop extends BaseEntity
|
@Data
|
||||||
|
public class BizCustomerRouteShop
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -30,50 +29,4 @@ public class BizCustomerRouteShop extends BaseEntity
|
||||||
@Excel(name = "排序")
|
@Excel(name = "排序")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
public void setRouteId(Long routeId)
|
|
||||||
{
|
|
||||||
this.routeId = routeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getRouteId()
|
|
||||||
{
|
|
||||||
return routeId;
|
|
||||||
}
|
|
||||||
public void setShopId(Long shopId)
|
|
||||||
{
|
|
||||||
this.shopId = shopId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getShopId()
|
|
||||||
{
|
|
||||||
return shopId;
|
|
||||||
}
|
|
||||||
public void setSort(Integer sort)
|
|
||||||
{
|
|
||||||
this.sort = sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort()
|
|
||||||
{
|
|
||||||
return sort;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("routeId", getRouteId())
|
|
||||||
.append("shopId", getShopId())
|
|
||||||
.append("sort", getSort())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
|
|
@ -12,7 +16,8 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCustomerShop extends BaseEntity
|
@Data
|
||||||
|
public class BizCustomerShop
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -55,113 +60,14 @@ public class BizCustomerShop extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setCustomerId(Long customerId)
|
|
||||||
{
|
|
||||||
this.customerId = customerId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustomerId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return customerId;
|
|
||||||
}
|
|
||||||
public void setCustomerName(String customerName)
|
|
||||||
{
|
|
||||||
this.customerName = customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerName()
|
|
||||||
{
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setLinkman(String linkman)
|
|
||||||
{
|
|
||||||
this.linkman = linkman;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkman()
|
|
||||||
{
|
|
||||||
return linkman;
|
|
||||||
}
|
|
||||||
public void setLinkphone(String linkphone)
|
|
||||||
{
|
|
||||||
this.linkphone = linkphone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkphone()
|
|
||||||
{
|
|
||||||
return linkphone;
|
|
||||||
}
|
|
||||||
public void setAddress(String address)
|
|
||||||
{
|
|
||||||
this.address = address;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAddress()
|
|
||||||
{
|
|
||||||
return address;
|
|
||||||
}
|
|
||||||
public void setLng(BigDecimal lng)
|
|
||||||
{
|
|
||||||
this.lng = lng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLng()
|
|
||||||
{
|
|
||||||
return lng;
|
|
||||||
}
|
|
||||||
public void setLat(BigDecimal lat)
|
|
||||||
{
|
|
||||||
this.lat = lat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLat()
|
|
||||||
{
|
|
||||||
return lat;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("customerId", getCustomerId())
|
|
||||||
.append("customerName", getCustomerName())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("linkman", getLinkman())
|
|
||||||
.append("linkphone", getLinkphone())
|
|
||||||
.append("address", getAddress())
|
|
||||||
.append("lng", getLng())
|
|
||||||
.append("lat", getLat())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,22 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
import com.cpxt.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户对象 biz_customer_user
|
* 用户对象 biz_customer_user
|
||||||
*
|
*
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizCustomerUser extends BaseEntity
|
@Data
|
||||||
|
public class BizCustomerUser
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -34,63 +39,14 @@ public class BizCustomerUser extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setCustomerId(Long customerId)
|
|
||||||
{
|
|
||||||
this.customerId = customerId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustomerId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return customerId;
|
|
||||||
}
|
|
||||||
public void setCustomerName(String customerName)
|
|
||||||
{
|
|
||||||
this.customerName = customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerName()
|
|
||||||
{
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
public void setUsername(String username)
|
|
||||||
{
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername()
|
|
||||||
{
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("customerId", getCustomerId())
|
|
||||||
.append("customerName", getCustomerName())
|
|
||||||
.append("username", getUsername())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
|
|
@ -12,6 +16,7 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
public class BizCustomerWarehouse extends BaseEntity
|
public class BizCustomerWarehouse extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
@ -55,113 +60,14 @@ public class BizCustomerWarehouse extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setCustomerId(Long customerId)
|
|
||||||
{
|
|
||||||
this.customerId = customerId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustomerId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return customerId;
|
|
||||||
}
|
|
||||||
public void setCustomerName(String customerName)
|
|
||||||
{
|
|
||||||
this.customerName = customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerName()
|
|
||||||
{
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setLinkman(String linkman)
|
|
||||||
{
|
|
||||||
this.linkman = linkman;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkman()
|
|
||||||
{
|
|
||||||
return linkman;
|
|
||||||
}
|
|
||||||
public void setLinkphone(String linkphone)
|
|
||||||
{
|
|
||||||
this.linkphone = linkphone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLinkphone()
|
|
||||||
{
|
|
||||||
return linkphone;
|
|
||||||
}
|
|
||||||
public void setAddress(String address)
|
|
||||||
{
|
|
||||||
this.address = address;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAddress()
|
|
||||||
{
|
|
||||||
return address;
|
|
||||||
}
|
|
||||||
public void setLng(BigDecimal lng)
|
|
||||||
{
|
|
||||||
this.lng = lng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLng()
|
|
||||||
{
|
|
||||||
return lng;
|
|
||||||
}
|
|
||||||
public void setLat(BigDecimal lat)
|
|
||||||
{
|
|
||||||
this.lat = lat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLat()
|
|
||||||
{
|
|
||||||
return lat;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("customerId", getCustomerId())
|
|
||||||
.append("customerName", getCustomerName())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("linkman", getLinkman())
|
|
||||||
.append("linkphone", getLinkphone())
|
|
||||||
.append("address", getAddress())
|
|
||||||
.append("lng", getLng())
|
|
||||||
.append("lat", getLat())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,22 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
import com.cpxt.common.core.domain.BaseEntity;
|
import com.cpxt.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 司机对象 biz_driver
|
* 司机对象 biz_driver
|
||||||
*
|
*
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizDriver extends BaseEntity
|
@Data
|
||||||
|
public class BizDriver
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -66,143 +71,14 @@ public class BizDriver extends BaseEntity
|
||||||
@Excel(name = "状态")
|
@Excel(name = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setDeptId(Long deptId)
|
|
||||||
{
|
|
||||||
this.deptId = deptId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDeptId()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return deptId;
|
|
||||||
}
|
|
||||||
public void setUserId(Long userId)
|
|
||||||
{
|
|
||||||
this.userId = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUserId()
|
|
||||||
{
|
|
||||||
return userId;
|
|
||||||
}
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
public void setIdcard(String idcard)
|
|
||||||
{
|
|
||||||
this.idcard = idcard;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIdcard()
|
|
||||||
{
|
|
||||||
return idcard;
|
|
||||||
}
|
|
||||||
public void setGender(String gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
public void setPhone(String phone)
|
|
||||||
{
|
|
||||||
this.phone = phone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPhone()
|
|
||||||
{
|
|
||||||
return phone;
|
|
||||||
}
|
|
||||||
public void setPhoto(String photo)
|
|
||||||
{
|
|
||||||
this.photo = photo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPhoto()
|
|
||||||
{
|
|
||||||
return photo;
|
|
||||||
}
|
|
||||||
public void setIdcardPhotoFace(String idcardPhotoFace)
|
|
||||||
{
|
|
||||||
this.idcardPhotoFace = idcardPhotoFace;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIdcardPhotoFace()
|
|
||||||
{
|
|
||||||
return idcardPhotoFace;
|
|
||||||
}
|
|
||||||
public void setIdcardPhotoNe(String idcardPhotoNe)
|
|
||||||
{
|
|
||||||
this.idcardPhotoNe = idcardPhotoNe;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIdcardPhotoNe()
|
|
||||||
{
|
|
||||||
return idcardPhotoNe;
|
|
||||||
}
|
|
||||||
public void setDefaultCarId(Long defaultCarId)
|
|
||||||
{
|
|
||||||
this.defaultCarId = defaultCarId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDefaultCarId()
|
|
||||||
{
|
|
||||||
return defaultCarId;
|
|
||||||
}
|
|
||||||
public void setDefaultCarNo(String defaultCarNo)
|
|
||||||
{
|
|
||||||
this.defaultCarNo = defaultCarNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDefaultCarNo()
|
|
||||||
{
|
|
||||||
return defaultCarNo;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("deptId", getDeptId())
|
|
||||||
.append("userId", getUserId())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("idcard", getIdcard())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("phone", getPhone())
|
|
||||||
.append("photo", getPhoto())
|
|
||||||
.append("idcardPhotoFace", getIdcardPhotoFace())
|
|
||||||
.append("idcardPhotoNe", getIdcardPhotoNe())
|
|
||||||
.append("defaultCarId", getDefaultCarId())
|
|
||||||
.append("defaultCarNo", getDefaultCarNo())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package com.cpxt.biz.domain;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
|
|
@ -14,7 +15,8 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizOrder extends BaseEntity
|
@Data
|
||||||
|
public class BizOrder
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -253,593 +255,14 @@ public class BizOrder extends BaseEntity
|
||||||
@Excel(name = "到达纬度")
|
@Excel(name = "到达纬度")
|
||||||
private BigDecimal arriveLat;
|
private BigDecimal arriveLat;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 创建时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
this.id = id;
|
private Date createTime;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 更新时间 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
return id;
|
private Date updateTime;
|
||||||
}
|
|
||||||
public void setOrderSn(String orderSn)
|
|
||||||
{
|
|
||||||
this.orderSn = orderSn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrderSn()
|
/** 备注 */
|
||||||
{
|
private String remark;
|
||||||
return orderSn;
|
|
||||||
}
|
|
||||||
public void setOrderStatus(String orderStatus)
|
|
||||||
{
|
|
||||||
this.orderStatus = orderStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrderStatus()
|
|
||||||
{
|
|
||||||
return orderStatus;
|
|
||||||
}
|
|
||||||
public void setOrderType(String orderType)
|
|
||||||
{
|
|
||||||
this.orderType = orderType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrderType()
|
|
||||||
{
|
|
||||||
return orderType;
|
|
||||||
}
|
|
||||||
public void setCustomerId(Long customerId)
|
|
||||||
{
|
|
||||||
this.customerId = customerId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustomerId()
|
|
||||||
{
|
|
||||||
return customerId;
|
|
||||||
}
|
|
||||||
public void setCustomerName(String customerName)
|
|
||||||
{
|
|
||||||
this.customerName = customerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCustomerName()
|
|
||||||
{
|
|
||||||
return customerName;
|
|
||||||
}
|
|
||||||
public void setRouteId(Long routeId)
|
|
||||||
{
|
|
||||||
this.routeId = routeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getRouteId()
|
|
||||||
{
|
|
||||||
return routeId;
|
|
||||||
}
|
|
||||||
public void setRouteName(String routeName)
|
|
||||||
{
|
|
||||||
this.routeName = routeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRouteName()
|
|
||||||
{
|
|
||||||
return routeName;
|
|
||||||
}
|
|
||||||
public void setWarehouseId(Long warehouseId)
|
|
||||||
{
|
|
||||||
this.warehouseId = warehouseId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getWarehouseId()
|
|
||||||
{
|
|
||||||
return warehouseId;
|
|
||||||
}
|
|
||||||
public void setWarehouseName(String warehouseName)
|
|
||||||
{
|
|
||||||
this.warehouseName = warehouseName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getWarehouseName()
|
|
||||||
{
|
|
||||||
return warehouseName;
|
|
||||||
}
|
|
||||||
public void setShopId(Long shopId)
|
|
||||||
{
|
|
||||||
this.shopId = shopId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getShopId()
|
|
||||||
{
|
|
||||||
return shopId;
|
|
||||||
}
|
|
||||||
public void setShopName(String shopName)
|
|
||||||
{
|
|
||||||
this.shopName = shopName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getShopName()
|
|
||||||
{
|
|
||||||
return shopName;
|
|
||||||
}
|
|
||||||
public void setCarId(Long carId)
|
|
||||||
{
|
|
||||||
this.carId = carId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCarId()
|
|
||||||
{
|
|
||||||
return carId;
|
|
||||||
}
|
|
||||||
public void setCarNo(String carNo)
|
|
||||||
{
|
|
||||||
this.carNo = carNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCarNo()
|
|
||||||
{
|
|
||||||
return carNo;
|
|
||||||
}
|
|
||||||
public void setDriverId(Long driverId)
|
|
||||||
{
|
|
||||||
this.driverId = driverId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDriverId()
|
|
||||||
{
|
|
||||||
return driverId;
|
|
||||||
}
|
|
||||||
public void setDriverName(String driverName)
|
|
||||||
{
|
|
||||||
this.driverName = driverName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDriverName()
|
|
||||||
{
|
|
||||||
return driverName;
|
|
||||||
}
|
|
||||||
public void setCopilotId(Long copilotId)
|
|
||||||
{
|
|
||||||
this.copilotId = copilotId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCopilotId()
|
|
||||||
{
|
|
||||||
return copilotId;
|
|
||||||
}
|
|
||||||
public void setCopilotName(String copilotName)
|
|
||||||
{
|
|
||||||
this.copilotName = copilotName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCopilotName()
|
|
||||||
{
|
|
||||||
return copilotName;
|
|
||||||
}
|
|
||||||
public void setSenderName(String senderName)
|
|
||||||
{
|
|
||||||
this.senderName = senderName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSenderName()
|
|
||||||
{
|
|
||||||
return senderName;
|
|
||||||
}
|
|
||||||
public void setSenderLinkman(String senderLinkman)
|
|
||||||
{
|
|
||||||
this.senderLinkman = senderLinkman;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSenderLinkman()
|
|
||||||
{
|
|
||||||
return senderLinkman;
|
|
||||||
}
|
|
||||||
public void setSenderPhone(String senderPhone)
|
|
||||||
{
|
|
||||||
this.senderPhone = senderPhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSenderPhone()
|
|
||||||
{
|
|
||||||
return senderPhone;
|
|
||||||
}
|
|
||||||
public void setSenderAddress(String senderAddress)
|
|
||||||
{
|
|
||||||
this.senderAddress = senderAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSenderAddress()
|
|
||||||
{
|
|
||||||
return senderAddress;
|
|
||||||
}
|
|
||||||
public void setSenderLng(BigDecimal senderLng)
|
|
||||||
{
|
|
||||||
this.senderLng = senderLng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getSenderLng()
|
|
||||||
{
|
|
||||||
return senderLng;
|
|
||||||
}
|
|
||||||
public void setSenderLat(BigDecimal senderLat)
|
|
||||||
{
|
|
||||||
this.senderLat = senderLat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getSenderLat()
|
|
||||||
{
|
|
||||||
return senderLat;
|
|
||||||
}
|
|
||||||
public void setSenderCompany(String senderCompany)
|
|
||||||
{
|
|
||||||
this.senderCompany = senderCompany;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSenderCompany()
|
|
||||||
{
|
|
||||||
return senderCompany;
|
|
||||||
}
|
|
||||||
public void setReceiverName(String receiverName)
|
|
||||||
{
|
|
||||||
this.receiverName = receiverName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReceiverName()
|
|
||||||
{
|
|
||||||
return receiverName;
|
|
||||||
}
|
|
||||||
public void setReceiverLinkman(String receiverLinkman)
|
|
||||||
{
|
|
||||||
this.receiverLinkman = receiverLinkman;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReceiverLinkman()
|
|
||||||
{
|
|
||||||
return receiverLinkman;
|
|
||||||
}
|
|
||||||
public void setReceiverPhone(String receiverPhone)
|
|
||||||
{
|
|
||||||
this.receiverPhone = receiverPhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReceiverPhone()
|
|
||||||
{
|
|
||||||
return receiverPhone;
|
|
||||||
}
|
|
||||||
public void setReceiverAddress(String receiverAddress)
|
|
||||||
{
|
|
||||||
this.receiverAddress = receiverAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReceiverAddress()
|
|
||||||
{
|
|
||||||
return receiverAddress;
|
|
||||||
}
|
|
||||||
public void setReceiverLng(BigDecimal receiverLng)
|
|
||||||
{
|
|
||||||
this.receiverLng = receiverLng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getReceiverLng()
|
|
||||||
{
|
|
||||||
return receiverLng;
|
|
||||||
}
|
|
||||||
public void setReceiverLat(BigDecimal receiverLat)
|
|
||||||
{
|
|
||||||
this.receiverLat = receiverLat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getReceiverLat()
|
|
||||||
{
|
|
||||||
return receiverLat;
|
|
||||||
}
|
|
||||||
public void setReceiverCompany(String receiverCompany)
|
|
||||||
{
|
|
||||||
this.receiverCompany = receiverCompany;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReceiverCompany()
|
|
||||||
{
|
|
||||||
return receiverCompany;
|
|
||||||
}
|
|
||||||
public void setGoodsType(String goodsType)
|
|
||||||
{
|
|
||||||
this.goodsType = goodsType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGoodsType()
|
|
||||||
{
|
|
||||||
return goodsType;
|
|
||||||
}
|
|
||||||
public void setGoodsName(String goodsName)
|
|
||||||
{
|
|
||||||
this.goodsName = goodsName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGoodsName()
|
|
||||||
{
|
|
||||||
return goodsName;
|
|
||||||
}
|
|
||||||
public void setWeight(BigDecimal weight)
|
|
||||||
{
|
|
||||||
this.weight = weight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWeight()
|
|
||||||
{
|
|
||||||
return weight;
|
|
||||||
}
|
|
||||||
public void setVolume(BigDecimal volume)
|
|
||||||
{
|
|
||||||
this.volume = volume;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getVolume()
|
|
||||||
{
|
|
||||||
return volume;
|
|
||||||
}
|
|
||||||
public void setLength(BigDecimal length)
|
|
||||||
{
|
|
||||||
this.length = length;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLength()
|
|
||||||
{
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
public void setWidth(BigDecimal width)
|
|
||||||
{
|
|
||||||
this.width = width;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWidth()
|
|
||||||
{
|
|
||||||
return width;
|
|
||||||
}
|
|
||||||
public void setHeight(BigDecimal height)
|
|
||||||
{
|
|
||||||
this.height = height;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getHeight()
|
|
||||||
{
|
|
||||||
return height;
|
|
||||||
}
|
|
||||||
public void setTotalQuantity(Integer totalQuantity)
|
|
||||||
{
|
|
||||||
this.totalQuantity = totalQuantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getTotalQuantity()
|
|
||||||
{
|
|
||||||
return totalQuantity;
|
|
||||||
}
|
|
||||||
public void setInsured(Integer insured)
|
|
||||||
{
|
|
||||||
this.insured = insured;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getInsured()
|
|
||||||
{
|
|
||||||
return insured;
|
|
||||||
}
|
|
||||||
public void setInsuredMoney(BigDecimal insuredMoney)
|
|
||||||
{
|
|
||||||
this.insuredMoney = insuredMoney;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getInsuredMoney()
|
|
||||||
{
|
|
||||||
return insuredMoney;
|
|
||||||
}
|
|
||||||
public void setInsuredFee(BigDecimal insuredFee)
|
|
||||||
{
|
|
||||||
this.insuredFee = insuredFee;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getInsuredFee()
|
|
||||||
{
|
|
||||||
return insuredFee;
|
|
||||||
}
|
|
||||||
public void setOrderFee(BigDecimal orderFee)
|
|
||||||
{
|
|
||||||
this.orderFee = orderFee;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getOrderFee()
|
|
||||||
{
|
|
||||||
return orderFee;
|
|
||||||
}
|
|
||||||
public void setIsCancel(Integer isCancel)
|
|
||||||
{
|
|
||||||
this.isCancel = isCancel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getIsCancel()
|
|
||||||
{
|
|
||||||
return isCancel;
|
|
||||||
}
|
|
||||||
public void setCancelReason(String cancelReason)
|
|
||||||
{
|
|
||||||
this.cancelReason = cancelReason;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCancelReason()
|
|
||||||
{
|
|
||||||
return cancelReason;
|
|
||||||
}
|
|
||||||
public void setCancelTime(Date cancelTime)
|
|
||||||
{
|
|
||||||
this.cancelTime = cancelTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getCancelTime()
|
|
||||||
{
|
|
||||||
return cancelTime;
|
|
||||||
}
|
|
||||||
public void setPayType(String payType)
|
|
||||||
{
|
|
||||||
this.payType = payType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPayType()
|
|
||||||
{
|
|
||||||
return payType;
|
|
||||||
}
|
|
||||||
public void setPayMode(String payMode)
|
|
||||||
{
|
|
||||||
this.payMode = payMode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPayMode()
|
|
||||||
{
|
|
||||||
return payMode;
|
|
||||||
}
|
|
||||||
public void setPayId(String payId)
|
|
||||||
{
|
|
||||||
this.payId = payId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPayId()
|
|
||||||
{
|
|
||||||
return payId;
|
|
||||||
}
|
|
||||||
public void setPayStatus(Integer payStatus)
|
|
||||||
{
|
|
||||||
this.payStatus = payStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPayStatus()
|
|
||||||
{
|
|
||||||
return payStatus;
|
|
||||||
}
|
|
||||||
public void setPayTime(Date payTime)
|
|
||||||
{
|
|
||||||
this.payTime = payTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getPayTime()
|
|
||||||
{
|
|
||||||
return payTime;
|
|
||||||
}
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
public void setStartTime(Date startTime)
|
|
||||||
{
|
|
||||||
this.startTime = startTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getStartTime()
|
|
||||||
{
|
|
||||||
return startTime;
|
|
||||||
}
|
|
||||||
public void setArriveTime(Date arriveTime)
|
|
||||||
{
|
|
||||||
this.arriveTime = arriveTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getArriveTime()
|
|
||||||
{
|
|
||||||
return arriveTime;
|
|
||||||
}
|
|
||||||
public void setArriveRemark(String arriveRemark)
|
|
||||||
{
|
|
||||||
this.arriveRemark = arriveRemark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getArriveRemark()
|
|
||||||
{
|
|
||||||
return arriveRemark;
|
|
||||||
}
|
|
||||||
public void setArriveLng(BigDecimal arriveLng)
|
|
||||||
{
|
|
||||||
this.arriveLng = arriveLng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getArriveLng()
|
|
||||||
{
|
|
||||||
return arriveLng;
|
|
||||||
}
|
|
||||||
public void setArriveLat(BigDecimal arriveLat)
|
|
||||||
{
|
|
||||||
this.arriveLat = arriveLat;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getArriveLat()
|
|
||||||
{
|
|
||||||
return arriveLat;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("orderSn", getOrderSn())
|
|
||||||
.append("orderStatus", getOrderStatus())
|
|
||||||
.append("orderType", getOrderType())
|
|
||||||
.append("customerId", getCustomerId())
|
|
||||||
.append("customerName", getCustomerName())
|
|
||||||
.append("routeId", getRouteId())
|
|
||||||
.append("routeName", getRouteName())
|
|
||||||
.append("warehouseId", getWarehouseId())
|
|
||||||
.append("warehouseName", getWarehouseName())
|
|
||||||
.append("shopId", getShopId())
|
|
||||||
.append("shopName", getShopName())
|
|
||||||
.append("carId", getCarId())
|
|
||||||
.append("carNo", getCarNo())
|
|
||||||
.append("driverId", getDriverId())
|
|
||||||
.append("driverName", getDriverName())
|
|
||||||
.append("copilotId", getCopilotId())
|
|
||||||
.append("copilotName", getCopilotName())
|
|
||||||
.append("senderName", getSenderName())
|
|
||||||
.append("senderLinkman", getSenderLinkman())
|
|
||||||
.append("senderPhone", getSenderPhone())
|
|
||||||
.append("senderAddress", getSenderAddress())
|
|
||||||
.append("senderLng", getSenderLng())
|
|
||||||
.append("senderLat", getSenderLat())
|
|
||||||
.append("senderCompany", getSenderCompany())
|
|
||||||
.append("receiverName", getReceiverName())
|
|
||||||
.append("receiverLinkman", getReceiverLinkman())
|
|
||||||
.append("receiverPhone", getReceiverPhone())
|
|
||||||
.append("receiverAddress", getReceiverAddress())
|
|
||||||
.append("receiverLng", getReceiverLng())
|
|
||||||
.append("receiverLat", getReceiverLat())
|
|
||||||
.append("receiverCompany", getReceiverCompany())
|
|
||||||
.append("goodsType", getGoodsType())
|
|
||||||
.append("goodsName", getGoodsName())
|
|
||||||
.append("weight", getWeight())
|
|
||||||
.append("volume", getVolume())
|
|
||||||
.append("length", getLength())
|
|
||||||
.append("width", getWidth())
|
|
||||||
.append("height", getHeight())
|
|
||||||
.append("totalQuantity", getTotalQuantity())
|
|
||||||
.append("insured", getInsured())
|
|
||||||
.append("insuredMoney", getInsuredMoney())
|
|
||||||
.append("insuredFee", getInsuredFee())
|
|
||||||
.append("orderFee", getOrderFee())
|
|
||||||
.append("isCancel", getIsCancel())
|
|
||||||
.append("cancelReason", getCancelReason())
|
|
||||||
.append("cancelTime", getCancelTime())
|
|
||||||
.append("payType", getPayType())
|
|
||||||
.append("payMode", getPayMode())
|
|
||||||
.append("payId", getPayId())
|
|
||||||
.append("payStatus", getPayStatus())
|
|
||||||
.append("payTime", getPayTime())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("remark", getRemark())
|
|
||||||
.append("startTime", getStartTime())
|
|
||||||
.append("arriveTime", getArriveTime())
|
|
||||||
.append("arriveRemark", getArriveRemark())
|
|
||||||
.append("arriveLng", getArriveLng())
|
|
||||||
.append("arriveLat", getArriveLat())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.cpxt.biz.domain;
|
package com.cpxt.biz.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.cpxt.common.annotation.Excel;
|
import com.cpxt.common.annotation.Excel;
|
||||||
|
|
@ -12,7 +14,8 @@ import com.cpxt.common.core.domain.BaseEntity;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public class BizOrderSub extends BaseEntity
|
@Data
|
||||||
|
public class BizOrderSub
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
@ -47,90 +50,4 @@ public class BizOrderSub extends BaseEntity
|
||||||
@Excel(name = "高", readConverterExp = "米=")
|
@Excel(name = "高", readConverterExp = "米=")
|
||||||
private BigDecimal height;
|
private BigDecimal height;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
public void setOrderSn(String orderSn)
|
|
||||||
{
|
|
||||||
this.orderSn = orderSn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrderSn()
|
|
||||||
{
|
|
||||||
return orderSn;
|
|
||||||
}
|
|
||||||
public void setSubOrderSn(String subOrderSn)
|
|
||||||
{
|
|
||||||
this.subOrderSn = subOrderSn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSubOrderSn()
|
|
||||||
{
|
|
||||||
return subOrderSn;
|
|
||||||
}
|
|
||||||
public void setWeight(BigDecimal weight)
|
|
||||||
{
|
|
||||||
this.weight = weight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWeight()
|
|
||||||
{
|
|
||||||
return weight;
|
|
||||||
}
|
|
||||||
public void setVolume(BigDecimal volume)
|
|
||||||
{
|
|
||||||
this.volume = volume;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getVolume()
|
|
||||||
{
|
|
||||||
return volume;
|
|
||||||
}
|
|
||||||
public void setLength(BigDecimal length)
|
|
||||||
{
|
|
||||||
this.length = length;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getLength()
|
|
||||||
{
|
|
||||||
return length;
|
|
||||||
}
|
|
||||||
public void setWidth(BigDecimal width)
|
|
||||||
{
|
|
||||||
this.width = width;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWidth()
|
|
||||||
{
|
|
||||||
return width;
|
|
||||||
}
|
|
||||||
public void setHeight(BigDecimal height)
|
|
||||||
{
|
|
||||||
this.height = height;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getHeight()
|
|
||||||
{
|
|
||||||
return height;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("orderSn", getOrderSn())
|
|
||||||
.append("subOrderSn", getSubOrderSn())
|
|
||||||
.append("weight", getWeight())
|
|
||||||
.append("volume", getVolume())
|
|
||||||
.append("length", getLength())
|
|
||||||
.append("width", getWidth())
|
|
||||||
.append("height", getHeight())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCar;
|
import com.cpxt.biz.domain.BizCar;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车辆Mapper接口
|
* 车辆Mapper接口
|
||||||
|
|
@ -9,53 +10,6 @@ import com.cpxt.biz.domain.BizCar;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCarMapper
|
@Mapper
|
||||||
{
|
public interface BizCarMapper extends BaseMapper<BizCar>
|
||||||
/**
|
{ }
|
||||||
* 查询车辆
|
|
||||||
*
|
|
||||||
* @param id 车辆主键
|
|
||||||
* @return 车辆
|
|
||||||
*/
|
|
||||||
public BizCar selectBizCarById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询车辆列表
|
|
||||||
*
|
|
||||||
* @param bizCar 车辆
|
|
||||||
* @return 车辆集合
|
|
||||||
*/
|
|
||||||
public List<BizCar> selectBizCarList(BizCar bizCar);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增车辆
|
|
||||||
*
|
|
||||||
* @param bizCar 车辆
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCar(BizCar bizCar);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改车辆
|
|
||||||
*
|
|
||||||
* @param bizCar 车辆
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCar(BizCar bizCar);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除车辆
|
|
||||||
*
|
|
||||||
* @param id 车辆主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCarById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除车辆
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCarByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCarModel;
|
import com.cpxt.biz.domain.BizCarModel;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车型Mapper接口
|
* 车型Mapper接口
|
||||||
|
|
@ -9,53 +10,6 @@ import com.cpxt.biz.domain.BizCarModel;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCarModelMapper
|
@Mapper
|
||||||
{
|
public interface BizCarModelMapper extends BaseMapper<BizCarModel>
|
||||||
/**
|
{ }
|
||||||
* 查询车型
|
|
||||||
*
|
|
||||||
* @param id 车型主键
|
|
||||||
* @return 车型
|
|
||||||
*/
|
|
||||||
public BizCarModel selectBizCarModelById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询车型列表
|
|
||||||
*
|
|
||||||
* @param bizCarModel 车型
|
|
||||||
* @return 车型集合
|
|
||||||
*/
|
|
||||||
public List<BizCarModel> selectBizCarModelList(BizCarModel bizCarModel);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增车型
|
|
||||||
*
|
|
||||||
* @param bizCarModel 车型
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCarModel(BizCarModel bizCarModel);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改车型
|
|
||||||
*
|
|
||||||
* @param bizCarModel 车型
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCarModel(BizCarModel bizCarModel);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除车型
|
|
||||||
*
|
|
||||||
* @param id 车型主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCarModelById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除车型
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCarModelByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCustomer;
|
import com.cpxt.biz.domain.BizCustomer;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户Mapper接口
|
* 客户Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizCustomer;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerMapper
|
@Mapper
|
||||||
{
|
public interface BizCustomerMapper extends BaseMapper<BizCustomer>
|
||||||
/**
|
{ }
|
||||||
* 查询客户
|
|
||||||
*
|
|
||||||
* @param id 客户主键
|
|
||||||
* @return 客户
|
|
||||||
*/
|
|
||||||
public BizCustomer selectBizCustomerById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询客户列表
|
|
||||||
*
|
|
||||||
* @param bizCustomer 客户
|
|
||||||
* @return 客户集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomer> selectBizCustomerList(BizCustomer bizCustomer);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增客户
|
|
||||||
*
|
|
||||||
* @param bizCustomer 客户
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomer(BizCustomer bizCustomer);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改客户
|
|
||||||
*
|
|
||||||
* @param bizCustomer 客户
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomer(BizCustomer bizCustomer);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除客户
|
|
||||||
*
|
|
||||||
* @param id 客户主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除客户
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCustomerRoute;
|
import com.cpxt.biz.domain.BizCustomerRoute;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路线Mapper接口
|
* 路线Mapper接口
|
||||||
|
|
@ -9,53 +12,7 @@ import com.cpxt.biz.domain.BizCustomerRoute;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerRouteMapper
|
@Mapper
|
||||||
|
public interface BizCustomerRouteMapper extends BaseMapper<BizCustomerRoute>
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* 查询路线
|
|
||||||
*
|
|
||||||
* @param id 路线主键
|
|
||||||
* @return 路线
|
|
||||||
*/
|
|
||||||
public BizCustomerRoute selectBizCustomerRouteById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询路线列表
|
|
||||||
*
|
|
||||||
* @param bizCustomerRoute 路线
|
|
||||||
* @return 路线集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomerRoute> selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增路线
|
|
||||||
*
|
|
||||||
* @param bizCustomerRoute 路线
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改路线
|
|
||||||
*
|
|
||||||
* @param bizCustomerRoute 路线
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除路线
|
|
||||||
*
|
|
||||||
* @param id 路线主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerRouteById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除路线
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerRouteByIds(Long[] ids);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.cpxt.biz.domain.BizCustomerRoute;
|
||||||
import com.cpxt.biz.domain.BizCustomerRouteShop;
|
import com.cpxt.biz.domain.BizCustomerRouteShop;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路线店铺关联Mapper接口
|
* 路线店铺关联Mapper接口
|
||||||
|
|
@ -9,53 +13,6 @@ import com.cpxt.biz.domain.BizCustomerRouteShop;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerRouteShopMapper
|
@Mapper
|
||||||
{
|
public interface BizCustomerRouteShopMapper extends BaseMapper<BizCustomerRouteShop>
|
||||||
/**
|
{ }
|
||||||
* 查询路线店铺关联
|
|
||||||
*
|
|
||||||
* @param id 路线店铺关联主键
|
|
||||||
* @return 路线店铺关联
|
|
||||||
*/
|
|
||||||
public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询路线店铺关联列表
|
|
||||||
*
|
|
||||||
* @param bizCustomerRouteShop 路线店铺关联
|
|
||||||
* @return 路线店铺关联集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomerRouteShop> selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增路线店铺关联
|
|
||||||
*
|
|
||||||
* @param bizCustomerRouteShop 路线店铺关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改路线店铺关联
|
|
||||||
*
|
|
||||||
* @param bizCustomerRouteShop 路线店铺关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除路线店铺关联
|
|
||||||
*
|
|
||||||
* @param id 路线店铺关联主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerRouteShopById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除路线店铺关联
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerRouteShopByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCustomerShop;
|
import com.cpxt.biz.domain.BizCustomerShop;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 门店Mapper接口
|
* 门店Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizCustomerShop;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerShopMapper
|
@Mapper
|
||||||
{
|
public interface BizCustomerShopMapper extends BaseMapper<BizCustomerShop>
|
||||||
/**
|
{ }
|
||||||
* 查询门店
|
|
||||||
*
|
|
||||||
* @param id 门店主键
|
|
||||||
* @return 门店
|
|
||||||
*/
|
|
||||||
public BizCustomerShop selectBizCustomerShopById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询门店列表
|
|
||||||
*
|
|
||||||
* @param bizCustomerShop 门店
|
|
||||||
* @return 门店集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomerShop> selectBizCustomerShopList(BizCustomerShop bizCustomerShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增门店
|
|
||||||
*
|
|
||||||
* @param bizCustomerShop 门店
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomerShop(BizCustomerShop bizCustomerShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改门店
|
|
||||||
*
|
|
||||||
* @param bizCustomerShop 门店
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomerShop(BizCustomerShop bizCustomerShop);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除门店
|
|
||||||
*
|
|
||||||
* @param id 门店主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerShopById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除门店
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerShopByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCustomerUser;
|
import com.cpxt.biz.domain.BizCustomerUser;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户Mapper接口
|
* 用户Mapper接口
|
||||||
|
|
@ -9,53 +13,6 @@ import com.cpxt.biz.domain.BizCustomerUser;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerUserMapper
|
@Mapper
|
||||||
{
|
public interface BizCustomerUserMapper extends BaseMapper<BizCustomerUser>
|
||||||
/**
|
{ }
|
||||||
* 查询用户
|
|
||||||
*
|
|
||||||
* @param id 用户主键
|
|
||||||
* @return 用户
|
|
||||||
*/
|
|
||||||
public BizCustomerUser selectBizCustomerUserById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询用户列表
|
|
||||||
*
|
|
||||||
* @param bizCustomerUser 用户
|
|
||||||
* @return 用户集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomerUser> selectBizCustomerUserList(BizCustomerUser bizCustomerUser);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增用户
|
|
||||||
*
|
|
||||||
* @param bizCustomerUser 用户
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomerUser(BizCustomerUser bizCustomerUser);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改用户
|
|
||||||
*
|
|
||||||
* @param bizCustomerUser 用户
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomerUser(BizCustomerUser bizCustomerUser);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除用户
|
|
||||||
*
|
|
||||||
* @param id 用户主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerUserById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除用户
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerUserByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizCustomerWarehouse;
|
import com.cpxt.biz.domain.BizCustomerWarehouse;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓库Mapper接口
|
* 仓库Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizCustomerWarehouse;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizCustomerWarehouseMapper
|
@Mapper
|
||||||
{
|
public interface BizCustomerWarehouseMapper extends BaseMapper<BizCustomerWarehouse>
|
||||||
/**
|
{ }
|
||||||
* 查询仓库
|
|
||||||
*
|
|
||||||
* @param id 仓库主键
|
|
||||||
* @return 仓库
|
|
||||||
*/
|
|
||||||
public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询仓库列表
|
|
||||||
*
|
|
||||||
* @param bizCustomerWarehouse 仓库
|
|
||||||
* @return 仓库集合
|
|
||||||
*/
|
|
||||||
public List<BizCustomerWarehouse> selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增仓库
|
|
||||||
*
|
|
||||||
* @param bizCustomerWarehouse 仓库
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改仓库
|
|
||||||
*
|
|
||||||
* @param bizCustomerWarehouse 仓库
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除仓库
|
|
||||||
*
|
|
||||||
* @param id 仓库主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerWarehouseById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除仓库
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizCustomerWarehouseByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizDriver;
|
import com.cpxt.biz.domain.BizDriver;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 司机Mapper接口
|
* 司机Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizDriver;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizDriverMapper
|
@Mapper
|
||||||
{
|
public interface BizDriverMapper extends BaseMapper<BizDriver>
|
||||||
/**
|
{ }
|
||||||
* 查询司机
|
|
||||||
*
|
|
||||||
* @param id 司机主键
|
|
||||||
* @return 司机
|
|
||||||
*/
|
|
||||||
public BizDriver selectBizDriverById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询司机列表
|
|
||||||
*
|
|
||||||
* @param bizDriver 司机
|
|
||||||
* @return 司机集合
|
|
||||||
*/
|
|
||||||
public List<BizDriver> selectBizDriverList(BizDriver bizDriver);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增司机
|
|
||||||
*
|
|
||||||
* @param bizDriver 司机
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizDriver(BizDriver bizDriver);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改司机
|
|
||||||
*
|
|
||||||
* @param bizDriver 司机
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizDriver(BizDriver bizDriver);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除司机
|
|
||||||
*
|
|
||||||
* @param id 司机主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizDriverById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除司机
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizDriverByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizOrder;
|
import com.cpxt.biz.domain.BizOrder;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单Mapper接口
|
* 订单Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizOrder;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizOrderMapper
|
@Mapper
|
||||||
{
|
public interface BizOrderMapper extends BaseMapper<BizOrder>
|
||||||
/**
|
{ }
|
||||||
* 查询订单
|
|
||||||
*
|
|
||||||
* @param id 订单主键
|
|
||||||
* @return 订单
|
|
||||||
*/
|
|
||||||
public BizOrder selectBizOrderById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询订单列表
|
|
||||||
*
|
|
||||||
* @param bizOrder 订单
|
|
||||||
* @return 订单集合
|
|
||||||
*/
|
|
||||||
public List<BizOrder> selectBizOrderList(BizOrder bizOrder);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增订单
|
|
||||||
*
|
|
||||||
* @param bizOrder 订单
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizOrder(BizOrder bizOrder);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改订单
|
|
||||||
*
|
|
||||||
* @param bizOrder 订单
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizOrder(BizOrder bizOrder);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除订单
|
|
||||||
*
|
|
||||||
* @param id 订单主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizOrderById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除订单
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizOrderByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package com.cpxt.biz.mapper;
|
package com.cpxt.biz.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.cpxt.biz.domain.BizOrderSub;
|
import com.cpxt.biz.domain.BizOrderSub;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单子单Mapper接口
|
* 订单子单Mapper接口
|
||||||
|
|
@ -9,53 +12,6 @@ import com.cpxt.biz.domain.BizOrderSub;
|
||||||
* @author YIN
|
* @author YIN
|
||||||
* @date 2024-12-16
|
* @date 2024-12-16
|
||||||
*/
|
*/
|
||||||
public interface BizOrderSubMapper
|
@Mapper
|
||||||
{
|
public interface BizOrderSubMapper extends BaseMapper<BizOrderSub>
|
||||||
/**
|
{ }
|
||||||
* 查询订单子单
|
|
||||||
*
|
|
||||||
* @param id 订单子单主键
|
|
||||||
* @return 订单子单
|
|
||||||
*/
|
|
||||||
public BizOrderSub selectBizOrderSubById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询订单子单列表
|
|
||||||
*
|
|
||||||
* @param bizOrderSub 订单子单
|
|
||||||
* @return 订单子单集合
|
|
||||||
*/
|
|
||||||
public List<BizOrderSub> selectBizOrderSubList(BizOrderSub bizOrderSub);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增订单子单
|
|
||||||
*
|
|
||||||
* @param bizOrderSub 订单子单
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertBizOrderSub(BizOrderSub bizOrderSub);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改订单子单
|
|
||||||
*
|
|
||||||
* @param bizOrderSub 订单子单
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateBizOrderSub(BizOrderSub bizOrderSub);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除订单子单
|
|
||||||
*
|
|
||||||
* @param id 订单子单主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizOrderSubById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除订单子单
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteBizOrderSubByIds(Long[] ids);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public BizCarModel selectBizCarModelById(Long id)
|
public BizCarModel selectBizCarModelById(Long id)
|
||||||
{
|
{
|
||||||
return bizCarModelMapper.selectBizCarModelById(id);
|
return bizCarModelMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCarModel> selectBizCarModelList(BizCarModel bizCarModel)
|
public List<BizCarModel> selectBizCarModelList(BizCarModel bizCarModel)
|
||||||
{
|
{
|
||||||
return bizCarModelMapper.selectBizCarModelList(bizCarModel);
|
LambdaQueryWrapper<BizCarModel> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizCarModelMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCarModel(BizCarModel bizCarModel)
|
public int insertBizCarModel(BizCarModel bizCarModel)
|
||||||
{
|
{
|
||||||
bizCarModel.setCreateTime(DateUtils.getNowDate());
|
return bizCarModelMapper.insert(bizCarModel);
|
||||||
return bizCarModelMapper.insertBizCarModel(bizCarModel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCarModel(BizCarModel bizCarModel)
|
public int updateBizCarModel(BizCarModel bizCarModel)
|
||||||
{
|
{
|
||||||
bizCarModel.setUpdateTime(DateUtils.getNowDate());
|
return bizCarModelMapper.updateById(bizCarModel);
|
||||||
return bizCarModelMapper.updateBizCarModel(bizCarModel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCarModelByIds(Long[] ids)
|
public int deleteBizCarModelByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCarModelMapper.deleteBizCarModelByIds(ids);
|
return bizCarModelMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizCarModelServiceImpl implements IBizCarModelService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCarModelById(Long id)
|
public int deleteBizCarModelById(Long id)
|
||||||
{
|
{
|
||||||
return bizCarModelMapper.deleteBizCarModelById(id);
|
return bizCarModelMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public BizCar selectBizCarById(Long id)
|
public BizCar selectBizCarById(Long id)
|
||||||
{
|
{
|
||||||
return bizCarMapper.selectBizCarById(id);
|
return bizCarMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCar> selectBizCarList(BizCar bizCar)
|
public List<BizCar> selectBizCarList(BizCar bizCar)
|
||||||
{
|
{
|
||||||
return bizCarMapper.selectBizCarList(bizCar);
|
LambdaQueryWrapper<BizCar> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizCarMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCar(BizCar bizCar)
|
public int insertBizCar(BizCar bizCar)
|
||||||
{
|
{
|
||||||
bizCar.setCreateTime(DateUtils.getNowDate());
|
return bizCarMapper.insert(bizCar);
|
||||||
return bizCarMapper.insertBizCar(bizCar);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCar(BizCar bizCar)
|
public int updateBizCar(BizCar bizCar)
|
||||||
{
|
{
|
||||||
bizCar.setUpdateTime(DateUtils.getNowDate());
|
return bizCarMapper.updateById(bizCar);
|
||||||
return bizCarMapper.updateBizCar(bizCar);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCarByIds(Long[] ids)
|
public int deleteBizCarByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCarMapper.deleteBizCarByIds(ids);
|
return bizCarMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizCarServiceImpl implements IBizCarService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCarById(Long id)
|
public int deleteBizCarById(Long id)
|
||||||
{
|
{
|
||||||
return bizCarMapper.deleteBizCarById(id);
|
return bizCarMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public BizCustomerRoute selectBizCustomerRouteById(Long id)
|
public BizCustomerRoute selectBizCustomerRouteById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteMapper.selectBizCustomerRouteById(id);
|
return bizCustomerRouteMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomerRoute> selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute)
|
public List<BizCustomerRoute> selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteMapper.selectBizCustomerRouteList(bizCustomerRoute);
|
LambdaQueryWrapper<BizCustomerRoute> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizCustomerRouteMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute)
|
public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute)
|
||||||
{
|
{
|
||||||
bizCustomerRoute.setCreateTime(DateUtils.getNowDate());
|
return bizCustomerRouteMapper.insert(bizCustomerRoute);
|
||||||
return bizCustomerRouteMapper.insertBizCustomerRoute(bizCustomerRoute);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute)
|
public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute)
|
||||||
{
|
{
|
||||||
bizCustomerRoute.setUpdateTime(DateUtils.getNowDate());
|
return bizCustomerRouteMapper.updateById(bizCustomerRoute);
|
||||||
return bizCustomerRouteMapper.updateBizCustomerRoute(bizCustomerRoute);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerRouteByIds(Long[] ids)
|
public int deleteBizCustomerRouteByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteMapper.deleteBizCustomerRouteByIds(ids);
|
return bizCustomerRouteMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerRouteById(Long id)
|
public int deleteBizCustomerRouteById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteMapper.deleteBizCustomerRouteById(id);
|
return bizCustomerRouteMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.lang.invoke.LambdaConversionException;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.cpxt.biz.mapper.BizCustomerRouteShopMapper;
|
import com.cpxt.biz.mapper.BizCustomerRouteShopMapper;
|
||||||
|
|
@ -28,7 +32,7 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id)
|
public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.selectBizCustomerRouteShopById(id);
|
return bizCustomerRouteShopMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -40,7 +44,8 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomerRouteShop> selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop)
|
public List<BizCustomerRouteShop> selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.selectBizCustomerRouteShopList(bizCustomerRouteShop);
|
LambdaQueryWrapper<BizCustomerRouteShop> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
return bizCustomerRouteShopMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -52,7 +57,7 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop)
|
public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.insertBizCustomerRouteShop(bizCustomerRouteShop);
|
return bizCustomerRouteShopMapper.insert(bizCustomerRouteShop);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -64,7 +69,7 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop)
|
public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.updateBizCustomerRouteShop(bizCustomerRouteShop);
|
return bizCustomerRouteShopMapper.updateById(bizCustomerRouteShop);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,7 +81,7 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerRouteShopByIds(Long[] ids)
|
public int deleteBizCustomerRouteShopByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.deleteBizCustomerRouteShopByIds(ids);
|
return bizCustomerRouteShopMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -88,6 +93,6 @@ public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopSer
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerRouteShopById(Long id)
|
public int deleteBizCustomerRouteShopById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerRouteShopMapper.deleteBizCustomerRouteShopById(id);
|
return bizCustomerRouteShopMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public BizCustomer selectBizCustomerById(Long id)
|
public BizCustomer selectBizCustomerById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerMapper.selectBizCustomerById(id);
|
return bizCustomerMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomer> selectBizCustomerList(BizCustomer bizCustomer)
|
public List<BizCustomer> selectBizCustomerList(BizCustomer bizCustomer)
|
||||||
{
|
{
|
||||||
return bizCustomerMapper.selectBizCustomerList(bizCustomer);
|
LambdaQueryWrapper<BizCustomer> queryWrapper= new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizCustomerMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomer(BizCustomer bizCustomer)
|
public int insertBizCustomer(BizCustomer bizCustomer)
|
||||||
{
|
{
|
||||||
bizCustomer.setCreateTime(DateUtils.getNowDate());
|
return bizCustomerMapper.insert(bizCustomer);
|
||||||
return bizCustomerMapper.insertBizCustomer(bizCustomer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomer(BizCustomer bizCustomer)
|
public int updateBizCustomer(BizCustomer bizCustomer)
|
||||||
{
|
{
|
||||||
bizCustomer.setUpdateTime(DateUtils.getNowDate());
|
return bizCustomerMapper.updateById(bizCustomer);
|
||||||
return bizCustomerMapper.updateBizCustomer(bizCustomer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerByIds(Long[] ids)
|
public int deleteBizCustomerByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerMapper.deleteBizCustomerByIds(ids);
|
return bizCustomerMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizCustomerServiceImpl implements IBizCustomerService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerById(Long id)
|
public int deleteBizCustomerById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerMapper.deleteBizCustomerById(id);
|
return bizCustomerMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public BizCustomerShop selectBizCustomerShopById(Long id)
|
public BizCustomerShop selectBizCustomerShopById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerShopMapper.selectBizCustomerShopById(id);
|
return bizCustomerShopMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,8 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomerShop> selectBizCustomerShopList(BizCustomerShop bizCustomerShop)
|
public List<BizCustomerShop> selectBizCustomerShopList(BizCustomerShop bizCustomerShop)
|
||||||
{
|
{
|
||||||
return bizCustomerShopMapper.selectBizCustomerShopList(bizCustomerShop);
|
LambdaQueryWrapper<BizCustomerShop> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
return bizCustomerShopMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +57,7 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomerShop(BizCustomerShop bizCustomerShop)
|
public int insertBizCustomerShop(BizCustomerShop bizCustomerShop)
|
||||||
{
|
{
|
||||||
bizCustomerShop.setCreateTime(DateUtils.getNowDate());
|
return bizCustomerShopMapper.insert(bizCustomerShop);
|
||||||
return bizCustomerShopMapper.insertBizCustomerShop(bizCustomerShop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +69,7 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomerShop(BizCustomerShop bizCustomerShop)
|
public int updateBizCustomerShop(BizCustomerShop bizCustomerShop)
|
||||||
{
|
{
|
||||||
bizCustomerShop.setUpdateTime(DateUtils.getNowDate());
|
return bizCustomerShopMapper.updateById(bizCustomerShop);
|
||||||
return bizCustomerShopMapper.updateBizCustomerShop(bizCustomerShop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +81,7 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerShopByIds(Long[] ids)
|
public int deleteBizCustomerShopByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerShopMapper.deleteBizCustomerShopByIds(ids);
|
return bizCustomerShopMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +93,6 @@ public class BizCustomerShopServiceImpl implements IBizCustomerShopService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerShopById(Long id)
|
public int deleteBizCustomerShopById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerShopMapper.deleteBizCustomerShopById(id);
|
return bizCustomerShopMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.cpxt.biz.mapper.BizCustomerUserMapper;
|
import com.cpxt.biz.mapper.BizCustomerUserMapper;
|
||||||
|
|
@ -29,7 +31,7 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public BizCustomerUser selectBizCustomerUserById(Long id)
|
public BizCustomerUser selectBizCustomerUserById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerUserMapper.selectBizCustomerUserById(id);
|
return bizCustomerUserMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +43,8 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomerUser> selectBizCustomerUserList(BizCustomerUser bizCustomerUser)
|
public List<BizCustomerUser> selectBizCustomerUserList(BizCustomerUser bizCustomerUser)
|
||||||
{
|
{
|
||||||
return bizCustomerUserMapper.selectBizCustomerUserList(bizCustomerUser);
|
LambdaQueryWrapper<BizCustomerUser> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
return bizCustomerUserMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +56,7 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomerUser(BizCustomerUser bizCustomerUser)
|
public int insertBizCustomerUser(BizCustomerUser bizCustomerUser)
|
||||||
{
|
{
|
||||||
bizCustomerUser.setCreateTime(DateUtils.getNowDate());
|
return bizCustomerUserMapper.insert(bizCustomerUser);
|
||||||
return bizCustomerUserMapper.insertBizCustomerUser(bizCustomerUser);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +68,7 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomerUser(BizCustomerUser bizCustomerUser)
|
public int updateBizCustomerUser(BizCustomerUser bizCustomerUser)
|
||||||
{
|
{
|
||||||
bizCustomerUser.setUpdateTime(DateUtils.getNowDate());
|
return bizCustomerUserMapper.updateById(bizCustomerUser);
|
||||||
return bizCustomerUserMapper.updateBizCustomerUser(bizCustomerUser);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +80,7 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerUserByIds(Long[] ids)
|
public int deleteBizCustomerUserByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerUserMapper.deleteBizCustomerUserByIds(ids);
|
return bizCustomerUserMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +92,6 @@ public class BizCustomerUserServiceImpl implements IBizCustomerUserService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerUserById(Long id)
|
public int deleteBizCustomerUserById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerUserMapper.deleteBizCustomerUserById(id);
|
return bizCustomerUserMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id)
|
public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerWarehouseMapper.selectBizCustomerWarehouseById(id);
|
return bizCustomerWarehouseMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public List<BizCustomerWarehouse> selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse)
|
public List<BizCustomerWarehouse> selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse)
|
||||||
{
|
{
|
||||||
return bizCustomerWarehouseMapper.selectBizCustomerWarehouseList(bizCustomerWarehouse);
|
LambdaQueryWrapper<BizCustomerWarehouse> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizCustomerWarehouseMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse)
|
public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse)
|
||||||
{
|
{
|
||||||
bizCustomerWarehouse.setCreateTime(DateUtils.getNowDate());
|
return bizCustomerWarehouseMapper.insert(bizCustomerWarehouse);
|
||||||
return bizCustomerWarehouseMapper.insertBizCustomerWarehouse(bizCustomerWarehouse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse)
|
public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse)
|
||||||
{
|
{
|
||||||
bizCustomerWarehouse.setUpdateTime(DateUtils.getNowDate());
|
return bizCustomerWarehouseMapper.updateById(bizCustomerWarehouse);
|
||||||
return bizCustomerWarehouseMapper.updateBizCustomerWarehouse(bizCustomerWarehouse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerWarehouseByIds(Long[] ids)
|
public int deleteBizCustomerWarehouseByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizCustomerWarehouseMapper.deleteBizCustomerWarehouseByIds(ids);
|
return bizCustomerWarehouseMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseSer
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizCustomerWarehouseById(Long id)
|
public int deleteBizCustomerWarehouseById(Long id)
|
||||||
{
|
{
|
||||||
return bizCustomerWarehouseMapper.deleteBizCustomerWarehouseById(id);
|
return bizCustomerWarehouseMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.cpxt.common.utils.DateUtils;
|
import com.cpxt.common.utils.DateUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -29,7 +32,7 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public BizDriver selectBizDriverById(Long id)
|
public BizDriver selectBizDriverById(Long id)
|
||||||
{
|
{
|
||||||
return bizDriverMapper.selectBizDriverById(id);
|
return bizDriverMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -41,7 +44,9 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public List<BizDriver> selectBizDriverList(BizDriver bizDriver)
|
public List<BizDriver> selectBizDriverList(BizDriver bizDriver)
|
||||||
{
|
{
|
||||||
return bizDriverMapper.selectBizDriverList(bizDriver);
|
LambdaQueryWrapper<BizDriver> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizDriverMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,8 +58,7 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizDriver(BizDriver bizDriver)
|
public int insertBizDriver(BizDriver bizDriver)
|
||||||
{
|
{
|
||||||
bizDriver.setCreateTime(DateUtils.getNowDate());
|
return bizDriverMapper.insert(bizDriver);
|
||||||
return bizDriverMapper.insertBizDriver(bizDriver);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -66,8 +70,7 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizDriver(BizDriver bizDriver)
|
public int updateBizDriver(BizDriver bizDriver)
|
||||||
{
|
{
|
||||||
bizDriver.setUpdateTime(DateUtils.getNowDate());
|
return bizDriverMapper.updateById(bizDriver);
|
||||||
return bizDriverMapper.updateBizDriver(bizDriver);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,7 +82,7 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizDriverByIds(Long[] ids)
|
public int deleteBizDriverByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizDriverMapper.deleteBizDriverByIds(ids);
|
return bizDriverMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -91,6 +94,6 @@ public class BizDriverServiceImpl implements IBizDriverService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizDriverById(Long id)
|
public int deleteBizDriverById(Long id)
|
||||||
{
|
{
|
||||||
return bizDriverMapper.deleteBizDriverById(id);
|
return bizDriverMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.cpxt.biz.mapper.BizOrderMapper;
|
import com.cpxt.biz.mapper.BizOrderMapper;
|
||||||
|
|
@ -28,7 +31,7 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public BizOrder selectBizOrderById(Long id)
|
public BizOrder selectBizOrderById(Long id)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.selectBizOrderById(id);
|
return bizOrderMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -40,7 +43,9 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public List<BizOrder> selectBizOrderList(BizOrder bizOrder)
|
public List<BizOrder> selectBizOrderList(BizOrder bizOrder)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.selectBizOrderList(bizOrder);
|
LambdaQueryWrapper<BizOrder> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizOrderMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -52,7 +57,7 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizOrder(BizOrder bizOrder)
|
public int insertBizOrder(BizOrder bizOrder)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.insertBizOrder(bizOrder);
|
return bizOrderMapper.insert(bizOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -64,7 +69,7 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizOrder(BizOrder bizOrder)
|
public int updateBizOrder(BizOrder bizOrder)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.updateBizOrder(bizOrder);
|
return bizOrderMapper.updateById(bizOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,7 +81,7 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizOrderByIds(Long[] ids)
|
public int deleteBizOrderByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.deleteBizOrderByIds(ids);
|
return bizOrderMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -88,6 +93,6 @@ public class BizOrderServiceImpl implements IBizOrderService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizOrderById(Long id)
|
public int deleteBizOrderById(Long id)
|
||||||
{
|
{
|
||||||
return bizOrderMapper.deleteBizOrderById(id);
|
return bizOrderMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
package com.cpxt.biz.service.impl;
|
package com.cpxt.biz.service.impl;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.cpxt.biz.mapper.BizOrderSubMapper;
|
import com.cpxt.biz.mapper.BizOrderSubMapper;
|
||||||
|
|
@ -28,7 +32,7 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public BizOrderSub selectBizOrderSubById(Long id)
|
public BizOrderSub selectBizOrderSubById(Long id)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.selectBizOrderSubById(id);
|
return bizOrderSubMapper.selectById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -40,7 +44,9 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public List<BizOrderSub> selectBizOrderSubList(BizOrderSub bizOrderSub)
|
public List<BizOrderSub> selectBizOrderSubList(BizOrderSub bizOrderSub)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.selectBizOrderSubList(bizOrderSub);
|
LambdaQueryWrapper<BizOrderSub> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
return bizOrderSubMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -52,7 +58,7 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public int insertBizOrderSub(BizOrderSub bizOrderSub)
|
public int insertBizOrderSub(BizOrderSub bizOrderSub)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.insertBizOrderSub(bizOrderSub);
|
return bizOrderSubMapper.insert(bizOrderSub);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -64,7 +70,7 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public int updateBizOrderSub(BizOrderSub bizOrderSub)
|
public int updateBizOrderSub(BizOrderSub bizOrderSub)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.updateBizOrderSub(bizOrderSub);
|
return bizOrderSubMapper.updateById(bizOrderSub);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,7 +82,7 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizOrderSubByIds(Long[] ids)
|
public int deleteBizOrderSubByIds(Long[] ids)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.deleteBizOrderSubByIds(ids);
|
return bizOrderSubMapper.deleteBatchIds(Arrays.asList(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -88,6 +94,6 @@ public class BizOrderSubServiceImpl implements IBizOrderSubService
|
||||||
@Override
|
@Override
|
||||||
public int deleteBizOrderSubById(Long id)
|
public int deleteBizOrderSubById(Long id)
|
||||||
{
|
{
|
||||||
return bizOrderSubMapper.deleteBizOrderSubById(id);
|
return bizOrderSubMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,98 +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.cpxt.biz.mapper.BizCarMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCar" id="BizCarResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="modelId" column="model_id" />
|
|
||||||
<result property="modelName" column="model_name" />
|
|
||||||
<result property="carType" column="car_type" />
|
|
||||||
<result property="carNo" column="car_no" />
|
|
||||||
<result property="vin" column="vin" />
|
|
||||||
<result property="serialNo" column="serial_no" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCarVo">
|
|
||||||
select id, model_id, model_name, car_type, car_no, vin, serial_no, status, create_time, update_time, remark from biz_car
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCarList" parameterType="BizCar" resultMap="BizCarResult">
|
|
||||||
<include refid="selectBizCarVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="modelId != null "> and model_id = #{modelId}</if>
|
|
||||||
<if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if>
|
|
||||||
<if test="carType != null and carType != ''"> and car_type = #{carType}</if>
|
|
||||||
<if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
|
|
||||||
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
|
||||||
<if test="serialNo != null and serialNo != ''"> and serial_no = #{serialNo}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCarById" parameterType="Long" resultMap="BizCarResult">
|
|
||||||
<include refid="selectBizCarVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCar" parameterType="BizCar" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_car
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="modelId != null">model_id,</if>
|
|
||||||
<if test="modelName != null">model_name,</if>
|
|
||||||
<if test="carType != null">car_type,</if>
|
|
||||||
<if test="carNo != null">car_no,</if>
|
|
||||||
<if test="vin != null">vin,</if>
|
|
||||||
<if test="serialNo != null">serial_no,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="modelId != null">#{modelId},</if>
|
|
||||||
<if test="modelName != null">#{modelName},</if>
|
|
||||||
<if test="carType != null">#{carType},</if>
|
|
||||||
<if test="carNo != null">#{carNo},</if>
|
|
||||||
<if test="vin != null">#{vin},</if>
|
|
||||||
<if test="serialNo != null">#{serialNo},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCar" parameterType="BizCar">
|
|
||||||
update biz_car
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="modelId != null">model_id = #{modelId},</if>
|
|
||||||
<if test="modelName != null">model_name = #{modelName},</if>
|
|
||||||
<if test="carType != null">car_type = #{carType},</if>
|
|
||||||
<if test="carNo != null">car_no = #{carNo},</if>
|
|
||||||
<if test="vin != null">vin = #{vin},</if>
|
|
||||||
<if test="serialNo != null">serial_no = #{serialNo},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCarById" parameterType="Long">
|
|
||||||
delete from biz_car where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCarByIds" parameterType="String">
|
|
||||||
delete from biz_car where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,103 +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.cpxt.biz.mapper.BizCarModelMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCarModel" id="BizCarModelResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="brand" column="brand" />
|
|
||||||
<result property="weight" column="weight" />
|
|
||||||
<result property="volume" column="volume" />
|
|
||||||
<result property="length" column="length" />
|
|
||||||
<result property="width" column="width" />
|
|
||||||
<result property="height" column="height" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCarModelVo">
|
|
||||||
select id, name, brand, weight, volume, length, width, height, status, create_time, update_time, remark from biz_car_model
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCarModelList" parameterType="BizCarModel" resultMap="BizCarModelResult">
|
|
||||||
<include refid="selectBizCarModelVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
|
|
||||||
<if test="weight != null "> and weight = #{weight}</if>
|
|
||||||
<if test="volume != null "> and volume = #{volume}</if>
|
|
||||||
<if test="length != null "> and length = #{length}</if>
|
|
||||||
<if test="width != null "> and width = #{width}</if>
|
|
||||||
<if test="height != null "> and height = #{height}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCarModelById" parameterType="Long" resultMap="BizCarModelResult">
|
|
||||||
<include refid="selectBizCarModelVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCarModel" parameterType="BizCarModel" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_car_model
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="brand != null">brand,</if>
|
|
||||||
<if test="weight != null">weight,</if>
|
|
||||||
<if test="volume != null">volume,</if>
|
|
||||||
<if test="length != null">length,</if>
|
|
||||||
<if test="width != null">width,</if>
|
|
||||||
<if test="height != null">height,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</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="brand != null">#{brand},</if>
|
|
||||||
<if test="weight != null">#{weight},</if>
|
|
||||||
<if test="volume != null">#{volume},</if>
|
|
||||||
<if test="length != null">#{length},</if>
|
|
||||||
<if test="width != null">#{width},</if>
|
|
||||||
<if test="height != null">#{height},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCarModel" parameterType="BizCarModel">
|
|
||||||
update biz_car_model
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="brand != null">brand = #{brand},</if>
|
|
||||||
<if test="weight != null">weight = #{weight},</if>
|
|
||||||
<if test="volume != null">volume = #{volume},</if>
|
|
||||||
<if test="length != null">length = #{length},</if>
|
|
||||||
<if test="width != null">width = #{width},</if>
|
|
||||||
<if test="height != null">height = #{height},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCarModelById" parameterType="Long">
|
|
||||||
delete from biz_car_model where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCarModelByIds" parameterType="String">
|
|
||||||
delete from biz_car_model where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,93 +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.cpxt.biz.mapper.BizCustomerMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomer" id="BizCustomerResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="fullName" column="full_name" />
|
|
||||||
<result property="linkman" column="linkman" />
|
|
||||||
<result property="linkphone" column="linkphone" />
|
|
||||||
<result property="level" column="level" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerVo">
|
|
||||||
select id, name, full_name, linkman, linkphone, level, status, create_time, update_time, remark from biz_customer
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerList" parameterType="BizCustomer" resultMap="BizCustomerResult">
|
|
||||||
<include refid="selectBizCustomerVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
|
|
||||||
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
|
|
||||||
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
|
|
||||||
<if test="level != null and level != ''"> and level = #{level}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerById" parameterType="Long" resultMap="BizCustomerResult">
|
|
||||||
<include refid="selectBizCustomerVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomer" parameterType="BizCustomer" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="fullName != null">full_name,</if>
|
|
||||||
<if test="linkman != null">linkman,</if>
|
|
||||||
<if test="linkphone != null">linkphone,</if>
|
|
||||||
<if test="level != null">level,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</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="fullName != null">#{fullName},</if>
|
|
||||||
<if test="linkman != null">#{linkman},</if>
|
|
||||||
<if test="linkphone != null">#{linkphone},</if>
|
|
||||||
<if test="level != null">#{level},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomer" parameterType="BizCustomer">
|
|
||||||
update biz_customer
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="fullName != null">full_name = #{fullName},</if>
|
|
||||||
<if test="linkman != null">linkman = #{linkman},</if>
|
|
||||||
<if test="linkphone != null">linkphone = #{linkphone},</if>
|
|
||||||
<if test="level != null">level = #{level},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerById" parameterType="Long">
|
|
||||||
delete from biz_customer where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerByIds" parameterType="String">
|
|
||||||
delete from biz_customer where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,83 +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.cpxt.biz.mapper.BizCustomerRouteMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomerRoute" id="BizCustomerRouteResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="customerId" column="customer_id" />
|
|
||||||
<result property="customerName" column="customer_name" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerRouteVo">
|
|
||||||
select id, customer_id, customer_name, name, status, create_time, update_time, remark from biz_customer_route
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerRouteList" parameterType="BizCustomerRoute" resultMap="BizCustomerRouteResult">
|
|
||||||
<include refid="selectBizCustomerRouteVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerRouteById" parameterType="Long" resultMap="BizCustomerRouteResult">
|
|
||||||
<include refid="selectBizCustomerRouteVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomerRoute" parameterType="BizCustomerRoute" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer_route
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id,</if>
|
|
||||||
<if test="customerName != null">customer_name,</if>
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">#{customerId},</if>
|
|
||||||
<if test="customerName != null">#{customerName},</if>
|
|
||||||
<if test="name != null">#{name},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomerRoute" parameterType="BizCustomerRoute">
|
|
||||||
update biz_customer_route
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
||||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerRouteById" parameterType="Long">
|
|
||||||
delete from biz_customer_route where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerRouteByIds" parameterType="String">
|
|
||||||
delete from biz_customer_route where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,66 +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.cpxt.biz.mapper.BizCustomerRouteShopMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomerRouteShop" id="BizCustomerRouteShopResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="routeId" column="route_id" />
|
|
||||||
<result property="shopId" column="shop_id" />
|
|
||||||
<result property="sort" column="sort" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerRouteShopVo">
|
|
||||||
select id, route_id, shop_id, sort from biz_customer_route_shop
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerRouteShopList" parameterType="BizCustomerRouteShop" resultMap="BizCustomerRouteShopResult">
|
|
||||||
<include refid="selectBizCustomerRouteShopVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="routeId != null "> and route_id = #{routeId}</if>
|
|
||||||
<if test="shopId != null "> and shop_id = #{shopId}</if>
|
|
||||||
<if test="sort != null "> and sort = #{sort}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerRouteShopById" parameterType="Long" resultMap="BizCustomerRouteShopResult">
|
|
||||||
<include refid="selectBizCustomerRouteShopVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomerRouteShop" parameterType="BizCustomerRouteShop" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer_route_shop
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="routeId != null">route_id,</if>
|
|
||||||
<if test="shopId != null">shop_id,</if>
|
|
||||||
<if test="sort != null">sort,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="routeId != null">#{routeId},</if>
|
|
||||||
<if test="shopId != null">#{shopId},</if>
|
|
||||||
<if test="sort != null">#{sort},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomerRouteShop" parameterType="BizCustomerRouteShop">
|
|
||||||
update biz_customer_route_shop
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="routeId != null">route_id = #{routeId},</if>
|
|
||||||
<if test="shopId != null">shop_id = #{shopId},</if>
|
|
||||||
<if test="sort != null">sort = #{sort},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerRouteShopById" parameterType="Long">
|
|
||||||
delete from biz_customer_route_shop where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerRouteShopByIds" parameterType="String">
|
|
||||||
delete from biz_customer_route_shop where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,108 +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.cpxt.biz.mapper.BizCustomerShopMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomerShop" id="BizCustomerShopResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="customerId" column="customer_id" />
|
|
||||||
<result property="customerName" column="customer_name" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="linkman" column="linkman" />
|
|
||||||
<result property="linkphone" column="linkphone" />
|
|
||||||
<result property="address" column="address" />
|
|
||||||
<result property="lng" column="lng" />
|
|
||||||
<result property="lat" column="lat" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerShopVo">
|
|
||||||
select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_shop
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerShopList" parameterType="BizCustomerShop" resultMap="BizCustomerShopResult">
|
|
||||||
<include refid="selectBizCustomerShopVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
|
|
||||||
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
|
|
||||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
|
||||||
<if test="lng != null "> and lng = #{lng}</if>
|
|
||||||
<if test="lat != null "> and lat = #{lat}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerShopById" parameterType="Long" resultMap="BizCustomerShopResult">
|
|
||||||
<include refid="selectBizCustomerShopVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomerShop" parameterType="BizCustomerShop" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer_shop
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id,</if>
|
|
||||||
<if test="customerName != null">customer_name,</if>
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="linkman != null">linkman,</if>
|
|
||||||
<if test="linkphone != null">linkphone,</if>
|
|
||||||
<if test="address != null">address,</if>
|
|
||||||
<if test="lng != null">lng,</if>
|
|
||||||
<if test="lat != null">lat,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">#{customerId},</if>
|
|
||||||
<if test="customerName != null">#{customerName},</if>
|
|
||||||
<if test="name != null">#{name},</if>
|
|
||||||
<if test="linkman != null">#{linkman},</if>
|
|
||||||
<if test="linkphone != null">#{linkphone},</if>
|
|
||||||
<if test="address != null">#{address},</if>
|
|
||||||
<if test="lng != null">#{lng},</if>
|
|
||||||
<if test="lat != null">#{lat},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomerShop" parameterType="BizCustomerShop">
|
|
||||||
update biz_customer_shop
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
||||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="linkman != null">linkman = #{linkman},</if>
|
|
||||||
<if test="linkphone != null">linkphone = #{linkphone},</if>
|
|
||||||
<if test="address != null">address = #{address},</if>
|
|
||||||
<if test="lng != null">lng = #{lng},</if>
|
|
||||||
<if test="lat != null">lat = #{lat},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerShopById" parameterType="Long">
|
|
||||||
delete from biz_customer_shop where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerShopByIds" parameterType="String">
|
|
||||||
delete from biz_customer_shop where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,83 +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.cpxt.biz.mapper.BizCustomerUserMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomerUser" id="BizCustomerUserResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="customerId" column="customer_id" />
|
|
||||||
<result property="customerName" column="customer_name" />
|
|
||||||
<result property="username" column="username" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerUserVo">
|
|
||||||
select id, customer_id, customer_name, username, status, create_time, update_time, remark from biz_customer_user
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerUserList" parameterType="BizCustomerUser" resultMap="BizCustomerUserResult">
|
|
||||||
<include refid="selectBizCustomerUserVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
||||||
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerUserById" parameterType="Long" resultMap="BizCustomerUserResult">
|
|
||||||
<include refid="selectBizCustomerUserVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomerUser" parameterType="BizCustomerUser" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer_user
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id,</if>
|
|
||||||
<if test="customerName != null">customer_name,</if>
|
|
||||||
<if test="username != null">username,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">#{customerId},</if>
|
|
||||||
<if test="customerName != null">#{customerName},</if>
|
|
||||||
<if test="username != null">#{username},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomerUser" parameterType="BizCustomerUser">
|
|
||||||
update biz_customer_user
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
||||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
||||||
<if test="username != null">username = #{username},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerUserById" parameterType="Long">
|
|
||||||
delete from biz_customer_user where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerUserByIds" parameterType="String">
|
|
||||||
delete from biz_customer_user where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,108 +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.cpxt.biz.mapper.BizCustomerWarehouseMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizCustomerWarehouse" id="BizCustomerWarehouseResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="customerId" column="customer_id" />
|
|
||||||
<result property="customerName" column="customer_name" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="linkman" column="linkman" />
|
|
||||||
<result property="linkphone" column="linkphone" />
|
|
||||||
<result property="address" column="address" />
|
|
||||||
<result property="lng" column="lng" />
|
|
||||||
<result property="lat" column="lat" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizCustomerWarehouseVo">
|
|
||||||
select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_warehouse
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerWarehouseList" parameterType="BizCustomerWarehouse" resultMap="BizCustomerWarehouseResult">
|
|
||||||
<include refid="selectBizCustomerWarehouseVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
|
|
||||||
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
|
|
||||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
|
||||||
<if test="lng != null "> and lng = #{lng}</if>
|
|
||||||
<if test="lat != null "> and lat = #{lat}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizCustomerWarehouseById" parameterType="Long" resultMap="BizCustomerWarehouseResult">
|
|
||||||
<include refid="selectBizCustomerWarehouseVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizCustomerWarehouse" parameterType="BizCustomerWarehouse" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_customer_warehouse
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id,</if>
|
|
||||||
<if test="customerName != null">customer_name,</if>
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="linkman != null">linkman,</if>
|
|
||||||
<if test="linkphone != null">linkphone,</if>
|
|
||||||
<if test="address != null">address,</if>
|
|
||||||
<if test="lng != null">lng,</if>
|
|
||||||
<if test="lat != null">lat,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">#{customerId},</if>
|
|
||||||
<if test="customerName != null">#{customerName},</if>
|
|
||||||
<if test="name != null">#{name},</if>
|
|
||||||
<if test="linkman != null">#{linkman},</if>
|
|
||||||
<if test="linkphone != null">#{linkphone},</if>
|
|
||||||
<if test="address != null">#{address},</if>
|
|
||||||
<if test="lng != null">#{lng},</if>
|
|
||||||
<if test="lat != null">#{lat},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizCustomerWarehouse" parameterType="BizCustomerWarehouse">
|
|
||||||
update biz_customer_warehouse
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
||||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="linkman != null">linkman = #{linkman},</if>
|
|
||||||
<if test="linkphone != null">linkphone = #{linkphone},</if>
|
|
||||||
<if test="address != null">address = #{address},</if>
|
|
||||||
<if test="lng != null">lng = #{lng},</if>
|
|
||||||
<if test="lat != null">lat = #{lat},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerWarehouseById" parameterType="Long">
|
|
||||||
delete from biz_customer_warehouse where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizCustomerWarehouseByIds" parameterType="String">
|
|
||||||
delete from biz_customer_warehouse where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,123 +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.cpxt.biz.mapper.BizDriverMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizDriver" id="BizDriverResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="deptId" column="dept_id" />
|
|
||||||
<result property="userId" column="user_id" />
|
|
||||||
<result property="name" column="name" />
|
|
||||||
<result property="idcard" column="idcard" />
|
|
||||||
<result property="gender" column="gender" />
|
|
||||||
<result property="phone" column="phone" />
|
|
||||||
<result property="photo" column="photo" />
|
|
||||||
<result property="idcardPhotoFace" column="idcard_photo_face" />
|
|
||||||
<result property="idcardPhotoNe" column="idcard_photo_ne" />
|
|
||||||
<result property="defaultCarId" column="default_car_id" />
|
|
||||||
<result property="defaultCarNo" column="default_car_no" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizDriverVo">
|
|
||||||
select id, dept_id, user_id, name, idcard, gender, phone, photo, idcard_photo_face, idcard_photo_ne, default_car_id, default_car_no, status, create_time, update_time, remark from biz_driver
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizDriverList" parameterType="BizDriver" resultMap="BizDriverResult">
|
|
||||||
<include refid="selectBizDriverVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
||||||
<if test="idcard != null and idcard != ''"> and idcard = #{idcard}</if>
|
|
||||||
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
|
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
||||||
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
|
|
||||||
<if test="idcardPhotoFace != null and idcardPhotoFace != ''"> and idcard_photo_face = #{idcardPhotoFace}</if>
|
|
||||||
<if test="idcardPhotoNe != null and idcardPhotoNe != ''"> and idcard_photo_ne = #{idcardPhotoNe}</if>
|
|
||||||
<if test="defaultCarId != null "> and default_car_id = #{defaultCarId}</if>
|
|
||||||
<if test="defaultCarNo != null and defaultCarNo != ''"> and default_car_no = #{defaultCarNo}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizDriverById" parameterType="Long" resultMap="BizDriverResult">
|
|
||||||
<include refid="selectBizDriverVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizDriver" parameterType="BizDriver" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_driver
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="deptId != null">dept_id,</if>
|
|
||||||
<if test="userId != null">user_id,</if>
|
|
||||||
<if test="name != null">name,</if>
|
|
||||||
<if test="idcard != null">idcard,</if>
|
|
||||||
<if test="gender != null">gender,</if>
|
|
||||||
<if test="phone != null">phone,</if>
|
|
||||||
<if test="photo != null">photo,</if>
|
|
||||||
<if test="idcardPhotoFace != null">idcard_photo_face,</if>
|
|
||||||
<if test="idcardPhotoNe != null">idcard_photo_ne,</if>
|
|
||||||
<if test="defaultCarId != null">default_car_id,</if>
|
|
||||||
<if test="defaultCarNo != null">default_car_no,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="deptId != null">#{deptId},</if>
|
|
||||||
<if test="userId != null">#{userId},</if>
|
|
||||||
<if test="name != null">#{name},</if>
|
|
||||||
<if test="idcard != null">#{idcard},</if>
|
|
||||||
<if test="gender != null">#{gender},</if>
|
|
||||||
<if test="phone != null">#{phone},</if>
|
|
||||||
<if test="photo != null">#{photo},</if>
|
|
||||||
<if test="idcardPhotoFace != null">#{idcardPhotoFace},</if>
|
|
||||||
<if test="idcardPhotoNe != null">#{idcardPhotoNe},</if>
|
|
||||||
<if test="defaultCarId != null">#{defaultCarId},</if>
|
|
||||||
<if test="defaultCarNo != null">#{defaultCarNo},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizDriver" parameterType="BizDriver">
|
|
||||||
update biz_driver
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
||||||
<if test="userId != null">user_id = #{userId},</if>
|
|
||||||
<if test="name != null">name = #{name},</if>
|
|
||||||
<if test="idcard != null">idcard = #{idcard},</if>
|
|
||||||
<if test="gender != null">gender = #{gender},</if>
|
|
||||||
<if test="phone != null">phone = #{phone},</if>
|
|
||||||
<if test="photo != null">photo = #{photo},</if>
|
|
||||||
<if test="idcardPhotoFace != null">idcard_photo_face = #{idcardPhotoFace},</if>
|
|
||||||
<if test="idcardPhotoNe != null">idcard_photo_ne = #{idcardPhotoNe},</if>
|
|
||||||
<if test="defaultCarId != null">default_car_id = #{defaultCarId},</if>
|
|
||||||
<if test="defaultCarNo != null">default_car_no = #{defaultCarNo},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizDriverById" parameterType="Long">
|
|
||||||
delete from biz_driver where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizDriverByIds" parameterType="String">
|
|
||||||
delete from biz_driver where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,348 +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.cpxt.biz.mapper.BizOrderMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizOrder" id="BizOrderResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="orderSn" column="order_sn" />
|
|
||||||
<result property="orderStatus" column="order_status" />
|
|
||||||
<result property="orderType" column="order_type" />
|
|
||||||
<result property="customerId" column="customer_id" />
|
|
||||||
<result property="customerName" column="customer_name" />
|
|
||||||
<result property="routeId" column="route_id" />
|
|
||||||
<result property="routeName" column="route_name" />
|
|
||||||
<result property="warehouseId" column="warehouse_id" />
|
|
||||||
<result property="warehouseName" column="warehouse_name" />
|
|
||||||
<result property="shopId" column="shop_id" />
|
|
||||||
<result property="shopName" column="shop_name" />
|
|
||||||
<result property="carId" column="car_id" />
|
|
||||||
<result property="carNo" column="car_no" />
|
|
||||||
<result property="driverId" column="driver_id" />
|
|
||||||
<result property="driverName" column="driver_name" />
|
|
||||||
<result property="copilotId" column="copilot_id" />
|
|
||||||
<result property="copilotName" column="copilot_name" />
|
|
||||||
<result property="senderName" column="sender_name" />
|
|
||||||
<result property="senderLinkman" column="sender_linkman" />
|
|
||||||
<result property="senderPhone" column="sender_phone" />
|
|
||||||
<result property="senderAddress" column="sender_address" />
|
|
||||||
<result property="senderLng" column="sender_lng" />
|
|
||||||
<result property="senderLat" column="sender_lat" />
|
|
||||||
<result property="senderCompany" column="sender_company" />
|
|
||||||
<result property="receiverName" column="receiver_name" />
|
|
||||||
<result property="receiverLinkman" column="receiver_linkman" />
|
|
||||||
<result property="receiverPhone" column="receiver_phone" />
|
|
||||||
<result property="receiverAddress" column="receiver_address" />
|
|
||||||
<result property="receiverLng" column="receiver_lng" />
|
|
||||||
<result property="receiverLat" column="receiver_lat" />
|
|
||||||
<result property="receiverCompany" column="receiver_company" />
|
|
||||||
<result property="goodsType" column="goods_type" />
|
|
||||||
<result property="goodsName" column="goods_name" />
|
|
||||||
<result property="weight" column="weight" />
|
|
||||||
<result property="volume" column="volume" />
|
|
||||||
<result property="length" column="length" />
|
|
||||||
<result property="width" column="width" />
|
|
||||||
<result property="height" column="height" />
|
|
||||||
<result property="totalQuantity" column="total_quantity" />
|
|
||||||
<result property="insured" column="insured" />
|
|
||||||
<result property="insuredMoney" column="insured_money" />
|
|
||||||
<result property="insuredFee" column="insured_fee" />
|
|
||||||
<result property="orderFee" column="order_fee" />
|
|
||||||
<result property="isCancel" column="is_cancel" />
|
|
||||||
<result property="cancelReason" column="cancel_reason" />
|
|
||||||
<result property="cancelTime" column="cancel_time" />
|
|
||||||
<result property="payType" column="pay_type" />
|
|
||||||
<result property="payMode" column="pay_mode" />
|
|
||||||
<result property="payId" column="pay_id" />
|
|
||||||
<result property="payStatus" column="pay_status" />
|
|
||||||
<result property="payTime" column="pay_time" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
<result property="startTime" column="start_time" />
|
|
||||||
<result property="arriveTime" column="arrive_time" />
|
|
||||||
<result property="arriveRemark" column="arrive_remark" />
|
|
||||||
<result property="arriveLng" column="arrive_lng" />
|
|
||||||
<result property="arriveLat" column="arrive_lat" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizOrderVo">
|
|
||||||
select id, order_sn, order_status, order_type, customer_id, customer_name, route_id, route_name, warehouse_id, warehouse_name, shop_id, shop_name, car_id, car_no, driver_id, driver_name, copilot_id, copilot_name, sender_name, sender_linkman, sender_phone, sender_address, sender_lng, sender_lat, sender_company, receiver_name, receiver_linkman, receiver_phone, receiver_address, receiver_lng, receiver_lat, receiver_company, goods_type, goods_name, weight, volume, length, width, height, total_quantity, insured, insured_money, insured_fee, order_fee, is_cancel, cancel_reason, cancel_time, pay_type, pay_mode, pay_id, pay_status, pay_time, status, create_time, update_time, remark, start_time, arrive_time, arrive_remark, arrive_lng, arrive_lat from biz_order
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizOrderList" parameterType="BizOrder" resultMap="BizOrderResult">
|
|
||||||
<include refid="selectBizOrderVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="orderSn != null and orderSn != ''"> and order_sn = #{orderSn}</if>
|
|
||||||
<if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if>
|
|
||||||
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
|
|
||||||
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
||||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
||||||
<if test="routeId != null "> and route_id = #{routeId}</if>
|
|
||||||
<if test="routeName != null and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if>
|
|
||||||
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
|
|
||||||
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
|
||||||
<if test="shopId != null "> and shop_id = #{shopId}</if>
|
|
||||||
<if test="shopName != null and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if>
|
|
||||||
<if test="carId != null "> and car_id = #{carId}</if>
|
|
||||||
<if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
|
|
||||||
<if test="driverId != null "> and driver_id = #{driverId}</if>
|
|
||||||
<if test="driverName != null and driverName != ''"> and driver_name like concat('%', #{driverName}, '%')</if>
|
|
||||||
<if test="copilotId != null "> and copilot_id = #{copilotId}</if>
|
|
||||||
<if test="copilotName != null and copilotName != ''"> and copilot_name like concat('%', #{copilotName}, '%')</if>
|
|
||||||
<if test="senderName != null and senderName != ''"> and sender_name like concat('%', #{senderName}, '%')</if>
|
|
||||||
<if test="senderLinkman != null and senderLinkman != ''"> and sender_linkman = #{senderLinkman}</if>
|
|
||||||
<if test="senderPhone != null and senderPhone != ''"> and sender_phone = #{senderPhone}</if>
|
|
||||||
<if test="senderAddress != null and senderAddress != ''"> and sender_address = #{senderAddress}</if>
|
|
||||||
<if test="senderLng != null "> and sender_lng = #{senderLng}</if>
|
|
||||||
<if test="senderLat != null "> and sender_lat = #{senderLat}</if>
|
|
||||||
<if test="senderCompany != null and senderCompany != ''"> and sender_company = #{senderCompany}</if>
|
|
||||||
<if test="receiverName != null and receiverName != ''"> and receiver_name like concat('%', #{receiverName}, '%')</if>
|
|
||||||
<if test="receiverLinkman != null and receiverLinkman != ''"> and receiver_linkman = #{receiverLinkman}</if>
|
|
||||||
<if test="receiverPhone != null and receiverPhone != ''"> and receiver_phone = #{receiverPhone}</if>
|
|
||||||
<if test="receiverAddress != null and receiverAddress != ''"> and receiver_address = #{receiverAddress}</if>
|
|
||||||
<if test="receiverLng != null "> and receiver_lng = #{receiverLng}</if>
|
|
||||||
<if test="receiverLat != null "> and receiver_lat = #{receiverLat}</if>
|
|
||||||
<if test="receiverCompany != null and receiverCompany != ''"> and receiver_company = #{receiverCompany}</if>
|
|
||||||
<if test="goodsType != null and goodsType != ''"> and goods_type = #{goodsType}</if>
|
|
||||||
<if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
|
|
||||||
<if test="weight != null "> and weight = #{weight}</if>
|
|
||||||
<if test="volume != null "> and volume = #{volume}</if>
|
|
||||||
<if test="length != null "> and length = #{length}</if>
|
|
||||||
<if test="width != null "> and width = #{width}</if>
|
|
||||||
<if test="height != null "> and height = #{height}</if>
|
|
||||||
<if test="totalQuantity != null "> and total_quantity = #{totalQuantity}</if>
|
|
||||||
<if test="insured != null "> and insured = #{insured}</if>
|
|
||||||
<if test="insuredMoney != null "> and insured_money = #{insuredMoney}</if>
|
|
||||||
<if test="insuredFee != null "> and insured_fee = #{insuredFee}</if>
|
|
||||||
<if test="orderFee != null "> and order_fee = #{orderFee}</if>
|
|
||||||
<if test="isCancel != null "> and is_cancel = #{isCancel}</if>
|
|
||||||
<if test="cancelReason != null and cancelReason != ''"> and cancel_reason = #{cancelReason}</if>
|
|
||||||
<if test="cancelTime != null "> and cancel_time = #{cancelTime}</if>
|
|
||||||
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
|
||||||
<if test="payMode != null and payMode != ''"> and pay_mode = #{payMode}</if>
|
|
||||||
<if test="payId != null and payId != ''"> and pay_id = #{payId}</if>
|
|
||||||
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
|
|
||||||
<if test="payTime != null "> and pay_time = #{payTime}</if>
|
|
||||||
<if test="status != null "> and status = #{status}</if>
|
|
||||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
|
||||||
<if test="arriveTime != null "> and arrive_time = #{arriveTime}</if>
|
|
||||||
<if test="arriveRemark != null and arriveRemark != ''"> and arrive_remark = #{arriveRemark}</if>
|
|
||||||
<if test="arriveLng != null "> and arrive_lng = #{arriveLng}</if>
|
|
||||||
<if test="arriveLat != null "> and arrive_lat = #{arriveLat}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizOrderById" parameterType="Long" resultMap="BizOrderResult">
|
|
||||||
<include refid="selectBizOrderVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizOrder" parameterType="BizOrder" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_order
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">order_sn,</if>
|
|
||||||
<if test="orderStatus != null">order_status,</if>
|
|
||||||
<if test="orderType != null">order_type,</if>
|
|
||||||
<if test="customerId != null">customer_id,</if>
|
|
||||||
<if test="customerName != null">customer_name,</if>
|
|
||||||
<if test="routeId != null">route_id,</if>
|
|
||||||
<if test="routeName != null">route_name,</if>
|
|
||||||
<if test="warehouseId != null">warehouse_id,</if>
|
|
||||||
<if test="warehouseName != null">warehouse_name,</if>
|
|
||||||
<if test="shopId != null">shop_id,</if>
|
|
||||||
<if test="shopName != null">shop_name,</if>
|
|
||||||
<if test="carId != null">car_id,</if>
|
|
||||||
<if test="carNo != null">car_no,</if>
|
|
||||||
<if test="driverId != null">driver_id,</if>
|
|
||||||
<if test="driverName != null">driver_name,</if>
|
|
||||||
<if test="copilotId != null">copilot_id,</if>
|
|
||||||
<if test="copilotName != null">copilot_name,</if>
|
|
||||||
<if test="senderName != null">sender_name,</if>
|
|
||||||
<if test="senderLinkman != null">sender_linkman,</if>
|
|
||||||
<if test="senderPhone != null">sender_phone,</if>
|
|
||||||
<if test="senderAddress != null">sender_address,</if>
|
|
||||||
<if test="senderLng != null">sender_lng,</if>
|
|
||||||
<if test="senderLat != null">sender_lat,</if>
|
|
||||||
<if test="senderCompany != null">sender_company,</if>
|
|
||||||
<if test="receiverName != null">receiver_name,</if>
|
|
||||||
<if test="receiverLinkman != null">receiver_linkman,</if>
|
|
||||||
<if test="receiverPhone != null">receiver_phone,</if>
|
|
||||||
<if test="receiverAddress != null">receiver_address,</if>
|
|
||||||
<if test="receiverLng != null">receiver_lng,</if>
|
|
||||||
<if test="receiverLat != null">receiver_lat,</if>
|
|
||||||
<if test="receiverCompany != null">receiver_company,</if>
|
|
||||||
<if test="goodsType != null">goods_type,</if>
|
|
||||||
<if test="goodsName != null">goods_name,</if>
|
|
||||||
<if test="weight != null">weight,</if>
|
|
||||||
<if test="volume != null">volume,</if>
|
|
||||||
<if test="length != null">length,</if>
|
|
||||||
<if test="width != null">width,</if>
|
|
||||||
<if test="height != null">height,</if>
|
|
||||||
<if test="totalQuantity != null">total_quantity,</if>
|
|
||||||
<if test="insured != null">insured,</if>
|
|
||||||
<if test="insuredMoney != null">insured_money,</if>
|
|
||||||
<if test="insuredFee != null">insured_fee,</if>
|
|
||||||
<if test="orderFee != null">order_fee,</if>
|
|
||||||
<if test="isCancel != null">is_cancel,</if>
|
|
||||||
<if test="cancelReason != null">cancel_reason,</if>
|
|
||||||
<if test="cancelTime != null">cancel_time,</if>
|
|
||||||
<if test="payType != null">pay_type,</if>
|
|
||||||
<if test="payMode != null">pay_mode,</if>
|
|
||||||
<if test="payId != null">pay_id,</if>
|
|
||||||
<if test="payStatus != null">pay_status,</if>
|
|
||||||
<if test="payTime != null">pay_time,</if>
|
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
|
||||||
<if test="updateTime != null">update_time,</if>
|
|
||||||
<if test="remark != null">remark,</if>
|
|
||||||
<if test="startTime != null">start_time,</if>
|
|
||||||
<if test="arriveTime != null">arrive_time,</if>
|
|
||||||
<if test="arriveRemark != null">arrive_remark,</if>
|
|
||||||
<if test="arriveLng != null">arrive_lng,</if>
|
|
||||||
<if test="arriveLat != null">arrive_lat,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">#{orderSn},</if>
|
|
||||||
<if test="orderStatus != null">#{orderStatus},</if>
|
|
||||||
<if test="orderType != null">#{orderType},</if>
|
|
||||||
<if test="customerId != null">#{customerId},</if>
|
|
||||||
<if test="customerName != null">#{customerName},</if>
|
|
||||||
<if test="routeId != null">#{routeId},</if>
|
|
||||||
<if test="routeName != null">#{routeName},</if>
|
|
||||||
<if test="warehouseId != null">#{warehouseId},</if>
|
|
||||||
<if test="warehouseName != null">#{warehouseName},</if>
|
|
||||||
<if test="shopId != null">#{shopId},</if>
|
|
||||||
<if test="shopName != null">#{shopName},</if>
|
|
||||||
<if test="carId != null">#{carId},</if>
|
|
||||||
<if test="carNo != null">#{carNo},</if>
|
|
||||||
<if test="driverId != null">#{driverId},</if>
|
|
||||||
<if test="driverName != null">#{driverName},</if>
|
|
||||||
<if test="copilotId != null">#{copilotId},</if>
|
|
||||||
<if test="copilotName != null">#{copilotName},</if>
|
|
||||||
<if test="senderName != null">#{senderName},</if>
|
|
||||||
<if test="senderLinkman != null">#{senderLinkman},</if>
|
|
||||||
<if test="senderPhone != null">#{senderPhone},</if>
|
|
||||||
<if test="senderAddress != null">#{senderAddress},</if>
|
|
||||||
<if test="senderLng != null">#{senderLng},</if>
|
|
||||||
<if test="senderLat != null">#{senderLat},</if>
|
|
||||||
<if test="senderCompany != null">#{senderCompany},</if>
|
|
||||||
<if test="receiverName != null">#{receiverName},</if>
|
|
||||||
<if test="receiverLinkman != null">#{receiverLinkman},</if>
|
|
||||||
<if test="receiverPhone != null">#{receiverPhone},</if>
|
|
||||||
<if test="receiverAddress != null">#{receiverAddress},</if>
|
|
||||||
<if test="receiverLng != null">#{receiverLng},</if>
|
|
||||||
<if test="receiverLat != null">#{receiverLat},</if>
|
|
||||||
<if test="receiverCompany != null">#{receiverCompany},</if>
|
|
||||||
<if test="goodsType != null">#{goodsType},</if>
|
|
||||||
<if test="goodsName != null">#{goodsName},</if>
|
|
||||||
<if test="weight != null">#{weight},</if>
|
|
||||||
<if test="volume != null">#{volume},</if>
|
|
||||||
<if test="length != null">#{length},</if>
|
|
||||||
<if test="width != null">#{width},</if>
|
|
||||||
<if test="height != null">#{height},</if>
|
|
||||||
<if test="totalQuantity != null">#{totalQuantity},</if>
|
|
||||||
<if test="insured != null">#{insured},</if>
|
|
||||||
<if test="insuredMoney != null">#{insuredMoney},</if>
|
|
||||||
<if test="insuredFee != null">#{insuredFee},</if>
|
|
||||||
<if test="orderFee != null">#{orderFee},</if>
|
|
||||||
<if test="isCancel != null">#{isCancel},</if>
|
|
||||||
<if test="cancelReason != null">#{cancelReason},</if>
|
|
||||||
<if test="cancelTime != null">#{cancelTime},</if>
|
|
||||||
<if test="payType != null">#{payType},</if>
|
|
||||||
<if test="payMode != null">#{payMode},</if>
|
|
||||||
<if test="payId != null">#{payId},</if>
|
|
||||||
<if test="payStatus != null">#{payStatus},</if>
|
|
||||||
<if test="payTime != null">#{payTime},</if>
|
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
|
||||||
<if test="remark != null">#{remark},</if>
|
|
||||||
<if test="startTime != null">#{startTime},</if>
|
|
||||||
<if test="arriveTime != null">#{arriveTime},</if>
|
|
||||||
<if test="arriveRemark != null">#{arriveRemark},</if>
|
|
||||||
<if test="arriveLng != null">#{arriveLng},</if>
|
|
||||||
<if test="arriveLat != null">#{arriveLat},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizOrder" parameterType="BizOrder">
|
|
||||||
update biz_order
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">order_sn = #{orderSn},</if>
|
|
||||||
<if test="orderStatus != null">order_status = #{orderStatus},</if>
|
|
||||||
<if test="orderType != null">order_type = #{orderType},</if>
|
|
||||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
||||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
||||||
<if test="routeId != null">route_id = #{routeId},</if>
|
|
||||||
<if test="routeName != null">route_name = #{routeName},</if>
|
|
||||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
||||||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
|
||||||
<if test="shopId != null">shop_id = #{shopId},</if>
|
|
||||||
<if test="shopName != null">shop_name = #{shopName},</if>
|
|
||||||
<if test="carId != null">car_id = #{carId},</if>
|
|
||||||
<if test="carNo != null">car_no = #{carNo},</if>
|
|
||||||
<if test="driverId != null">driver_id = #{driverId},</if>
|
|
||||||
<if test="driverName != null">driver_name = #{driverName},</if>
|
|
||||||
<if test="copilotId != null">copilot_id = #{copilotId},</if>
|
|
||||||
<if test="copilotName != null">copilot_name = #{copilotName},</if>
|
|
||||||
<if test="senderName != null">sender_name = #{senderName},</if>
|
|
||||||
<if test="senderLinkman != null">sender_linkman = #{senderLinkman},</if>
|
|
||||||
<if test="senderPhone != null">sender_phone = #{senderPhone},</if>
|
|
||||||
<if test="senderAddress != null">sender_address = #{senderAddress},</if>
|
|
||||||
<if test="senderLng != null">sender_lng = #{senderLng},</if>
|
|
||||||
<if test="senderLat != null">sender_lat = #{senderLat},</if>
|
|
||||||
<if test="senderCompany != null">sender_company = #{senderCompany},</if>
|
|
||||||
<if test="receiverName != null">receiver_name = #{receiverName},</if>
|
|
||||||
<if test="receiverLinkman != null">receiver_linkman = #{receiverLinkman},</if>
|
|
||||||
<if test="receiverPhone != null">receiver_phone = #{receiverPhone},</if>
|
|
||||||
<if test="receiverAddress != null">receiver_address = #{receiverAddress},</if>
|
|
||||||
<if test="receiverLng != null">receiver_lng = #{receiverLng},</if>
|
|
||||||
<if test="receiverLat != null">receiver_lat = #{receiverLat},</if>
|
|
||||||
<if test="receiverCompany != null">receiver_company = #{receiverCompany},</if>
|
|
||||||
<if test="goodsType != null">goods_type = #{goodsType},</if>
|
|
||||||
<if test="goodsName != null">goods_name = #{goodsName},</if>
|
|
||||||
<if test="weight != null">weight = #{weight},</if>
|
|
||||||
<if test="volume != null">volume = #{volume},</if>
|
|
||||||
<if test="length != null">length = #{length},</if>
|
|
||||||
<if test="width != null">width = #{width},</if>
|
|
||||||
<if test="height != null">height = #{height},</if>
|
|
||||||
<if test="totalQuantity != null">total_quantity = #{totalQuantity},</if>
|
|
||||||
<if test="insured != null">insured = #{insured},</if>
|
|
||||||
<if test="insuredMoney != null">insured_money = #{insuredMoney},</if>
|
|
||||||
<if test="insuredFee != null">insured_fee = #{insuredFee},</if>
|
|
||||||
<if test="orderFee != null">order_fee = #{orderFee},</if>
|
|
||||||
<if test="isCancel != null">is_cancel = #{isCancel},</if>
|
|
||||||
<if test="cancelReason != null">cancel_reason = #{cancelReason},</if>
|
|
||||||
<if test="cancelTime != null">cancel_time = #{cancelTime},</if>
|
|
||||||
<if test="payType != null">pay_type = #{payType},</if>
|
|
||||||
<if test="payMode != null">pay_mode = #{payMode},</if>
|
|
||||||
<if test="payId != null">pay_id = #{payId},</if>
|
|
||||||
<if test="payStatus != null">pay_status = #{payStatus},</if>
|
|
||||||
<if test="payTime != null">pay_time = #{payTime},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
|
||||||
<if test="startTime != null">start_time = #{startTime},</if>
|
|
||||||
<if test="arriveTime != null">arrive_time = #{arriveTime},</if>
|
|
||||||
<if test="arriveRemark != null">arrive_remark = #{arriveRemark},</if>
|
|
||||||
<if test="arriveLng != null">arrive_lng = #{arriveLng},</if>
|
|
||||||
<if test="arriveLat != null">arrive_lat = #{arriveLat},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizOrderById" parameterType="Long">
|
|
||||||
delete from biz_order where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizOrderByIds" parameterType="String">
|
|
||||||
delete from biz_order where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
|
|
@ -1,86 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.cpxt.biz.mapper.BizOrderSubMapper">
|
|
||||||
|
|
||||||
<resultMap type="BizOrderSub" id="BizOrderSubResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="orderSn" column="order_sn" />
|
|
||||||
<result property="subOrderSn" column="sub_order_sn" />
|
|
||||||
<result property="weight" column="weight" />
|
|
||||||
<result property="volume" column="volume" />
|
|
||||||
<result property="length" column="length" />
|
|
||||||
<result property="width" column="width" />
|
|
||||||
<result property="height" column="height" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectBizOrderSubVo">
|
|
||||||
select id, order_sn, sub_order_sn, weight, volume, length, width, height from biz_order_sub
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectBizOrderSubList" parameterType="BizOrderSub" resultMap="BizOrderSubResult">
|
|
||||||
<include refid="selectBizOrderSubVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="orderSn != null and orderSn != ''"> and order_sn = #{orderSn}</if>
|
|
||||||
<if test="subOrderSn != null and subOrderSn != ''"> and sub_order_sn = #{subOrderSn}</if>
|
|
||||||
<if test="weight != null "> and weight = #{weight}</if>
|
|
||||||
<if test="volume != null "> and volume = #{volume}</if>
|
|
||||||
<if test="length != null "> and length = #{length}</if>
|
|
||||||
<if test="width != null "> and width = #{width}</if>
|
|
||||||
<if test="height != null "> and height = #{height}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectBizOrderSubById" parameterType="Long" resultMap="BizOrderSubResult">
|
|
||||||
<include refid="selectBizOrderSubVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertBizOrderSub" parameterType="BizOrderSub" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into biz_order_sub
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">order_sn,</if>
|
|
||||||
<if test="subOrderSn != null">sub_order_sn,</if>
|
|
||||||
<if test="weight != null">weight,</if>
|
|
||||||
<if test="volume != null">volume,</if>
|
|
||||||
<if test="length != null">length,</if>
|
|
||||||
<if test="width != null">width,</if>
|
|
||||||
<if test="height != null">height,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">#{orderSn},</if>
|
|
||||||
<if test="subOrderSn != null">#{subOrderSn},</if>
|
|
||||||
<if test="weight != null">#{weight},</if>
|
|
||||||
<if test="volume != null">#{volume},</if>
|
|
||||||
<if test="length != null">#{length},</if>
|
|
||||||
<if test="width != null">#{width},</if>
|
|
||||||
<if test="height != null">#{height},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateBizOrderSub" parameterType="BizOrderSub">
|
|
||||||
update biz_order_sub
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="orderSn != null">order_sn = #{orderSn},</if>
|
|
||||||
<if test="subOrderSn != null">sub_order_sn = #{subOrderSn},</if>
|
|
||||||
<if test="weight != null">weight = #{weight},</if>
|
|
||||||
<if test="volume != null">volume = #{volume},</if>
|
|
||||||
<if test="length != null">length = #{length},</if>
|
|
||||||
<if test="width != null">width = #{width},</if>
|
|
||||||
<if test="height != null">height = #{height},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteBizOrderSubById" parameterType="Long">
|
|
||||||
delete from biz_order_sub where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteBizOrderSubByIds" parameterType="String">
|
|
||||||
delete from biz_order_sub where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue