Commit 83c19d89 authored by neo's avatar neo

[bugfix] change currentperiodbo to field period for db not has that

parent a2f94e3f
...@@ -137,7 +137,7 @@ public interface ValidationInfoMapper extends MyVatMapper { ...@@ -137,7 +137,7 @@ public interface ValidationInfoMapper extends MyVatMapper {
@Select("SELECT " + @Select("SELECT " +
" vv.VID, " + " vv.VID, " +
" vv.Group, " + " vv.Group, " +
" vv.CurrentPeriodBo, " + " vv.Period, " +
" vv.CustomerCode, " + " vv.CustomerCode, " +
" vv.Summary, " + " vv.Summary, " +
" vv.AcctCode, " + " vv.AcctCode, " +
...@@ -149,15 +149,15 @@ public interface ValidationInfoMapper extends MyVatMapper { ...@@ -149,15 +149,15 @@ public interface ValidationInfoMapper extends MyVatMapper {
" JOIN " + " JOIN " +
" (SELECT " + " (SELECT " +
" v.VID, " + " v.VID, " +
" v.CurrentPeriodBo, " + " v.Period, " +
" v.Group, " + " v.Group, " +
" MAX(v.Date) AS `Date`, " + " MAX(v.Date) AS `Date`, " +
" SUM(v.Debit) AS Debit, " + " SUM(v.Debit) AS Debit, " +
" SUM(v.Credit) AS Credit " + " SUM(v.Credit) AS Credit " +
" FROM " + " FROM " +
" Voucher v " + " Voucher v " +
" GROUP BY v.VID , v.CurrentPeriodBo , v.Group " + " GROUP BY v.VID , v.Period , v.Group " +
" HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.CurrentPeriodBo = q.CurrentPeriodBo " + " HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.Period = q.Period " +
" AND vv.Group = q.Group " + " AND vv.Group = q.Group " +
"") "")
List<VoucherBalanceDto>getSingleVoucherCheck(); List<VoucherBalanceDto>getSingleVoucherCheck();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment