This commit is contained in:
linfso 2024-07-15 17:39:39 +08:00
parent 05c8e5df05
commit 58c4b876f5
17 changed files with 14 additions and 1280 deletions

View File

@ -56,7 +56,10 @@ public class Oms2cTransLineController extends BaseController
/**
* 查询线路列表 -- 精简
*/
@JacksonFilter(include= {"id","lineCode","lineName","lineNameEn","meterRate",},value= EmisTransLine.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
@JacksonFilter(include= {"id","lineCode","lineName","lineNameEn","meterRate","transType",
"fromCountry",
"country",
},value= EmisTransLine.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
@RequestMapping("/listSimple")
public TableDataInfo listSimple(EmisTransLine emisTransLine)
{

View File

@ -79,6 +79,12 @@ public class Oms2cWaybillController extends BaseController
}
@Log(title = "OMSExcel草稿方式下单", businessType = BusinessType.INSERT)
@PostMapping(value = "/draftSubmitOrder")
public AjaxResult draftSubmitOrder(@RequestBody EmisWaybill emisWaybillSave){
return this.iRpcWaybillSvc.draftSubmitOrderByOms(emisWaybillSave);
}
/**
* 使用远程调用注意:统一使用api中心进行运费试算
* @param waybillOrder

View File

@ -1,72 +0,0 @@
/**
* @Project: emis
* @Title: EmisBrandMapper.java
* @author linfso
* @date 2023-12-14 13:02:47
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 品牌 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisBrand;
/**
* @ClassName EmisBrandMapper
* @Description <p> 品牌 Mapper 接口 </p>
* @author linfso
* @date 2023-12-14 13:02:47
*/
//@CacheNamespace(implementation= MybatisRedisCache.class,eviction=MybatisRedisCache.class)
public interface EmisBrandMapper extends BaseMapper<EmisBrand>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisBrand selectEmisBrandById(Long id);
/**
* 查询列表
*
* @param emisBrand
* @return 集合
*/
public List<EmisBrand> selectEmisBrandList(EmisBrand emisBrand);
/**
* 新增
*
* @param emisBrand
* @return
*/
public int insertEmisBrand(EmisBrand emisBrand);
/**
* 修改
*
* @param emisBrand
* @return
*/
public int updateEmisBrand(EmisBrand emisBrand);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisBrandById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisBrandByIds(Long[] ids);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisContinentMapper.java
* @author linfso
* @date 2023-11-16 16:18:40
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 地球洲 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisContinent;
/**
* @ClassName EmisContinentMapper
* @Description <p> 地球洲 Mapper 接口 </p>
* @author linfso
* @date 2023-11-16 16:18:40
*/
public interface EmisContinentMapper extends BaseMapper<EmisContinent>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisContinent selectEmisContinentById(Integer id);
/**
* 查询列表
*
* @param emisContinent
* @return 集合
*/
public List<EmisContinent> selectEmisContinentList(EmisContinent emisContinent);
/**
* 新增
*
* @param emisContinent
* @return
*/
public int insertEmisContinent(EmisContinent emisContinent);
/**
* 修改
*
* @param emisContinent
* @return
*/
public int updateEmisContinent(EmisContinent emisContinent);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisContinentById(Integer id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisContinentByIds(Integer[] ids);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisCountryAreaMapper.java
* @author linfso
* @date 2023-11-16 16:18:40
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 国家大区表 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisCountryArea;
/**
* @ClassName EmisCountryAreaMapper
* @Description <p> 国家大区表 Mapper 接口 </p>
* @author linfso
* @date 2023-11-16 16:18:40
*/
public interface EmisCountryAreaMapper extends BaseMapper<EmisCountryArea>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisCountryArea selectEmisCountryAreaById(Long id);
/**
* 查询列表
*
* @param emisCountryArea
* @return 集合
*/
public List<EmisCountryArea> selectEmisCountryAreaList(EmisCountryArea emisCountryArea);
/**
* 新增
*
* @param emisCountryArea
* @return
*/
public int insertEmisCountryArea(EmisCountryArea emisCountryArea);
/**
* 修改
*
* @param emisCountryArea
* @return
*/
public int updateEmisCountryArea(EmisCountryArea emisCountryArea);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisCountryAreaById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisCountryAreaByIds(Long[] ids);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisCustomerAccountMapper.java
* @author linfso
* @date 2024-04-24 05:05:21
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 快递用户结算账户 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisCustomerAccount;
/**
* @ClassName EmisCustomerAccountMapper
* @Description <p> 快递用户结算账户 Mapper 接口 </p>
* @author linfso
* @date 2024-04-24 05:05:21
*/
public interface EmisCustomerAccountMapper extends BaseMapper<EmisCustomerAccount>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisCustomerAccount selectEmisCustomerAccountById(Long id);
/**
* 查询列表
*
* @param emisCustomerAccount
* @return 集合
*/
public List<EmisCustomerAccount> selectEmisCustomerAccountList(EmisCustomerAccount emisCustomerAccount);
/**
* 新增
*
* @param emisCustomerAccount
* @return
*/
public int insertEmisCustomerAccount(EmisCustomerAccount emisCustomerAccount);
/**
* 修改
*
* @param emisCustomerAccount
* @return
*/
public int updateEmisCustomerAccount(EmisCustomerAccount emisCustomerAccount);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisCustomerAccountById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisCustomerAccountByIds(Long[] ids);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisCustomerSettleBillMapper.java
* @author linfso
* @date 2024-04-24 05:05:21
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 快递用户结算账单 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisCustomerSettleBill;
/**
* @ClassName EmisCustomerSettleBillMapper
* @Description <p> 快递用户结算账单 Mapper 接口 </p>
* @author linfso
* @date 2024-04-24 05:05:21
*/
public interface EmisCustomerSettleBillMapper extends BaseMapper<EmisCustomerSettleBill>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisCustomerSettleBill selectEmisCustomerSettleBillById(Long id);
/**
* 查询列表
*
* @param emisCustomerSettleBill
* @return 集合
*/
public List<EmisCustomerSettleBill> selectEmisCustomerSettleBillList(EmisCustomerSettleBill emisCustomerSettleBill);
/**
* 新增
*
* @param emisCustomerSettleBill
* @return
*/
public int insertEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
/**
* 修改
*
* @param emisCustomerSettleBill
* @return
*/
public int updateEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisCustomerSettleBillById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisCustomerSettleBillByIds(Long[] ids);
}

View File

@ -1,77 +0,0 @@
/**
* @Project: emis
* @Title: EmisNotCalcAgingMapper.java
* @author linfso
* @date 2024-01-10 07:21:31
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 不计时效维护 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisNotCalcAging;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* @ClassName EmisNotCalcAgingMapper
* @Description <p> 不计时效维护 Mapper 接口 </p>
* @author linfso
* @date 2024-01-10 07:21:31
*/
public interface EmisNotCalcAgingMapper extends BaseMapper<EmisNotCalcAging>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisNotCalcAging selectEmisNotCalcAgingById(Long id);
/**
* 查询列表
*
* @param emisNotCalcAging
* @return 集合
*/
public List<EmisNotCalcAging> selectEmisNotCalcAgingList(EmisNotCalcAging emisNotCalcAging);
/**
* 新增
*
* @param emisNotCalcAging
* @return
*/
public int insertEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
/**
* 修改
*
* @param emisNotCalcAging
* @return
*/
public int updateEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisNotCalcAgingById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisNotCalcAgingByIds(Long[] ids);
public int getNotCalcAgingDays(@Param("recieveCountry") String recieveCountry, @Param("sendCountry") String sendCountry, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}

View File

@ -1,73 +0,0 @@
/**
* @Project: emis
* @Title: EmisPrintTplMapper.java
* @author linfso
* @date 2024-05-12 11:28:34
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 快递打印模板 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisPrintTpl;
/**
* @ClassName EmisPrintTplMapper
* @Description <p> 快递打印模板 Mapper 接口 </p>
* @author linfso
* @date 2024-05-12 11:28:34
*/
public interface EmisPrintTplMapper extends BaseMapper<EmisPrintTpl>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisPrintTpl selectEmisPrintTplById(Long id);
/**
* 查询列表
*
* @param emisPrintTpl
* @return 集合
*/
public List<EmisPrintTpl> selectEmisPrintTplList(EmisPrintTpl emisPrintTpl);
/**
* 新增
*
* @param emisPrintTpl
* @return
*/
public int insertEmisPrintTpl(EmisPrintTpl emisPrintTpl);
/**
* 修改
*
* @param emisPrintTpl
* @return
*/
public int updateEmisPrintTpl(EmisPrintTpl emisPrintTpl);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisPrintTplById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisPrintTplByIds(Long[] ids);
public List<EmisPrintTpl> selectPrintTplListByPrinter(EmisPrintTpl emisPrintTpl);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisPrintTplRelMapper.java
* @author linfso
* @date 2024-05-12 11:28:34
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 快递商户关联表 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisPrintTplRel;
/**
* @ClassName EmisPrintTplRelMapper
* @Description <p> 快递商户关联表 Mapper 接口 </p>
* @author linfso
* @date 2024-05-12 11:28:34
*/
public interface EmisPrintTplRelMapper extends BaseMapper<EmisPrintTplRel>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisPrintTplRel selectEmisPrintTplRelById(Long id);
/**
* 查询列表
*
* @param emisPrintTplRel
* @return 集合
*/
public List<EmisPrintTplRel> selectEmisPrintTplRelList(EmisPrintTplRel emisPrintTplRel);
/**
* 新增
*
* @param emisPrintTplRel
* @return
*/
public int insertEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel);
/**
* 修改
*
* @param emisPrintTplRel
* @return
*/
public int updateEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisPrintTplRelById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisPrintTplRelByIds(Long[] ids);
}

