master
wangning 7 years ago
parent ed6d43b18a
commit 25f11e7c3c

@ -3,32 +3,53 @@ package au.com.royalpay.payment.manage.application.beans;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.hibernate.validator.constraints.NotEmpty;
/** /**
* Created by yuan on 2018/5/23. * Created by yuan on 2018/5/23.
*/ */
public class ClientPreApplyBean { public class ClientPreApplyBean {
@NotEmpty(message = "username can't be null")
private String username; private String username;
@NotEmpty(message = "password can't be null")
private String password; private String password;
@NotEmpty(message = "contact_person can't be null")
private String contact_person; private String contact_person;
@NotEmpty(message = "contact_phone can't be null")
private String contact_phone; private String contact_phone;
@NotEmpty(message = "contact_email can't be null")
private String contact_email; private String contact_email;
@NotEmpty(message = "company_name can't be null")
private String company_name; private String company_name;
@NotEmpty(message = "company_phone can't be null")
private String company_phone; private String company_phone;
@NotEmpty(message = "abn can't be null")
private String abn; private String abn;
@NotEmpty(message = "short_name can't be null")
private String short_name; private String short_name;
@NotEmpty(message = "address can't be null")
private String address; private String address;
@NotEmpty(message = "suburb can't be null")
private String suburb; private String suburb;
@NotEmpty(message = "state can't be null")
private String state; private String state;
@NotEmpty(message = "postcode can't be null")
private String postcode; private String postcode;
@NotEmpty(message = "industry can't be null")
private String industry; private String industry;
@NotEmpty(message = "bank_no can't be null")
private String bank_no; private String bank_no;
@NotEmpty(message = "bank_name can't be null")
private String bank_name; private String bank_name;
@NotEmpty(message = "bsb_no can't be null")
private String bsb_no; private String bsb_no;
@NotEmpty(message = "clean_days can't be null")
private String clean_days; private String clean_days;
@NotEmpty(message = "codeKey can't be null")
private String codeKey; private String codeKey;
@NotEmpty(message = "agree can't be null")
private boolean agree; private boolean agree;
public JSONObject insertObject() { public JSONObject insertObject() {

@ -233,6 +233,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
}else { }else {
applyInfo.put("client_pre_apply_id", apply.getIntValue("client_pre_apply_id")); applyInfo.put("client_pre_apply_id", apply.getIntValue("client_pre_apply_id"));
applyInfo.put("update_time", new Date()); applyInfo.put("update_time", new Date());
sysClientPreMapperMapper.update(applyInfo); sysClientPreMapperMapper.update(applyInfo);
if(applyInfo.getBoolean("agree")){ if(applyInfo.getBoolean("agree")){
applyerToClient(username); applyerToClient(username);

@ -67,7 +67,8 @@ public class SimpleClientApplyController {
} }
@RequestMapping(value = "/info/bank/{bsb_no}", method = RequestMethod.GET) @RequestMapping(value = "/info/bank/{bsb_no}", method = RequestMethod.GET)
public JSONObject getBankInfo(@PathVariable String bsb_no) { public JSONObject getBankInfo(@PathVariable String bsb_no,@RequestParam String username,@RequestParam String codeKey) {
simpleClientApplyService.checkOrGenerateRegisterProcessKey(username, codeKey);
return simpleClientApplyService.getBankInfo(bsb_no); return simpleClientApplyService.getBankInfo(bsb_no);
} }
} }

@ -1,16 +1,14 @@
package au.com.royalpay.payment.manage.mappers.preapply; package au.com.royalpay.payment.manage.mappers.preapply;
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal; import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
import java.util.Date; import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
import java.util.List; import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
@AutoMapper(tablename = "sys_client_pre_apply", pkName = "client_pre_apply_id") @AutoMapper(tablename = "sys_client_pre_apply", pkName = "client_pre_apply_id",pkAutoIncrement = true)
public interface SysClientPreMapperMapper { public interface SysClientPreMapperMapper {
@AutoSql(type = SqlType.UPDATE) @AutoSql(type = SqlType.UPDATE)
void update(JSONObject data); void update(JSONObject data);

Loading…
Cancel
Save