|
|
@@ -97,7 +97,7 @@ public class Accountbalance extends BaseClass {
|
|
|
* @return
|
|
|
* @throws YosException
|
|
|
*/
|
|
|
- public static ArrayList<String> createCashbillIncome(Controller controller, long sys_enterpriseid, long sa_accountclassid, CashbillEntity cashbillEntity, boolean ischeck) throws YosException {
|
|
|
+ public static ArrayList<String> createCashbillIncome(Controller controller, long sys_enterpriseid, long sa_accountclassid, CashbillEntity cashbillEntity, boolean ischeck,boolean isupdatek3flag) throws YosException {
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
long sa_cashbillid = controller.createTableID("sa_cashbill");
|
|
|
String billcode = controller.createBillCode("cashbill");
|
|
|
@@ -122,6 +122,11 @@ public class Accountbalance extends BaseClass {
|
|
|
if (ischeck) {
|
|
|
BigDecimal balance = BigDecimal.ZERO; //当前账户余额
|
|
|
sqlFactory.addParameter("status", "审核");
|
|
|
+ if(isupdatek3flag){
|
|
|
+ sqlFactory.addParameter("updatek3flag", "0");
|
|
|
+ }else{
|
|
|
+ sqlFactory.addParameter("updatek3flag", "");
|
|
|
+ }
|
|
|
sqlFactory.addParameter("checkby", StringUtils.isBlank(controller.username)?"autocheck":controller.username);
|
|
|
sqlFactory.addParameter_SQL("checkdate", "CURRENT_TIME");
|
|
|
|
|
|
@@ -163,6 +168,7 @@ public class Accountbalance extends BaseClass {
|
|
|
sqlFactory.addParameter("status", "新建");
|
|
|
sqlFactory.addParameter("checkby", "null");
|
|
|
sqlFactory.addParameter("checkdate", "null");
|
|
|
+ sqlFactory.addParameter("updatek3flag", "");
|
|
|
sqlFactory.addParameter("balance", 0);
|
|
|
}
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
@@ -332,8 +338,8 @@ public class Accountbalance extends BaseClass {
|
|
|
*/
|
|
|
public static void createCashbillIncomeWithoutSQL(Controller controller, long sys_enterpriseid, long sa_accountclassid,
|
|
|
CashbillEntity cashbillEntity,
|
|
|
- boolean ischeck) throws YosException {
|
|
|
- ArrayList<String> sqlList = createCashbillIncome(controller, sys_enterpriseid, sa_accountclassid, cashbillEntity, ischeck);
|
|
|
+ boolean ischeck,boolean isupdatek3flag) throws YosException {
|
|
|
+ ArrayList<String> sqlList = createCashbillIncome(controller, sys_enterpriseid, sa_accountclassid, cashbillEntity, ischeck,isupdatek3flag);
|
|
|
controller.dbConnect.runSqlUpdate(sqlList);
|
|
|
|
|
|
}
|