feat(可回溯): 重构
重构为mysql
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.wabestway.recall</groupId>
|
||||
<artifactId>afis-recall</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>afis-recall-service</artifactId>
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<mybatisplus.version>3.3.2</mybatisplus.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.wabestway.common</groupId>
|
||||
<artifactId>afis-web-common</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>2.0.1.Final</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>5.2.10.RELEASE</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
<version>5.2.10.RELEASE</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.10.5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus</artifactId>
|
||||
<version>${mybatisplus.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.wabestway.recall.trace.dao;
|
||||
|
||||
import com.wabestway.recall.trace.entity.RecallOrderEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallOrderDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallOrderVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Mapper
|
||||
public interface RecallOrderDao extends BaseMapper<RecallOrderEntity> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param recallOrderDTO
|
||||
* @return
|
||||
*/
|
||||
IPage<RecallOrderVO> queryRecallOrderByCondition(Page<RecallOrderDTO> page, @Param("recallOrderDTO")RecallOrderDTO recallOrderDTO);
|
||||
|
||||
/**
|
||||
* 条件查询,不分页
|
||||
* @param recallOrderDTO
|
||||
* @return
|
||||
*/
|
||||
List<RecallOrderVO> queryRecallOrderListNoPage(@Param("recallOrderDTO")RecallOrderDTO recallOrderDTO);
|
||||
|
||||
/**
|
||||
* 根据id更新
|
||||
* @param recallOrder 对象
|
||||
* @return
|
||||
*/
|
||||
void updateRecallOrderById(@Param("recallOrder")RecallOrderEntity recallOrder);
|
||||
|
||||
/**
|
||||
* 根据id查询详情
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
RecallOrderVO queryRecallOrderById(@Param("id") String id);
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.wabestway.recall.trace.dao;
|
||||
|
||||
import com.wabestway.recall.trace.entity.RecallRecordEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallRecordDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallRecordVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Mapper
|
||||
public interface RecallRecordDao extends BaseMapper<RecallRecordEntity> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param recallRecordDTO
|
||||
* @return
|
||||
*/
|
||||
IPage<RecallRecordVO> queryRecallRecordByCondition(Page<RecallRecordDTO> page, @Param("recallRecordDTO")RecallRecordDTO recallRecordDTO);
|
||||
|
||||
/**
|
||||
* 条件查询,不分页
|
||||
* @param recallRecordDTO
|
||||
* @return
|
||||
*/
|
||||
List<RecallRecordVO> queryRecallRecordListNoPage(@Param("recallRecordDTO")RecallRecordDTO recallRecordDTO);
|
||||
|
||||
/**
|
||||
* 根据id更新
|
||||
* @param recallRecord 对象
|
||||
* @return
|
||||
*/
|
||||
void updateRecallRecordById(@Param("recallRecord")RecallRecordEntity recallRecord);
|
||||
|
||||
/**
|
||||
* 根据id查询详情
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
RecallRecordVO queryRecallRecordById(@Param("id") String id);
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.wabestway.recall.trace.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
import com.wabestway.commons.http.PageDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class RecallOrderDTO extends PageDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
@ApiModelProperty(value = "产品编码")
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty(value = "产品名称")
|
||||
private String productName;
|
||||
/** 保单号 */
|
||||
@ApiModelProperty(value = "保单号")
|
||||
private String policyNo;
|
||||
/** 投保人名称 */
|
||||
@ApiModelProperty(value = "投保人名称")
|
||||
private String holderName;
|
||||
/** 投保人手机号 */
|
||||
@ApiModelProperty(value = "投保人手机号")
|
||||
private String holderPhone;
|
||||
/** 保险公司名称 */
|
||||
@ApiModelProperty(value = "保险公司名称")
|
||||
private String supplierName;
|
||||
/** 是否记录完整0-否1-是 */
|
||||
@ApiModelProperty(value = "是否记录完整0-否1-是")
|
||||
private String complete;
|
||||
/** 是否已归档 0-否1-是 */
|
||||
@ApiModelProperty(value = "是否已归档 0-否1-是 ")
|
||||
private String archived;
|
||||
/** 完成日期 */
|
||||
@ApiModelProperty(value = "完成日期")
|
||||
private Long completeDate;
|
||||
/** 归档日期 */
|
||||
@ApiModelProperty(value = "归档日期")
|
||||
private Long archivedDate;
|
||||
/** 保单起始日期 */
|
||||
@ApiModelProperty(value = "保单起始日期")
|
||||
private String startDate;
|
||||
/** 保单结束日期 */
|
||||
@ApiModelProperty(value = "保单结束日期")
|
||||
private String endDate;
|
||||
/** 生成视频文件ID */
|
||||
@ApiModelProperty(value = "生成视频文件ID")
|
||||
private String fileId;
|
||||
/** 生成视频文件地址 */
|
||||
@ApiModelProperty(value = "生成视频文件地址")
|
||||
private String fileUrl;
|
||||
/** 业务订单ID */
|
||||
@ApiModelProperty(value = "业务订单ID")
|
||||
private String orderId;
|
||||
/** 回溯记录跟踪ID */
|
||||
@ApiModelProperty(value = "回溯记录跟踪ID")
|
||||
private String traceId;
|
||||
/** 可回溯记录appKey */
|
||||
@ApiModelProperty(value = "可回溯记录appKey")
|
||||
private String appKey;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.wabestway.recall.trace.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
import com.wabestway.commons.http.PageDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class RecallRecordDTO extends PageDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
@ApiModelProperty(value = "产品编码")
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty(value = "产品名称")
|
||||
private String productName;
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块")
|
||||
private String module;
|
||||
/** 页面说明 */
|
||||
@ApiModelProperty(value = "页面说明")
|
||||
private String content;
|
||||
/** 记录事件 */
|
||||
@ApiModelProperty(value = "记录事件")
|
||||
private Blob events;
|
||||
/** 回溯记录跟踪ID */
|
||||
@ApiModelProperty(value = "回溯记录跟踪ID")
|
||||
private String traceId;
|
||||
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
package com.wabestway.recall.trace.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "recall_order")
|
||||
public class RecallOrderEntity {
|
||||
/** 主键 */
|
||||
@TableId
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
private String productName;
|
||||
/** 保单号 */
|
||||
private String policyNo;
|
||||
/** 投保人名称 */
|
||||
private String holderName;
|
||||
/** 投保人手机号 */
|
||||
private String holderPhone;
|
||||
/** 保险公司名称 */
|
||||
private String supplierName;
|
||||
/** 是否记录完整0-否1-是 */
|
||||
private String complete;
|
||||
/** 是否已归档 0-否1-是 */
|
||||
private String archived;
|
||||
/** 完成日期 */
|
||||
private Long completeDate;
|
||||
/** 归档日期 */
|
||||
private Long archivedDate;
|
||||
/** 保单起始日期 */
|
||||
private String startDate;
|
||||
/** 保单结束日期 */
|
||||
private String endDate;
|
||||
/** 生成视频文件ID */
|
||||
private String fileId;
|
||||
/** 生成视频文件地址 */
|
||||
private String fileUrl;
|
||||
/** 业务订单ID */
|
||||
private String orderId;
|
||||
/** 回溯记录跟踪ID */
|
||||
private String traceId;
|
||||
/** 租户ID */
|
||||
private String tenantId;
|
||||
/** 可回溯记录appKey */
|
||||
private String appKey;
|
||||
/** 创建人 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Long createTime;
|
||||
/** 更新人 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Long updateTime;
|
||||
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.wabestway.recall.trace.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "recall_record")
|
||||
public class RecallRecordEntity {
|
||||
/** 主键 */
|
||||
@TableId
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
private String productName;
|
||||
/** 模块 */
|
||||
private String module;
|
||||
/** 页面说明 */
|
||||
private String content;
|
||||
/** 记录事件 */
|
||||
private Blob events;
|
||||
/** 回溯记录跟踪ID */
|
||||
private String traceId;
|
||||
/** 创建人 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Long createTime;
|
||||
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wabestway.recall.trace.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.wabestway.recall.trace.entity.RecallOrderEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallOrderDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallOrderVO;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
public interface RecallOrderService extends IService<RecallOrderEntity> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param recallOrderDTO
|
||||
* @return
|
||||
*/
|
||||
IPage<RecallOrderVO> queryRecallOrderByCondition(long page, long size, RecallOrderDTO recallOrderDTO);
|
||||
|
||||
/**
|
||||
* 条件查询,不分页
|
||||
* @param recallOrderDTO
|
||||
* @return
|
||||
*/
|
||||
List<RecallOrderVO> queryRecallOrderListNoPage(RecallOrderDTO recallOrderDTO);
|
||||
|
||||
/**
|
||||
* 根据id更新
|
||||
* @param recallOrder 对象
|
||||
* @return
|
||||
*/
|
||||
void updateRecallOrderById(RecallOrderEntity recallOrder);
|
||||
|
||||
/**
|
||||
* 根据id查询详情
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
RecallOrderVO queryRecallOrderById(String id);
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wabestway.recall.trace.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.wabestway.recall.trace.entity.RecallRecordEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallRecordDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallRecordVO;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
public interface RecallRecordService extends IService<RecallRecordEntity> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param recallRecordDTO
|
||||
* @return
|
||||
*/
|
||||
IPage<RecallRecordVO> queryRecallRecordByCondition(long page, long size, RecallRecordDTO recallRecordDTO);
|
||||
|
||||
/**
|
||||
* 条件查询,不分页
|
||||
* @param recallRecordDTO
|
||||
* @return
|
||||
*/
|
||||
List<RecallRecordVO> queryRecallRecordListNoPage(RecallRecordDTO recallRecordDTO);
|
||||
|
||||
/**
|
||||
* 根据id更新
|
||||
* @param recallRecord 对象
|
||||
* @return
|
||||
*/
|
||||
void updateRecallRecordById(RecallRecordEntity recallRecord);
|
||||
|
||||
/**
|
||||
* 根据id查询详情
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
RecallRecordVO queryRecallRecordById(String id);
|
||||
}
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.wabestway.recall.trace.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.metadata.OrderItem;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.wabestway.recall.trace.dao.RecallOrderDao;
|
||||
import com.wabestway.recall.trace.entity.RecallOrderEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallOrderDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallOrderVO;
|
||||
import com.wabestway.recall.trace.service.RecallOrderService;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Service
|
||||
public class RecallOrderServiceImpl extends ServiceImpl<RecallOrderDao, RecallOrderEntity> implements RecallOrderService {
|
||||
|
||||
@Override
|
||||
public IPage<RecallOrderVO> queryRecallOrderByCondition(long page, long size, RecallOrderDTO recallOrderDTO) {
|
||||
Page<RecallOrderDTO> paramReq = new Page<>(page,size);
|
||||
paramReq.addOrder(new OrderItem().setColumn("create_time").setAsc(false));//创建时间降序排序
|
||||
IPage<RecallOrderVO> iPage = baseMapper.queryRecallOrderByCondition(paramReq, recallOrderDTO);
|
||||
return iPage;
|
||||
}
|
||||
|
||||
public List<RecallOrderVO> queryRecallOrderListNoPage(RecallOrderDTO recallOrderDTO) {
|
||||
return baseMapper.queryRecallOrderListNoPage(recallOrderDTO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRecallOrderById(RecallOrderEntity recallOrder) {
|
||||
baseMapper.updateRecallOrderById(recallOrder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RecallOrderVO queryRecallOrderById(String id ) {
|
||||
return baseMapper.queryRecallOrderById(id);
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.wabestway.recall.trace.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.metadata.OrderItem;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.wabestway.recall.trace.dao.RecallRecordDao;
|
||||
import com.wabestway.recall.trace.entity.RecallRecordEntity;
|
||||
import com.wabestway.recall.trace.dto.RecallRecordDTO;
|
||||
import com.wabestway.recall.trace.vo.RecallRecordVO;
|
||||
import com.wabestway.recall.trace.service.RecallRecordService;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Service
|
||||
public class RecallRecordServiceImpl extends ServiceImpl<RecallRecordDao, RecallRecordEntity> implements RecallRecordService {
|
||||
|
||||
@Override
|
||||
public IPage<RecallRecordVO> queryRecallRecordByCondition(long page, long size, RecallRecordDTO recallRecordDTO) {
|
||||
Page<RecallRecordDTO> paramReq = new Page<>(page,size);
|
||||
paramReq.addOrder(new OrderItem().setColumn("create_time").setAsc(false));//创建时间降序排序
|
||||
IPage<RecallRecordVO> iPage = baseMapper.queryRecallRecordByCondition(paramReq, recallRecordDTO);
|
||||
return iPage;
|
||||
}
|
||||
|
||||
public List<RecallRecordVO> queryRecallRecordListNoPage(RecallRecordDTO recallRecordDTO) {
|
||||
return baseMapper.queryRecallRecordListNoPage(recallRecordDTO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRecallRecordById(RecallRecordEntity recallRecord) {
|
||||
baseMapper.updateRecallRecordById(recallRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RecallRecordVO queryRecallRecordById(String id ) {
|
||||
return baseMapper.queryRecallRecordById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.wabestway.recall.trace.vo;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class RecallOrderVO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
@ApiModelProperty(value = "产品编码")
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty(value = "产品名称")
|
||||
private String productName;
|
||||
/** 保单号 */
|
||||
@ApiModelProperty(value = "保单号")
|
||||
private String policyNo;
|
||||
/** 投保人名称 */
|
||||
@ApiModelProperty(value = "投保人名称")
|
||||
private String holderName;
|
||||
/** 投保人手机号 */
|
||||
@ApiModelProperty(value = "投保人手机号")
|
||||
private String holderPhone;
|
||||
/** 保险公司名称 */
|
||||
@ApiModelProperty(value = "保险公司名称")
|
||||
private String supplierName;
|
||||
/** 是否记录完整0-否1-是 */
|
||||
@ApiModelProperty(value = "是否记录完整0-否1-是")
|
||||
private String complete;
|
||||
/** 是否已归档 0-否1-是 */
|
||||
@ApiModelProperty(value = "是否已归档 0-否1-是 ")
|
||||
private String archived;
|
||||
/** 完成日期 */
|
||||
@ApiModelProperty(value = "完成日期")
|
||||
private Long completeDate;
|
||||
/** 归档日期 */
|
||||
@ApiModelProperty(value = "归档日期")
|
||||
private Long archivedDate;
|
||||
/** 保单起始日期 */
|
||||
@ApiModelProperty(value = "保单起始日期")
|
||||
private String startDate;
|
||||
/** 保单结束日期 */
|
||||
@ApiModelProperty(value = "保单结束日期")
|
||||
private String endDate;
|
||||
/** 生成视频文件ID */
|
||||
@ApiModelProperty(value = "生成视频文件ID")
|
||||
private String fileId;
|
||||
/** 生成视频文件地址 */
|
||||
@ApiModelProperty(value = "生成视频文件地址")
|
||||
private String fileUrl;
|
||||
/** 业务订单ID */
|
||||
@ApiModelProperty(value = "业务订单ID")
|
||||
private String orderId;
|
||||
/** 回溯记录跟踪ID */
|
||||
@ApiModelProperty(value = "回溯记录跟踪ID")
|
||||
private String traceId;
|
||||
/** 可回溯记录appKey */
|
||||
@ApiModelProperty(value = "可回溯记录appKey")
|
||||
private String appKey;
|
||||
/** 创建人 */
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
/** 更新人 */
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Long updateTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.wabestway.recall.trace.vo;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author wangH
|
||||
* @company 北京华焱坤泰科技有限公司
|
||||
* @Time 2023-05-06 17:37:03
|
||||
*/
|
||||
@Data
|
||||
@ApiModel
|
||||
public class RecallRecordVO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/** 产品编码 */
|
||||
@ApiModelProperty(value = "产品编码")
|
||||
private String productCode;
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty(value = "产品名称")
|
||||
private String productName;
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块")
|
||||
private String module;
|
||||
/** 页面说明 */
|
||||
@ApiModelProperty(value = "页面说明")
|
||||
private String content;
|
||||
/** 记录事件 */
|
||||
@ApiModelProperty(value = "记录事件")
|
||||
private Blob events;
|
||||
/** 回溯记录跟踪ID */
|
||||
@ApiModelProperty(value = "回溯记录跟踪ID")
|
||||
private String traceId;
|
||||
/** 创建人 */
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
<?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.wabestway.recall.trace.dao.RecallOrderDao">
|
||||
|
||||
<sql id="queryRecallOrderSql">
|
||||
t.id id,
|
||||
t.product_code productCode,
|
||||
t.product_name productName,
|
||||
t.policy_no policyNo,
|
||||
t.holder_name holderName,
|
||||
t.holder_phone holderPhone,
|
||||
t.supplier_name supplierName,
|
||||
t.complete complete,
|
||||
t.archived archived,
|
||||
t.complete_date completeDate,
|
||||
t.archived_date archivedDate,
|
||||
t.start_date startDate,
|
||||
t.end_date endDate,
|
||||
t.file_id fileId,
|
||||
t.file_url fileUrl,
|
||||
t.order_id orderId,
|
||||
t.trace_id traceId,
|
||||
t.tenant_id tenantId,
|
||||
t.app_key appKey,
|
||||
t.create_by createBy,
|
||||
t.create_time createTime,
|
||||
t.update_by updateBy,
|
||||
t.update_time updateTime
|
||||
</sql>
|
||||
|
||||
<select id="queryRecallOrderByCondition"
|
||||
parameterType="com.wabestway.recall.trace.dto.RecallOrderDTO"
|
||||
resultType="com.wabestway.recall.trace.vo.RecallOrderVO">
|
||||
select
|
||||
<include refid="queryRecallOrderSql"/>
|
||||
from
|
||||
recall_order t
|
||||
where 1 = 1
|
||||
|
||||
<if test="recallOrderDTO.id != null and recallOrderDTO.id != '' ">
|
||||
and t.id = #{recallOrderDTO.id}
|
||||
</if>
|
||||
<if test="recallOrderDTO.productCode != null and recallOrderDTO.productCode != '' ">
|
||||
and t.product_code = #{recallOrderDTO.productCode}
|
||||
</if>
|
||||
<if test="recallOrderDTO.productName != null and recallOrderDTO.productName != '' ">
|
||||
and t.product_name = #{recallOrderDTO.productName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.policyNo != null and recallOrderDTO.policyNo != '' ">
|
||||
and t.policy_no = #{recallOrderDTO.policyNo}
|
||||
</if>
|
||||
<if test="recallOrderDTO.holderName != null and recallOrderDTO.holderName != '' ">
|
||||
and t.holder_name = #{recallOrderDTO.holderName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.holderPhone != null and recallOrderDTO.holderPhone != '' ">
|
||||
and t.holder_phone = #{recallOrderDTO.holderPhone}
|
||||
</if>
|
||||
<if test="recallOrderDTO.supplierName != null and recallOrderDTO.supplierName != '' ">
|
||||
and t.supplier_name = #{recallOrderDTO.supplierName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.complete != null and recallOrderDTO.complete != '' ">
|
||||
and t.complete = #{recallOrderDTO.complete}
|
||||
</if>
|
||||
<if test="recallOrderDTO.archived != null and recallOrderDTO.archived != '' ">
|
||||
and t.archived = #{recallOrderDTO.archived}
|
||||
</if>
|
||||
<if test="recallOrderDTO.completeDate != null ">
|
||||
and t.complete_date = #{recallOrderDTO.completeDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.archivedDate != null ">
|
||||
and t.archived_date = #{recallOrderDTO.archivedDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.startDate != null and recallOrderDTO.startDate != '' ">
|
||||
and t.start_date = #{recallOrderDTO.startDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.endDate != null and recallOrderDTO.endDate != '' ">
|
||||
and t.end_date = #{recallOrderDTO.endDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.fileId != null and recallOrderDTO.fileId != '' ">
|
||||
and t.file_id = #{recallOrderDTO.fileId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.fileUrl != null and recallOrderDTO.fileUrl != '' ">
|
||||
and t.file_url = #{recallOrderDTO.fileUrl}
|
||||
</if>
|
||||
<if test="recallOrderDTO.orderId != null and recallOrderDTO.orderId != '' ">
|
||||
and t.order_id = #{recallOrderDTO.orderId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.traceId != null and recallOrderDTO.traceId != '' ">
|
||||
and t.trace_id = #{recallOrderDTO.traceId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.appKey != null and recallOrderDTO.appKey != '' ">
|
||||
and t.app_key = #{recallOrderDTO.appKey}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryRecallOrderListNoPage"
|
||||
parameterType="com.wabestway.recall.trace.dto.RecallOrderDTO"
|
||||
resultType="com.wabestway.recall.trace.vo.RecallOrderVO">
|
||||
select
|
||||
<include refid="queryRecallOrderSql"/>
|
||||
from recall_order t
|
||||
where 1 = 1
|
||||
|
||||
<if test="recallOrderDTO.id != null and recallOrderDTO.id != '' ">
|
||||
and t.id = #{recallOrderDTO.id}
|
||||
</if>
|
||||
<if test="recallOrderDTO.productCode != null and recallOrderDTO.productCode != '' ">
|
||||
and t.product_code = #{recallOrderDTO.productCode}
|
||||
</if>
|
||||
<if test="recallOrderDTO.productName != null and recallOrderDTO.productName != '' ">
|
||||
and t.product_name = #{recallOrderDTO.productName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.policyNo != null and recallOrderDTO.policyNo != '' ">
|
||||
and t.policy_no = #{recallOrderDTO.policyNo}
|
||||
</if>
|
||||
<if test="recallOrderDTO.holderName != null and recallOrderDTO.holderName != '' ">
|
||||
and t.holder_name = #{recallOrderDTO.holderName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.holderPhone != null and recallOrderDTO.holderPhone != '' ">
|
||||
and t.holder_phone = #{recallOrderDTO.holderPhone}
|
||||
</if>
|
||||
<if test="recallOrderDTO.supplierName != null and recallOrderDTO.supplierName != '' ">
|
||||
and t.supplier_name = #{recallOrderDTO.supplierName}
|
||||
</if>
|
||||
<if test="recallOrderDTO.complete != null and recallOrderDTO.complete != '' ">
|
||||
and t.complete = #{recallOrderDTO.complete}
|
||||
</if>
|
||||
<if test="recallOrderDTO.archived != null and recallOrderDTO.archived != '' ">
|
||||
and t.archived = #{recallOrderDTO.archived}
|
||||
</if>
|
||||
<if test="recallOrderDTO.completeDate != null ">
|
||||
and t.complete_date = #{recallOrderDTO.completeDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.archivedDate != null ">
|
||||
and t.archived_date = #{recallOrderDTO.archivedDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.startDate != null and recallOrderDTO.startDate != '' ">
|
||||
and t.start_date = #{recallOrderDTO.startDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.endDate != null and recallOrderDTO.endDate != '' ">
|
||||
and t.end_date = #{recallOrderDTO.endDate}
|
||||
</if>
|
||||
<if test="recallOrderDTO.fileId != null and recallOrderDTO.fileId != '' ">
|
||||
and t.file_id = #{recallOrderDTO.fileId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.fileUrl != null and recallOrderDTO.fileUrl != '' ">
|
||||
and t.file_url = #{recallOrderDTO.fileUrl}
|
||||
</if>
|
||||
<if test="recallOrderDTO.orderId != null and recallOrderDTO.orderId != '' ">
|
||||
and t.order_id = #{recallOrderDTO.orderId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.traceId != null and recallOrderDTO.traceId != '' ">
|
||||
and t.trace_id = #{recallOrderDTO.traceId}
|
||||
</if>
|
||||
<if test="recallOrderDTO.appKey != null and recallOrderDTO.appKey != '' ">
|
||||
and t.app_key = #{recallOrderDTO.appKey}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryRecallOrderById" resultType="com.wabestway.recall.trace.vo.RecallOrderVO">
|
||||
select
|
||||
<include refid="queryRecallOrderSql"/>
|
||||
from recall_order t
|
||||
where t.id= #{id}
|
||||
</select>
|
||||
|
||||
<update id="updateRecallOrderById" parameterType="com.wabestway.recall.trace.entity.RecallOrderEntity">
|
||||
update recall_order t
|
||||
|
||||
<set>
|
||||
<if test="recallOrder.id != null and recallOrder.id != '' ">
|
||||
t.id = #{recallOrder.id},
|
||||
</if>
|
||||
<if test="recallOrder.productCode != null and recallOrder.productCode != '' ">
|
||||
t.product_code = #{recallOrder.productCode},
|
||||
</if>
|
||||
<if test="recallOrder.productName != null and recallOrder.productName != '' ">
|
||||
t.product_name = #{recallOrder.productName},
|
||||
</if>
|
||||
<if test="recallOrder.policyNo != null and recallOrder.policyNo != '' ">
|
||||
t.policy_no = #{recallOrder.policyNo},
|
||||
</if>
|
||||
<if test="recallOrder.holderName != null and recallOrder.holderName != '' ">
|
||||
t.holder_name = #{recallOrder.holderName},
|
||||
</if>
|
||||
<if test="recallOrder.holderPhone != null and recallOrder.holderPhone != '' ">
|
||||
t.holder_phone = #{recallOrder.holderPhone},
|
||||
</if>
|
||||
<if test="recallOrder.supplierName != null and recallOrder.supplierName != '' ">
|
||||
t.supplier_name = #{recallOrder.supplierName},
|
||||
</if>
|
||||
<if test="recallOrder.complete != null and recallOrder.complete != '' ">
|
||||
t.complete = #{recallOrder.complete},
|
||||
</if>
|
||||
<if test="recallOrder.archived != null and recallOrder.archived != '' ">
|
||||
t.archived = #{recallOrder.archived},
|
||||
</if>
|
||||
<if test="recallOrder.completeDate != null ">
|
||||
t.complete_date = #{recallOrder.completeDate},
|
||||
</if>
|
||||
<if test="recallOrder.archivedDate != null ">
|
||||
t.archived_date = #{recallOrder.archivedDate},
|
||||
</if>
|
||||
<if test="recallOrder.startDate != null and recallOrder.startDate != '' ">
|
||||
t.start_date = #{recallOrder.startDate},
|
||||
</if>
|
||||
<if test="recallOrder.endDate != null and recallOrder.endDate != '' ">
|
||||
t.end_date = #{recallOrder.endDate},
|
||||
</if>
|
||||
<if test="recallOrder.fileId != null and recallOrder.fileId != '' ">
|
||||
t.file_id = #{recallOrder.fileId},
|
||||
</if>
|
||||
<if test="recallOrder.fileUrl != null and recallOrder.fileUrl != '' ">
|
||||
t.file_url = #{recallOrder.fileUrl},
|
||||
</if>
|
||||
<if test="recallOrder.orderId != null and recallOrder.orderId != '' ">
|
||||
t.order_id = #{recallOrder.orderId},
|
||||
</if>
|
||||
<if test="recallOrder.traceId != null and recallOrder.traceId != '' ">
|
||||
t.trace_id = #{recallOrder.traceId},
|
||||
</if>
|
||||
<if test="recallOrder.appKey != null and recallOrder.appKey != '' ">
|
||||
t.app_key = #{recallOrder.appKey},
|
||||
</if>
|
||||
<if test="recallOrder.updateBy != null and recallOrder.updateBy != '' ">
|
||||
t.update_by = #{recallOrder.updateBy},
|
||||
</if>
|
||||
<if test="recallOrder.updateTime != null ">
|
||||
t.update_time = #{recallOrder.updateTime},
|
||||
</if>
|
||||
</set>
|
||||
where t.id= #{recallOrder.id}
|
||||
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,117 @@
|
||||
<?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.wabestway.recall.trace.dao.RecallRecordDao">
|
||||
|
||||
<sql id="queryRecallRecordSql">
|
||||
t.id id,
|
||||
t.product_code productCode,
|
||||
t.product_name productName,
|
||||
t.module module,
|
||||
t.content content,
|
||||
t.events events,
|
||||
t.trace_id traceId,
|
||||
t.create_by createBy,
|
||||
t.create_time createTime
|
||||
</sql>
|
||||
|
||||
<select id="queryRecallRecordByCondition"
|
||||
parameterType="com.wabestway.recall.trace.dto.RecallRecordDTO"
|
||||
resultType="com.wabestway.recall.trace.vo.RecallRecordVO">
|
||||
select
|
||||
<include refid="queryRecallRecordSql"/>
|
||||
from
|
||||
recall_record t
|
||||
where 1 = 1
|
||||
|
||||
<if test="recallRecordDTO.id != null and recallRecordDTO.id != '' ">
|
||||
and t.id = #{recallRecordDTO.id}
|
||||
</if>
|
||||
<if test="recallRecordDTO.productCode != null and recallRecordDTO.productCode != '' ">
|
||||
and t.product_code = #{recallRecordDTO.productCode}
|
||||
</if>
|
||||
<if test="recallRecordDTO.productName != null and recallRecordDTO.productName != '' ">
|
||||
and t.product_name = #{recallRecordDTO.productName}
|
||||
</if>
|
||||
<if test="recallRecordDTO.module != null and recallRecordDTO.module != '' ">
|
||||
and t.module = #{recallRecordDTO.module}
|
||||
</if>
|
||||
<if test="recallRecordDTO.content != null and recallRecordDTO.content != '' ">
|
||||
and t.content = #{recallRecordDTO.content}
|
||||
</if>
|
||||
<if test="recallRecordDTO.events != null ">
|
||||
and t.events = #{recallRecordDTO.events}
|
||||
</if>
|
||||
<if test="recallRecordDTO.traceId != null and recallRecordDTO.traceId != '' ">
|
||||
and t.trace_id = #{recallRecordDTO.traceId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryRecallRecordListNoPage"
|
||||
parameterType="com.wabestway.recall.trace.dto.RecallRecordDTO"
|
||||
resultType="com.wabestway.recall.trace.vo.RecallRecordVO">
|
||||
select
|
||||
<include refid="queryRecallRecordSql"/>
|
||||
from recall_record t
|
||||
where 1 = 1
|
||||
|
||||
<if test="recallRecordDTO.id != null and recallRecordDTO.id != '' ">
|
||||
and t.id = #{recallRecordDTO.id}
|
||||
</if>
|
||||
<if test="recallRecordDTO.productCode != null and recallRecordDTO.productCode != '' ">
|
||||
and t.product_code = #{recallRecordDTO.productCode}
|
||||
</if>
|
||||
<if test="recallRecordDTO.productName != null and recallRecordDTO.productName != '' ">
|
||||
and t.product_name = #{recallRecordDTO.productName}
|
||||
</if>
|
||||
<if test="recallRecordDTO.module != null and recallRecordDTO.module != '' ">
|
||||
and t.module = #{recallRecordDTO.module}
|
||||
</if>
|
||||
<if test="recallRecordDTO.content != null and recallRecordDTO.content != '' ">
|
||||
and t.content = #{recallRecordDTO.content}
|
||||
</if>
|
||||
<if test="recallRecordDTO.events != null ">
|
||||
and t.events = #{recallRecordDTO.events}
|
||||
</if>
|
||||
<if test="recallRecordDTO.traceId != null and recallRecordDTO.traceId != '' ">
|
||||
and t.trace_id = #{recallRecordDTO.traceId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryRecallRecordById" resultType="com.wabestway.recall.trace.vo.RecallRecordVO">
|
||||
select
|
||||
<include refid="queryRecallRecordSql"/>
|
||||
from recall_record t
|
||||
where t.id= #{id}
|
||||
</select>
|
||||
|
||||
<update id="updateRecallRecordById" parameterType="com.wabestway.recall.trace.entity.RecallRecordEntity">
|
||||
update recall_record t
|
||||
|
||||
<set>
|
||||
<if test="recallRecord.id != null and recallRecord.id != '' ">
|
||||
t.id = #{recallRecord.id},
|
||||
</if>
|
||||
<if test="recallRecord.productCode != null and recallRecord.productCode != '' ">
|
||||
t.product_code = #{recallRecord.productCode},
|
||||
</if>
|
||||
<if test="recallRecord.productName != null and recallRecord.productName != '' ">
|
||||
t.product_name = #{recallRecord.productName},
|
||||
</if>
|
||||
<if test="recallRecord.module != null and recallRecord.module != '' ">
|
||||
t.module = #{recallRecord.module},
|
||||
</if>
|
||||
<if test="recallRecord.content != null and recallRecord.content != '' ">
|
||||
t.content = #{recallRecord.content},
|
||||
</if>
|
||||
<if test="recallRecord.events != null ">
|
||||
t.events = #{recallRecord.events},
|
||||
</if>
|
||||
<if test="recallRecord.traceId != null and recallRecord.traceId != '' ">
|
||||
t.trace_id = #{recallRecord.traceId},
|
||||
</if>
|
||||
</set>
|
||||
where t.id= #{recallRecord.id}
|
||||
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user