init bank account
This commit is contained in:
commit
9050a0b1b9
@ -41,17 +41,17 @@ public class BankAccount extends AbstractEntity implements Serializable {
|
|||||||
@Column(name = "autodebit_op", columnDefinition = "boolean", nullable = false)
|
@Column(name = "autodebit_op", columnDefinition = "boolean", nullable = false)
|
||||||
private Boolean autoDebitOP = Boolean.FALSE;
|
private Boolean autoDebitOP = Boolean.FALSE;
|
||||||
|
|
||||||
@Column(name = "bank_customer", columnDefinition = "character varying(50)", nullable = true)
|
@Column(name = "bank_customer", columnDefinition = "character varying(50)", nullable = false)
|
||||||
private String bankCustomer;
|
private String bankCustomer = "";
|
||||||
|
|
||||||
@Column(name = "bank_account", columnDefinition = "character varying(10)", nullable = true)
|
@Column(name = "bank_account", columnDefinition = "character varying(10)", nullable = false)
|
||||||
private String bankAccount;
|
private String bankAccount = "";
|
||||||
|
|
||||||
@Column(name = "bank_code", columnDefinition = "character varying(8)", nullable = true)
|
@Column(name = "bank_code", columnDefinition = "character varying(8)", nullable = false)
|
||||||
private String bankCode;
|
private String bankCode = "";
|
||||||
|
|
||||||
@Column(name = "bank_name", columnDefinition = "character varying(50)", nullable = true)
|
@Column(name = "bank_name", columnDefinition = "character varying(50)", nullable = false)
|
||||||
private String bankName;
|
private String bankName = "";
|
||||||
|
|
||||||
public static String createQueryFromStringKey(String humanKey) {
|
public static String createQueryFromStringKey(String humanKey) {
|
||||||
return "customer.name = " + humanKey;
|
return "customer.name = " + humanKey;
|
||||||
|
@ -30,7 +30,7 @@ function shadowdump(pac) {
|
|||||||
runbash(cmd);
|
runbash(cmd);
|
||||||
}
|
}
|
||||||
function mysqlaclsdump(pac) {
|
function mysqlaclsdump(pac) {
|
||||||
var dump = "/home/pacs/" + pac + "/.bak/mysql_passwd.gz";
|
var dump = "/home/pacs/" + pac + "/.bak/mysql_passwd";
|
||||||
var cmd = "mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"user like '" + pac + "%'\" mysql --tables user > " + dump
|
var cmd = "mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"user like '" + pac + "%'\" mysql --tables user > " + dump
|
||||||
+ " && mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"db like '" + pac + "%'\" mysql --tables db tables_priv proc >>" + dump;
|
+ " && mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"db like '" + pac + "%'\" mysql --tables db tables_priv proc >>" + dump;
|
||||||
runbash(cmd);
|
runbash(cmd);
|
||||||
@ -209,4 +209,4 @@ if (pacs.length == 1 && hive != 'undef') {
|
|||||||
pgsqlpasswddump(pacname);
|
pgsqlpasswddump(pacname);
|
||||||
} else {
|
} else {
|
||||||
print('run as pac-owner!\n');
|
print('run as pac-owner!\n');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user