View File

@ -1,70 +0,0 @@
/**
* @Project: emis
* @Title: EmisProblemTypeMapper.java
* @author linfso
* @date 2024-01-11 05:46:42
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 问题件类型 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisProblemType;
/**
* @ClassName EmisProblemTypeMapper
* @Description <p> 问题件类型 Mapper 接口 </p>
* @author linfso
* @date 2024-01-11 05:46:42
*/
public interface EmisProblemTypeMapper extends BaseMapper<EmisProblemType>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisProblemType selectEmisProblemTypeById(Integer id);
/**
* 查询列表
*
* @param emisProblemType
* @return 集合
*/
public List<EmisProblemType> selectEmisProblemTypeList(EmisProblemType emisProblemType);
/**
* 新增
*
* @param emisProblemType
* @return
*/
public int insertEmisProblemType(EmisProblemType emisProblemType);
/**
* 修改
*
* @param emisProblemType
* @return
*/
public int updateEmisProblemType(EmisProblemType emisProblemType);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisProblemTypeById(Integer id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisProblemTypeByIds(Integer[] ids);
}

View File

@ -1,84 +0,0 @@
/**
* @Project: emis
* @Title: EmisTmsScanRecordMapper.java
* @author linfso
* @date 2024-03-01 08:54:59
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> TMS扫描记录 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.oms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.oms.domain.EmisTmsScanRecord;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* @ClassName EmisTmsScanRecordMapper
* @Description <p> TMS扫描记录 Mapper 接口 </p>
* @author linfso
* @date 2024-03-01 08:54:59
*/
public interface EmisTmsScanRecordMapper extends BaseMapper<EmisTmsScanRecord>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisTmsScanRecord selectEmisTmsScanRecordById(Long id);
/**
* 查询列表
*
* @param emisTmsScanRecord
* @return 集合
*/
public List<EmisTmsScanRecord> selectEmisTmsScanRecordList(EmisTmsScanRecord emisTmsScanRecord);
/**
* 新增
*
* @param emisTmsScanRecord
* @return
*/
public int insertEmisTmsScanRecord(EmisTmsScanRecord emisTmsScanRecord);
/**
* 修改
*
* @param emisTmsScanRecord
* @return
*/
public int updateEmisTmsScanRecord(EmisTmsScanRecord emisTmsScanRecord);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisTmsScanRecordById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisTmsScanRecordByIds(Long[] ids);
public int checkSiteScanUnique(@Param("billCode") String billCode, @Param("scanType") String scanType, @Param("scanSiteCode") String scanSiteCode, @Param("scanDate") Date scanDate);
public List<EmisTmsScanRecord> selectTraceListByBillCode(String billCode);
}

