@@ -22,7 +22,7 @@ module.exports = app => {
async isSettle(cid) {
const result = await this.getDataByCondition({ cid });
- return result.length > 0;
+ return result && result.length > 0;
}
async updateChangeList(cid, settleBills, settlePos, list) {