明树Git Lab

Commit 5b7d91db authored by zfp1's avatar zfp1

!

parent d1dcc12d
Pipeline #108766 passed with stage
in 3 seconds
...@@ -143,7 +143,7 @@ async function getTzmbzrsInfo(req, res, next) { ...@@ -143,7 +143,7 @@ async function getTzmbzrsInfo(req, res, next) {
if (_.isEmpty(sewhere)) { if (_.isEmpty(sewhere)) {
return res.sendError(errorMessage.paramsError); return res.sendError(errorMessage.paramsError);
} }
let zrs = await DB.TzTzmbzrs.findOne({ where: { ...sewhere, del: 0 }, raw: true }); let zrs = await DB.TzTzmbzrs.findOne({ where: { ...sewhere, del: 0 } });
if (!(zrs && zrs.id && zrs.projectId)) { if (!(zrs && zrs.id && zrs.projectId)) {
return res.sendError(errorMessage.resourceNotFound); return res.sendError(errorMessage.resourceNotFound);
} }
......
...@@ -49,7 +49,7 @@ const TzJsqtzjcZxjc = sequelize.define('TzJsqtzjcZxjc', { ...@@ -49,7 +49,7 @@ const TzJsqtzjcZxjc = sequelize.define('TzJsqtzjcZxjc', {
comment: "检查结果" comment: "检查结果"
}, },
zgcsqd: { zgcsqd: {
type: DataTypes.TEXT, type: DataTypes.JSON,
comment: "整改措施清单" comment: "整改措施清单"
}, },
fjcl: { fjcl: {
......
...@@ -72,6 +72,6 @@ app.use(function (err, req, res, next) { ...@@ -72,6 +72,6 @@ app.use(function (err, req, res, next) {
const server = require('http').createServer(app); const server = require('http').createServer(app);
server.listen(process.env.PORT || 3000, function () { server.listen(process.env.PORT || 3001, function () {
console.log(`****** server is listening : ${process.env.PORT} || 3000`); console.log(`****** server is listening : ${process.env.PORT} || 3000`);
}); });
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