20 changed files with 617 additions and 21 deletions
@ -0,0 +1,114 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.controller; |
||||
|
|
||||
|
import cc.hiver.core.common.utils.ResultUtil; |
||||
|
import cc.hiver.core.common.vo.Result; |
||||
|
import cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute; |
||||
|
import cc.hiver.mall.logisticscompanyroute.service.LogisticsCompanyRouteService; |
||||
|
import cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 物流公司线路控制器 |
||||
|
* |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@RestController |
||||
|
@Api(tags = "物流公司线路关联接口") |
||||
|
@RequestMapping("/hiver/app/logisticsCompanyRoute/") |
||||
|
@Transactional |
||||
|
public class LogisticsCompanyRouteController { |
||||
|
|
||||
|
@Autowired |
||||
|
private LogisticsCompanyRouteService logisticsCompanyRouteService; |
||||
|
|
||||
|
@PostMapping(value = "/addLogisticsCompanyRoute") |
||||
|
@ApiOperation("新增物流公司线路关联") |
||||
|
public Result addLogisticsCompanyRoute(@RequestBody LogisticsCompanyRoute logisticsCompanyRoute) { |
||||
|
|
||||
|
final boolean b = logisticsCompanyRouteService.saveOrUpdate(logisticsCompanyRoute); |
||||
|
if (b) { |
||||
|
return ResultUtil.success("保存成功!"); |
||||
|
} else { |
||||
|
return ResultUtil.error("保存失败!"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 更新物流公司线路关联 |
||||
|
* |
||||
|
* @param logisticsCompanyRoute |
||||
|
* @return Result |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@PostMapping(value = "/updateLogisticsCompanyRoute") |
||||
|
@ApiOperation("更新物流公司线路关联") |
||||
|
public Result updateLogisticsCompanyRoute(@RequestBody LogisticsCompanyRoute logisticsCompanyRoute) { |
||||
|
if (StringUtils.isEmpty(logisticsCompanyRoute.getId())) { |
||||
|
return ResultUtil.error("公司线路关联id不能为空!"); |
||||
|
} |
||||
|
final boolean b = logisticsCompanyRouteService.saveOrUpdate(logisticsCompanyRoute); |
||||
|
if (b) { |
||||
|
return ResultUtil.success("保存成功!"); |
||||
|
} else { |
||||
|
return ResultUtil.error("保存失败!"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除物流公司线路关联 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return Result |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@PostMapping(value = "/deleteLogisticsCompanyRoute") |
||||
|
@ApiOperation("删除物流公司线路关联") |
||||
|
public Result deleteLogisticsCompanyRoute(String id) { |
||||
|
if (StringUtils.isEmpty(id)) { |
||||
|
return ResultUtil.error("公司线路关联id不能为空!"); |
||||
|
} |
||||
|
final boolean b = logisticsCompanyRouteService.removeById(id); |
||||
|
if (b) { |
||||
|
return ResultUtil.success("删除成功!"); |
||||
|
} else { |
||||
|
return ResultUtil.error("删除失败!"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 分页查询物流公司线路关联 |
||||
|
* |
||||
|
* @param logisticsCompanyRouteQueryVo |
||||
|
* @return Result<IPage < LogisticsCompanyRoute>> |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@RequestMapping(value = "/getLogisticsCompanyRoutePageList", method = RequestMethod.POST) |
||||
|
@ApiOperation(value = "分页查询物流公司线路关联") |
||||
|
public Result<IPage<LogisticsCompanyRoute>> getLogisticsCompanyRoutePageList(@RequestBody(required = false) LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo) { |
||||
|
final IPage<LogisticsCompanyRoute> result = logisticsCompanyRouteService.getLogisticsCompanyRoutePageList(logisticsCompanyRouteQueryVo); |
||||
|
return new ResultUtil<IPage<LogisticsCompanyRoute>>().setData(result); |
||||
|
} |
||||
|
|
||||
|
// 根据公司id查询所有关联的线路信息(不分页)
|
||||
|
@RequestMapping(value = "/getLogisticsCompanyRouteListByCompanyId", method = RequestMethod.POST) |
||||
|
@ApiOperation(value = "根据公司id查询所有关联的线路信息(不分页)") |
||||
|
public Result<List<LogisticsCompanyRoute>> getLogisticsCompanyRouteListByCompanyId(@RequestBody(required = false) LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo) { |
||||
|
final List<LogisticsCompanyRoute> result = logisticsCompanyRouteService.getLogisticsCompanyRouteListByCompanyId(logisticsCompanyRouteQueryVo); |
||||
|
return new ResultUtil<List<LogisticsCompanyRoute>>().setData(result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.entity; |
||||
|
|
||||
|
import cc.hiver.core.base.HiverBaseEntity; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 物流线路实体 |
||||
|
* |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@Data |
||||
|
@ApiModel(value = "物流线路关联表") |
||||
|
@TableName(value = "t_logistics_company_route", autoResultMap = true) |
||||
|
public class LogisticsCompanyRoute extends HiverBaseEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty(value = "物流公司id") |
||||
|
private String companyId; |
||||
|
|
||||
|
@ApiModelProperty(value = "物流公司名称") |
||||
|
private String companyName; |
||||
|
|
||||
|
@ApiModelProperty(value = "线路id") |
||||
|
private String circuitId; |
||||
|
|
||||
|
@ApiModelProperty(value = "线路名称") |
||||
|
private String circuitName; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.mapper; |
||||
|
|
||||
|
import cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute; |
||||
|
import cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface LogisticsCompanyRouteMapper extends BaseMapper<LogisticsCompanyRoute> { |
||||
|
|
||||
|
/** |
||||
|
* 分页查询物流线路 |
||||
|
* |
||||
|
* @param page |
||||
|
* @param logisticsCompanyRouteQueryVo |
||||
|
* @return IPage<LogisticsCompanyRoute> |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
IPage<LogisticsCompanyRoute> getLogisticsCompanyRoutePageList(Page<LogisticsCompanyRoute> page, @Param("queryParams") LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo); |
||||
|
|
||||
|
List<LogisticsCompanyRoute> getLogisticsCompanyRouteListByCompanyId(@Param("queryParams")LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo); |
||||
|
} |
||||
@ -0,0 +1,23 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.service; |
||||
|
|
||||
|
import cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute; |
||||
|
import cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface LogisticsCompanyRouteService extends IService<LogisticsCompanyRoute> { |
||||
|
|
||||
|
/** |
||||
|
* 分页查询物流线路 |
||||
|
* |
||||
|
* @param logisticsCompanyRouteQueryVo |
||||
|
* @return IPage<LogisticsCompanyRoute> |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
IPage<LogisticsCompanyRoute> getLogisticsCompanyRoutePageList(LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo); |
||||
|
|
||||
|
List<LogisticsCompanyRoute> getLogisticsCompanyRouteListByCompanyId(LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo); |
||||
|
} |
||||
@ -0,0 +1,38 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.service.impl; |
||||
|
|
||||
|
import cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute; |
||||
|
import cc.hiver.mall.logisticscompanyroute.mapper.LogisticsCompanyRouteMapper; |
||||
|
import cc.hiver.mall.logisticscompanyroute.service.LogisticsCompanyRouteService; |
||||
|
import cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class LogisticsCompanyRouteServiceImpl extends ServiceImpl<LogisticsCompanyRouteMapper, LogisticsCompanyRoute> implements LogisticsCompanyRouteService { |
||||
|
|
||||
|
@Autowired |
||||
|
private LogisticsCompanyRouteMapper logisticsCompanyRouteMapper; |
||||
|
|
||||
|
/** |
||||
|
* 分页查询物流线路 |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
* @param logisticsCompanyRouteQueryVo |
||||
|
* @return IPage<LogisticsCompanyRoute> |
||||
|
*/ |
||||
|
@Override |
||||
|
public IPage<LogisticsCompanyRoute> getLogisticsCompanyRoutePageList(LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo) { |
||||
|
final Page<LogisticsCompanyRoute> page = new Page<>(logisticsCompanyRouteQueryVo.getPageNum(), logisticsCompanyRouteQueryVo.getPageSize()); |
||||
|
return logisticsCompanyRouteMapper.getLogisticsCompanyRoutePageList(page, logisticsCompanyRouteQueryVo); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<LogisticsCompanyRoute> getLogisticsCompanyRouteListByCompanyId(LogisticsCompanyRouteQueryVo logisticsCompanyRouteQueryVo) { |
||||
|
return logisticsCompanyRouteMapper.getLogisticsCompanyRouteListByCompanyId(logisticsCompanyRouteQueryVo); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
package cc.hiver.mall.logisticscompanyroute.vo; |
||||
|
|
||||
|
import cc.hiver.core.base.HiverBasePageQuery; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 物流线路关联查询条件 |
||||
|
* |
||||
|
* @author 王富康 |
||||
|
* @date 2024/8/24 |
||||
|
*/ |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@Data |
||||
|
public class LogisticsCompanyRouteQueryVo extends HiverBasePageQuery { |
||||
|
|
||||
|
@ApiModelProperty(value = "物流公司id") |
||||
|
private String companyId; |
||||
|
|
||||
|
@ApiModelProperty(value = "物流公司名称") |
||||
|
private String companyName; |
||||
|
|
||||
|
@ApiModelProperty(value = "线路id") |
||||
|
private String circuitId; |
||||
|
|
||||
|
@ApiModelProperty(value = "线路名称") |
||||
|
private String circuitName; |
||||
|
} |
||||
@ -0,0 +1,187 @@ |
|||||
|
<?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="cc.hiver.mall.logisticscompanyroute.mapper.LogisticsCompanyRouteMapper"> |
||||
|
<resultMap id="BaseResultMap" type="cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute"> |
||||
|
<id column="id" jdbcType="VARCHAR" property="id" /> |
||||
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="del_flag" jdbcType="INTEGER" property="delFlag" /> |
||||
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="company_id" jdbcType="VARCHAR" property="companyId" /> |
||||
|
<result column="company_name" jdbcType="VARCHAR" property="companyName" /> |
||||
|
<result column="circuit_id" jdbcType="VARCHAR" property="circuitId" /> |
||||
|
<result column="circuit_name" jdbcType="VARCHAR" property="circuitName" /> |
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="Base_Column_List"> |
||||
|
id, create_by, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_logistics_company_route |
||||
|
where id = #{id,jdbcType=VARCHAR} |
||||
|
</select> |
||||
|
|
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
||||
|
delete from t_logistics_company_route |
||||
|
where id = #{id,jdbcType=VARCHAR} |
||||
|
</delete> |
||||
|
|
||||
|
<insert id="insert" parameterType="cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute"> |
||||
|
insert into t_logistics_company_route |
||||
|
(id, create_by, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name) |
||||
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
||||
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
#{companyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{circuitId,jdbcType=VARCHAR}, #{circuitName,jdbcType=VARCHAR}) |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_logistics_company_route |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createBy != null"> |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createTime != null"> |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.delFlag != null"> |
||||
|
del_flag = #{record.delFlag,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.updateBy != null"> |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.updateTime != null"> |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.companyId != null"> |
||||
|
company_id = #{record.companyId,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.companyName != null"> |
||||
|
company_name = #{record.companyName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.circuitId != null"> |
||||
|
circuit_id = #{record.circuitId,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.circuitName != null"> |
||||
|
circuit_name = #{record.circuitName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
</update> |
||||
|
|
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_logistics_company_route |
||||
|
set id = #{record.id,jdbcType=VARCHAR}, |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
del_flag = #{record.delFlag,jdbcType=INTEGER}, |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
company_id = #{record.companyId,jdbcType=VARCHAR}, |
||||
|
company_name = #{record.companyName,jdbcType=VARCHAR}, |
||||
|
circuit_id = #{record.circuitId,jdbcType=VARCHAR}, |
||||
|
circuit_name = #{record.circuitName,jdbcType=VARCHAR} |
||||
|
</update> |
||||
|
|
||||
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute"> |
||||
|
update t_logistics_company_route |
||||
|
<set> |
||||
|
<if test="createBy != null"> |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="delFlag != null"> |
||||
|
del_flag = #{delFlag,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="companyId != null"> |
||||
|
company_id = #{companyId,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="companyName != null"> |
||||
|
company_name = #{companyName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="circuitId != null"> |
||||
|
circuit_id = #{circuitId,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="circuitName != null"> |
||||
|
circuit_name = #{circuitName,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=VARCHAR} |
||||
|
</update> |
||||
|
|
||||
|
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.logisticscompanyroute.entity.LogisticsCompanyRoute"> |
||||
|
update t_logistics_company_route |
||||
|
set create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
del_flag = #{delFlag,jdbcType=INTEGER}, |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
company_id = #{companyId,jdbcType=VARCHAR}, |
||||
|
company_name = #{companyName,jdbcType=VARCHAR}, |
||||
|
circuit_id = #{circuitId,jdbcType=VARCHAR}, |
||||
|
circuit_name = #{circuitName,jdbcType=VARCHAR} |
||||
|
where id = #{id,jdbcType=VARCHAR} |
||||
|
</update> |
||||
|
|
||||
|
<!--管理商品分页列表--> |
||||
|
<select id="getLogisticsCompanyRoutePageList" resultMap="BaseResultMap" parameterType="cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo"> |
||||
|
select |
||||
|
t.id, t.create_by,t.create_time,t.del_flag,t.update_by,t.update_time,t.company_id,t.company_name,t.circuit_id,t.circuit_name |
||||
|
from t_logistics_company_route t |
||||
|
<where> |
||||
|
<!--反馈内容--> |
||||
|
<if test='queryParams.companyId!=null and queryParams.companyId.trim() neq ""'> |
||||
|
AND t.company_id = #{queryParams.companyId} |
||||
|
</if> |
||||
|
<if test='queryParams.circuitId!=null and queryParams.circuitId.trim() neq ""'> |
||||
|
AND t.circuit_id = #{queryParams.circuitId} |
||||
|
</if> |
||||
|
|
||||
|
<if test='queryParams.companyName!=null and queryParams.companyName.trim() neq ""'> |
||||
|
AND t.company_name like concat('%',#{queryParams.companyName},'%') |
||||
|
</if> |
||||
|
<if test='queryParams.circuitName!=null and queryParams.circuitName.trim() neq ""'> |
||||
|
AND t.circuit_name like concat('%',#{queryParams.circuitName},'%') |
||||
|
</if> |
||||
|
</where> |
||||
|
ORDER BY |
||||
|
t.create_time desc |
||||
|
</select> |
||||
|
|
||||
|
<select id="getLogisticsCompanyRouteListByCompanyId" resultMap="BaseResultMap" parameterType="cc.hiver.mall.logisticscompanyroute.vo.LogisticsCompanyRouteQueryVo"> |
||||
|
select |
||||
|
t.id, t.create_by,t.create_time,t.del_flag,t.update_by,t.update_time,t.company_id,t.company_name,t.circuit_id,t.circuit_name |
||||
|
from t_logistics_company_route t |
||||
|
<where> |
||||
|
<!--反馈内容--> |
||||
|
<if test='queryParams.companyId!=null and queryParams.companyId.trim() neq ""'> |
||||
|
AND t.company_id = #{queryParams.companyId} |
||||
|
</if> |
||||
|
<if test='queryParams.circuitId!=null and queryParams.circuitId.trim() neq ""'> |
||||
|
AND t.circuit_id = #{queryParams.circuitId} |
||||
|
</if> |
||||
|
|
||||
|
<if test='queryParams.companyName!=null and queryParams.companyName.trim() neq ""'> |
||||
|
AND t.company_name like concat('%',#{queryParams.companyName},'%') |
||||
|
</if> |
||||
|
<if test='queryParams.circuitName!=null and queryParams.circuitName.trim() neq ""'> |
||||
|
AND t.circuit_name like concat('%',#{queryParams.circuitName},'%') |
||||
|
</if> |
||||
|
</where> |
||||
|
ORDER BY |
||||
|
t.create_time desc |
||||
|
</select> |
||||
|
</mapper> |
||||
Loading…
Reference in new issue