Commit 69fc9a94 authored by licc's avatar licc

fix

parent f0823f1f
...@@ -286,18 +286,13 @@ public class AccountManager { ...@@ -286,18 +286,13 @@ public class AccountManager {
if (null == monthManure) { if (null == monthManure) {
//新增上月剩余月度肥料奖金 //新增上月剩余月度肥料奖金
int count = monthManureMapper.add(manure); int count = monthManureMapper.add(manure);
if (count == 0) { return count != 0;
return false;
}
} else { } else {
//编辑 //编辑
monthManure.setManureAward(manure.getManureAward()); monthManure.setManureAward(manure.getManureAward());
monthManure.setYearMonth(manure.getYearMonth()); monthManure.setYearMonth(manure.getYearMonth());
int count = monthManureMapper.edit(monthManure); int count = monthManureMapper.edit(monthManure);
if (count == 0) { return count != 0;
return false;
}
} }
return true;
} }
} }
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