master
wangning 6 years ago
parent 06a4804543
commit c56773120d

@ -6,6 +6,9 @@ import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by yuan on 2018/5/23.
*/
@ -52,11 +55,15 @@ public class ClientPreApplyBean {
public JSONObject insertObject() {
JSONObject res = (JSONObject) JSON.toJSON(this);
List<String> keys = new ArrayList<>();
res.keySet().forEach(p-> {
if (StringUtils.isEmpty(res.getString(p).trim())) {
res.remove(p);
keys.add(p);
}
});
keys.forEach(p->{
res.remove(p);
});
return res;
}
public String getCompany_name() {

@ -144,6 +144,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
try {
ssender.sendWithParam(nationCode, phoneNumber, REGISTER_CLIENT_TEMPLID, param, "RoyalPay", "", ""); //
} catch (Exception e) {
e.printStackTrace();
throw new ServerErrorException("System Error");
}
stringRedisTemplate.boundValueOps(getRegisterClientRedisKey(phoneNumber)).set(registerClientCode, Long.parseLong(expireMin), TimeUnit.MINUTES);
@ -262,6 +263,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
sysClient.put("source",4);
sysClient.put("approve_result",2);
sysClient.put("creator",0);
sysClient.put("industry",331);
sysClient.put("merchant_id",subMerchantId.getString("merchant_id"));
sysClient.put("sub_merchant_id",subMerchantId.getString("sub_merchant_id"));
sysClient.put("common_sub_merchant_id",1);

Loading…
Cancel
Save