收银点

This commit is contained in:
19991905653
2024-02-29 13:40:23 +08:00
parent 1215911372
commit d1b45d4fc8
2 changed files with 88 additions and 242 deletions

View File

@@ -196,152 +196,5 @@
pay_passage_name = #{payPassageName,jdbcType=VARCHAR} pay_passage_name = #{payPassageName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="userId" jdbcType="INTEGER" property="userid" />
<result column="bindingCode" jdbcType="VARCHAR" property="bindingcode" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
</resultMap>
<sql id="Base_Column_List">
id, logo, userId, bindingCode, name, code, address, remark, createTime, updateTime
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_pluss_merchant_cash_place
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_pluss_merchant_cash_place
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
insert into tb_pluss_merchant_cash_place (id, logo, userId,
bindingCode, name, code,
address, remark, createTime,
updateTime)
values (#{id,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER},
#{bindingcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
#{updatetime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
insert into tb_pluss_merchant_cash_place
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="logo != null">
logo,
</if>
<if test="userid != null">
userId,
</if>
<if test="bindingcode != null">
bindingCode,
</if>
<if test="name != null">
name,
</if>
<if test="code != null">
code,
</if>
<if test="address != null">
address,
</if>
<if test="remark != null">
remark,
</if>
<if test="createtime != null">
createTime,
</if>
<if test="updatetime != null">
updateTime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="userid != null">
#{userid,jdbcType=INTEGER},
</if>
<if test="bindingcode != null">
#{bindingcode,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
update tb_pluss_merchant_cash_place
<set>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="userid != null">
userId = #{userid,jdbcType=INTEGER},
</if>
<if test="bindingcode != null">
bindingCode = #{bindingcode,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updateTime = #{updatetime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
update tb_pluss_merchant_cash_place
set logo = #{logo,jdbcType=VARCHAR},
userId = #{userid,jdbcType=INTEGER},
bindingCode = #{bindingcode,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
code = #{code,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
updateTime = #{updatetime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper> </mapper>

View File

@@ -1768,6 +1768,7 @@ public class HfMerService {
} }
@Autowired @Autowired
TbPlussMerchantCashPlaceMapper merchantCashPlaceMapper; TbPlussMerchantCashPlaceMapper merchantCashPlaceMapper;
@Autowired @Autowired
@@ -1890,7 +1891,6 @@ public class HfMerService {
request.put("accountOpeningPermitId", map.get("accountOpeningPermitId"));//开户许可证图片 request.put("accountOpeningPermitId", map.get("accountOpeningPermitId"));//开户许可证图片
Map<String, Object> merchantResident = null; Map<String, Object> merchantResident = null;
try { try {
merchantResident = MerchantResident.auditProfileInfo(request); merchantResident = MerchantResident.auditProfileInfo(request);
@@ -2199,7 +2199,7 @@ public class HfMerService {
System.out.println(JSON.toJSONString(response)); System.out.println(JSON.toJSONString(response));
} }
public void feed(TbPlussMerchantBaseInfo baseInfo, TbPlussMerchantChannelStatus channelStatus,String wxLiteAppId,String wxPubAppId,String wxPubPath) { public void feed(TbPlussMerchantBaseInfo baseInfo, TbPlussMerchantChannelStatus channelStatus, String wxLiteAppId, String wxPubAppId, String wxPubPath) {
TbPlussAccount account = tbPlussAccountMapper.selectByUser(baseInfo.getUserid(), "D1"); TbPlussAccount account = tbPlussAccountMapper.selectByUser(baseInfo.getUserid(), "D1");
@@ -2386,34 +2386,34 @@ public class HfMerService {
} }
TbPlussMerchantHfInfo hfInfo= tbPlussMerchantHfInfoMapper.selectByMerchantCode(baseInfo.getMerchantcode()); TbPlussMerchantHfInfo hfInfo = tbPlussMerchantHfInfoMapper.selectByMerchantCode(baseInfo.getMerchantcode());
if(ObjectUtil.isEmpty(hfInfo)||hfInfo==null){ if (ObjectUtil.isEmpty(hfInfo) || hfInfo == null) {
hfInfo = new TbPlussMerchantHfInfo(); hfInfo = new TbPlussMerchantHfInfo();
JSONObject object=new JSONObject(); JSONObject object = new JSONObject();
if(ObjectUtil.isNotNull(wxLiteAppId)&&ObjectUtil.isNotEmpty(wxLiteAppId)){ if (ObjectUtil.isNotNull(wxLiteAppId) && ObjectUtil.isNotEmpty(wxLiteAppId)) {
JSONObject wxlite=new JSONObject(); JSONObject wxlite = new JSONObject();
wxlite.put("appid",wxLiteAppId); wxlite.put("appid", wxLiteAppId);
object.put("wx_lite",wxlite); object.put("wx_lite", wxlite);
} }
if(ObjectUtil.isNotNull(wxPubAppId)&&ObjectUtil.isNotEmpty(wxPubAppId) if (ObjectUtil.isNotNull(wxPubAppId) && ObjectUtil.isNotEmpty(wxPubAppId)
&&ObjectUtil.isNotNull(wxPubPath)&&ObjectUtil.isNotEmpty(wxPubPath) && ObjectUtil.isNotNull(wxPubPath) && ObjectUtil.isNotEmpty(wxPubPath)
){ ) {
JSONObject wxpub=new JSONObject(); JSONObject wxpub = new JSONObject();
wxpub.put("appid",wxPubAppId); wxpub.put("appid", wxPubAppId);
wxpub.put("path",wxPubPath); wxpub.put("path", wxPubPath);
object.put("wx_pub",wxpub); object.put("wx_pub", wxpub);
} }
hfInfo.setMerchantCode(baseInfo.getMerchantcode()); hfInfo.setMerchantCode(baseInfo.getMerchantcode());
hfInfo.setStatus("0"); hfInfo.setStatus("0");
hfInfo.setPrivKey(privateKey); hfInfo.setPrivKey(privateKey);
hfInfo.setPucKey(publicKey); hfInfo.setPucKey(publicKey);
hfInfo.setWxInfo(ObjectUtil.isEmpty(object)?null:object.toJSONString()); hfInfo.setWxInfo(ObjectUtil.isEmpty(object) ? null : object.toJSONString());
hfInfo.setCreateTime(new Date()); hfInfo.setCreateTime(new Date());
tbPlussMerchantHfInfoMapper.insert(hfInfo); tbPlussMerchantHfInfoMapper.insert(hfInfo);
}else { } else {
hfInfo.setStatus("0"); hfInfo.setStatus("0");
hfInfo.setPrivKey(privateKey); hfInfo.setPrivKey(privateKey);
hfInfo.setPucKey(publicKey); hfInfo.setPucKey(publicKey);
@@ -2481,9 +2481,9 @@ public class HfMerService {
merchantResident(baseInfo, tbPlussMerchantHfInfo.getLiveApiKey(), tbPlussMerchantHfInfo.getAppId(), tbPlussMerchantHfInfo); merchantResident(baseInfo, tbPlussMerchantHfInfo.getLiveApiKey(), tbPlussMerchantHfInfo.getAppId(), tbPlussMerchantHfInfo);
} }
try { try {
addCash(channelStatus,7); addCash(channelStatus, 7);
}catch (Exception e){ } catch (Exception e) {
log.info("addCash Fail:"+e.getMessage()); log.info("addCash Fail:" + e.getMessage());
} }
} }
} }
@@ -2537,43 +2537,49 @@ public class HfMerService {
} }
private void addCash(TbPlussMerchantChannelStatus mcs, int channl) { private void addCash(TbPlussMerchantChannelStatus mcs, int channl) {
int num = tbPlussMerchantChannelStatusMapper.selectAllCount("3",mcs.getMerchantcode()); int num = tbPlussMerchantChannelStatusMapper.selectAllCount("3", mcs.getMerchantcode());
if (num < 2) { if (num < 2) {
List<TbPlussMerchantBaseInfo> list = merchantBaseInfoMapper.selectListByCode( mcs.getMerchantcode()); List<TbPlussMerchantBaseInfo> list = merchantBaseInfoMapper.selectListByCode(mcs.getMerchantcode());
if (list.size() > 0) { if (list.size() > 0) {
TbPlussMerchantBaseInfo merchantBaseInfo = list.iterator().next(); TbPlussMerchantBaseInfo merchantBaseInfo = list.iterator().next();
TbPlussMerchantCashPlace merchantCashPlace = new TbPlussMerchantCashPlace();
merchantCashPlace.setAddress(merchantBaseInfo.getAddress());
merchantCashPlace.setUserid(merchantBaseInfo.getUserid());
merchantCashPlace.setName("收银点一");
merchantCashPlace.setPayPassageId(channl);
TbPlussMerchantChannel merchantChannel = plussMerchantChannelMapper.selectByPrimaryKey(channl);
if (Objects.nonNull(merchantChannel)){
merchantCashPlace.setPayPassageName(merchantChannel.getChannelname());
}
merchantCashPlace.setCreatetime(new Date());
merchantCashPlace.setName(merchantBaseInfo.getAlias());
merchantCashPlace.setRootAccountId(merchantBaseInfo.getUserid());
merchantCashPlace.setCode(getCode());
merchantCashPlaceMapper.insert(merchantCashPlace);
TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid())); TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid()));
TbPlussUserCashPlace childUserCashPlace = new TbPlussUserCashPlace(); if (Objects.nonNull(userInfo) && !userInfo.getLoginname().contains("-")) {
childUserCashPlace.setChasplaceId(merchantCashPlace.getId()); TbPlussMerchantCashPlace merchantCashPlace = new TbPlussMerchantCashPlace();
childUserCashPlace.setCreatetime(new Date()); merchantCashPlace.setAddress(merchantBaseInfo.getAddress());
childUserCashPlace.setIsRootAccount("true"); merchantCashPlace.setUserid(merchantBaseInfo.getUserid());
childUserCashPlace.setOrgCode(userInfo.getLoginname()); merchantCashPlace.setName("收银点一");
childUserCashPlace.setRootAccountId(userInfo.getId().intValue()); merchantCashPlace.setPayPassageId(channl);
childUserCashPlace.setUserId(userInfo.getId().intValue()); TbPlussMerchantChannel merchantChannel = plussMerchantChannelMapper.selectByPrimaryKey(channl);
userCashPlaceMapper.insert(childUserCashPlace); if (Objects.nonNull(merchantChannel)) {
merchantCashPlace.setPayPassageName(merchantChannel.getChannelname());
}
merchantCashPlace.setCreatetime(new Date());
merchantCashPlace.setName(merchantBaseInfo.getAlias());
merchantCashPlace.setRootAccountId(merchantBaseInfo.getUserid());
merchantCashPlace.setCode(getCode());
merchantCashPlaceMapper.insert(merchantCashPlace);
// TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid()));
TbPlussUserCashPlace childUserCashPlace = new TbPlussUserCashPlace();
childUserCashPlace.setChasplaceId(merchantCashPlace.getId());
childUserCashPlace.setCreatetime(new Date());
childUserCashPlace.setIsRootAccount("true");
childUserCashPlace.setOrgCode(userInfo.getLoginname());
childUserCashPlace.setRootAccountId(userInfo.getId().intValue());
childUserCashPlace.setUserId(userInfo.getId().intValue());
userCashPlaceMapper.insert(childUserCashPlace);
}
} }
} }
} }
public String getCode(){
public String getCode() {
String randomDigits = generateRandomDigits(2); String randomDigits = generateRandomDigits(2);
String randomLetters = generateRandomLetters(6); String randomLetters = generateRandomLetters(6);
String randomString = randomDigits + randomLetters; String randomString = randomDigits + randomLetters;
return randomString; return randomString;
} }
// 生成n位随机数字 // 生成n位随机数字
private static String generateRandomDigits(int n) { private static String generateRandomDigits(int n) {
Random random = new Random(); Random random = new Random();
@@ -2598,6 +2604,7 @@ public class HfMerService {
return sb.toString(); return sb.toString();
} }
public void authInfo(String requestId) { public void authInfo(String requestId) {
TbPlussMerchantAuditRecord record = tbPlussMerchantAuditRecordMapper.selectByApplicationid(requestId); TbPlussMerchantAuditRecord record = tbPlussMerchantAuditRecordMapper.selectByApplicationid(requestId);
if (ObjectUtil.isNotEmpty(record)) { if (ObjectUtil.isNotEmpty(record)) {
@@ -2618,9 +2625,6 @@ public class HfMerService {
tbPlussMerchantChannelStatusMapper.updateByPrimaryKeySelective(channelStatus); tbPlussMerchantChannelStatusMapper.updateByPrimaryKeySelective(channelStatus);
Map map = null; Map map = null;
//上传证照 //上传证照
TbPlussMerchantBaseInfo baseInfo = tbPlussMerchantBaseInfoMapper.selectByMerchantcode(record.getMerchantcode()); TbPlussMerchantBaseInfo baseInfo = tbPlussMerchantBaseInfoMapper.selectByMerchantcode(record.getMerchantcode());
@@ -2667,12 +2671,11 @@ public class HfMerService {
cz = HfMerService.fileUpload(bankCard.getLicenseurl(), "05", record.getMerchantid()); cz = HfMerService.fileUpload(bankCard.getLicenseurl(), "05", record.getMerchantid());
yyzz = HfMerService.fileUpload(image.getPicurl(), "01", record.getMerchantid()); yyzz = HfMerService.fileUpload(image.getPicurl(), "01", record.getMerchantid());
}else { } else {
cz = HfMerService.fileUpload(bankCard.getImgurl(), "05", record.getMerchantid()); cz = HfMerService.fileUpload(bankCard.getImgurl(), "05", record.getMerchantid());
} }
// cz = HfMerService.fileUpload(bankCard.getImgurl(), "05", record.getMerchantid()); // cz = HfMerService.fileUpload(bankCard.getImgurl(), "05", record.getMerchantid());
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
TbPlussMerchantImage image = tbPlussMerchantImageMapper.selectByMerchantCodeType(baseInfo.getMerchantcode(), "06"); TbPlussMerchantImage image = tbPlussMerchantImageMapper.selectByMerchantCodeType(baseInfo.getMerchantcode(), "06");
@@ -2834,36 +2837,36 @@ public class HfMerService {
TbPlussCitysHf district_code = tbPlussCitysHfMapper.selectByCodeAndParentCode(baseInfo.getDistrict(), city.getCityCode()); TbPlussCitysHf district_code = tbPlussCitysHfMapper.selectByCodeAndParentCode(baseInfo.getDistrict(), city.getCityCode());
merchantEntryParams.put("district_code", district_code.getCityCode());//区县编码 黄埔310101 merchantEntryParams.put("district_code", district_code.getCityCode());//区县编码 黄埔310101
String wxappId=null; String wxappId = null;
String wxpubappId=null; String wxpubappId = null;
String wxpubPath=null; String wxpubPath = null;
JSONObject object=JSONObject.parseObject(tbPlussMerchantHfInfo.getWxInfo()) ; JSONObject object = JSONObject.parseObject(tbPlussMerchantHfInfo.getWxInfo());
if(object!=null){ if (object != null) {
if(object.containsKey("wx_lite")){ if (object.containsKey("wx_lite")) {
JSONObject wxliteObj= object.getJSONObject("wx_lite"); JSONObject wxliteObj = object.getJSONObject("wx_lite");
if(ObjectUtil.isNotEmpty(wxliteObj)&&wxliteObj.containsKey("appid")){ if (ObjectUtil.isNotEmpty(wxliteObj) && wxliteObj.containsKey("appid")) {
wxappId=wxliteObj.getString("appid"); wxappId = wxliteObj.getString("appid");
} }
} }
if(object.containsKey("wx_pub")){ if (object.containsKey("wx_pub")) {
JSONObject wxpubObj=object.getJSONObject("wx_pub"); JSONObject wxpubObj = object.getJSONObject("wx_pub");
wxpubappId=wxpubObj.getString("appid"); wxpubappId = wxpubObj.getString("appid");
wxpubPath=wxpubObj.getString("path"); wxpubPath = wxpubObj.getString("path");
} }
} }
if(ObjectUtil.isNull(wxappId)){ if (ObjectUtil.isNull(wxappId)) {
wxappId=wxLiteAppId; wxappId = wxLiteAppId;
} }
if(ObjectUtil.isNull(wxpubappId)){ if (ObjectUtil.isNull(wxpubappId)) {
wxpubappId=wxPubAppId; wxpubappId = wxPubAppId;
} }
if(ObjectUtil.isNull(wxpubPath)){ if (ObjectUtil.isNull(wxpubPath)) {
wxpubPath=wxPubPath; wxpubPath = wxPubPath;
} }
merchantEntryParams.put("add_value_list", " {\"wx_lite\":{\"appid\":\"" + wxappId + "\"},\"wx_pub\":{\"appid\":\"" + wxpubappId + "\",\"path\":\"" + wxpubPath + "\"},\"wx_scan\":\"\", \"alipay\":\"\",\"alipay_wap\":\"\",\"alipay_lite\":\"\",\"alipay_qr\":\"\",\"alipay_scan\":\"\"}"); merchantEntryParams.put("add_value_list", " {\"wx_lite\":{\"appid\":\"" + wxappId + "\"},\"wx_pub\":{\"appid\":\"" + wxpubappId + "\",\"path\":\"" + wxpubPath + "\"},\"wx_scan\":\"\", \"alipay\":\"\",\"alipay_wap\":\"\",\"alipay_lite\":\"\",\"alipay_qr\":\"\",\"alipay_scan\":\"\"}");
@@ -2885,7 +2888,6 @@ public class HfMerService {
tbPlussMerchantAuditRecordMapper.insert(merchantAuditRecord); tbPlussMerchantAuditRecordMapper.insert(merchantAuditRecord);
tbPlussMerchantHfInfo.setStatus("2"); //商户入驻待审核 tbPlussMerchantHfInfo.setStatus("2"); //商户入驻待审核
tbPlussMerchantHfInfo.setUpdateTime(new Date()); tbPlussMerchantHfInfo.setUpdateTime(new Date());
tbPlussMerchantHfInfoMapper.updateByPrimaryKey(tbPlussMerchantHfInfo); tbPlussMerchantHfInfoMapper.updateByPrimaryKey(tbPlussMerchantHfInfo);
@@ -2899,12 +2901,7 @@ public class HfMerService {
} }
public void modifySettle(String userId) {
public void modifySettle(String userId){
TbPlussMerchantBaseInfo baseInfo = tbPlussMerchantBaseInfoMapper.selectByUserId(userId); TbPlussMerchantBaseInfo baseInfo = tbPlussMerchantBaseInfoMapper.selectByUserId(userId);
@@ -2919,7 +2916,6 @@ public class HfMerService {
MsgException.checkNull(account, "结算信息未提交"); MsgException.checkNull(account, "结算信息未提交");
TbPlussBankCard bankCard = tbPlussBankCardMapper.selectByPrimaryKey(Integer.valueOf(account.getBankcardid())); TbPlussBankCard bankCard = tbPlussBankCardMapper.selectByPrimaryKey(Integer.valueOf(account.getBankcardid()));
MsgException.checkNull(bankCard, "结算卡信息未提交"); MsgException.checkNull(bankCard, "结算卡信息未提交");
@@ -2927,11 +2923,11 @@ public class HfMerService {
String requestId = "msettle_" + SnowFlakeUtil.nextId(); String requestId = "msettle_" + SnowFlakeUtil.nextId();
Map<String, Object> merchantEntryParams = new HashMap<>(10); Map<String, Object> merchantEntryParams = new HashMap<>(10);
merchantEntryParams.put("adapay_func_code", "merchant.modify");//测试时每次请求需修改流水 merchantEntryParams.put("adapay_func_code", "merchant.modify");//测试时每次请求需修改流水
merchantEntryParams.put("order_no",requestId); merchantEntryParams.put("order_no", requestId);
merchantEntryParams.put("sub_Api_Key", hfInfo.getLiveApiKey());//商户进件后返回的生产或者测试API Key merchantEntryParams.put("sub_Api_Key", hfInfo.getLiveApiKey());//商户进件后返回的生产或者测试API Key
Map<String,Object> settle=new HashMap<>(); Map<String, Object> settle = new HashMap<>();
settle.put("card_id",bankCard.getBankcardno()); settle.put("card_id", bankCard.getBankcardno());
TbBlussBankBranchHf blussBankBranchHf = tbBlussBankBranchHfMapper.selectByName(bankCard.getBankname()); TbBlussBankBranchHf blussBankBranchHf = tbBlussBankBranchHfMapper.selectByName(bankCard.getBankname());
MsgException.checkNull(blussBankBranchHf, "对应的银行信息不存在"); MsgException.checkNull(blussBankBranchHf, "对应的银行信息不存在");
@@ -2949,24 +2945,21 @@ public class HfMerService {
merchantEntryParams.put("settle_card_info", settle);//费率01-标准费率线上02-标准费率线下 merchantEntryParams.put("settle_card_info", settle);//费率01-标准费率线上02-标准费率线下
merchantEntryParams.put("notify_url",backUrl); merchantEntryParams.put("notify_url", backUrl);
try { try {
init(); init();
log.info("merchantmodifyrequest:{}",JSONUtil.toJsonStr(merchantEntryParams)); log.info("merchantmodifyrequest:{}", JSONUtil.toJsonStr(merchantEntryParams));
Map<String, Object> merchantmodify= AdapayCommon.requestAdapay(merchantEntryParams); Map<String, Object> merchantmodify = AdapayCommon.requestAdapay(merchantEntryParams);
log.info("merchantmodify:{}", JSONUtil.toJsonStr(merchantmodify)); log.info("merchantmodify:{}", JSONUtil.toJsonStr(merchantmodify));
} catch (BaseAdaPayException e) { } catch (BaseAdaPayException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
@Scheduled(initialDelay = 1000, fixedDelay = 10000) @Scheduled(initialDelay = 1000, fixedDelay = 10000)
public void queryMerchantResident() { public void queryMerchantResident() {
List<TbPlussMerchantAuditRecord> records = tbPlussMerchantAuditRecordMapper.selectByStatus(); List<TbPlussMerchantAuditRecord> records = tbPlussMerchantAuditRecordMapper.selectByStatus();