master
xiao.tang 4 years ago
commit 22f75ba86f

@ -5,11 +5,11 @@
<parent> <parent>
<groupId>au.com.royalpay.payment</groupId> <groupId>au.com.royalpay.payment</groupId>
<artifactId>payment-parent</artifactId> <artifactId>payment-parent</artifactId>
<version>2.2.27</version> <version>2.2.28</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>2.3.80</version> <version>2.3.83</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>2.4.0</jib-maven-plugin.version> <jib-maven-plugin.version>2.4.0</jib-maven-plugin.version>

@ -776,3 +776,8 @@ ALTER TABLE `sys_clients`
-- 商户表 日期类型改为varchar 2020.12.23 -- 商户表 日期类型改为varchar 2020.12.23
ALTER TABLE `sys_clients` ALTER TABLE `sys_clients`
modify COLUMN certificat_expire_date varchar(20) DEFAULT NULL COMMENT '注册证书过期时间'; modify COLUMN certificat_expire_date varchar(20) DEFAULT NULL COMMENT '注册证书过期时间';
-- 微信子商户表 字段长度修改 2021.04.07
ALTER TABLE sys_wx_merchant_apply MODIFY merchant_name varchar(128);
ALTER TABLE sys_wx_merchant_apply MODIFY merchant_shortname varchar(64);

