Commit 6b828e7e by linboxuan

diagnosisInfo update by corporateName

parent b290845e
...@@ -82,7 +82,10 @@ class DiagnosisService extends ServiceBase { ...@@ -82,7 +82,10 @@ class DiagnosisService extends ServiceBase {
where.status = actionBody.status where.status = actionBody.status
} }
if (actionBody.publishName) { if (actionBody.publishName) {
where.publish_name = { [this.db.Op.like]: `%${actionBody.publish_name}%` } where.publish_name = { [this.db.Op.like]: `%${actionBody.publishName}%` }
}
if (actionBody.corporateName) {
where.corporate_name = { [this.db.Op.like]: `%${actionBody.corporateName}%` }
} }
if (actionBody.stdate && actionBody.endate) { if (actionBody.stdate && actionBody.endate) {
where.updated_at = { [this.db.Op.between]: [actionBody.stdate, actionBody.endate] } where.updated_at = { [this.db.Op.between]: [actionBody.stdate, actionBody.endate] }
......
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