parent
fade043f67
commit
c176ee986f
@ -0,0 +1,163 @@ |
||||
package com.cweb.controller; |
||||
|
||||
import com.cweb.config.SysConfig; |
||||
import com.github.pagehelper.PageHelper; |
||||
import com.github.pagehelper.PageInfo; |
||||
import com.hfkj.common.exception.ErrorCode; |
||||
import com.hfkj.common.exception.ErrorHelp; |
||||
import com.hfkj.common.exception.SysCode; |
||||
import com.hfkj.common.security.UserCenter; |
||||
import com.hfkj.common.utils.DateUtil; |
||||
import com.hfkj.common.utils.ImageUtils; |
||||
import com.hfkj.common.utils.ResponseMsgUtil; |
||||
import com.hfkj.config.CommonSysConst; |
||||
import com.hfkj.entity.*; |
||||
import com.hfkj.model.*; |
||||
import com.hfkj.obs.HuaWeiYunObs; |
||||
import com.hfkj.service.*; |
||||
import com.hfkj.sysenum.*; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import net.coobird.thumbnailator.Thumbnails; |
||||
import org.apache.commons.collections4.MapUtils; |
||||
import org.apache.commons.lang3.StringUtils; |
||||
import org.slf4j.Logger; |
||||
import org.slf4j.LoggerFactory; |
||||
import org.springframework.stereotype.Controller; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
import org.springframework.web.multipart.MultipartHttpServletRequest; |
||||
import org.springframework.web.multipart.commons.CommonsMultipartResolver; |
||||
|
||||
import javax.annotation.Resource; |
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.File; |
||||
import java.io.FileOutputStream; |
||||
import java.util.*; |
||||
|
||||
@Controller |
||||
@Api(value = "商户结算信息") |
||||
@RequestMapping(value = "/merSettleAcct") |
||||
public class BsMerSettleAcctController { |
||||
|
||||
private static Logger log = LoggerFactory.getLogger(BsMerSettleAcctController.class); |
||||
|
||||
@Resource |
||||
private BsMerSettleAcctApplyService merSettleAcctApplyService; |
||||
|
||||
@Resource |
||||
private BsMerService merService; |
||||
@Resource |
||||
private CommonService commonService; |
||||
|
||||
@RequestMapping(value="/createApplyUpdateSettle",method = RequestMethod.POST) |
||||
@ResponseBody |
||||
@ApiOperation(value = "创建申请修改结算") |
||||
public ResponseData createApplyUpdateSettle(@RequestBody BsMerSettleAcctApply merSettleAcct) { |
||||
try { |
||||
if (merSettleAcct.getMerId() == null |
||||
|| merSettleAcct.getApplyType() == null |
||||
|| merSettleAcct.getSettleType() == null |
||||
|| StringUtils.isBlank(merSettleAcct.getBankCardNo()) |
||||
|| StringUtils.isBlank(merSettleAcct.getBankCardHolder()) |
||||
|| merSettleAcct.getOpenningBankAreaCode() == null |
||||
|| (merSettleAcct.getSettleType().equals(MerSettleType.status1.getNumber()) && StringUtils.isBlank(merSettleAcct.getOpenningBankLicenseUrl())) |
||||
|| (merSettleAcct.getSettleType().equals(MerSettleType.status2.getNumber()) && StringUtils.isBlank(merSettleAcct.getBankCardImg())) |
||||
|| (merSettleAcct.getSettleType().equals(MerSettleType.status3.getNumber()) && StringUtils.isBlank(merSettleAcct.getBankCardImg())) |
||||
) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
||||
} |
||||
|
||||
if (StringUtils.isBlank(merSettleAcct.getOpenningBankName()) |
||||
|| StringUtils.isBlank(merSettleAcct.getOpenningBankCode()) |
||||
|| StringUtils.isBlank(merSettleAcct.getClearingBankCode())) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
||||
} |
||||
|
||||
SecRegion openningBankArea = commonService.getRegionsById(merSettleAcct.getOpenningBankAreaCode()); |
||||
if (openningBankArea == null) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的的开户地区"); |
||||
} |
||||
|
||||
SecRegion openningBankCity = commonService.getRegionsById(openningBankArea.getParentId()); |
||||
if (openningBankCity == null) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的的开户地区"); |
||||
} |
||||
|
||||
SecRegion openningBankProvince = commonService.getRegionsById(openningBankCity.getParentId()); |
||||
if (openningBankProvince == null) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的的开户地区"); |
||||
} |
||||
merSettleAcct.setOpenningBankAreaName(openningBankArea.getRegionName()); |
||||
merSettleAcct.setOpenningBankCityCode(openningBankCity.getRegionId()); |
||||
merSettleAcct.setOpenningBankCityName(openningBankCity.getRegionName()); |
||||
merSettleAcct.setOpenningBankProvinceCode(openningBankProvince.getRegionId()); |
||||
merSettleAcct.setOpenningBankProvinceName(openningBankProvince.getRegionName()); |
||||
|
||||
// 查询商户详情
|
||||
BsMer bsMer = merService.getMer(merSettleAcct.getMerId()); |
||||
if (bsMer == null) { |
||||
log.error("configMerBasis error!","未知商户"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知商户"); |
||||
} |
||||
if ((!bsMer.getMerStatus().equals(MerStatusEnum.status2.getNumber()) |
||||
&& !bsMer.getMerStatus().equals(MerStatusEnum.status4.getNumber()))) { |
||||
log.error("configMerBasis error!","状态错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.STATUS_ERROR, ""); |
||||
} |
||||
|
||||
// 对私非法人结算
|
||||
if (merSettleAcct.getSettleType().equals(MerSettleType.status3.getNumber()) && |
||||
(StringUtils.isBlank(merSettleAcct.getSettleIdCardPortraitImg()) |
||||
|| StringUtils.isBlank(merSettleAcct.getSettleIdCardNationalEmblemImg()) |
||||
|| StringUtils.isBlank(merSettleAcct.getSettleIdCardName()) |
||||
|| StringUtils.isBlank(merSettleAcct.getSettleIdCardNo()) |
||||
|| StringUtils.isBlank(merSettleAcct.getSettleIdCardPeriodStart()) |
||||
|| StringUtils.isBlank(merSettleAcct.getSettleIdCardPeriodEnd()) |
||||
|| merSettleAcct.getSettleIdPeriodType() == null)) { |
||||
log.error("configMerBasis error!","参数错误"); |
||||
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "需要结算人身份证信息"); |
||||
} else { |
||||
// 对公结算、对私法人结算
|
||||
merSettleAcct.setSettleIdCardName(bsMer.getLarName()); |
||||
merSettleAcct.setSettleIdCardNo(bsMer.getLarIdCard()); |
||||
merSettleAcct.setSettleIdCardPortraitImg(bsMer.getLarIdCardPortraitImg()); |
||||
merSettleAcct.setSettleIdCardNationalEmblemImg(bsMer.getLarIdCardNationalEmblemImg()); |
||||
merSettleAcct.setSettleIdPeriodType(bsMer.getBlisPeriodType()); |
||||
merSettleAcct.setSettleIdCardPeriodStart(bsMer.getLarIdCardPeriodStart()); |
||||
merSettleAcct.setSettleIdCardPeriodEnd(bsMer.getLarIdCardPeriodEnd()); |
||||
} |
||||
|
||||
merSettleAcct.setApplyNo(System.currentTimeMillis()+""); |
||||
merSettleAcct.setStatus(MerSettleAcctApplyStatus.status1.getNumber()); |
||||
|
||||
|
||||
return ResponseMsgUtil.success("申请成功"); |
||||
|
||||
} catch (Exception e) { |
||||
log.error(e.getMessage(), e); |
||||
return ResponseMsgUtil.exception(e); |
||||
} |
||||
} |
||||
|
||||
@RequestMapping(value="/getMerDetail",method = RequestMethod.GET) |
||||
@ResponseBody |
||||
@ApiOperation(value = "查询商户详情") |
||||
public ResponseData getMerDetail(@RequestParam(value = "merId" , required = true) Long merId) { |
||||
try { |
||||
|
||||
return ResponseMsgUtil.success(merService.getMerDetail(merId)); |
||||
|
||||
} catch (Exception e) { |
||||
log.error(e.getMessage(), e); |
||||
return ResponseMsgUtil.exception(e); |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,227 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.BsMerSettleAcctApply; |
||||
import com.hfkj.entity.BsMerSettleAcctApplyExample; |
||||
import java.util.List; |
||||
import org.apache.ibatis.annotations.Delete; |
||||
import org.apache.ibatis.annotations.DeleteProvider; |
||||
import org.apache.ibatis.annotations.Insert; |
||||
import org.apache.ibatis.annotations.InsertProvider; |
||||
import org.apache.ibatis.annotations.Options; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Result; |
||||
import org.apache.ibatis.annotations.Results; |
||||
import org.apache.ibatis.annotations.Select; |
||||
import org.apache.ibatis.annotations.SelectProvider; |
||||
import org.apache.ibatis.annotations.Update; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface BsMerSettleAcctApplyMapper extends BsMerSettleAcctApplyMapperExt { |
||||
@SelectProvider(type=BsMerSettleAcctApplySqlProvider.class, method="countByExample") |
||||
long countByExample(BsMerSettleAcctApplyExample example); |
||||
|
||||
@DeleteProvider(type=BsMerSettleAcctApplySqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(BsMerSettleAcctApplyExample example); |
||||
|
||||
@Delete({ |
||||
"delete from bs_mer_settle_acct_apply", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int deleteByPrimaryKey(Long id); |
||||
|
||||
@Insert({ |
||||
"insert into bs_mer_settle_acct_apply (apply_no, apply_type, ", |
||||
"mer_id, settle_type, ", |
||||
"commission_img, bank_card_img, ", |
||||
"bank_name, bank_card_no, ", |
||||
"bank_card_holder, openning_bank_city_code, ", |
||||
"openning_bank_city_name, openning_bank_area_code, ", |
||||
"openning_bank_area_name, openning_bank_province_code, ", |
||||
"openning_bank_province_name, openning_bank_code, ", |
||||
"openning_bank_name, openning_bank_license_url, ", |
||||
"clearing_bank_code, settle_id_card_name, ", |
||||
"settle_id_card_no, settle_id_card_address, ", |
||||
"settle_id_card_portrait_img, settle_id_card_national_emblem_img, ", |
||||
"settle_id_period_type, settle_id_card_period_start, ", |
||||
"settle_id_card_period_end, electronic_pact, ", |
||||
"`status`, reject_reason, ", |
||||
"create_time, update_time, ", |
||||
"ext_1, ext_2, ext_3)", |
||||
"values (#{applyNo,jdbcType=VARCHAR}, #{applyType,jdbcType=INTEGER}, ", |
||||
"#{merId,jdbcType=BIGINT}, #{settleType,jdbcType=INTEGER}, ", |
||||
"#{commissionImg,jdbcType=VARCHAR}, #{bankCardImg,jdbcType=VARCHAR}, ", |
||||
"#{bankName,jdbcType=VARCHAR}, #{bankCardNo,jdbcType=VARCHAR}, ", |
||||
"#{bankCardHolder,jdbcType=VARCHAR}, #{openningBankCityCode,jdbcType=BIGINT}, ", |
||||
"#{openningBankCityName,jdbcType=VARCHAR}, #{openningBankAreaCode,jdbcType=BIGINT}, ", |
||||
"#{openningBankAreaName,jdbcType=VARCHAR}, #{openningBankProvinceCode,jdbcType=BIGINT}, ", |
||||
"#{openningBankProvinceName,jdbcType=VARCHAR}, #{openningBankCode,jdbcType=VARCHAR}, ", |
||||
"#{openningBankName,jdbcType=VARCHAR}, #{openningBankLicenseUrl,jdbcType=VARCHAR}, ", |
||||
"#{clearingBankCode,jdbcType=VARCHAR}, #{settleIdCardName,jdbcType=VARCHAR}, ", |
||||
"#{settleIdCardNo,jdbcType=VARCHAR}, #{settleIdCardAddress,jdbcType=VARCHAR}, ", |
||||
"#{settleIdCardPortraitImg,jdbcType=VARCHAR}, #{settleIdCardNationalEmblemImg,jdbcType=VARCHAR}, ", |
||||
"#{settleIdPeriodType,jdbcType=INTEGER}, #{settleIdCardPeriodStart,jdbcType=VARCHAR}, ", |
||||
"#{settleIdCardPeriodEnd,jdbcType=VARCHAR}, #{electronicPact,jdbcType=VARCHAR}, ", |
||||
"#{status,jdbcType=INTEGER}, #{rejectReason,jdbcType=VARCHAR}, ", |
||||
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
||||
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(BsMerSettleAcctApply record); |
||||
|
||||
@InsertProvider(type=BsMerSettleAcctApplySqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(BsMerSettleAcctApply record); |
||||
|
||||
@SelectProvider(type=BsMerSettleAcctApplySqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="apply_no", property="applyNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="apply_type", property="applyType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="settle_type", property="settleType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="commission_img", property="commissionImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_img", property="bankCardImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_no", property="bankCardNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_holder", property="bankCardHolder", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_city_code", property="openningBankCityCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_city_name", property="openningBankCityName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_area_code", property="openningBankAreaCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_area_name", property="openningBankAreaName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_province_code", property="openningBankProvinceCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_province_name", property="openningBankProvinceName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_code", property="openningBankCode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_name", property="openningBankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_license_url", property="openningBankLicenseUrl", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="clearing_bank_code", property="clearingBankCode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_name", property="settleIdCardName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_no", property="settleIdCardNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_address", property="settleIdCardAddress", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_portrait_img", property="settleIdCardPortraitImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_national_emblem_img", property="settleIdCardNationalEmblemImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_period_type", property="settleIdPeriodType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="settle_id_card_period_start", property="settleIdCardPeriodStart", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_period_end", property="settleIdCardPeriodEnd", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="electronic_pact", property="electronicPact", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="reject_reason", property="rejectReason", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
List<BsMerSettleAcctApply> selectByExample(BsMerSettleAcctApplyExample example); |
||||
|
||||
@Select({ |
||||
"select", |
||||
"id, apply_no, apply_type, mer_id, settle_type, commission_img, bank_card_img, ", |
||||
"bank_name, bank_card_no, bank_card_holder, openning_bank_city_code, openning_bank_city_name, ", |
||||
"openning_bank_area_code, openning_bank_area_name, openning_bank_province_code, ", |
||||
"openning_bank_province_name, openning_bank_code, openning_bank_name, openning_bank_license_url, ", |
||||
"clearing_bank_code, settle_id_card_name, settle_id_card_no, settle_id_card_address, ", |
||||
"settle_id_card_portrait_img, settle_id_card_national_emblem_img, settle_id_period_type, ", |
||||
"settle_id_card_period_start, settle_id_card_period_end, electronic_pact, `status`, ", |
||||
"reject_reason, create_time, update_time, ext_1, ext_2, ext_3", |
||||
"from bs_mer_settle_acct_apply", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||
@Result(column="apply_no", property="applyNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="apply_type", property="applyType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="settle_type", property="settleType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="commission_img", property="commissionImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_img", property="bankCardImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_no", property="bankCardNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="bank_card_holder", property="bankCardHolder", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_city_code", property="openningBankCityCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_city_name", property="openningBankCityName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_area_code", property="openningBankAreaCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_area_name", property="openningBankAreaName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_province_code", property="openningBankProvinceCode", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="openning_bank_province_name", property="openningBankProvinceName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_code", property="openningBankCode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_name", property="openningBankName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="openning_bank_license_url", property="openningBankLicenseUrl", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="clearing_bank_code", property="clearingBankCode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_name", property="settleIdCardName", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_no", property="settleIdCardNo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_address", property="settleIdCardAddress", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_portrait_img", property="settleIdCardPortraitImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_national_emblem_img", property="settleIdCardNationalEmblemImg", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_period_type", property="settleIdPeriodType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="settle_id_card_period_start", property="settleIdCardPeriodStart", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="settle_id_card_period_end", property="settleIdCardPeriodEnd", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="electronic_pact", property="electronicPact", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="reject_reason", property="rejectReason", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
||||
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
BsMerSettleAcctApply selectByPrimaryKey(Long id); |
||||
|
||||
@UpdateProvider(type=BsMerSettleAcctApplySqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") BsMerSettleAcctApply record, @Param("example") BsMerSettleAcctApplyExample example); |
||||
|
||||
@UpdateProvider(type=BsMerSettleAcctApplySqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") BsMerSettleAcctApply record, @Param("example") BsMerSettleAcctApplyExample example); |
||||
|
||||
@UpdateProvider(type=BsMerSettleAcctApplySqlProvider.class, method="updateByPrimaryKeySelective") |
||||
int updateByPrimaryKeySelective(BsMerSettleAcctApply record); |
||||
|
||||
@Update({ |
||||
"update bs_mer_settle_acct_apply", |
||||
"set apply_no = #{applyNo,jdbcType=VARCHAR},", |
||||
"apply_type = #{applyType,jdbcType=INTEGER},", |
||||
"mer_id = #{merId,jdbcType=BIGINT},", |
||||
"settle_type = #{settleType,jdbcType=INTEGER},", |
||||
"commission_img = #{commissionImg,jdbcType=VARCHAR},", |
||||
"bank_card_img = #{bankCardImg,jdbcType=VARCHAR},", |
||||
"bank_name = #{bankName,jdbcType=VARCHAR},", |
||||
"bank_card_no = #{bankCardNo,jdbcType=VARCHAR},", |
||||
"bank_card_holder = #{bankCardHolder,jdbcType=VARCHAR},", |
||||
"openning_bank_city_code = #{openningBankCityCode,jdbcType=BIGINT},", |
||||
"openning_bank_city_name = #{openningBankCityName,jdbcType=VARCHAR},", |
||||
"openning_bank_area_code = #{openningBankAreaCode,jdbcType=BIGINT},", |
||||
"openning_bank_area_name = #{openningBankAreaName,jdbcType=VARCHAR},", |
||||
"openning_bank_province_code = #{openningBankProvinceCode,jdbcType=BIGINT},", |
||||
"openning_bank_province_name = #{openningBankProvinceName,jdbcType=VARCHAR},", |
||||
"openning_bank_code = #{openningBankCode,jdbcType=VARCHAR},", |
||||
"openning_bank_name = #{openningBankName,jdbcType=VARCHAR},", |
||||
"openning_bank_license_url = #{openningBankLicenseUrl,jdbcType=VARCHAR},", |
||||
"clearing_bank_code = #{clearingBankCode,jdbcType=VARCHAR},", |
||||
"settle_id_card_name = #{settleIdCardName,jdbcType=VARCHAR},", |
||||
"settle_id_card_no = #{settleIdCardNo,jdbcType=VARCHAR},", |
||||
"settle_id_card_address = #{settleIdCardAddress,jdbcType=VARCHAR},", |
||||
"settle_id_card_portrait_img = #{settleIdCardPortraitImg,jdbcType=VARCHAR},", |
||||
"settle_id_card_national_emblem_img = #{settleIdCardNationalEmblemImg,jdbcType=VARCHAR},", |
||||
"settle_id_period_type = #{settleIdPeriodType,jdbcType=INTEGER},", |
||||
"settle_id_card_period_start = #{settleIdCardPeriodStart,jdbcType=VARCHAR},", |
||||
"settle_id_card_period_end = #{settleIdCardPeriodEnd,jdbcType=VARCHAR},", |
||||
"electronic_pact = #{electronicPact,jdbcType=VARCHAR},", |
||||
"`status` = #{status,jdbcType=INTEGER},", |
||||
"reject_reason = #{rejectReason,jdbcType=VARCHAR},", |
||||
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
||||
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
||||
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
||||
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
||||
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
||||
"where id = #{id,jdbcType=BIGINT}" |
||||
}) |
||||
int updateByPrimaryKey(BsMerSettleAcctApply record); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface BsMerSettleAcctApplyMapperExt { |
||||
} |
@ -0,0 +1,668 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.BsMerSettleAcctApply; |
||||
import com.hfkj.entity.BsMerSettleAcctApplyExample.Criteria; |
||||
import com.hfkj.entity.BsMerSettleAcctApplyExample.Criterion; |
||||
import com.hfkj.entity.BsMerSettleAcctApplyExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class BsMerSettleAcctApplySqlProvider { |
||||
|
||||
public String countByExample(BsMerSettleAcctApplyExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("bs_mer_settle_acct_apply"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(BsMerSettleAcctApplyExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("bs_mer_settle_acct_apply"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(BsMerSettleAcctApply record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("bs_mer_settle_acct_apply"); |
||||
|
||||
if (record.getApplyNo() != null) { |
||||
sql.VALUES("apply_no", "#{applyNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getApplyType() != null) { |
||||
sql.VALUES("apply_type", "#{applyType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.VALUES("mer_id", "#{merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getSettleType() != null) { |
||||
sql.VALUES("settle_type", "#{settleType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getCommissionImg() != null) { |
||||
sql.VALUES("commission_img", "#{commissionImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardImg() != null) { |
||||
sql.VALUES("bank_card_img", "#{bankCardImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.VALUES("bank_name", "#{bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardNo() != null) { |
||||
sql.VALUES("bank_card_no", "#{bankCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardHolder() != null) { |
||||
sql.VALUES("bank_card_holder", "#{bankCardHolder,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityCode() != null) { |
||||
sql.VALUES("openning_bank_city_code", "#{openningBankCityCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityName() != null) { |
||||
sql.VALUES("openning_bank_city_name", "#{openningBankCityName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaCode() != null) { |
||||
sql.VALUES("openning_bank_area_code", "#{openningBankAreaCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaName() != null) { |
||||
sql.VALUES("openning_bank_area_name", "#{openningBankAreaName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceCode() != null) { |
||||
sql.VALUES("openning_bank_province_code", "#{openningBankProvinceCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceName() != null) { |
||||
sql.VALUES("openning_bank_province_name", "#{openningBankProvinceName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCode() != null) { |
||||
sql.VALUES("openning_bank_code", "#{openningBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankName() != null) { |
||||
sql.VALUES("openning_bank_name", "#{openningBankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankLicenseUrl() != null) { |
||||
sql.VALUES("openning_bank_license_url", "#{openningBankLicenseUrl,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getClearingBankCode() != null) { |
||||
sql.VALUES("clearing_bank_code", "#{clearingBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardName() != null) { |
||||
sql.VALUES("settle_id_card_name", "#{settleIdCardName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNo() != null) { |
||||
sql.VALUES("settle_id_card_no", "#{settleIdCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardAddress() != null) { |
||||
sql.VALUES("settle_id_card_address", "#{settleIdCardAddress,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPortraitImg() != null) { |
||||
sql.VALUES("settle_id_card_portrait_img", "#{settleIdCardPortraitImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNationalEmblemImg() != null) { |
||||
sql.VALUES("settle_id_card_national_emblem_img", "#{settleIdCardNationalEmblemImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdPeriodType() != null) { |
||||
sql.VALUES("settle_id_period_type", "#{settleIdPeriodType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodStart() != null) { |
||||
sql.VALUES("settle_id_card_period_start", "#{settleIdCardPeriodStart,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodEnd() != null) { |
||||
sql.VALUES("settle_id_card_period_end", "#{settleIdCardPeriodEnd,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getElectronicPact() != null) { |
||||
sql.VALUES("electronic_pact", "#{electronicPact,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getRejectReason() != null) { |
||||
sql.VALUES("reject_reason", "#{rejectReason,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(BsMerSettleAcctApplyExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("apply_no"); |
||||
sql.SELECT("apply_type"); |
||||
sql.SELECT("mer_id"); |
||||
sql.SELECT("settle_type"); |
||||
sql.SELECT("commission_img"); |
||||
sql.SELECT("bank_card_img"); |
||||
sql.SELECT("bank_name"); |
||||
sql.SELECT("bank_card_no"); |
||||
sql.SELECT("bank_card_holder"); |
||||
sql.SELECT("openning_bank_city_code"); |
||||
sql.SELECT("openning_bank_city_name"); |
||||
sql.SELECT("openning_bank_area_code"); |
||||
sql.SELECT("openning_bank_area_name"); |
||||
sql.SELECT("openning_bank_province_code"); |
||||
sql.SELECT("openning_bank_province_name"); |
||||
sql.SELECT("openning_bank_code"); |
||||
sql.SELECT("openning_bank_name"); |
||||
sql.SELECT("openning_bank_license_url"); |
||||
sql.SELECT("clearing_bank_code"); |
||||
sql.SELECT("settle_id_card_name"); |
||||
sql.SELECT("settle_id_card_no"); |
||||
sql.SELECT("settle_id_card_address"); |
||||
sql.SELECT("settle_id_card_portrait_img"); |
||||
sql.SELECT("settle_id_card_national_emblem_img"); |
||||
sql.SELECT("settle_id_period_type"); |
||||
sql.SELECT("settle_id_card_period_start"); |
||||
sql.SELECT("settle_id_card_period_end"); |
||||
sql.SELECT("electronic_pact"); |
||||
sql.SELECT("`status`"); |
||||
sql.SELECT("reject_reason"); |
||||
sql.SELECT("create_time"); |
||||
sql.SELECT("update_time"); |
||||
sql.SELECT("ext_1"); |
||||
sql.SELECT("ext_2"); |
||||
sql.SELECT("ext_3"); |
||||
sql.FROM("bs_mer_settle_acct_apply"); |
||||
applyWhere(sql, example, false); |
||||
|
||||
if (example != null && example.getOrderByClause() != null) { |
||||
sql.ORDER_BY(example.getOrderByClause()); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExampleSelective(Map<String, Object> parameter) { |
||||
BsMerSettleAcctApply record = (BsMerSettleAcctApply) parameter.get("record"); |
||||
BsMerSettleAcctApplyExample example = (BsMerSettleAcctApplyExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_settle_acct_apply"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getApplyNo() != null) { |
||||
sql.SET("apply_no = #{record.applyNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getApplyType() != null) { |
||||
sql.SET("apply_type = #{record.applyType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getSettleType() != null) { |
||||
sql.SET("settle_type = #{record.settleType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getCommissionImg() != null) { |
||||
sql.SET("commission_img = #{record.commissionImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardImg() != null) { |
||||
sql.SET("bank_card_img = #{record.bankCardImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardNo() != null) { |
||||
sql.SET("bank_card_no = #{record.bankCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardHolder() != null) { |
||||
sql.SET("bank_card_holder = #{record.bankCardHolder,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityCode() != null) { |
||||
sql.SET("openning_bank_city_code = #{record.openningBankCityCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityName() != null) { |
||||
sql.SET("openning_bank_city_name = #{record.openningBankCityName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaCode() != null) { |
||||
sql.SET("openning_bank_area_code = #{record.openningBankAreaCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaName() != null) { |
||||
sql.SET("openning_bank_area_name = #{record.openningBankAreaName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceCode() != null) { |
||||
sql.SET("openning_bank_province_code = #{record.openningBankProvinceCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceName() != null) { |
||||
sql.SET("openning_bank_province_name = #{record.openningBankProvinceName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCode() != null) { |
||||
sql.SET("openning_bank_code = #{record.openningBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankName() != null) { |
||||
sql.SET("openning_bank_name = #{record.openningBankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankLicenseUrl() != null) { |
||||
sql.SET("openning_bank_license_url = #{record.openningBankLicenseUrl,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getClearingBankCode() != null) { |
||||
sql.SET("clearing_bank_code = #{record.clearingBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardName() != null) { |
||||
sql.SET("settle_id_card_name = #{record.settleIdCardName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNo() != null) { |
||||
sql.SET("settle_id_card_no = #{record.settleIdCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardAddress() != null) { |
||||
sql.SET("settle_id_card_address = #{record.settleIdCardAddress,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPortraitImg() != null) { |
||||
sql.SET("settle_id_card_portrait_img = #{record.settleIdCardPortraitImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNationalEmblemImg() != null) { |
||||
sql.SET("settle_id_card_national_emblem_img = #{record.settleIdCardNationalEmblemImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdPeriodType() != null) { |
||||
sql.SET("settle_id_period_type = #{record.settleIdPeriodType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodStart() != null) { |
||||
sql.SET("settle_id_card_period_start = #{record.settleIdCardPeriodStart,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodEnd() != null) { |
||||
sql.SET("settle_id_card_period_end = #{record.settleIdCardPeriodEnd,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getElectronicPact() != null) { |
||||
sql.SET("electronic_pact = #{record.electronicPact,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getRejectReason() != null) { |
||||
sql.SET("reject_reason = #{record.rejectReason,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_settle_acct_apply"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||
sql.SET("apply_no = #{record.applyNo,jdbcType=VARCHAR}"); |
||||
sql.SET("apply_type = #{record.applyType,jdbcType=INTEGER}"); |
||||
sql.SET("mer_id = #{record.merId,jdbcType=BIGINT}"); |
||||
sql.SET("settle_type = #{record.settleType,jdbcType=INTEGER}"); |
||||
sql.SET("commission_img = #{record.commissionImg,jdbcType=VARCHAR}"); |
||||
sql.SET("bank_card_img = #{record.bankCardImg,jdbcType=VARCHAR}"); |
||||
sql.SET("bank_name = #{record.bankName,jdbcType=VARCHAR}"); |
||||
sql.SET("bank_card_no = #{record.bankCardNo,jdbcType=VARCHAR}"); |
||||
sql.SET("bank_card_holder = #{record.bankCardHolder,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_city_code = #{record.openningBankCityCode,jdbcType=BIGINT}"); |
||||
sql.SET("openning_bank_city_name = #{record.openningBankCityName,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_area_code = #{record.openningBankAreaCode,jdbcType=BIGINT}"); |
||||
sql.SET("openning_bank_area_name = #{record.openningBankAreaName,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_province_code = #{record.openningBankProvinceCode,jdbcType=BIGINT}"); |
||||
sql.SET("openning_bank_province_name = #{record.openningBankProvinceName,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_code = #{record.openningBankCode,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_name = #{record.openningBankName,jdbcType=VARCHAR}"); |
||||
sql.SET("openning_bank_license_url = #{record.openningBankLicenseUrl,jdbcType=VARCHAR}"); |
||||
sql.SET("clearing_bank_code = #{record.clearingBankCode,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_name = #{record.settleIdCardName,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_no = #{record.settleIdCardNo,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_address = #{record.settleIdCardAddress,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_portrait_img = #{record.settleIdCardPortraitImg,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_national_emblem_img = #{record.settleIdCardNationalEmblemImg,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_period_type = #{record.settleIdPeriodType,jdbcType=INTEGER}"); |
||||
sql.SET("settle_id_card_period_start = #{record.settleIdCardPeriodStart,jdbcType=VARCHAR}"); |
||||
sql.SET("settle_id_card_period_end = #{record.settleIdCardPeriodEnd,jdbcType=VARCHAR}"); |
||||
sql.SET("electronic_pact = #{record.electronicPact,jdbcType=VARCHAR}"); |
||||
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||
sql.SET("reject_reason = #{record.rejectReason,jdbcType=VARCHAR}"); |
||||
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); |
||||
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); |
||||
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); |
||||
|
||||
BsMerSettleAcctApplyExample example = (BsMerSettleAcctApplyExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByPrimaryKeySelective(BsMerSettleAcctApply record) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("bs_mer_settle_acct_apply"); |
||||
|
||||
if (record.getApplyNo() != null) { |
||||
sql.SET("apply_no = #{applyNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getApplyType() != null) { |
||||
sql.SET("apply_type = #{applyType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getMerId() != null) { |
||||
sql.SET("mer_id = #{merId,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getSettleType() != null) { |
||||
sql.SET("settle_type = #{settleType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getCommissionImg() != null) { |
||||
sql.SET("commission_img = #{commissionImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardImg() != null) { |
||||
sql.SET("bank_card_img = #{bankCardImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankName() != null) { |
||||
sql.SET("bank_name = #{bankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardNo() != null) { |
||||
sql.SET("bank_card_no = #{bankCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBankCardHolder() != null) { |
||||
sql.SET("bank_card_holder = #{bankCardHolder,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityCode() != null) { |
||||
sql.SET("openning_bank_city_code = #{openningBankCityCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCityName() != null) { |
||||
sql.SET("openning_bank_city_name = #{openningBankCityName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaCode() != null) { |
||||
sql.SET("openning_bank_area_code = #{openningBankAreaCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankAreaName() != null) { |
||||
sql.SET("openning_bank_area_name = #{openningBankAreaName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceCode() != null) { |
||||
sql.SET("openning_bank_province_code = #{openningBankProvinceCode,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankProvinceName() != null) { |
||||
sql.SET("openning_bank_province_name = #{openningBankProvinceName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankCode() != null) { |
||||
sql.SET("openning_bank_code = #{openningBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankName() != null) { |
||||
sql.SET("openning_bank_name = #{openningBankName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getOpenningBankLicenseUrl() != null) { |
||||
sql.SET("openning_bank_license_url = #{openningBankLicenseUrl,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getClearingBankCode() != null) { |
||||
sql.SET("clearing_bank_code = #{clearingBankCode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardName() != null) { |
||||
sql.SET("settle_id_card_name = #{settleIdCardName,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNo() != null) { |
||||
sql.SET("settle_id_card_no = #{settleIdCardNo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardAddress() != null) { |
||||
sql.SET("settle_id_card_address = #{settleIdCardAddress,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPortraitImg() != null) { |
||||
sql.SET("settle_id_card_portrait_img = #{settleIdCardPortraitImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardNationalEmblemImg() != null) { |
||||
sql.SET("settle_id_card_national_emblem_img = #{settleIdCardNationalEmblemImg,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdPeriodType() != null) { |
||||
sql.SET("settle_id_period_type = #{settleIdPeriodType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodStart() != null) { |
||||
sql.SET("settle_id_card_period_start = #{settleIdCardPeriodStart,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSettleIdCardPeriodEnd() != null) { |
||||
sql.SET("settle_id_card_period_end = #{settleIdCardPeriodEnd,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getElectronicPact() != null) { |
||||
sql.SET("electronic_pact = #{electronicPact,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.SET("`status` = #{status,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getRejectReason() != null) { |
||||
sql.SET("reject_reason = #{rejectReason,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCreateTime() != null) { |
||||
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getUpdateTime() != null) { |
||||
sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}"); |
||||
} |
||||
|
||||
if (record.getExt1() != null) { |
||||
sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt2() != null) { |
||||
sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getExt3() != null) { |
||||
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
sql.WHERE("id = #{id,jdbcType=BIGINT}"); |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, BsMerSettleAcctApplyExample example, boolean includeExamplePhrase) { |
||||
if (example == null) { |
||||
return; |
||||
} |
||||
|
||||
String parmPhrase1; |
||||
String parmPhrase1_th; |
||||
String parmPhrase2; |
||||
String parmPhrase2_th; |
||||
String parmPhrase3; |
||||
String parmPhrase3_th; |
||||
if (includeExamplePhrase) { |
||||
parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} else { |
||||
parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; |
||||
parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; |
||||
parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; |
||||
parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; |
||||
parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; |
||||
parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; |
||||
} |
||||
|
||||
StringBuilder sb = new StringBuilder(); |
||||
List<Criteria> oredCriteria = example.getOredCriteria(); |
||||
boolean firstCriteria = true; |
||||
for (int i = 0; i < oredCriteria.size(); i++) { |
||||
Criteria criteria = oredCriteria.get(i); |
||||
if (criteria.isValid()) { |
||||
if (firstCriteria) { |
||||
firstCriteria = false; |
||||
} else { |
||||
sb.append(" or "); |
||||
} |
||||
|
||||
sb.append('('); |
||||
List<Criterion> criterions = criteria.getAllCriteria(); |
||||
boolean firstCriterion = true; |
||||
for (int j = 0; j < criterions.size(); j++) { |
||||
Criterion criterion = criterions.get(j); |
||||
if (firstCriterion) { |
||||
firstCriterion = false; |
||||
} else { |
||||
sb.append(" and "); |
||||
} |
||||
|
||||
if (criterion.isNoValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
} else if (criterion.isSingleValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isBetweenValue()) { |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); |
||||
} |
||||
} else if (criterion.isListValue()) { |
||||
sb.append(criterion.getCondition()); |
||||
sb.append(" ("); |
||||
List<?> listItems = (List<?>) criterion.getValue(); |
||||
boolean comma = false; |
||||
for (int k = 0; k < listItems.size(); k++) { |
||||
if (comma) { |
||||
sb.append(", "); |
||||
} else { |
||||
comma = true; |
||||
} |
||||
if (criterion.getTypeHandler() == null) { |
||||
sb.append(String.format(parmPhrase3, i, j, k)); |
||||
} else { |
||||
sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
sb.append(')'); |
||||
} |
||||
} |
||||
|
||||
if (sb.length() > 0) { |
||||
sql.WHERE(sb.toString()); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,616 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* bs_mer_settle_acct_apply |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class BsMerSettleAcctApply implements Serializable { |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 申请编号 |
||||
*/ |
||||
private String applyNo; |
||||
|
||||
/** |
||||
* 申请类型 1:修改结算 |
||||
*/ |
||||
private Integer applyType; |
||||
|
||||
/** |
||||
* 商户id |
||||
*/ |
||||
private Long merId; |
||||
|
||||
/** |
||||
* 结算类型 1:对公结算 2:对私法人结算 3:对私非法人结算 |
||||
*/ |
||||
private Integer settleType; |
||||
|
||||
/** |
||||
* 委托书 |
||||
*/ |
||||
private String commissionImg; |
||||
|
||||
/** |
||||
* 银行卡照片 |
||||
*/ |
||||
private String bankCardImg; |
||||
|
||||
/** |
||||
* 银行名称 |
||||
*/ |
||||
private String bankName; |
||||
|
||||
/** |
||||
* 银行卡号 |
||||
*/ |
||||
private String bankCardNo; |
||||
|
||||
/** |
||||
* 银行卡持有人 |
||||
*/ |
||||
private String bankCardHolder; |
||||
|
||||
/** |
||||
* 开户行市级编码 |
||||
*/ |
||||
private Long openningBankCityCode; |
||||
|
||||
/** |
||||
* 开户行市级名称 |
||||
*/ |
||||
private String openningBankCityName; |
||||
|
||||
/** |
||||
* 开会行区级编码 |
||||
*/ |
||||
private Long openningBankAreaCode; |
||||
|
||||
/** |
||||
* 开户行区级名称 |
||||
*/ |
||||
private String openningBankAreaName; |
||||
|
||||
/** |
||||
* 开户行省级编码 |
||||
*/ |
||||
private Long openningBankProvinceCode; |
||||
|
||||
/** |
||||
* 开户行省级名称 |
||||
*/ |
||||
private String openningBankProvinceName; |
||||
|
||||
/** |
||||
* 开户行号 |
||||
*/ |
||||
private String openningBankCode; |
||||
|
||||
/** |
||||
* 开户行名称 |
||||
*/ |
||||
private String openningBankName; |
||||
|
||||
/** |
||||
* 开户许可证照片 |
||||
*/ |
||||
private String openningBankLicenseUrl; |
||||
|
||||
/** |
||||
* 账户清算行号 |
||||
*/ |
||||
private String clearingBankCode; |
||||
|
||||
/** |
||||
* 结算人身份证姓名 |
||||
*/ |
||||
private String settleIdCardName; |
||||
|
||||
/** |
||||
* 结算人身份证号 |
||||
*/ |
||||
private String settleIdCardNo; |
||||
|
||||
/** |
||||
* 结算人身份证住址 |
||||
*/ |
||||
private String settleIdCardAddress; |
||||
|
||||
/** |
||||
* 结算人身份证人像面图片 |
||||
*/ |
||||
private String settleIdCardPortraitImg; |
||||
|
||||
/** |
||||
* 结算人身份证国徽面图片 |
||||
*/ |
||||
private String settleIdCardNationalEmblemImg; |
||||
|
||||
/** |
||||
* 结算人身份证有效期类型 1:有效期 2:长期 |
||||
*/ |
||||
private Integer settleIdPeriodType; |
||||
|
||||
/** |
||||
* 结算人身份证有效期开始时间 |
||||
*/ |
||||
private String settleIdCardPeriodStart; |
||||
|
||||
/** |
||||
* 结算人身份证有效期结束时间 |
||||
*/ |
||||
private String settleIdCardPeriodEnd; |
||||
|
||||
/** |
||||
* 电子协议 |
||||
*/ |
||||
private String electronicPact; |
||||
|
||||
/** |
||||
* 状态 0:删除 1:待提交 2:审核中 3:通过 4:驳回 |
||||
*/ |
||||
private Integer status; |
||||
|
||||
/** |
||||
* 驳回原因 |
||||
*/ |
||||
private String rejectReason; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
private Date createTime; |
||||
|
||||
/** |
||||
* 更新时间 |
||||
*/ |
||||
private Date updateTime; |
||||
|
||||
private String ext1; |
||||
|
||||
private String ext2; |
||||
|
||||
private String ext3; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public String getApplyNo() { |
||||
return applyNo; |
||||
} |
||||
|
||||
public void setApplyNo(String applyNo) { |
||||
this.applyNo = applyNo; |
||||
} |
||||
|
||||
public Integer getApplyType() { |
||||
return applyType; |
||||
} |
||||
|
||||
public void setApplyType(Integer applyType) { |
||||
this.applyType = applyType; |
||||
} |
||||
|
||||
public Long getMerId() { |
||||
return merId; |
||||
} |
||||
|
||||
public void setMerId(Long merId) { |
||||
this.merId = merId; |
||||
} |
||||
|
||||
public Integer getSettleType() { |
||||
return settleType; |
||||
} |
||||
|
||||
public void setSettleType(Integer settleType) { |
||||
this.settleType = settleType; |
||||
} |
||||
|
||||
public String getCommissionImg() { |
||||
return commissionImg; |
||||
} |
||||
|
||||
public void setCommissionImg(String commissionImg) { |
||||
this.commissionImg = commissionImg; |
||||
} |
||||
|
||||
public String getBankCardImg() { |
||||
return bankCardImg; |
||||
} |
||||
|
||||
public void setBankCardImg(String bankCardImg) { |
||||
this.bankCardImg = bankCardImg; |
||||
} |
||||
|
||||
public String getBankName() { |
||||
return bankName; |
||||
} |
||||
|
||||
public void setBankName(String bankName) { |
||||
this.bankName = bankName; |
||||
} |
||||
|
||||
public String getBankCardNo() { |
||||
return bankCardNo; |
||||
} |
||||
|
||||
public void setBankCardNo(String bankCardNo) { |
||||
this.bankCardNo = bankCardNo; |
||||
} |
||||
|
||||
public String getBankCardHolder() { |
||||
return bankCardHolder; |
||||
} |
||||
|
||||
public void setBankCardHolder(String bankCardHolder) { |
||||
this.bankCardHolder = bankCardHolder; |
||||
} |
||||
|
||||
public Long getOpenningBankCityCode() { |
||||
return openningBankCityCode; |
||||
} |
||||
|
||||
public void setOpenningBankCityCode(Long openningBankCityCode) { |
||||
this.openningBankCityCode = openningBankCityCode; |
||||
} |
||||
|
||||
public String getOpenningBankCityName() { |
||||
return openningBankCityName; |
||||
} |
||||
|
||||
public void setOpenningBankCityName(String openningBankCityName) { |
||||
this.openningBankCityName = openningBankCityName; |
||||
} |
||||
|
||||
public Long getOpenningBankAreaCode() { |
||||
return openningBankAreaCode; |
||||
} |
||||
|
||||
public void setOpenningBankAreaCode(Long openningBankAreaCode) { |
||||
this.openningBankAreaCode = openningBankAreaCode; |
||||
} |
||||
|
||||
public String getOpenningBankAreaName() { |
||||
return openningBankAreaName; |
||||
} |
||||
|
||||
public void setOpenningBankAreaName(String openningBankAreaName) { |
||||
this.openningBankAreaName = openningBankAreaName; |
||||
} |
||||
|
||||
public Long getOpenningBankProvinceCode() { |
||||
return openningBankProvinceCode; |
||||
} |
||||
|
||||
public void setOpenningBankProvinceCode(Long openningBankProvinceCode) { |
||||
this.openningBankProvinceCode = openningBankProvinceCode; |
||||
} |
||||
|
||||
public String getOpenningBankProvinceName() { |
||||
return openningBankProvinceName; |
||||
} |
||||
|
||||
public void setOpenningBankProvinceName(String openningBankProvinceName) { |
||||
this.openningBankProvinceName = openningBankProvinceName; |
||||
} |
||||
|
||||
public String getOpenningBankCode() { |
||||
return openningBankCode; |
||||
} |
||||
|
||||
public void setOpenningBankCode(String openningBankCode) { |
||||
this.openningBankCode = openningBankCode; |
||||
} |
||||
|
||||
public String getOpenningBankName() { |
||||
return openningBankName; |
||||
} |
||||
|
||||
public void setOpenningBankName(String openningBankName) { |
||||
this.openningBankName = openningBankName; |
||||
} |
||||
|
||||
public String getOpenningBankLicenseUrl() { |
||||
return openningBankLicenseUrl; |
||||
} |
||||
|
||||
public void setOpenningBankLicenseUrl(String openningBankLicenseUrl) { |
||||
this.openningBankLicenseUrl = openningBankLicenseUrl; |
||||
} |
||||
|
||||
public String getClearingBankCode() { |
||||
return clearingBankCode; |
||||
} |
||||
|
||||
public void setClearingBankCode(String clearingBankCode) { |
||||
this.clearingBankCode = clearingBankCode; |
||||
} |
||||
|
||||
public String getSettleIdCardName() { |
||||
return settleIdCardName; |
||||
} |
||||
|
||||
public void setSettleIdCardName(String settleIdCardName) { |
||||
this.settleIdCardName = settleIdCardName; |
||||
} |
||||
|
||||
public String getSettleIdCardNo() { |
||||
return settleIdCardNo; |
||||
} |
||||
|
||||
public void setSettleIdCardNo(String settleIdCardNo) { |
||||
this.settleIdCardNo = settleIdCardNo; |
||||
} |
||||
|
||||
public String getSettleIdCardAddress() { |
||||
return settleIdCardAddress; |
||||
} |
||||
|
||||
public void setSettleIdCardAddress(String settleIdCardAddress) { |
||||
this.settleIdCardAddress = settleIdCardAddress; |
||||
} |
||||
|
||||
public String getSettleIdCardPortraitImg() { |
||||
return settleIdCardPortraitImg; |
||||
} |
||||
|
||||
public void setSettleIdCardPortraitImg(String settleIdCardPortraitImg) { |
||||
this.settleIdCardPortraitImg = settleIdCardPortraitImg; |
||||
} |
||||
|
||||
public String getSettleIdCardNationalEmblemImg() { |
||||
return settleIdCardNationalEmblemImg; |
||||
} |
||||
|
||||
public void setSettleIdCardNationalEmblemImg(String settleIdCardNationalEmblemImg) { |
||||
this.settleIdCardNationalEmblemImg = settleIdCardNationalEmblemImg; |
||||
} |
||||
|
||||
public Integer getSettleIdPeriodType() { |
||||
return settleIdPeriodType; |
||||
} |
||||
|
||||
public void setSettleIdPeriodType(Integer settleIdPeriodType) { |
||||
this.settleIdPeriodType = settleIdPeriodType; |
||||
} |
||||
|
||||
public String getSettleIdCardPeriodStart() { |
||||
return settleIdCardPeriodStart; |
||||
} |
||||
|
||||
public void setSettleIdCardPeriodStart(String settleIdCardPeriodStart) { |
||||
this.settleIdCardPeriodStart = settleIdCardPeriodStart; |
||||
} |
||||
|
||||
public String getSettleIdCardPeriodEnd() { |
||||
return settleIdCardPeriodEnd; |
||||
} |
||||
|
||||
public void setSettleIdCardPeriodEnd(String settleIdCardPeriodEnd) { |
||||
this.settleIdCardPeriodEnd = settleIdCardPeriodEnd; |
||||
} |
||||
|
||||
public String getElectronicPact() { |
||||
return electronicPact; |
||||
} |
||||
|
||||
public void setElectronicPact(String electronicPact) { |
||||
this.electronicPact = electronicPact; |
||||
} |
||||
|
||||
public Integer getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public void setStatus(Integer status) { |
||||
this.status = status; |
||||
} |
||||
|
||||
public String getRejectReason() { |
||||
return rejectReason; |
||||
} |
||||
|
||||
public void setRejectReason(String rejectReason) { |
||||
this.rejectReason = rejectReason; |
||||
} |
||||
|
||||
public Date getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
public void setCreateTime(Date createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
public Date getUpdateTime() { |
||||
return updateTime; |
||||
} |
||||
|
||||
public void setUpdateTime(Date updateTime) { |
||||
this.updateTime = updateTime; |
||||
} |
||||
|
||||
public String getExt1() { |
||||
return ext1; |
||||
} |
||||
|
||||
public void setExt1(String ext1) { |
||||
this.ext1 = ext1; |
||||
} |
||||
|
||||
public String getExt2() { |
||||
return ext2; |
||||
} |
||||
|
||||
public void setExt2(String ext2) { |
||||
this.ext2 = ext2; |
||||
} |
||||
|
||||
public String getExt3() { |
||||
return ext3; |
||||
} |
||||
|
||||
public void setExt3(String ext3) { |
||||
this.ext3 = ext3; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
BsMerSettleAcctApply other = (BsMerSettleAcctApply) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getApplyNo() == null ? other.getApplyNo() == null : this.getApplyNo().equals(other.getApplyNo())) |
||||
&& (this.getApplyType() == null ? other.getApplyType() == null : this.getApplyType().equals(other.getApplyType())) |
||||
&& (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId())) |
||||
&& (this.getSettleType() == null ? other.getSettleType() == null : this.getSettleType().equals(other.getSettleType())) |
||||
&& (this.getCommissionImg() == null ? other.getCommissionImg() == null : this.getCommissionImg().equals(other.getCommissionImg())) |
||||
&& (this.getBankCardImg() == null ? other.getBankCardImg() == null : this.getBankCardImg().equals(other.getBankCardImg())) |
||||
&& (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName())) |
||||
&& (this.getBankCardNo() == null ? other.getBankCardNo() == null : this.getBankCardNo().equals(other.getBankCardNo())) |
||||
&& (this.getBankCardHolder() == null ? other.getBankCardHolder() == null : this.getBankCardHolder().equals(other.getBankCardHolder())) |
||||
&& (this.getOpenningBankCityCode() == null ? other.getOpenningBankCityCode() == null : this.getOpenningBankCityCode().equals(other.getOpenningBankCityCode())) |
||||
&& (this.getOpenningBankCityName() == null ? other.getOpenningBankCityName() == null : this.getOpenningBankCityName().equals(other.getOpenningBankCityName())) |
||||
&& (this.getOpenningBankAreaCode() == null ? other.getOpenningBankAreaCode() == null : this.getOpenningBankAreaCode().equals(other.getOpenningBankAreaCode())) |
||||
&& (this.getOpenningBankAreaName() == null ? other.getOpenningBankAreaName() == null : this.getOpenningBankAreaName().equals(other.getOpenningBankAreaName())) |
||||
&& (this.getOpenningBankProvinceCode() == null ? other.getOpenningBankProvinceCode() == null : this.getOpenningBankProvinceCode().equals(other.getOpenningBankProvinceCode())) |
||||
&& (this.getOpenningBankProvinceName() == null ? other.getOpenningBankProvinceName() == null : this.getOpenningBankProvinceName().equals(other.getOpenningBankProvinceName())) |
||||
&& (this.getOpenningBankCode() == null ? other.getOpenningBankCode() == null : this.getOpenningBankCode().equals(other.getOpenningBankCode())) |
||||
&& (this.getOpenningBankName() == null ? other.getOpenningBankName() == null : this.getOpenningBankName().equals(other.getOpenningBankName())) |
||||
&& (this.getOpenningBankLicenseUrl() == null ? other.getOpenningBankLicenseUrl() == null : this.getOpenningBankLicenseUrl().equals(other.getOpenningBankLicenseUrl())) |
||||
&& (this.getClearingBankCode() == null ? other.getClearingBankCode() == null : this.getClearingBankCode().equals(other.getClearingBankCode())) |
||||
&& (this.getSettleIdCardName() == null ? other.getSettleIdCardName() == null : this.getSettleIdCardName().equals(other.getSettleIdCardName())) |
||||
&& (this.getSettleIdCardNo() == null ? other.getSettleIdCardNo() == null : this.getSettleIdCardNo().equals(other.getSettleIdCardNo())) |
||||
&& (this.getSettleIdCardAddress() == null ? other.getSettleIdCardAddress() == null : this.getSettleIdCardAddress().equals(other.getSettleIdCardAddress())) |
||||
&& (this.getSettleIdCardPortraitImg() == null ? other.getSettleIdCardPortraitImg() == null : this.getSettleIdCardPortraitImg().equals(other.getSettleIdCardPortraitImg())) |
||||
&& (this.getSettleIdCardNationalEmblemImg() == null ? other.getSettleIdCardNationalEmblemImg() == null : this.getSettleIdCardNationalEmblemImg().equals(other.getSettleIdCardNationalEmblemImg())) |
||||
&& (this.getSettleIdPeriodType() == null ? other.getSettleIdPeriodType() == null : this.getSettleIdPeriodType().equals(other.getSettleIdPeriodType())) |
||||
&& (this.getSettleIdCardPeriodStart() == null ? other.getSettleIdCardPeriodStart() == null : this.getSettleIdCardPeriodStart().equals(other.getSettleIdCardPeriodStart())) |
||||
&& (this.getSettleIdCardPeriodEnd() == null ? other.getSettleIdCardPeriodEnd() == null : this.getSettleIdCardPeriodEnd().equals(other.getSettleIdCardPeriodEnd())) |
||||
&& (this.getElectronicPact() == null ? other.getElectronicPact() == null : this.getElectronicPact().equals(other.getElectronicPact())) |
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) |
||||
&& (this.getRejectReason() == null ? other.getRejectReason() == null : this.getRejectReason().equals(other.getRejectReason())) |
||||
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) |
||||
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) |
||||
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) |
||||
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) |
||||
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getApplyNo() == null) ? 0 : getApplyNo().hashCode()); |
||||
result = prime * result + ((getApplyType() == null) ? 0 : getApplyType().hashCode()); |
||||
result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode()); |
||||
result = prime * result + ((getSettleType() == null) ? 0 : getSettleType().hashCode()); |
||||
result = prime * result + ((getCommissionImg() == null) ? 0 : getCommissionImg().hashCode()); |
||||
result = prime * result + ((getBankCardImg() == null) ? 0 : getBankCardImg().hashCode()); |
||||
result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode()); |
||||
result = prime * result + ((getBankCardNo() == null) ? 0 : getBankCardNo().hashCode()); |
||||
result = prime * result + ((getBankCardHolder() == null) ? 0 : getBankCardHolder().hashCode()); |
||||
result = prime * result + ((getOpenningBankCityCode() == null) ? 0 : getOpenningBankCityCode().hashCode()); |
||||
result = prime * result + ((getOpenningBankCityName() == null) ? 0 : getOpenningBankCityName().hashCode()); |
||||
result = prime * result + ((getOpenningBankAreaCode() == null) ? 0 : getOpenningBankAreaCode().hashCode()); |
||||
result = prime * result + ((getOpenningBankAreaName() == null) ? 0 : getOpenningBankAreaName().hashCode()); |
||||
result = prime * result + ((getOpenningBankProvinceCode() == null) ? 0 : getOpenningBankProvinceCode().hashCode()); |
||||
result = prime * result + ((getOpenningBankProvinceName() == null) ? 0 : getOpenningBankProvinceName().hashCode()); |
||||
result = prime * result + ((getOpenningBankCode() == null) ? 0 : getOpenningBankCode().hashCode()); |
||||
result = prime * result + ((getOpenningBankName() == null) ? 0 : getOpenningBankName().hashCode()); |
||||
result = prime * result + ((getOpenningBankLicenseUrl() == null) ? 0 : getOpenningBankLicenseUrl().hashCode()); |
||||
result = prime * result + ((getClearingBankCode() == null) ? 0 : getClearingBankCode().hashCode()); |
||||
result = prime * result + ((getSettleIdCardName() == null) ? 0 : getSettleIdCardName().hashCode()); |
||||
result = prime * result + ((getSettleIdCardNo() == null) ? 0 : getSettleIdCardNo().hashCode()); |
||||
result = prime * result + ((getSettleIdCardAddress() == null) ? 0 : getSettleIdCardAddress().hashCode()); |
||||
result = prime * result + ((getSettleIdCardPortraitImg() == null) ? 0 : getSettleIdCardPortraitImg().hashCode()); |
||||
result = prime * result + ((getSettleIdCardNationalEmblemImg() == null) ? 0 : getSettleIdCardNationalEmblemImg().hashCode()); |
||||
result = prime * result + ((getSettleIdPeriodType() == null) ? 0 : getSettleIdPeriodType().hashCode()); |
||||
result = prime * result + ((getSettleIdCardPeriodStart() == null) ? 0 : getSettleIdCardPeriodStart().hashCode()); |
||||
result = prime * result + ((getSettleIdCardPeriodEnd() == null) ? 0 : getSettleIdCardPeriodEnd().hashCode()); |
||||
result = prime * result + ((getElectronicPact() == null) ? 0 : getElectronicPact().hashCode()); |
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); |
||||
result = prime * result + ((getRejectReason() == null) ? 0 : getRejectReason().hashCode()); |
||||
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); |
||||
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); |
||||
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); |
||||
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); |
||||
result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); |
||||
return result; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
StringBuilder sb = new StringBuilder(); |
||||
sb.append(getClass().getSimpleName()); |
||||
sb.append(" ["); |
||||
sb.append("Hash = ").append(hashCode()); |
||||
sb.append(", id=").append(id); |
||||
sb.append(", applyNo=").append(applyNo); |
||||
sb.append(", applyType=").append(applyType); |
||||
sb.append(", merId=").append(merId); |
||||
sb.append(", settleType=").append(settleType); |
||||
sb.append(", commissionImg=").append(commissionImg); |
||||
sb.append(", bankCardImg=").append(bankCardImg); |
||||
sb.append(", bankName=").append(bankName); |
||||
sb.append(", bankCardNo=").append(bankCardNo); |
||||
sb.append(", bankCardHolder=").append(bankCardHolder); |
||||
sb.append(", openningBankCityCode=").append(openningBankCityCode); |
||||
sb.append(", openningBankCityName=").append(openningBankCityName); |
||||
sb.append(", openningBankAreaCode=").append(openningBankAreaCode); |
||||
sb.append(", openningBankAreaName=").append(openningBankAreaName); |
||||
sb.append(", openningBankProvinceCode=").append(openningBankProvinceCode); |
||||
sb.append(", openningBankProvinceName=").append(openningBankProvinceName); |
||||
sb.append(", openningBankCode=").append(openningBankCode); |
||||
sb.append(", openningBankName=").append(openningBankName); |
||||
sb.append(", openningBankLicenseUrl=").append(openningBankLicenseUrl); |
||||
sb.append(", clearingBankCode=").append(clearingBankCode); |
||||
sb.append(", settleIdCardName=").append(settleIdCardName); |
||||
sb.append(", settleIdCardNo=").append(settleIdCardNo); |
||||
sb.append(", settleIdCardAddress=").append(settleIdCardAddress); |
||||
sb.append(", settleIdCardPortraitImg=").append(settleIdCardPortraitImg); |
||||
sb.append(", settleIdCardNationalEmblemImg=").append(settleIdCardNationalEmblemImg); |
||||
sb.append(", settleIdPeriodType=").append(settleIdPeriodType); |
||||
sb.append(", settleIdCardPeriodStart=").append(settleIdCardPeriodStart); |
||||
sb.append(", settleIdCardPeriodEnd=").append(settleIdCardPeriodEnd); |
||||
sb.append(", electronicPact=").append(electronicPact); |
||||
sb.append(", status=").append(status); |
||||
sb.append(", rejectReason=").append(rejectReason); |
||||
sb.append(", createTime=").append(createTime); |
||||
sb.append(", updateTime=").append(updateTime); |
||||
sb.append(", ext1=").append(ext1); |
||||
sb.append(", ext2=").append(ext2); |
||||
sb.append(", ext3=").append(ext3); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@ |
||||
package com.hfkj.service; |
||||
|
||||
import com.hfkj.entity.BsMerSettleAcctApply; |
||||
|
||||
/** |
||||
* @className: BsMerSettleAcctApplyService |
||||
* @author: HuRui |
||||
* @date: 2023/5/4 |
||||
**/ |
||||
public interface BsMerSettleAcctApplyService { |
||||
|
||||
/** |
||||
* 编辑数据 |
||||
* @param merSettleAcctApply |
||||
*/ |
||||
void editData(BsMerSettleAcctApply merSettleAcctApply); |
||||
|
||||
/** |
||||
* 修改结算申请 |
||||
* @param merSettleAcctApply |
||||
* @return |
||||
*/ |
||||
BsMerSettleAcctApply updateSettleAcctApply(BsMerSettleAcctApply merSettleAcctApply); |
||||
BsMerSettleAcctApply getApplyById(Long id); |
||||
|
||||
|
||||
} |
@ -0,0 +1,53 @@ |
||||
package com.hfkj.service.impl; |
||||
|
||||
import com.hfkj.channel.saas.SaasMerService; |
||||
import com.hfkj.dao.BsMerSettleAcctApplyMapper; |
||||
import com.hfkj.entity.BsMerSettleAcct; |
||||
import com.hfkj.entity.BsMerSettleAcctApply; |
||||
import com.hfkj.service.BsMerSettleAcctApplyService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @className: BsMerSettleAcctApplyServiceImpl |
||||
* @author: HuRui |
||||
* @date: 2023/5/6 |
||||
**/ |
||||
@Service("merSettleAcctApplyService") |
||||
public class BsMerSettleAcctApplyServiceImpl implements BsMerSettleAcctApplyService { |
||||
|
||||
@Resource |
||||
private BsMerSettleAcctApplyMapper merSettleAcctApplyMapper; |
||||
|
||||
@Resource |
||||
private SaasMerService saasMerService; |
||||
|
||||
@Override |
||||
public void editData(BsMerSettleAcctApply merSettleAcctApply) { |
||||
if (merSettleAcctApply.getId() == null) { |
||||
merSettleAcctApply.setCreateTime(new Date()); |
||||
merSettleAcctApply.setUpdateTime(new Date()); |
||||
merSettleAcctApplyMapper.insert(merSettleAcctApply); |
||||
} else { |
||||
merSettleAcctApply.setUpdateTime(new Date()); |
||||
merSettleAcctApplyMapper.updateByPrimaryKey(merSettleAcctApply); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public BsMerSettleAcctApply updateSettleAcctApply(BsMerSettleAcctApply merSettleAcctApply) { |
||||
editData(merSettleAcctApply); |
||||
|
||||
|
||||
|
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public BsMerSettleAcctApply getApplyById(Long id) { |
||||
return merSettleAcctApplyMapper.selectByPrimaryKey(id); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,53 @@ |
||||
package com.hfkj.sysenum; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 商户修改结算申请状态 |
||||
* @className: MerSettleAcctApply |
||||
* @author: HuRui |
||||
* @date: 2023/5/4 |
||||
**/ |
||||
public enum MerSettleAcctApplyStatus { |
||||
status0(0, "删除"), |
||||
status1(1, "待提交"), |
||||
status2(2, "审核中"), |
||||
status3(3, "通过"), |
||||
status4(3, "驳回"), |
||||
; |
||||
|
||||
private Integer number; |
||||
|
||||
private String name; |
||||
|
||||
|
||||
MerSettleAcctApplyStatus(int number, String name) { |
||||
this.number = number; |
||||
this.name = name; |
||||
} |
||||
|
||||
public static MerSettleAcctApplyStatus getDataByNumber(Integer number) { |
||||
for (MerSettleAcctApplyStatus ele : values()) { |
||||
if (Objects.equals(number,ele.getNumber())) { |
||||
return ele; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public Integer getNumber() { |
||||
return number; |
||||
} |
||||
|
||||
public void setNumber(Integer number) { |
||||
this.number = number; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
Loading…
Reference in new issue