chore: pg 改成bigint

This commit is contained in:
xiaojunnuo
2024-08-06 11:10:33 +08:00
parent bf6c5d690e
commit c3f04a80fd
8 changed files with 22 additions and 22 deletions
@@ -75,7 +75,7 @@ export abstract class BaseService<T> {
* @param param 数据
*/
async add(param) {
const now = new Date().getTime();
const now = new Date();
param.createTime = now;
param.updateTime = now;
await this.addOrUpdate(param);
@@ -91,7 +91,7 @@ export abstract class BaseService<T> {
*/
async update(param) {
if (!param.id) throw new ValidateException('no id');
param.updateTime = new Date().getTime();
param.updateTime = new Date();
await this.addOrUpdate(param);
await this.modifyAfter(param);
}