@ -518,8 +518,10 @@ public class TestController {
tradeSecureService.sendSecurePayInvoiceFile(firstDay, lastDay); tradeSecureService.sendSecurePayInvoiceFile(firstDay, lastDay);
} }
/**
*
*/
@ManagerMapping(value = "/batch_update_wxsubmerchantId", method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.DIRECTOR, ManagerRole.OPERATOR, ManagerRole.DEVELOPER}) @ManagerMapping(value = "/batch_update_wxsubmerchantId", method = RequestMethod.GET, role = {ManagerRole.ADMIN, ManagerRole.DIRECTOR, ManagerRole.OPERATOR, ManagerRole.DEVELOPER})
// @GetMapping(value = "/batch_update_wxsubmerchantId")
public void batchUpdateWxSubmerchantId() { public void batchUpdateWxSubmerchantId() {
List<JSONObject> findSubMerchantIdHistorys=sysWxMerchantApplyMapper.findSubMerchantIdHistorys(); List<JSONObject> findSubMerchantIdHistorys=sysWxMerchantApplyMapper.findSubMerchantIdHistorys();
if(findSubMerchantIdHistorys==null)return; if(findSubMerchantIdHistorys==null)return;
@ -536,6 +538,17 @@ public class TestController {
logger.info("=========>没有查询到mcc:"+jsonObject.getInteger("client_id")); logger.info("=========>没有查询到mcc:"+jsonObject.getInteger("client_id"));
return; return;
} }
// company_name short_name industry company_phone contact_person contact_phone contact_email 这些字段不能为空
if(TextUtils.isEmpty(clientJson.getString("short_name"))||
TextUtils.isEmpty(clientJson.getString("industry"))||
TextUtils.isEmpty(clientJson.getString("company_phone"))||
TextUtils.isEmpty(clientJson.getString("contact_phone"))||
TextUtils.isEmpty(clientJson.getString("contact_person"))||
TextUtils.isEmpty(clientJson.getString("contact_email"))||
TextUtils.isEmpty(wechatMcc.getString("mc_code"))){
logger.error("=======>数据不完整clientid"+jsonObject.getInteger("client_id")+"");
return;
}
NewSubMerchantIdApply newSubMerchantIdApply=new NewSubMerchantIdApply(); NewSubMerchantIdApply newSubMerchantIdApply=new NewSubMerchantIdApply();
newSubMerchantIdApply.setMerchant_id(jsonObject.getString("merchant_id")); newSubMerchantIdApply.setMerchant_id(jsonObject.getString("merchant_id"));
@ -543,13 +556,13 @@ public class TestController {
newSubMerchantIdApply.setMerchantRemark(jsonObject.getString("merchant_remark")); newSubMerchantIdApply.setMerchantRemark(jsonObject.getString("merchant_remark"));
newSubMerchantIdApply.setMerchant_name(cutLength(jsonObject.getString("merchant_name"),50)); newSubMerchantIdApply.setMerchant_name(cutLength(jsonObject.getString("merchant_name"),50));
newSubMerchantIdApply.setAddress(cutLength(clientJson.getString("address"),128)); newSubMerchantIdApply.setAddress(cutLength(clientJson.getString("address"),128));
newSubMerchantIdApply.setMerchant_shortname(cutLength(clientJson.getString("short_name"),20)); newSubMerchantIdApply.setMerchant_shortname(cutLength(clientJson.getString("short_name"),64));
newSubMerchantIdApply.setBusiness_category(clientJson.getString("industry")); newSubMerchantIdApply.setBusiness_category(clientJson.getString("industry"));
newSubMerchantIdApply.setWebsite(cutLength(clientJson.getString("company_website"),128)); newSubMerchantIdApply.setWebsite(cutLength(clientJson.getString("company_website"),100));
newSubMerchantIdApply.setOffice_phone(cutLength(clientJson.getString("company_phone"),20)); newSubMerchantIdApply.setOffice_phone(cutLength(clientJson.getString("company_phone"),20));
newSubMerchantIdApply.setContact_phone(cutLength(clientJson.getString("contact_phone"),16)); newSubMerchantIdApply.setContact_phone(cutLength(clientJson.getString("contact_phone"),16));
newSubMerchantIdApply.setContact_name(cutLength(clientJson.getString("contact_person"),32)); newSubMerchantIdApply.setContact_name(cutLength(clientJson.getString("contact_person"),32));
newSubMerchantIdApply.setContact_email(cutLength(clientJson.getString("contact_email"),128)); newSubMerchantIdApply.setContact_email(cutLength(clientJson.getString("contact_email"),50));
newSubMerchantIdApply.setMcc_code(cutLength(wechatMcc.getString("mc_code"),10)); newSubMerchantIdApply.setMcc_code(cutLength(wechatMcc.getString("mc_code"),10));
if(!TextUtils.isEmpty(clientConfig.getString("client_pay_type"))){ if(!TextUtils.isEmpty(clientConfig.getString("client_pay_type"))){
@ -559,7 +572,7 @@ public class TestController {
}else if(clientConfig.getString("client_pay_type").indexOf("1")>=0){ }else if(clientConfig.getString("client_pay_type").indexOf("1")>=0){
newSubMerchantIdApply.setBusiness_type("ONLINE"); newSubMerchantIdApply.setBusiness_type("ONLINE");
} }
else if(clientConfig.getString("client_pay_type").indexOf("1")>=0){ else if(clientConfig.getString("client_pay_type").indexOf("2")>=0){
newSubMerchantIdApply.setBusiness_type("OFFLINE"); newSubMerchantIdApply.setBusiness_type("OFFLINE");
} }
}else{ }else{
@ -570,13 +583,33 @@ public class TestController {
}else{ }else{
newSubMerchantIdApply.setMerchant_type("INDIVIDUAL") ; newSubMerchantIdApply.setMerchant_type("INDIVIDUAL") ;
} }
newSubMerchantIdApply.setCompany_register_no(cutLength(TextUtils.isEmpty(clientJson.getString("acn"))?clientJson.getString("abn"):clientJson.getString("abn"),50));
newSubMerchantIdApply.setCompany_register_no(cutLength(TextUtils.isEmpty(clientJson.getString("acn"))?clientJson.getString("abn"):clientJson.getString("acn"),50));
newSubMerchantIdApply.setCertificat_expire_date("PERMANENT"); newSubMerchantIdApply.setCertificat_expire_date("PERMANENT");
JSONObject params = newSubMerchantIdApply.insertObject(clientJson); JSONObject params = newSubMerchantIdApply.insertObject(clientJson);
params.put("merchant_app_id", jsonObject.getString("merchant_app_id")); params.put("merchant_app_id", jsonObject.getString("merchant_app_id"));
SubMerchantInfoInheritance subMerchantInfo = JSON.toJavaObject(params, SubMerchantInfoInheritance.class); SubMerchantInfoInheritance subMerchantInfo = JSON.toJavaObject(params, SubMerchantInfoInheritance.class);
params.put("operator","System"); params.put("operator","System");
if("ENTERPRISE".equalsIgnoreCase(newSubMerchantIdApply.getMerchant_type())&&TextUtils.isEmpty(newSubMerchantIdApply.getCompany_register_no())){
logger.error("=======>公司注册号为空clientid"+jsonObject.getInteger("client_id"));
return;
}
if("BOTH".equalsIgnoreCase(newSubMerchantIdApply.getBusiness_type())&&(TextUtils.isEmpty(newSubMerchantIdApply.getAddress()))||
TextUtils.isEmpty(newSubMerchantIdApply.getWebsite())){
logger.error("=======>公司类型为BOTH网址或地址为空clientid:"+jsonObject.getInteger("client_id"));
return;
}
else if("OFFLINE".equalsIgnoreCase(newSubMerchantIdApply.getBusiness_type())&&(TextUtils.isEmpty(newSubMerchantIdApply.getAddress()))){
logger.error("=======>公司类型为OFFLINE地址为空clientid:"+jsonObject.getInteger("client_id"));
return;
}
else if("ONLINE".equalsIgnoreCase(newSubMerchantIdApply.getBusiness_type())&&
TextUtils.isEmpty(newSubMerchantIdApply.getWebsite())){
logger.error("=======>公司类型为ONLINE网址为空clientid:"+jsonObject.getInteger("client_id"));
return;
}
WxPayMerchantRegister register = Optional.ofNullable(merchantChannelApplicationManager.getRegister(WxPayMerchantRegister.class)) WxPayMerchantRegister register = Optional.ofNullable(merchantChannelApplicationManager.getRegister(WxPayMerchantRegister.class))
.orElseThrow(() -> new ServerErrorException("No Register found for wechat")); .orElseThrow(() -> new ServerErrorException("No Register found for wechat"));
@ -589,13 +622,9 @@ public class TestController {
e.printStackTrace(); e.printStackTrace();
} }
}); });
// String declareResp = paymentDevHelper.devQueryCustomsReport(reportId);
// JSONObject res = new JSONObject();
// res.put("xml", declareResp);
} }
public String cutLength(String str,int maxlen){ public String cutLength(String str,int maxlen){
if(TextUtils.isEmpty(str))return ""; if(TextUtils.isEmpty(str))return "";

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

@ -11,10 +11,10 @@
<label class="control-label col-sm-3" for="merchant_name_input">* Merchant Name</label> <label class="control-label col-sm-3" for="merchant_name_input">* Merchant Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.company_name" <input class="form-control" ng-model="subMerchantInfo.company_name"
type="text" name="merchant_name" id="merchant_name_input" required maxlength="50"> type="text" name="merchant_name" id="merchant_name_input" required maxlength="128">
<div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty"> <div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p> <p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p> <p class="small text-danger" ng-message="maxlength">Length is more than 128</p>
</div> </div>
</div> </div>
</div> </div>
@ -43,10 +43,10 @@
<label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Short Name</label> <label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Short Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.short_name" <input class="form-control" ng-model="subMerchantInfo.short_name"
type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="20"> type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="64">
<div ng-messages="subForm.merchant_storename.$error" ng-if="subForm.merchant_storename.$dirty"> <div ng-messages="subForm.merchant_storename.$error" ng-if="subForm.merchant_storename.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p> <p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 20</p> <p class="small text-danger" ng-message="maxlength">Length is more than 64</p>
</div> </div>
</div> </div>
</div> </div>

@ -714,6 +714,7 @@
<option value="v4">v4</option> <option value="v4">v4</option>
<option value="v5">v5</option> <option value="v5">v5</option>
<option value="v6">v6</option> <option value="v6">v6</option>
<!-- <option value="v2101">multiple payment methods</option>-->
</select> </select>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
@ -731,6 +732,10 @@
src="/static/images/payment_page_v5.jpg"> src="/static/images/payment_page_v5.jpg">
<img style="width: 200px" ng-if="paymentInfo.paypad_version=='v6'" <img style="width: 200px" ng-if="paymentInfo.paypad_version=='v6'"
src="/static/images/payment_page_v6.jpg"> src="/static/images/payment_page_v6.jpg">
<img style="width: 200px" ng-if="paymentInfo.paypad_version=='v2101'"
src="/static/images/payment_page_v2101_step1.png">
<img style="width: 200px" ng-if="paymentInfo.paypad_version=='v2101'"
src="/static/images/payment_page_v2101_step2.png">
</div> </div>
</div> </div>
</div> </div>
@ -757,4 +762,4 @@
<!--</div>--> <!--</div>-->
</div> </div>
</div> </div>
</div> </div>

@ -11,10 +11,10 @@
<label class="control-label col-sm-3" for="merchant_name_input">* Merchant Name</label> <label class="control-label col-sm-3" for="merchant_name_input">* Merchant Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.company_name" disabled="disabled" <input class="form-control" ng-model="subMerchantInfo.company_name" disabled="disabled"
type="text" name="merchant_name" id="merchant_name_input" required maxlength="50"> type="text" name="merchant_name" id="merchant_name_input" required maxlength="128">
<div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty"> <div ng-messages="subForm.merchant_name.$error" ng-if="subForm.merchant_name.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p> <p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 50</p> <p class="small text-danger" ng-message="maxlength">Length is more than 128</p>
</div> </div>
</div> </div>
</div> </div>
@ -43,10 +43,10 @@
<label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Short Name</label> <label class="control-label col-sm-3" for="merchant_storename_input">* Merchant Short Name</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" ng-model="subMerchantInfo.short_name" <input class="form-control" ng-model="subMerchantInfo.short_name"
type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="20"> type="text" name="merchant_storename" id="merchant_storename_input" required maxlength="64">
<div ng-messages="subForm.merchant_storename.$error" ng-if="subForm.merchant_storename.$dirty"> <div ng-messages="subForm.merchant_storename.$error" ng-if="subForm.merchant_storename.$dirty">
<p class="small text-danger" ng-message="required">Required Field</p> <p class="small text-danger" ng-message="required">Required Field</p>
<p class="small text-danger" ng-message="maxlength">Length is more than 20</p> <p class="small text-danger" ng-message="maxlength">Length is more than 64</p>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save