1.修复统计盘点设置查询错误问题

feature-order-fix
x_z 3 years ago
parent e0b1b1839b
commit 954b6bb5d1

@ -92,7 +92,8 @@ public class InvCountSettingServiceImpl implements InvCountSettingService {
*/ */
public boolean existSetting() { public boolean existSetting() {
Long count = invCountSettingDao.countSetting(); Long count = invCountSettingDao.countSetting();
if (count < 1) { if (count == null || count < 1) {
//未配置设置
return false; return false;
} }
return true; return true;

@ -137,8 +137,8 @@
</where> </where>
</select> </select>
<delete id="countSetting"> <select id="countSetting" resultType="java.lang.Long">
select count(*) select count(*)
from inv_count_setting from inv_count_setting
</delete> </select>
</mapper> </mapper>
Loading…
Cancel
Save