提交 6f56a829 authored 作者: huyufan's avatar huyufan

冻结资金相关

上级 5d0154a9
......@@ -5,6 +5,7 @@ import com.clx.order.enums.OrderEnum;
import com.clx.performance.model.OrderGoods;
import com.clx.performance.model.OwnerAccount;
import com.clx.performance.param.pc.PageOwnerAccountListParam;
import com.msl.common.utils.DateUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.jdbc.SQL;
......@@ -43,8 +44,8 @@ public class OwnerAccountSqlProvider {
sqlList.append("update owner_account set usable_balance = usable_balance +" +
account.getUsableBalance() + ",account_balance = account_balance +"
+ account.getAccountBalance()+
",modified_time=" + now
+ "where id = " + account.getId() + "and modified_time = " + account.getModifiedTime()
",modified_time=" + DateUtils.formatDateTime(now, "yyyy-MM-dd HH:mm:ss")
+ "where id = " + account.getId() + "and modified_time = " + DateUtils.formatDateTime(account.getModifiedTime(), "yyyy-MM-dd HH:mm:ss")
);
return sqlList.toString();
......@@ -56,8 +57,8 @@ public class OwnerAccountSqlProvider {
sqlList.append("update owner_account set usable_balance = usable_balance -" +
account.getUsableBalance() + ",frozen_balance = frozen_balance +"
+ account.getFrozenBalance() +",account_balance = account_balance -" + account.getFrozenBalance()
+ ",modified_time=" + now
+ "where id = " + account.getId() + "and modified_time = " + account.getModifiedTime()
+ ",modified_time=" + DateUtils.formatDateTime(now, "yyyy-MM-dd HH:mm:ss")
+ "where id = " + account.getId() + "and modified_time = " + DateUtils.formatDateTime(account.getModifiedTime(), "yyyy-MM-dd HH:mm:ss")
);
return sqlList.toString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论