|
@@ -644,6 +644,7 @@ public class Order extends Controller {
|
|
|
QuerySQL expressformQuery = SQLFactory.createQuerySQL(this, "expressform", "*").setTableAlias("t1");
|
|
QuerySQL expressformQuery = SQLFactory.createQuerySQL(this, "expressform", "*").setTableAlias("t1");
|
|
|
expressformQuery.addJoinTable(JOINTYPE.inner, "sa_expressform_stockbill", "t2", "t2.expressformid = t1.expressformid");
|
|
expressformQuery.addJoinTable(JOINTYPE.inner, "sa_expressform_stockbill", "t2", "t2.expressformid = t1.expressformid");
|
|
|
expressformQuery.addJoinTable(JOINTYPE.inner, "st_stockbill_items", "t3", "t3.st_stockbillid = t2.st_stockbillid","sa_orderid");
|
|
expressformQuery.addJoinTable(JOINTYPE.inner, "st_stockbill_items", "t3", "t3.st_stockbillid = t2.st_stockbillid","sa_orderid");
|
|
|
|
|
+ expressformQuery.addJoinTable(JOINTYPE.inner, "st_stockbill", "t4", "t3.st_stockbillid = t4.st_stockbillid","tracknumber");
|
|
|
expressformQuery.setWhere("t3.sa_orderid", sa_orderids);
|
|
expressformQuery.setWhere("t3.sa_orderid", sa_orderids);
|
|
|
expressformQuery.setOrderBy("t1.createdate desc");
|
|
expressformQuery.setOrderBy("t1.createdate desc");
|
|
|
expressformQuery.setDistinct(true);
|
|
expressformQuery.setDistinct(true);
|
|
@@ -1608,13 +1609,14 @@ public class Order extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Row orderRow = rows.get(0);
|
|
Row orderRow = rows.get(0);
|
|
|
- Rows departmenthrrows =dbConnect.runSqlQuery("select *from sys_departmenthrid where hrid="+hrid);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ Rows departmenthrrows =dbConnect.runSqlQuery("select t1.*,t2.depname from sys_departmenthrid t1 left join sys_department t2 on t1.departmentid=t2.departmentid where t1.hrid="+hrid);
|
|
|
|
|
+ Rows accountbalancerows = dbConnect.runSqlQuery("select * from sa_accountbalance t1 inner join sa_accountclass t2 on t1.sa_accountclassid=t2.sa_accountclassid and t1.siteid=t2.siteid where t2.accountname='现金账户' and t1.sys_enterpriseid=" + orderRow.getLong("sys_enterpriseid"));
|
|
|
long st_stockbillid = createTableID("st_stockbill");
|
|
long st_stockbillid = createTableID("st_stockbill");
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("sys_enterpriseid", orderRow.getLong("sys_enterpriseid"));
|
|
insertSQL.setValue("sys_enterpriseid", orderRow.getLong("sys_enterpriseid"));
|
|
|
|
|
+ insertSQL.setValue("sa_accountclassid",accountbalancerows.isNotEmpty()?accountbalancerows.get(0).getLong("sa_accountclassid"):0);
|
|
|
insertSQL.setValue("rec_contactsid", orderRow.getLong("rec_contactsid"));
|
|
insertSQL.setValue("rec_contactsid", orderRow.getLong("rec_contactsid"));
|
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
|
insertSQL.setValue("stockid", 0);
|
|
insertSQL.setValue("stockid", 0);
|
|
@@ -1694,7 +1696,27 @@ public class Order extends Controller {
|
|
|
sqlList.add(insertSQL.getSQL());
|
|
sqlList.add(insertSQL.getSQL());
|
|
|
}
|
|
}
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
- dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ String depname= departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getString("depname"):"";
|
|
|
|
|
+ if(depname.equals("售后部")){
|
|
|
|
|
+ if(accountbalancerows.isNotEmpty()){
|
|
|
|
|
+ if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(BigDecimal.ZERO)>0){
|
|
|
|
|
+ if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(payamount)>0){
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount=0,paydiscountamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount.subtract(accountbalancerows.get(0).getBigDecimal("discountamount"))+",paydiscountamount="+accountbalancerows.get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
content.put("st_stockbillid",st_stockbillid);
|
|
content.put("st_stockbillid",st_stockbillid);
|
|
|
return getSucReturnObject().setData(st_stockbillid).toString();
|
|
return getSucReturnObject().setData(st_stockbillid).toString();
|
|
|
}
|
|
}
|
|
@@ -1746,15 +1768,15 @@ public class Order extends Controller {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
Row orderRow = rows.get(0);
|
|
Row orderRow = rows.get(0);
|
|
|
- Rows departmenthrrows =dbConnect.runSqlQuery("select *from sys_departmenthrid where hrid="+hrid);
|
|
|
|
|
|
|
+ Rows departmenthrrows =dbConnect.runSqlQuery("select t1.*,t2.depname from sys_departmenthrid t1 left join sys_department t2 on t1.departmentid=t2.departmentid where t1.hrid="+hrid);
|
|
|
Rows accountbalancerows = dbConnect.runSqlQuery("select * from sa_accountbalance t1 inner join sa_accountclass t2 on t1.sa_accountclassid=t2.sa_accountclassid and t1.siteid=t2.siteid where t2.accountname='现金账户' and t1.sys_enterpriseid=" + orderRow.getLong("sys_enterpriseid"));
|
|
Rows accountbalancerows = dbConnect.runSqlQuery("select * from sa_accountbalance t1 inner join sa_accountclass t2 on t1.sa_accountclassid=t2.sa_accountclassid and t1.siteid=t2.siteid where t2.accountname='现金账户' and t1.sys_enterpriseid=" + orderRow.getLong("sys_enterpriseid"));
|
|
|
-
|
|
|
|
|
long st_stockbillid = createTableID("st_stockbill");
|
|
long st_stockbillid = createTableID("st_stockbill");
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("sys_enterpriseid", orderRow.getLong("sys_enterpriseid"));
|
|
insertSQL.setValue("sys_enterpriseid", orderRow.getLong("sys_enterpriseid"));
|
|
|
insertSQL.setValue("rec_contactsid", orderRow.getLong("rec_contactsid"));
|
|
insertSQL.setValue("rec_contactsid", orderRow.getLong("rec_contactsid"));
|
|
|
|
|
+ insertSQL.setValue("sa_accountclassid",accountbalancerows.isNotEmpty()?accountbalancerows.get(0).getLong("sa_accountclassid"):0);
|
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
|
insertSQL.setValue("stockid", 0);
|
|
insertSQL.setValue("stockid", 0);
|
|
|
insertSQL.setValue("type", "销售出库");
|
|
insertSQL.setValue("type", "销售出库");
|
|
@@ -1767,7 +1789,7 @@ public class Order extends Controller {
|
|
|
|
|
|
|
|
insertSQL.setValue("outplace", rowsdetail.get(0).getString("outplace"));
|
|
insertSQL.setValue("outplace", rowsdetail.get(0).getString("outplace"));
|
|
|
insertSQL.setValue("delivery", orderRow.getString("delivery"));
|
|
insertSQL.setValue("delivery", orderRow.getString("delivery"));
|
|
|
- insertSQL.setValue("logisticsmethod", orderRow.getString("logisticsmethod"));
|
|
|
|
|
|
|
+ insertSQL.setValue("logisticsmethod", "");
|
|
|
insertSQL.setValue("invoice_enterprisename", orderRow.getString("invoicename"));
|
|
insertSQL.setValue("invoice_enterprisename", orderRow.getString("invoicename"));
|
|
|
insertSQL.setValue("invoice_address", orderRow.getString("invoiceaddress"));
|
|
insertSQL.setValue("invoice_address", orderRow.getString("invoiceaddress"));
|
|
|
insertSQL.setValue("invoice_taxno", orderRow.getString("invoicetaxno"));
|
|
insertSQL.setValue("invoice_taxno", orderRow.getString("invoicetaxno"));
|
|
@@ -1832,21 +1854,28 @@ public class Order extends Controller {
|
|
|
sqlList.add(insertSQL.getSQL());
|
|
sqlList.add(insertSQL.getSQL());
|
|
|
}
|
|
}
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
- if(accountbalancerows.isNotEmpty()){
|
|
|
|
|
- if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(BigDecimal.ZERO)>0){
|
|
|
|
|
- if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(payamount)>0){
|
|
|
|
|
- dbConnect.runSqlUpdate("update st_stockbill set payamount=0,paydiscountamount="+accountbalancerows.get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ String depname= departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getString("depname"):"";
|
|
|
|
|
+ if(depname.equals("售后部")){
|
|
|
|
|
+ if(accountbalancerows.isNotEmpty()){
|
|
|
|
|
+ if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(BigDecimal.ZERO)>0){
|
|
|
|
|
+ if(accountbalancerows.get(0).getBigDecimal("discountamount").compareTo(payamount)>0){
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount=0,paydiscountamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount.subtract(accountbalancerows.get(0).getBigDecimal("discountamount"))+",paydiscountamount="+accountbalancerows.get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
- dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount.subtract(accountbalancerows.get(0).getBigDecimal("discountamount"))+",paydiscountamount="+accountbalancerows.get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
|
|
+ dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}else{
|
|
}else{
|
|
|
dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
dbConnect.runSqlUpdate("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
content.put("st_stockbillid",st_stockbillid);
|
|
content.put("st_stockbillid",st_stockbillid);
|
|
|
return getSucReturnObject().setData(st_stockbillid).toString();
|
|
return getSucReturnObject().setData(st_stockbillid).toString();
|
|
|
}
|
|
}
|
|
@@ -2017,7 +2046,7 @@ public class Order extends Controller {
|
|
|
Rows accountbalancerows =accountbalanceQuerySQL.query();
|
|
Rows accountbalancerows =accountbalanceQuerySQL.query();
|
|
|
RowsMap accountbalancerowsMap = accountbalancerows.toRowsMap("sys_enterpriseid");
|
|
RowsMap accountbalancerowsMap = accountbalancerows.toRowsMap("sys_enterpriseid");
|
|
|
|
|
|
|
|
- Rows departmenthrrows =dbConnect.runSqlQuery("select *from sys_departmenthrid where hrid="+hrid);
|
|
|
|
|
|
|
+ Rows departmenthrrows =dbConnect.runSqlQuery("select t1.*,t2.depname from sys_departmenthrid t1 left join sys_department t2 on t1.departmentid=t2.departmentid where t1.hrid="+hrid);
|
|
|
for(String sys_enterpriseid :enterpriseSet){
|
|
for(String sys_enterpriseid :enterpriseSet){
|
|
|
for(String delivery:deliverySet){
|
|
for(String delivery:deliverySet){
|
|
|
if(enterpriserowsMap.get(sys_enterpriseid).toRowsMap("delivery").containsKey(delivery)){
|
|
if(enterpriserowsMap.get(sys_enterpriseid).toRowsMap("delivery").containsKey(delivery)){
|
|
@@ -2028,6 +2057,7 @@ public class Order extends Controller {
|
|
|
insertSQL.setSiteid(siteid);
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
insertSQL.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
insertSQL.setValue("rec_contactsid", orderdetailRows.get(0).getLong("rec_contactsid"));
|
|
insertSQL.setValue("rec_contactsid", orderdetailRows.get(0).getLong("rec_contactsid"));
|
|
|
|
|
+ insertSQL.setValue("sa_accountclassid",accountbalancerows.isNotEmpty()?accountbalancerows.get(0).getLong("sa_accountclassid"):0);
|
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
insertSQL.setValue("departmentid", departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getLong("departmentid"):0);
|
|
|
insertSQL.setValue("stockid", 0);
|
|
insertSQL.setValue("stockid", 0);
|
|
|
insertSQL.setValue("type", "销售出库");
|
|
insertSQL.setValue("type", "销售出库");
|
|
@@ -2040,7 +2070,7 @@ public class Order extends Controller {
|
|
|
|
|
|
|
|
insertSQL.setValue("outplace", orderdetailRows.get(0).getString("outplace"));
|
|
insertSQL.setValue("outplace", orderdetailRows.get(0).getString("outplace"));
|
|
|
insertSQL.setValue("delivery", orderdetailRows.get(0).getString("delivery"));
|
|
insertSQL.setValue("delivery", orderdetailRows.get(0).getString("delivery"));
|
|
|
- insertSQL.setValue("logisticsmethod", orderdetailRows.get(0).getString("logisticsmethod"));
|
|
|
|
|
|
|
+ insertSQL.setValue("logisticsmethod","");
|
|
|
insertSQL.setValue("invoice_enterprisename",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("enterprisename"):"");
|
|
insertSQL.setValue("invoice_enterprisename",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("enterprisename"):"");
|
|
|
insertSQL.setValue("invoice_address",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("address"):"");
|
|
insertSQL.setValue("invoice_address",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("address"):"");
|
|
|
insertSQL.setValue("invoice_taxno",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("taxno"):"");
|
|
insertSQL.setValue("invoice_taxno",enterprisefinancerowsMap.containsKey(sys_enterpriseid)?enterprisefinancerowsMap.get(sys_enterpriseid).get(0).getString("taxno"):"");
|
|
@@ -2101,13 +2131,17 @@ public class Order extends Controller {
|
|
|
i++;
|
|
i++;
|
|
|
sqlList.add(insertSQL.getSQL());
|
|
sqlList.add(insertSQL.getSQL());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if(accountbalancerowsMap.containsKey(sys_enterpriseid)){
|
|
|
|
|
- if(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount").compareTo(BigDecimal.ZERO)>0){
|
|
|
|
|
- if(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount").compareTo(payamount)>0){
|
|
|
|
|
- sqlList.add("update st_stockbill set payamount=0,paydiscountamount="+accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
|
|
+ String depname= departmenthrrows.isNotEmpty()?departmenthrrows.get(0).getString("depname"):"";
|
|
|
|
|
+ if(depname.equals("售后部")){
|
|
|
|
|
+ if(accountbalancerowsMap.containsKey(sys_enterpriseid)){
|
|
|
|
|
+ if(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount").compareTo(BigDecimal.ZERO)>0){
|
|
|
|
|
+ if(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount").compareTo(payamount)>0){
|
|
|
|
|
+ sqlList.add("update st_stockbill set payamount=0,paydiscountamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ sqlList.add("update st_stockbill set payamount="+payamount.subtract(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount"))+",paydiscountamount="+accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
- sqlList.add("update st_stockbill set payamount="+payamount.subtract(accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount"))+",paydiscountamount="+accountbalancerowsMap.get(sys_enterpriseid).get(0).getBigDecimal("discountamount")+" where st_stockbillid="+st_stockbillid);
|
|
|
|
|
|
|
+ sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
@@ -2115,6 +2149,8 @@ public class Order extends Controller {
|
|
|
}else{
|
|
}else{
|
|
|
sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
// sqlList.add("update st_stockbill set payamount="+payamount+" where st_stockbillid="+st_stockbillid);
|
|
|
stockbillcount++;
|
|
stockbillcount++;
|
|
|
}
|
|
}
|
|
@@ -2821,7 +2857,7 @@ public class Order extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- sqlList.addAll(updateAccountbalance_freez(amount, true, "由销售订单" + sonum + "审核时冻结", sys_enterpriseid, sa_accountclassid, sa_orderid));
|
|
|
|
|
|
|
+ sqlList.addAll(updateAccountbalance_freez(amount, true, "由"+ (row.getString("type").equals("配件订单")?"配件":"销售")+"订单" + sonum + "审核时冻结", sys_enterpriseid, sa_accountclassid, sa_orderid));
|
|
|
|
|
|
|
|
sqlList.add(getOrderCheckSql(sa_orderid, reviewtype));
|
|
sqlList.add(getOrderCheckSql(sa_orderid, reviewtype));
|
|
|
|
|
|
|
@@ -2885,7 +2921,7 @@ public class Order extends Controller {
|
|
|
|
|
|
|
|
String message = "您的订单【" + sonum + "】已反审核,请注意查看!";
|
|
String message = "您的订单【" + sonum + "】已反审核,请注意查看!";
|
|
|
|
|
|
|
|
- sqlList.addAll(updateAccountbalance_freez(amount, false, "由销售订单" + sonum + "审核时冻结", sys_enterpriseid, sa_accountclassid, sa_orderid));
|
|
|
|
|
|
|
+ sqlList.addAll(updateAccountbalance_freez(amount, false, "由"+ (row.getString("type").equals("配件订单")?"配件":"销售")+"订单" + sonum + "反审核时冻结", sys_enterpriseid, sa_accountclassid, sa_orderid));
|
|
|
|
|
|
|
|
sqlList.add(DataContrlLog.createLog(this, "sa_order", sa_orderid, "订单反审核", "订单反审核成功,金额:" + amount).getSQL());
|
|
sqlList.add(DataContrlLog.createLog(this, "sa_order", sa_orderid, "订单反审核", "订单反审核成功,金额:" + amount).getSQL());
|
|
|
|
|
|