修改butg
parent
a21b15bf5e
commit
f9e404d6b9
@ -0,0 +1,21 @@
|
||||
package com.ms.biz.service;
|
||||
|
||||
import com.ms.dal.entity.LogisticsMatchRule;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface LogisticsMatchRuleService {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(LogisticsMatchRule record);
|
||||
|
||||
int insertSelective(LogisticsMatchRule record);
|
||||
|
||||
LogisticsMatchRule selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(LogisticsMatchRule record);
|
||||
|
||||
int updateByPrimaryKey(LogisticsMatchRule record);
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ms.biz.service;
|
||||
|
||||
import com.ms.dal.entity.Logistics;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface LogisticsService {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(Logistics record);
|
||||
|
||||
int insertSelective(Logistics record);
|
||||
|
||||
Logistics selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(Logistics record);
|
||||
|
||||
int updateByPrimaryKey(Logistics record);
|
||||
|
||||
Map<String, String> matchLogisticsInfo(String platform, String originLogisticsName, String originWaybillCode, Map<String, Logistics> logisticsNameAndLogisticsInfoMap);
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.ms.biz.service.impl;
|
||||
|
||||
import com.ms.dal.entity.LogisticsMatchRule;
|
||||
import com.ms.biz.service.LogisticsMatchRuleService;
|
||||
import com.ms.dal.mapper.LogisticsMatchRuleMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class LogisticsMatchRuleServiceImpl implements LogisticsMatchRuleService {
|
||||
|
||||
@Autowired
|
||||
private LogisticsMatchRuleMapper logisticsMatchRuleMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Long id) {
|
||||
return logisticsMatchRuleMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(LogisticsMatchRule record) {
|
||||
return logisticsMatchRuleMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(LogisticsMatchRule record) {
|
||||
return logisticsMatchRuleMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LogisticsMatchRule selectByPrimaryKey(Long id) {
|
||||
return logisticsMatchRuleMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(LogisticsMatchRule record) {
|
||||
return logisticsMatchRuleMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(LogisticsMatchRule record) {
|
||||
return logisticsMatchRuleMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.ms.dal.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 软件内物流信息
|
||||
* @TableName logistics
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class Logistics implements Serializable {
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
private Long logisticsId;
|
||||
|
||||
/**
|
||||
* 物流公司名称
|
||||
*/
|
||||
private String logisticsName;
|
||||
|
||||
/**
|
||||
* 软件内定义的物流公司编码
|
||||
*/
|
||||
private String logisticsCode;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date gmtCreate;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date gmtModified;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package com.ms.dal.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName logistics_match_rule
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class LogisticsMatchRule implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer logisticsMatchRuleId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String logisticsName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String platform;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String platformLogisticsName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String waybillCodeRule;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date gmtCreate;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date gmtModified;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.ms.dal.mapper;
|
||||
|
||||
import com.ms.dal.entity.Logistics;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Entity com.ms.dal.entity.Logistics
|
||||
*/
|
||||
@Mapper
|
||||
public interface LogisticsMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(Logistics record);
|
||||
|
||||
int insertOrUpdate(Logistics record);
|
||||
|
||||
int insertSelective(Logistics record);
|
||||
|
||||
Logistics selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(Logistics record);
|
||||
|
||||
int updateByPrimaryKey(Logistics record);
|
||||
|
||||
List<Logistics> getList();
|
||||
|
||||
Logistics getByLogisticsName(@Param("logisticsName") String logisticsName);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.ms.dal.mapper;
|
||||
|
||||
import com.ms.dal.entity.LogisticsMatchRule;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Entity com.ms.dal.entity.LogisticsMatchRule
|
||||
*/
|
||||
@Mapper
|
||||
public interface LogisticsMatchRuleMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(LogisticsMatchRule record);
|
||||
|
||||
int insertOrUpdate(LogisticsMatchRule record);
|
||||
|
||||
int insertSelective(LogisticsMatchRule record);
|
||||
|
||||
LogisticsMatchRule selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(LogisticsMatchRule record);
|
||||
|
||||
int updateByPrimaryKey(LogisticsMatchRule record);
|
||||
|
||||
List<LogisticsMatchRule> getListByPlatform(@Param("platform") String platform);
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
<?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.ms.dal.mapper.LogisticsMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.ms.dal.entity.Logistics">
|
||||
<id property="logisticsId" column="logistics_id" jdbcType="BIGINT"/>
|
||||
<result property="logisticsName" column="logistics_name" jdbcType="VARCHAR"/>
|
||||
<result property="logisticsCode" column="logistics_code" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="status" jdbcType="VARCHAR"/>
|
||||
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
||||
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
logistics_id,logistics_name,logistics_code,
|
||||
status,sort,gmt_create,
|
||||
gmt_modified
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from logistics
|
||||
where logistics_id = #{logisticsId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<select id="getList" resultType="com.ms.dal.entity.Logistics">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from logistics
|
||||
</select>
|
||||
<select id="getByLogisticsName" resultType="com.ms.dal.entity.Logistics">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from logistics
|
||||
where logistics_name = #{logisticsName,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from logistics
|
||||
where logistics_id = #{logisticsId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="logistics_id" keyProperty="logisticsId" parameterType="com.ms.dal.entity.Logistics" useGeneratedKeys="true">
|
||||
insert into logistics
|
||||
( logistics_id,logistics_name,logistics_code
|
||||
,status,sort,gmt_create
|
||||
,gmt_modified)
|
||||
values (#{logisticsId,jdbcType=BIGINT},#{logisticsName,jdbcType=VARCHAR},#{logisticsCode,jdbcType=VARCHAR}
|
||||
,#{status,jdbcType=VARCHAR},#{sort,jdbcType=INTEGER},#{gmtCreate,jdbcType=TIMESTAMP}
|
||||
,#{gmtModified,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="insertOrUpdate" keyColumn="logistics_id" keyProperty="logisticsId" parameterType="com.ms.dal.entity.Logistics"
|
||||
useGeneratedKeys="true">
|
||||
insert into logistics
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsId != null">logistics_id,</if>
|
||||
<if test="logisticsName != null">logistics_name,</if>
|
||||
<if test="logisticsCode != null">logistics_code,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="gmtCreate != null">gmt_create,</if>
|
||||
<if test="gmtModified != null">gmt_modified,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsId != null">#{logisticsId,jdbcType=BIGINT},</if>
|
||||
<if test="logisticsName != null">#{logisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="logisticsCode != null">#{logisticsCode,jdbcType=VARCHAR},</if>
|
||||
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||
<if test="sort != null">#{sort,jdbcType=INTEGER},</if>
|
||||
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
ON DUPLICATE KEY UPDATE
|
||||
<trim suffixOverrides=",">
|
||||
<if test="logisticsName != null">
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logisticsCode != null">
|
||||
logistics_code = #{logisticsCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="gmtCreate != null">
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="gmtModified != null">
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</update>
|
||||
<insert id="insertSelective" keyColumn="logistics_id" keyProperty="logisticsId" parameterType="com.ms.dal.entity.Logistics" useGeneratedKeys="true">
|
||||
insert into logistics
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsId != null">logistics_id,</if>
|
||||
<if test="logisticsName != null">logistics_name,</if>
|
||||
<if test="logisticsCode != null">logistics_code,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="gmtCreate != null">gmt_create,</if>
|
||||
<if test="gmtModified != null">gmt_modified,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsId != null">#{logisticsId,jdbcType=BIGINT},</if>
|
||||
<if test="logisticsName != null">#{logisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="logisticsCode != null">#{logisticsCode,jdbcType=VARCHAR},</if>
|
||||
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||
<if test="sort != null">#{sort,jdbcType=INTEGER},</if>
|
||||
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.Logistics">
|
||||
update logistics
|
||||
<set>
|
||||
<if test="logisticsName != null">
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logisticsCode != null">
|
||||
logistics_code = #{logisticsCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="gmtCreate != null">
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="gmtModified != null">
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where logistics_id = #{logisticsId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.Logistics">
|
||||
update logistics
|
||||
set
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
logistics_code = #{logisticsCode,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||
where logistics_id = #{logisticsId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,148 @@
|
||||
<?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.ms.dal.mapper.LogisticsMatchRuleMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.ms.dal.entity.LogisticsMatchRule">
|
||||
<id property="logisticsMatchRuleId" column="logistics_match_rule_id" jdbcType="INTEGER"/>
|
||||
<result property="logisticsName" column="logistics_name" jdbcType="VARCHAR"/>
|
||||
<result property="platform" column="platform" jdbcType="VARCHAR"/>
|
||||
<result property="platformLogisticsName" column="platform_logistics_name" jdbcType="VARCHAR"/>
|
||||
<result property="waybillCodeRule" column="waybill_code_rule" jdbcType="VARCHAR"/>
|
||||
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
||||
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
logistics_match_rule_id,logistics_name,platform,
|
||||
platform_logistics_name,waybill_code_rule,gmt_create,
|
||||
gmt_modified
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from logistics_match_rule
|
||||
where logistics_match_rule_id = #{logisticsMatchRuleId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="getListByPlatform" resultType="com.ms.dal.entity.LogisticsMatchRule">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from logistics_match_rule
|
||||
where platform in ('all', #{platform,jdbcType=VARCHAR})
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from logistics_match_rule
|
||||
where logistics_match_rule_id = #{logisticsMatchRuleId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="logistics_match_rule_id" keyProperty="logisticsMatchRuleId" parameterType="com.ms.dal.entity.LogisticsMatchRule" useGeneratedKeys="true">
|
||||
insert into logistics_match_rule
|
||||
( logistics_match_rule_id,logistics_name,platform
|
||||
,platform_logistics_name,waybill_code_rule,gmt_create
|
||||
,gmt_modified)
|
||||
values (#{logisticsMatchRuleId,jdbcType=INTEGER},#{logisticsName,jdbcType=VARCHAR},#{platform,jdbcType=VARCHAR}
|
||||
,#{platformLogisticsName,jdbcType=VARCHAR},#{waybillCodeRule,jdbcType=VARCHAR},#{gmtCreate,jdbcType=TIMESTAMP}
|
||||
,#{gmtModified,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<update id="insertOrUpdate" keyColumn="logistics_match_rule_id" keyProperty="logisticsMatchRuleId" parameterType="com.ms.dal.entity.LogisticsMatchRule"
|
||||
useGeneratedKeys="true">
|
||||
insert into logistics_match_rule
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsMatchRuleId != null">logistics_match_rule_id,</if>
|
||||
<if test="logisticsName != null">logistics_name,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="platformLogisticsName != null">platform_logistics_name,</if>
|
||||
<if test="waybillCodeRule != null">waybill_code_rule,</if>
|
||||
<if test="gmtCreate != null">gmt_create,</if>
|
||||
<if test="gmtModified != null">gmt_modified,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsMatchRuleId != null">#{logisticsMatchRuleId,jdbcType=INTEGER},</if>
|
||||
<if test="logisticsName != null">#{logisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="platform != null">#{platform,jdbcType=VARCHAR},</if>
|
||||
<if test="platformLogisticsName != null">#{platformLogisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="waybillCodeRule != null">#{waybillCodeRule,jdbcType=VARCHAR},</if>
|
||||
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
ON DUPLICATE KEY UPDATE
|
||||
<trim suffixOverrides=",">
|
||||
<if test="logisticsName != null">
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="platform != null">
|
||||
platform = #{platform,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="platformLogisticsName != null">
|
||||
platform_logistics_name = #{platformLogisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="waybillCodeRule != null">
|
||||
waybill_code_rule = #{waybillCodeRule,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="gmtCreate != null">
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="gmtModified != null">
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</update>
|
||||
<insert id="insertSelective" keyColumn="logistics_match_rule_id" keyProperty="logisticsMatchRuleId" parameterType="com.ms.dal.entity.LogisticsMatchRule" useGeneratedKeys="true">
|
||||
insert into logistics_match_rule
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsMatchRuleId != null">logistics_match_rule_id,</if>
|
||||
<if test="logisticsName != null">logistics_name,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="platformLogisticsName != null">platform_logistics_name,</if>
|
||||
<if test="waybillCodeRule != null">waybill_code_rule,</if>
|
||||
<if test="gmtCreate != null">gmt_create,</if>
|
||||
<if test="gmtModified != null">gmt_modified,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logisticsMatchRuleId != null">#{logisticsMatchRuleId,jdbcType=INTEGER},</if>
|
||||
<if test="logisticsName != null">#{logisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="platform != null">#{platform,jdbcType=VARCHAR},</if>
|
||||
<if test="platformLogisticsName != null">#{platformLogisticsName,jdbcType=VARCHAR},</if>
|
||||
<if test="waybillCodeRule != null">#{waybillCodeRule,jdbcType=VARCHAR},</if>
|
||||
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
||||
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.LogisticsMatchRule">
|
||||
update logistics_match_rule
|
||||
<set>
|
||||
<if test="logisticsName != null">
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="platform != null">
|
||||
platform = #{platform,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="platformLogisticsName != null">
|
||||
platform_logistics_name = #{platformLogisticsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="waybillCodeRule != null">
|
||||
waybill_code_rule = #{waybillCodeRule,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="gmtCreate != null">
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="gmtModified != null">
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where logistics_match_rule_id = #{logisticsMatchRuleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.LogisticsMatchRule">
|
||||
update logistics_match_rule
|
||||
set
|
||||
logistics_name = #{logisticsName,jdbcType=VARCHAR},
|
||||
platform = #{platform,jdbcType=VARCHAR},
|
||||
platform_logistics_name = #{platformLogisticsName,jdbcType=VARCHAR},
|
||||
waybill_code_rule = #{waybillCodeRule,jdbcType=VARCHAR},
|
||||
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
||||
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
||||
where logistics_match_rule_id = #{logisticsMatchRuleId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue