|
|
@@ -280,11 +280,21 @@ public class ERPServiceImpl implements ERPService {
|
|
|
if (accountRegisterMain.getDate() == null){
|
|
|
return ApiResponse.failRsp("102",type + " 参数单据日期为空!");
|
|
|
}
|
|
|
+ String ar_type = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_currencytype = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_accountcode = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_accountname = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_accountcurrency = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_accountrate = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ //String ar_payment = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_departmentcode = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ String ar_departmentname = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
+ //String ar_cateid = accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType();
|
|
|
String Sql="insert into AccountRegister(ar_id,ar_code,ar_date,ar_type,ar_currencytype,ar_accountcode,ar_accountname,ar_accountcurrency,ar_accountrate" +
|
|
|
",ar_payment,ar_departmentcode,ar_departmentname,ar_cateid,ar_emid,ar_recordman,ar_status,ar_statuscode,ar_poststatus,ar_poststatuscode)" +
|
|
|
- "values("+ar_id+",'"+code+"',to_date('"+accountRegisterMain.getDate()+"','yyyy-mm-dd'),'"+accountRegisterMain.getType() == null ? "" : accountRegisterMain.getType()+"','"+accountRegisterMain.getCurrencytype() == null ? "" : accountRegisterMain.getCurrencytype() +"','"+accountRegisterMain.getAccountcode() == null ? "" : accountRegisterMain.getAccountcode()+"'," +
|
|
|
- "'"+accountRegisterMain.getAccountname() == null ? "" : accountRegisterMain.getAccountname()+"','"+accountRegisterMain.getAccountcurrency() == null ? "" : accountRegisterMain.getAccountcurrency()+"','"+accountRegisterMain.getAccountrate() == null ? "" : accountRegisterMain.getAccountrate()+"'," +
|
|
|
- accountRegisterMain.getPayment() +",'"+accountRegisterMain.getDepartmentcode() == null ? "" : accountRegisterMain.getDepartmentcode()+"','"+accountRegisterMain.getDepartmentname() == null ? "" : accountRegisterMain.getDepartmentname()+"',"+accountRegisterMain.getCateid() +"," +
|
|
|
+ "values("+ar_id+",'"+code+"',to_date('"+accountRegisterMain.getDate()+"','yyyy-mm-dd'),'"+ar_type+"','"+ar_currencytype+"','"+ar_accountcode+"'," +
|
|
|
+ "'"+ar_accountname+"','"+ar_accountcurrency+"','"+ar_accountrate+"'," +
|
|
|
+ accountRegisterMain.getPayment() +",'"+ar_departmentcode+"','"+ar_departmentname+"',"+accountRegisterMain.getCateid() +"," +
|
|
|
"1033922,'管理员','在录入','ENTERING','未过账','UNPOST')";
|
|
|
|
|
|
sqls.add(Sql);
|