View File

@ -2,6 +2,7 @@ package com.xdadan.erp.oms.service.svc;
import com.xdadan.erp.oms.common.core.domain.AjaxResult;
import com.xdadan.erp.oms.domain.EmisWaybill;
import com.xdadan.erp.oms.domain.vo.WaybillOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@ -41,4 +42,7 @@ public interface IRpcWaybillSvc {
public AjaxResult getWaybillDetailByOms(@RequestParam("billCode")String billCode,@RequestParam("orderSn") String orderSn);
@PostMapping(value = "/draftSubmitOrderByOms")
public AjaxResult draftSubmitOrderByOms(@RequestBody EmisWaybill emisWaybillSave);
}

View File

@ -1,131 +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.xdadan.erp.oms.mapper.EmisNotCalcAgingMapper">
<resultMap type="EmisNotCalcAging" id="EmisNotCalcAgingResult" extends="com.xdadan.erp.oms.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="country" column="country" />
<result property="noCalcDay" column="no_calc_day" />
<result property="status" column="status" />
<association property="countryName" column="country" select="com.xdadan.erp.oms.mapper.EmisBaseMapper.selectGroupCountryNameByCode"/>
</resultMap>
<sql id="selectEmisNotCalcAgingVo">
select id, country, country_name, no_calc_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_not_calc_aging
</sql>
<select id="getNotCalcAgingDays" resultType="integer">
select count(distinct no_calc_day) from emis_not_calc_aging where ( FIND_IN_SET('-1',country) or FIND_IN_SET(#{recieveCountry},country) or FIND_IN_SET(#{sendCountry},country) ) and no_calc_day <![CDATA[ >= ]]> #{startDate} and no_calc_day <![CDATA[ <= ]]> #{endDate}
</select>
<select id="selectEmisNotCalcAgingList" parameterType="EmisNotCalcAging" resultMap="EmisNotCalcAgingResult">
<include refid="selectEmisNotCalcAgingVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="countryName != null and countryName != ''"> and country_name like concat('%', #{countryName}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
<!-- <if test="noCalcDay != null "> and no_calc_day = #{noCalcDay}</if>-->
<if test="country != null and country != ''"> and (country = #{country} or country='-1')</if>
<if test="params.beginNoCalcDay != null and params.beginNoCalcDay != ''">
and no_calc_day <![CDATA[ >= ]]> #{params.beginNoCalcDay}
</if>
<if test="params.endNoCalcDay != null and params.endNoCalcDay != ''">
and no_calc_day <![CDATA[ <= ]]> #{params.endNoCalcDay}
</if>
</where>
order by create_time desc
</select>
<select id="selectEmisNotCalcAgingById" parameterType="Long" resultMap="EmisNotCalcAgingResult">
select id, country, country_name, no_calc_day, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_not_calc_aging a
where a.id = #{id}
</select>
<insert id="insertEmisNotCalcAging" parameterType="EmisNotCalcAging">
insert into emis_not_calc_aging
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="country != null and country != ''">country,</if>
<if test="countryName != null and countryName != ''">country_name,</if>
<if test="noCalcDay != null">no_calc_day,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="country != null and country != ''">#{country},</if>
<if test="countryName != null and countryName != ''">#{countryName},</if>
<if test="noCalcDay != null">#{noCalcDay},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisNotCalcAging" parameterType="EmisNotCalcAging">
update emis_not_calc_aging
<trim prefix="SET" suffixOverrides=",">
<if test="country != null and country != ''">country = #{country},</if>
<if test="countryName != null and countryName != ''">country_name = #{countryName},</if>
<if test="noCalcDay != null">no_calc_day = #{noCalcDay},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisNotCalcAgingById" parameterType="Long">
delete from emis_not_calc_aging where id = #{id}
</delete>
<delete id="deleteEmisNotCalcAgingByIds" parameterType="String">
delete from emis_not_calc_aging where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,156 +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.xdadan.erp.oms.mapper.EmisPrintTplMapper">
<resultMap type="EmisPrintTpl" id="EmisPrintTplResult" extends="com.xdadan.erp.oms.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="code" column="code" />
<result property="name" column="name" />
<result property="version" column="version" />
<result property="isPublic" column="is_public" />
<result property="merchId" column="merch_id" />
<result property="expressType" column="express_type" />
<result property="tplData" column="tpl_data" />
<result property="tplEncData" column="tpl_enc_data" />
<result property="tplPdfData" column="tpl_pdf_data" />
<result property="tplPicUrl" column="tpl_pic_url" />
<result property="orderNum" column="order_num" />
<result property="status" column="status" />
</resultMap>
<sql id="selectEmisPrintTplVo">
select id, code, name, version, is_public, merch_id, express_type, tpl_data, tpl_pdf_data, tpl_pic_url, order_num, status, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_print_tpl
</sql>
<select id="selectEmisPrintTplList" parameterType="EmisPrintTpl" resultMap="EmisPrintTplResult">
<include refid="selectEmisPrintTplVo"/>
<where>
del_flag='0'
<if test="id != null "> and id = #{id}</if>
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="version != null and version != ''"> and version like concat('%', #{version}, '%')</if>
<if test="isPublic != null "> and is_public = #{isPublic}</if>
<if test="merchId != null "> and merch_id = #{merchId}</if>
<if test="expressType != null and expressType != ''"> and express_type like concat('%', #{expressType}, '%')</if>
<if test="tplData != null and tplData != ''"> and tpl_data like concat('%', #{tplData}, '%')</if>
<if test="tplEncData != null and tplEncData != ''"> and tpl_enc_data like concat('%', #{tplEncData}, '%')</if>
<if test="tplPdfData != null and tplPdfData != ''"> and tpl_pdf_data like concat('%', #{tplPdfData}, '%')</if>
<if test="tplPicUrl != null and tplPicUrl != ''"> and tpl_pic_url like concat('%', #{tplPicUrl}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="status != null "> and status = #{status}</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectPrintTplListByPrinter" parameterType="EmisPrintTpl" resultMap="EmisPrintTplResult">
select id, code, name, version,express_type,tpl_enc_data from emis_print_tpl
where del_flag='0' and status=1
order by order_num desc
</select>
<select id="selectEmisPrintTplById" parameterType="Long" resultMap="EmisPrintTplResult">
select id, code, name, version, is_public, merch_id, express_type, tpl_data, tpl_enc_data, tpl_pdf_data, tpl_pic_url, order_num, status, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site
from emis_print_tpl a
where a.id = #{id}
</select>
<insert id="insertEmisPrintTpl" parameterType="EmisPrintTpl">
insert into emis_print_tpl
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="code != null and code != ''">code,</if>
<if test="name != null and name != ''">name,</if>
<if test="version != null and version != ''">version,</if>
<if test="isPublic != null">is_public,</if>
<if test="merchId != null">merch_id,</if>
<if test="expressType != null and expressType != ''">express_type,</if>
<if test="tplData != null and tplData != ''">tpl_data,</if>
<if test="tplEncData != null and tplEncData != ''">tpl_enc_data,</if>
<if test="tplPdfData != null and tplPdfData != ''">tpl_pdf_data,</if>
<if test="tplPicUrl != null and tplPicUrl != ''">tpl_pic_url,</if>
<if test="orderNum != null">order_num,</if>
<if test="status != null">status,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="code != null and code != ''">#{code},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="version != null and version != ''">#{version},</if>
<if test="isPublic != null">#{isPublic},</if>
<if test="merchId != null">#{merchId},</if>
<if test="expressType != null and expressType != ''">#{expressType},</if>
<if test="tplData != null and tplData != ''">#{tplData},</if>
<if test="tplEncData != null and tplEncData != ''">#{tplEncData},</if>
<if test="tplPdfData != null and tplPdfData != ''">#{tplPdfData},</if>
<if test="tplPicUrl != null and tplPicUrl != ''">#{tplPicUrl},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisPrintTpl" parameterType="EmisPrintTpl">
update emis_print_tpl
<trim prefix="SET" suffixOverrides=",">
<if test="code != null and code != ''">code = #{code},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="version != null and version != ''">version = #{version},</if>
<if test="isPublic != null">is_public = #{isPublic},</if>
<if test="merchId != null">merch_id = #{merchId},</if>
<if test="expressType != null and expressType != ''">express_type = #{expressType},</if>
<if test="tplData != null and tplData != ''">tpl_data = #{tplData},</if>
<if test="tplEncData != null and tplEncData != ''">tpl_enc_data = #{tplEncData},</if>
<if test="tplPdfData != null and tplPdfData != ''">tpl_pdf_data = #{tplPdfData},</if>
<if test="tplPicUrl != null and tplPicUrl != ''">tpl_pic_url = #{tplPicUrl},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisPrintTplById" parameterType="Long">
delete from emis_print_tpl where id = #{id}
</delete>
<delete id="deleteEmisPrintTplByIds" parameterType="String">
delete from emis_print_tpl where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,109 +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.xdadan.erp.oms.mapper.EmisPrintTplRelMapper">
<resultMap type="EmisPrintTplRel" id="EmisPrintTplRelResult" extends="com.xdadan.erp.oms.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="merchId" column="merch_id" />
<result property="tplId" column="tpl_id" />
<result property="tplCode" column="tpl_code" />
<result property="tplName" column="tpl_name" />
</resultMap>
<sql id="selectEmisPrintTplRelVo">
select id, merch_id, tpl_id, tpl_code, tpl_name, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_print_tpl_rel
</sql>
<select id="selectEmisPrintTplRelList" parameterType="EmisPrintTplRel" resultMap="EmisPrintTplRelResult">
<include refid="selectEmisPrintTplRelVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="merchId != null and merchId != ''"> and merch_id like concat('%', #{merchId}, '%')</if>
<if test="tplId != null "> and tpl_id = #{tplId}</if>
<if test="tplCode != null and tplCode != ''"> and tpl_code like concat('%', #{tplCode}, '%')</if>
<if test="tplName != null and tplName != ''"> and tpl_name like concat('%', #{tplName}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisPrintTplRelById" parameterType="Long" resultMap="EmisPrintTplRelResult">
select id, merch_id, tpl_id, tpl_code, tpl_name, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site
from emis_print_tpl_rel a
where a.id = #{id}
</select>
<insert id="insertEmisPrintTplRel" parameterType="EmisPrintTplRel">
insert into emis_print_tpl_rel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="merchId != null and merchId != ''">merch_id,</if>
<if test="tplId != null">tpl_id,</if>
<if test="tplCode != null and tplCode != ''">tpl_code,</if>
<if test="tplName != null and tplName != ''">tpl_name,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="merchId != null and merchId != ''">#{merchId},</if>
<if test="tplId != null">#{tplId},</if>
<if test="tplCode != null and tplCode != ''">#{tplCode},</if>
<if test="tplName != null and tplName != ''">#{tplName},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisPrintTplRel" parameterType="EmisPrintTplRel">
update emis_print_tpl_rel
<trim prefix="SET" suffixOverrides=",">
<if test="merchId != null and merchId != ''">merch_id = #{merchId},</if>
<if test="tplId != null">tpl_id = #{tplId},</if>
<if test="tplCode != null and tplCode != ''">tpl_code = #{tplCode},</if>
<if test="tplName != null and tplName != ''">tpl_name = #{tplName},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisPrintTplRelById" parameterType="Long">
delete from emis_print_tpl_rel where id = #{id}
</delete>
<delete id="deleteEmisPrintTplRelByIds" parameterType="String">
delete from emis_print_tpl_rel where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,157 +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.xdadan.erp.oms.mapper.EmisProblemTypeMapper">
<resultMap type="EmisProblemType" id="EmisProblemTypeResult" extends="com.xdadan.erp.oms.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="typeCode" column="type_code" />
<result property="typeName" column="type_name" />
<result property="typeNameEn" column="type_name_en" />
<result property="isSendSms" column="is_send_sms" />
<result property="objectType" column="object_type" />
<result property="delayDay" column="delay_day" />
<result property="status" column="status" />
<result property="orderNum" column="order_num" />
</resultMap>
<sql id="selectEmisProblemTypeVo">
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time,create_site,update_site from emis_problem_type
</sql>
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
<include refid="selectEmisProblemTypeVo"/>
<where>
del_flag='0'
<if test="id != null "> and id = #{id}</if>
<if test="typeCode != null and typeCode != ''"> and type_code like concat('%', #{typeCode}, '%')</if>
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
<if test="typeNameEn != null and typeNameEn != ''"> and type_name_en like concat('%', #{typeNameEn}, '%')</if>
<if test="isSendSms != null "> and is_send_sms = #{isSendSms}</if>
<if test="objectType != null and objectType != ''"> and object_type like concat('%', #{objectType}, '%')</if>
<if test="delayDay != null "> and delay_day = #{delayDay}</if>
<if test="status != null "> and status = #{status}</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by order_num desc
</select>
<select id="checkUnique" parameterType="EmisProblemType" resultType="int">
select count(1) from emis_problem_type
where del_flag='0'
and id = #{id}
and type_code = #{typeCode}
and type_name = #{typeName}
and type_name_en = #{typeNameEn}
and is_send_sms = #{isSendSms}
and object_type = #{objectType}
and delay_day = #{delayDay}
and status = #{status}
and order_num = #{orderNum}
and remark = #{remark}
and tenant_id = #{tenantId}
and del_flag = #{delFlag}
and create_by = #{createBy}
and create_time = #{createTime}
and update_by = #{updateBy}
and update_time = #{updateTime}
limit 1
</select>
<select id="selectEmisProblemTypeById" parameterType="Integer" resultMap="EmisProblemTypeResult">
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time,create_site,update_site
from emis_problem_type a
where a.id = #{id}
</select>
<insert id="insertEmisProblemType" parameterType="EmisProblemType" useGeneratedKeys="true" keyProperty="id">
insert into emis_problem_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="typeCode != null and typeCode != ''">type_code,</if>
<if test="typeName != null and typeName != ''">type_name,</if>
<if test="typeNameEn != null and typeNameEn != ''">type_name_en,</if>
<if test="isSendSms != null">is_send_sms,</if>
<if test="objectType != null and objectType != ''">object_type,</if>
<if test="delayDay != null">delay_day,</if>
<if test="status != null">status,</if>
<if test="orderNum != null">order_num,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="typeCode != null and typeCode != ''">#{typeCode},</if>
<if test="typeName != null and typeName != ''">#{typeName},</if>
<if test="typeNameEn != null and typeNameEn != ''">#{typeNameEn},</if>
<if test="isSendSms != null">#{isSendSms},</if>
<if test="objectType != null and objectType != ''">#{objectType},</if>
<if test="delayDay != null">#{delayDay},</if>
<if test="status != null">#{status},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisProblemType" parameterType="EmisProblemType">
update emis_problem_type
<trim prefix="SET" suffixOverrides=",">
<if test="typeCode != null and typeCode != ''">type_code = #{typeCode},</if>
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
<if test="typeNameEn != null and typeNameEn != ''">type_name_en = #{typeNameEn},</if>
<if test="isSendSms != null">is_send_sms = #{isSendSms},</if>
<if test="objectType != null and objectType != ''">object_type = #{objectType},</if>
<if test="delayDay != null">delay_day = #{delayDay},</if>
<if test="status != null">status = #{status},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisProblemTypeById" parameterType="Integer">
delete from emis_problem_type where id = #{id}
</delete>
<delete id="deleteEmisProblemTypeByIds" parameterType="String">
delete from emis_problem_type where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>