师傅银行卡表+唯一memberId生成
This commit is contained in:
parent
5de6f3e79d
commit
419f2a907a
|
|
@ -13,4 +13,15 @@ public class AdapayUtils {
|
|||
Assert.isTrue(Math.min(memberId, deptId) > 0, "Invalid [memberId] or [deptId]");
|
||||
return String.format("C%dD%d", memberId, deptId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param workerId 师傅id
|
||||
* @param deptId 分平台id
|
||||
* @return 生成的唯一id
|
||||
*/
|
||||
public static String getWorkerMemberId(Long workerId, Long deptId) {
|
||||
Assert.isTrue(Math.min(workerId, deptId) > 0, "Invalid [workerId] or [deptId]");
|
||||
return String.format("W%dD%d", workerId, deptId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
package com.ghy.worker.domain;
|
||||
|
||||
import com.ghy.common.annotation.Excel;
|
||||
import com.ghy.common.core.domain.BaseEntity;
|
||||
|
||||
public class WorkerBank extends BaseEntity {
|
||||
|
||||
@Excel(name = "师傅银行卡id", cellType = Excel.ColumnType.NUMERIC)
|
||||
private Long workerBankId;
|
||||
|
||||
@Excel(name = "师傅id", cellType = Excel.ColumnType.NUMERIC)
|
||||
private Long workerId;
|
||||
|
||||
@Excel(name = "用户真实姓名", cellType = Excel.ColumnType.STRING)
|
||||
private String name;
|
||||
|
||||
@Excel(name = "身份证号", cellType = Excel.ColumnType.STRING)
|
||||
private String certId;
|
||||
|
||||
@Excel(name = "银行名称", cellType = Excel.ColumnType.STRING)
|
||||
private String bankName;
|
||||
|
||||
@Excel(name = "银行卡号", cellType = Excel.ColumnType.STRING)
|
||||
private String bankNum;
|
||||
|
||||
@Excel(name = "银行卡绑定手机号", cellType = Excel.ColumnType.STRING)
|
||||
private String phone;
|
||||
|
||||
@Excel(name = "分公司id", cellType = Excel.ColumnType.NUMERIC)
|
||||
private Long deptId;
|
||||
|
||||
@Excel(name = "adapay会员账号", cellType = Excel.ColumnType.STRING)
|
||||
private String adapayMemberId;
|
||||
|
||||
@Excel(name = "是否为结算账户", cellType = Excel.ColumnType.STRING)
|
||||
private Integer settleAccount;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue