diff --git a/ghy-common/src/main/java/com/ghy/common/utils/AdapayUtils.java b/ghy-common/src/main/java/com/ghy/common/utils/AdapayUtils.java index 374534c9..06249f5d 100644 --- a/ghy-common/src/main/java/com/ghy/common/utils/AdapayUtils.java +++ b/ghy-common/src/main/java/com/ghy/common/utils/AdapayUtils.java @@ -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); + } + } diff --git a/ghy-worker/src/main/java/com/ghy/worker/domain/WorkerBank.java b/ghy-worker/src/main/java/com/ghy/worker/domain/WorkerBank.java new file mode 100644 index 00000000..3dc1b6d4 --- /dev/null +++ b/ghy-worker/src/main/java/com/ghy/worker/domain/WorkerBank.java @@ -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; + +} +