peng.peng
2 years ago
12 changed files with 329 additions and 37 deletions
@ -0,0 +1,62 @@ |
|||||
|
/* eslint-disable*/ |
||||
|
|
||||
|
'use strict'; |
||||
|
|
||||
|
module.exports = dc => { |
||||
|
const DataTypes = dc.ORM; |
||||
|
const sequelize = dc.orm; |
||||
|
const QualityCheckResult = sequelize.define("qualityCheckResult", { |
||||
|
id: { |
||||
|
type: DataTypes.BIGINT, |
||||
|
allowNull: false, |
||||
|
defaultValue: null, |
||||
|
comment: null, |
||||
|
primaryKey: true, |
||||
|
field: "id", |
||||
|
autoIncrement: true, |
||||
|
unique: "t_quality_check_result_id_uindex" |
||||
|
}, |
||||
|
database: { |
||||
|
type: DataTypes.TEXT, |
||||
|
allowNull: true, |
||||
|
defaultValue: null, |
||||
|
comment: null, |
||||
|
primaryKey: false, |
||||
|
field: "database", |
||||
|
autoIncrement: false, |
||||
|
}, |
||||
|
mode: { |
||||
|
type: DataTypes.TEXT, |
||||
|
allowNull: true, |
||||
|
defaultValue: null, |
||||
|
comment: null, |
||||
|
primaryKey: false, |
||||
|
field: "mode", |
||||
|
autoIncrement: false |
||||
|
}, |
||||
|
total: { |
||||
|
type: DataTypes.BIGINT, |
||||
|
allowNull: true, |
||||
|
defaultValue: null, |
||||
|
comment: null, |
||||
|
primaryKey: false, |
||||
|
field: "total", |
||||
|
autoIncrement: false |
||||
|
}, |
||||
|
unexpected: { |
||||
|
type: DataTypes.BIGINT, |
||||
|
allowNull: true, |
||||
|
defaultValue: null, |
||||
|
comment: null, |
||||
|
primaryKey: false, |
||||
|
field: "unexpected", |
||||
|
autoIncrement: false |
||||
|
} |
||||
|
}, { |
||||
|
tableName: "t_quality_check_result", |
||||
|
comment: "", |
||||
|
indexes: [] |
||||
|
}); |
||||
|
dc.models.QualityCheckResult = QualityCheckResult; |
||||
|
return QualityCheckResult; |
||||
|
}; |
@ -0,0 +1,14 @@ |
|||||
|
create table t_quality_check_result |
||||
|
( |
||||
|
id bigserial not null |
||||
|
constraint t_quality_check_result_pkey |
||||
|
primary key, |
||||
|
database text, |
||||
|
mode text, |
||||
|
total bigint, |
||||
|
unexpected bigint |
||||
|
); |
||||
|
|
||||
|
create unique index idx_unique_db_mode |
||||
|
on t_quality_check_result (database, mode); |
||||
|
|
@ -0,0 +1,18 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
import { basicAction } from '@peace/utils' |
||||
|
import { ApiTable } from '$utils' |
||||
|
|
||||
|
|
||||
|
|
||||
|
export function getQualityInspection (query = {}) { |
||||
|
return dispatch => basicAction({ |
||||
|
type: 'get', |
||||
|
query, |
||||
|
dispatch: dispatch, |
||||
|
actionType: 'GET_QUALITY_INSPECT', |
||||
|
url: `${ApiTable.getQualityInspection}`, |
||||
|
msg: { error: '查询数据质检详情' }, |
||||
|
reducer: { name: '' } |
||||
|
}); |
||||
|
} |
Loading…
Reference in new issue