顾客支付

zhc4dev
wangjiadong 2 years ago
parent 58ed54164f
commit 86108c4812
  1. 9
      ant-design-vue-jeecg/src/views/customerpayment/admin/CustomerPaymentList.vue
  2. 21
      ant-design-vue-jeecg/src/views/customerpayment/admin/modules/CustomerPaymentForm.vue
  3. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
  4. 52
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java

@ -22,7 +22,7 @@
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="开户银行"> <a-form-item label="开户银行">
<a-input placeholder="请输入开户银行" v-model="queryParam.bankDeposit"></a-input> <j-search-select-tag placeholder="请选择开户银行" v-model="queryParam.bankDeposit" dict="zybank,bankname,id"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>
@ -174,7 +174,12 @@
{ {
title:'开户银行', title:'开户银行',
align:"center", align:"center",
dataIndex: 'bankDeposit' dataIndex: 'bankDeposit_dictText'
},
{
title:'开户支行',
align:"center",
dataIndex: 'bankzh'
}, },
{ {
title:'创建人', title:'创建人',

@ -26,11 +26,26 @@
<a-input v-model="model.accountNo" placeholder="请输入账号/卡号" ></a-input> <a-input v-model="model.accountNo" placeholder="请输入账号/卡号" ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24" v-if="this.model.paymentType==2"> <a-col :span="24" v-if="this.model.paymentType==2">
<a-form-model-item label="开户银行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankDeposit"> <a-form-model-item label="开户银行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankname">
<a-input v-model="model.bankDeposit" placeholder="请输入开户银行" disabled ></a-input> <j-popup
v-model="model.bankname"
field="bankname"
org-fields="id,bankname,bankkh"
dest-fields="bankDeposit,bankname,bankzh"
code="findyh"
:multi="true"
@input="popupCallback"
/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24" v-if="this.model.paymentType==2">
<a-form-model-item label="开户支行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankzh">
<a-textarea v-model="model.bankzh" rows="4" placeholder="请输入开户支行" disabled/>
</a-form-model-item>
</a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>

@ -86,7 +86,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
if(customerPayment.getPaymentType().equals("2")){ if(customerPayment.getPaymentType().equals("2")){
BankUtil bankUtil = new BankUtil(); BankUtil bankUtil = new BankUtil();
if (bankUtil.checkBankCard(customerPayment.getAccountNo())){ if (bankUtil.checkBankCard(customerPayment.getAccountNo())){
customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo())); /*customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));*/
customerPaymentService.save(customerPayment); customerPaymentService.save(customerPayment);
return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo())); return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo()));
}else { }else {
@ -112,7 +112,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
if(customerPayment.getPaymentType().equals("2")){ if(customerPayment.getPaymentType().equals("2")){
BankUtil bankUtil = new BankUtil(); BankUtil bankUtil = new BankUtil();
if (bankUtil.checkBankCard(customerPayment.getAccountNo())){ if (bankUtil.checkBankCard(customerPayment.getAccountNo())){
customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo())); /*customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));*/
customerPaymentService.updateById(customerPayment); customerPaymentService.updateById(customerPayment);
return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo())); return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo()));
}else { }else {

@ -31,49 +31,59 @@ import lombok.experimental.Accessors;
public class CustomerPayment implements Serializable { public class CustomerPayment implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID) /**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键") @ApiModelProperty(value = "主键")
private java.lang.String id; private java.lang.String id;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @ApiModelProperty(value = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @ApiModelProperty(value = "创建日期")
private java.util.Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @ApiModelProperty(value = "更新日期")
private java.util.Date updateTime; private java.util.Date updateTime;
/**所属部门*/ /**所属部门*/
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
/**用户*/ /**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id") @Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id") @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
@ApiModelProperty(value = "用户") @ApiModelProperty(value = "用户")
private java.lang.String userId; private java.lang.String userId;
/**用户*/ /**用户*/
@Excel(name = "用户", width = 15) @Excel(name = "用户", width = 15)
@ApiModelProperty(value = "用户") @ApiModelProperty(value = "用户")
private java.lang.String username; private java.lang.String username;
/**支付类型*/ /**支付类型*/
@Excel(name = "支付类型", width = 15, dicCode = "zflx") @Excel(name = "支付类型", width = 15, dicCode = "zflx")
@Dict(dicCode = "zflx") @Dict(dicCode = "zflx")
@ApiModelProperty(value = "支付类型") @ApiModelProperty(value = "支付类型")
private java.lang.String paymentType; private java.lang.String paymentType;
/**账号/卡号*/ /**账号/卡号*/
@Excel(name = "账号/卡号", width = 15) @Excel(name = "账号/卡号", width = 15)
@ApiModelProperty(value = "账号/卡号") @ApiModelProperty(value = "账号/卡号")
private java.lang.String accountNo; private java.lang.String accountNo;
/**开户银行*/ /**开户银行*/
@Excel(name = "开户银行", width = 15) @Excel(name = "开户银行", width = 15, dictTable = "zybank", dicText = "bankname", dicCode = "id")
@Dict(dictTable = "zybank", dicText = "bankname", dicCode = "id")
@ApiModelProperty(value = "开户银行") @ApiModelProperty(value = "开户银行")
private java.lang.String bankDeposit; private java.lang.String bankDeposit;
/**开户银行*/
@Excel(name = "开户银行", width = 15)
@ApiModelProperty(value = "开户银行")
private java.lang.String bankname;
/**开户支行*/
@Excel(name = "开户支行", width = 15)
@ApiModelProperty(value = "开户支行")
private java.lang.String bankzh;
} }

Loading…
Cancel
Save