From e7d4f1255069331a80ee6909d7ac1e2340450811 Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Tue, 4 Mar 2025 15:54:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/pile/domain/PileMerchantInfo.java | 12 + .../pile/mapper/PileMerchantInfoMapper.java | 256 ++--- .../mapper/pile/PileMerchantInfoMapper.xml | 926 ++++++++++++++++-- 3 files changed, 1017 insertions(+), 177 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileMerchantInfo.java b/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileMerchantInfo.java index a3e8f968f..f733f4ad1 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileMerchantInfo.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/domain/PileMerchantInfo.java @@ -6,6 +6,8 @@ import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; +import java.math.BigDecimal; + /** * 充电桩运营商信息对象 pile_merchant_info * @@ -100,6 +102,16 @@ public class PileMerchantInfo extends BaseEntity { */ private String deptId; + /** + * 提现类型(1-手动提现, 2-自动提现) + */ + private String withdrawalType; + + /** + * 预留金额 + */ + private BigDecimal reservedAmount; + /** * 删除标识(0-正常;1-删除) */ diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileMerchantInfoMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileMerchantInfoMapper.java index e34633544..167af1fa0 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileMerchantInfoMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileMerchantInfoMapper.java @@ -1,145 +1,165 @@ package com.jsowell.pile.mapper; import com.jsowell.pile.domain.PileMerchantInfo; + +import java.util.List; + import com.jsowell.pile.dto.QueryMerchantInfoDTO; import com.jsowell.pile.vo.web.MerchantSettleInfoVO; import com.jsowell.pile.vo.web.PileMerchantInfoVO; import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; -import java.util.List; - -/** - * 充电桩运营商信息Mapper接口 - * - * @author jsowell - * @date 2022-08-27 - */ -@Repository public interface PileMerchantInfoMapper { - /** - * 查询充电桩运营商信息 - * - * @param id 充电桩运营商信息主键 - * @return 充电桩运营商信息 - */ - public PileMerchantInfo selectPileMerchantInfoById(Long id); + int deleteByPrimaryKey(Integer id); - /** - * 查询运营商列表 - * @param merchantIdList - * @return - */ - List selectPileMerchantInfoListByIdList(@Param("merchantIdList") List merchantIdList); + int insertSelective(PileMerchantInfo record); - /** - * 通过appid查询充电桩运营商信息 - * @param appId - * @return - */ - List selectPileMerchantInfoByWxAppId(String appId); + PileMerchantInfo selectByPrimaryKey(Integer id); - /** - * 查询充电桩运营商信息列表 - * - * @param pileMerchantInfo 充电桩运营商信息 - * @return 充电桩运营商信息集合 - */ - public List selectPileMerchantInfoList(PileMerchantInfo pileMerchantInfo); + int updateByPrimaryKeySelective(PileMerchantInfo record); - /** - * 新增充电桩运营商信息 - * - * @param pileMerchantInfo 充电桩运营商信息 - * @return 结果 - */ - public int insertPileMerchantInfo(PileMerchantInfo pileMerchantInfo); + int updateBatch(List list); - /** - * 修改充电桩运营商信息 - * - * @param pileMerchantInfo 充电桩运营商信息 - * @return 结果 - */ - public int updatePileMerchantInfo(PileMerchantInfo pileMerchantInfo); + int updateBatchSelective(List list); - /** - * 删除充电桩运营商信息 - * - * @param id 充电桩运营商信息主键 - * @return 结果 - */ - public int deletePileMerchantInfoById(Long id); + int batchInsert(@Param("list") List list); - /** - * 批量删除充电桩运营商信息 - * - * @param ids 需要删除的数据主键集合 - * @return 结果 - */ - public int deletePileMerchantInfoByIds(Long[] ids); + int insertOrUpdate(PileMerchantInfo record); - List queryByMerchantDeptIds(@Param("merchantDeptIds") List merchantDeptIds); + int insertOrUpdateSelective(PileMerchantInfo record); - /** - * 根据部门id查询基本信息 - * @param deptId - * @return - */ - PileMerchantInfo queryInfoByDeptId(@Param("deptId") String deptId); + /** + * 查询充电桩运营商信息 + * + * @param id 充电桩运营商信息主键 + * @return 充电桩运营商信息 + */ + PileMerchantInfo selectPileMerchantInfoById(Long id); - /** - * 通过ids查询信息列表 - * @param deptIds - * @return - */ - List queryInfoListByIds(@Param("deptIds") List deptIds); + /** + * 查询运营商列表 + * + * @param merchantIdList + * @return + */ + List selectPileMerchantInfoListByIdList(@Param("merchantIdList") List merchantIdList); - /** - * 查询一级运营商 - */ - List queryFirstLevelMerchantList(); + /** + * 通过appid查询充电桩运营商信息 + * + * @param appId + * @return + */ + List selectPileMerchantInfoByWxAppId(String appId); - /** - * 根据appid查询对应一级运营商id - * @param wxAppId - * @return - */ - PileMerchantInfo getFirstLevelMerchantByWxAppId(String wxAppId); + /** + * 查询充电桩运营商信息列表 + * + * @param pileMerchantInfo 充电桩运营商信息 + * @return 充电桩运营商信息集合 + */ + List selectPileMerchantInfoList(PileMerchantInfo pileMerchantInfo); - /** - * 根据支付宝appid查询对应一级运营商id - * @param alipayAppId - * @return - */ - PileMerchantInfo getFirstLevelMerchantByAlipayAppId(String alipayAppId); + /** + * 新增充电桩运营商信息 + * + * @param pileMerchantInfo 充电桩运营商信息 + * @return 结果 + */ + int insertPileMerchantInfo(PileMerchantInfo pileMerchantInfo); - /** - * 通过appid查询运营商部门id - * @param appId - * @return - */ + /** + * 修改充电桩运营商信息 + * + * @param pileMerchantInfo 充电桩运营商信息 + * @return 结果 + */ + int updatePileMerchantInfo(PileMerchantInfo pileMerchantInfo); + + /** + * 删除充电桩运营商信息 + * + * @param id 充电桩运营商信息主键 + * @return 结果 + */ + int deletePileMerchantInfoById(Long id); + + /** + * 批量删除充电桩运营商信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + int deletePileMerchantInfoByIds(Long[] ids); + + List queryByMerchantDeptIds(@Param("merchantDeptIds") List merchantDeptIds); + + /** + * 根据部门id查询基本信息 + * + * @param deptId + * @return + */ + PileMerchantInfo queryInfoByDeptId(@Param("deptId") String deptId); + + /** + * 通过ids查询信息列表 + * + * @param deptIds + * @return + */ + List queryInfoListByIds(@Param("deptIds") List deptIds); + + /** + * 查询一级运营商 + */ + List queryFirstLevelMerchantList(); + + /** + * 根据appid查询对应一级运营商id + * + * @param wxAppId + * @return + */ + PileMerchantInfo getFirstLevelMerchantByWxAppId(String wxAppId); + + /** + * 根据支付宝appid查询对应一级运营商id + * + * @param alipayAppId + * @return + */ + PileMerchantInfo getFirstLevelMerchantByAlipayAppId(String alipayAppId); + + /** + * 通过appid查询运营商部门id + * + * @param appId + * @return + */ List getDeptIdsByWxAppId(@Param("appId") String appId); - /** - * 后管财务中心页面运营商列表 - * @param dto - * @return - */ - List queryMerchantSettleInfoList(@Param("dto") QueryMerchantInfoDTO dto); + /** + * 后管财务中心页面运营商列表 + * + * @param dto + * @return + */ + List queryMerchantSettleInfoList(@Param("dto") QueryMerchantInfoDTO dto); - /** - * 根据一级运营商id查询自身信息以及下属二级运营商信息 - * @param firstMerchantId 一级运营商id - * @return - */ - List selectListByFirstMerchant(@Param("firstMerchantId") String firstMerchantId); + /** + * 根据一级运营商id查询自身信息以及下属二级运营商信息 + * + * @param firstMerchantId 一级运营商id + * @return + */ + List selectListByFirstMerchant(@Param("firstMerchantId") String firstMerchantId); - /** - * 根据站点id查询运营商基本信息 - * @param stationId - * @return - */ - PileMerchantInfoVO queryMerchantInfoByStationId(String stationId); - -} + /** + * 根据站点id查询运营商基本信息 + * + * @param stationId + * @return + */ + PileMerchantInfoVO queryMerchantInfoByStationId(String stationId); +} \ No newline at end of file diff --git a/jsowell-pile/src/main/resources/mapper/pile/PileMerchantInfoMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/PileMerchantInfoMapper.xml index d0c279e1a..f1477202e 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/PileMerchantInfoMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/PileMerchantInfoMapper.xml @@ -1,63 +1,871 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - id, + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode, + organization_code, manager_name, manager_phone, service_phone, logo_url, app_id, + alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by, + update_time, del_flag + + + + + delete from pile_merchant_info + where id = #{id,jdbcType=INTEGER} + + + + insert into pile_merchant_info + + merchant_name, + + merchant_level, + + parent_id, + + address, - status, - delay_mode, - organization_code, - manager_name, - manager_phone, - service_phone, - logo_url, - app_id, - alipay_app_id, + + dept_id, + + + `status`, + + + delay_mode, + + + organization_code, + + + manager_name, + + + manager_phone, + + + service_phone, + + + logo_url, + + + app_id, + + + alipay_app_id, + + + withdrawal_type, + + + reserved_amount, + + create_by, + + create_time, + + update_by, + + update_time, - del_flag - + + + del_flag, + + + + + #{merchantName,jdbcType=VARCHAR}, + + + #{merchantLevel,jdbcType=VARCHAR}, + + + #{parentId,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{deptId,jdbcType=VARCHAR}, + + + #{status,jdbcType=CHAR}, + + + #{delayMode,jdbcType=VARCHAR}, + + + #{organizationCode,jdbcType=VARCHAR}, + + + #{managerName,jdbcType=VARCHAR}, + + + #{managerPhone,jdbcType=VARCHAR}, + + + #{servicePhone,jdbcType=VARCHAR}, + + + #{logoUrl,jdbcType=VARCHAR}, + + + #{appId,jdbcType=VARCHAR}, + + + #{alipayAppId,jdbcType=VARCHAR}, + + + #{withdrawalType,jdbcType=VARCHAR}, + + + #{reservedAmount,jdbcType=DECIMAL}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=CHAR}, + + + + + + update pile_merchant_info + + + merchant_name = #{merchantName,jdbcType=VARCHAR}, + + + merchant_level = #{merchantLevel,jdbcType=VARCHAR}, + + + parent_id = #{parentId,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + dept_id = #{deptId,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=CHAR}, + + + delay_mode = #{delayMode,jdbcType=VARCHAR}, + + + organization_code = #{organizationCode,jdbcType=VARCHAR}, + + + manager_name = #{managerName,jdbcType=VARCHAR}, + + + manager_phone = #{managerPhone,jdbcType=VARCHAR}, + + + service_phone = #{servicePhone,jdbcType=VARCHAR}, + + + logo_url = #{logoUrl,jdbcType=VARCHAR}, + + + app_id = #{appId,jdbcType=VARCHAR}, + + + alipay_app_id = #{alipayAppId,jdbcType=VARCHAR}, + + + withdrawal_type = #{withdrawalType,jdbcType=VARCHAR}, + + + reserved_amount = #{reservedAmount,jdbcType=DECIMAL}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + + update pile_merchant_info + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.merchantName,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.merchantLevel,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.parentId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.deptId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delayMode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.organizationCode,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.managerName,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.managerPhone,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.servicePhone,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.alipayAppId,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawalType,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.reservedAmount,jdbcType=DECIMAL} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} + + + + where id in + + #{item.id,jdbcType=INTEGER} + + + + + update pile_merchant_info + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.merchantName,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.merchantLevel,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.parentId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.deptId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delayMode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.organizationCode,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.managerName,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.managerPhone,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.servicePhone,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.alipayAppId,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawalType,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.reservedAmount,jdbcType=DECIMAL} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR} + + + + + where id in + + #{item.id,jdbcType=INTEGER} + + + + + insert into pile_merchant_info + (merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode, + organization_code, manager_name, manager_phone, service_phone, logo_url, app_id, + alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by, + update_time, del_flag) + values + + (#{item.merchantName,jdbcType=VARCHAR}, #{item.merchantLevel,jdbcType=VARCHAR}, #{item.parentId,jdbcType=VARCHAR}, + #{item.address,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR}, + #{item.delayMode,jdbcType=VARCHAR}, #{item.organizationCode,jdbcType=VARCHAR}, + #{item.managerName,jdbcType=VARCHAR}, #{item.managerPhone,jdbcType=VARCHAR}, #{item.servicePhone,jdbcType=VARCHAR}, + #{item.logoUrl,jdbcType=VARCHAR}, #{item.appId,jdbcType=VARCHAR}, #{item.alipayAppId,jdbcType=VARCHAR}, + #{item.withdrawalType,jdbcType=VARCHAR}, #{item.reservedAmount,jdbcType=DECIMAL}, + #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, + #{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR}) + + + + + insert into pile_merchant_info + + + id, + + merchant_name, + merchant_level, + parent_id, + address, + dept_id, + `status`, + delay_mode, + organization_code, + manager_name, + manager_phone, + service_phone, + logo_url, + app_id, + alipay_app_id, + withdrawal_type, + reserved_amount, + create_by, + create_time, + update_by, + update_time, + del_flag, + + values + + + #{id,jdbcType=INTEGER}, + + #{merchantName,jdbcType=VARCHAR}, + #{merchantLevel,jdbcType=VARCHAR}, + #{parentId,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, + #{deptId,jdbcType=VARCHAR}, + #{status,jdbcType=CHAR}, + #{delayMode,jdbcType=VARCHAR}, + #{organizationCode,jdbcType=VARCHAR}, + #{managerName,jdbcType=VARCHAR}, + #{managerPhone,jdbcType=VARCHAR}, + #{servicePhone,jdbcType=VARCHAR}, + #{logoUrl,jdbcType=VARCHAR}, + #{appId,jdbcType=VARCHAR}, + #{alipayAppId,jdbcType=VARCHAR}, + #{withdrawalType,jdbcType=VARCHAR}, + #{reservedAmount,jdbcType=DECIMAL}, + #{createBy,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, + #{delFlag,jdbcType=CHAR}, + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + merchant_name = #{merchantName,jdbcType=VARCHAR}, + merchant_level = #{merchantLevel,jdbcType=VARCHAR}, + parent_id = #{parentId,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + dept_id = #{deptId,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=CHAR}, + delay_mode = #{delayMode,jdbcType=VARCHAR}, + organization_code = #{organizationCode,jdbcType=VARCHAR}, + manager_name = #{managerName,jdbcType=VARCHAR}, + manager_phone = #{managerPhone,jdbcType=VARCHAR}, + service_phone = #{servicePhone,jdbcType=VARCHAR}, + logo_url = #{logoUrl,jdbcType=VARCHAR}, + app_id = #{appId,jdbcType=VARCHAR}, + alipay_app_id = #{alipayAppId,jdbcType=VARCHAR}, + withdrawal_type = #{withdrawalType,jdbcType=VARCHAR}, + reserved_amount = #{reservedAmount,jdbcType=DECIMAL}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + del_flag = #{delFlag,jdbcType=CHAR}, + + + + + insert into pile_merchant_info + + + id, + + + merchant_name, + + + merchant_level, + + + parent_id, + + + address, + + + dept_id, + + + `status`, + + + delay_mode, + + + organization_code, + + + manager_name, + + + manager_phone, + + + service_phone, + + + logo_url, + + + app_id, + + + alipay_app_id, + + + withdrawal_type, + + + reserved_amount, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + values + + + #{id,jdbcType=INTEGER}, + + + #{merchantName,jdbcType=VARCHAR}, + + + #{merchantLevel,jdbcType=VARCHAR}, + + + #{parentId,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{deptId,jdbcType=VARCHAR}, + + + #{status,jdbcType=CHAR}, + + + #{delayMode,jdbcType=VARCHAR}, + + + #{organizationCode,jdbcType=VARCHAR}, + + + #{managerName,jdbcType=VARCHAR}, + + + #{managerPhone,jdbcType=VARCHAR}, + + + #{servicePhone,jdbcType=VARCHAR}, + + + #{logoUrl,jdbcType=VARCHAR}, + + + #{appId,jdbcType=VARCHAR}, + + + #{alipayAppId,jdbcType=VARCHAR}, + + + #{withdrawalType,jdbcType=VARCHAR}, + + + #{reservedAmount,jdbcType=DECIMAL}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=CHAR}, + + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + + merchant_name = #{merchantName,jdbcType=VARCHAR}, + + + merchant_level = #{merchantLevel,jdbcType=VARCHAR}, + + + parent_id = #{parentId,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + dept_id = #{deptId,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=CHAR}, + + + delay_mode = #{delayMode,jdbcType=VARCHAR}, + + + organization_code = #{organizationCode,jdbcType=VARCHAR}, + + + manager_name = #{managerName,jdbcType=VARCHAR}, + + + manager_phone = #{managerPhone,jdbcType=VARCHAR}, + + + service_phone = #{servicePhone,jdbcType=VARCHAR}, + + + logo_url = #{logoUrl,jdbcType=VARCHAR}, + + + app_id = #{appId,jdbcType=VARCHAR}, + + + alipay_app_id = #{alipayAppId,jdbcType=VARCHAR}, + + + withdrawal_type = #{withdrawalType,jdbcType=VARCHAR}, + + + reserved_amount = #{reservedAmount,jdbcType=DECIMAL}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + + + + + + + + + + + + + + + + + + + + + + + select - + from pile_merchant_info - + del_flag = '0' @@ -90,7 +898,7 @@ and dept_id in - + #{merchantDeptId} @@ -98,17 +906,17 @@ @@ -312,14 +1120,14 @@ update pile_merchant_info set del_flag = '1' where id in - + #{id} select - + from pile_merchant_info where del_flag = '0' and dept_id = #{deptId,jdbcType=VARCHAR} @@ -351,13 +1159,13 @@ select - + from pile_merchant_info where del_flag = '0' @@ -374,7 +1182,7 @@ select - + from pile_merchant_info where del_flag = '0' @@ -422,7 +1230,7 @@ where t1.del_flag = '0' and t1.dept_id in - + #{deptId,jdbcType=VARCHAR} @@ -441,7 +1249,7 @@