Commit 12d0d48b by 王昆

gsb

parent df37460e
...@@ -30,6 +30,12 @@ class SaasinvoiceapplyService extends ServiceBase { ...@@ -30,6 +30,12 @@ class SaasinvoiceapplyService extends ServiceBase {
} }
} }
async bulkSave10(params) { async bulkSave10(params) {
if (params.parent_id) {
let exists = await this.dao.findOne({parent_id: params.parent_id});
if (exists) {
return system.getResultSuccess();
}
}
let rs = await this.dao.bulkCreate(params.dataList); let rs = await this.dao.bulkCreate(params.dataList);
if (rs && params.updateStatus) { if (rs && params.updateStatus) {
await this.updateStatus(params.updateStatus); await this.updateStatus(params.updateStatus);
......
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