明树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) {
if (_.isEmpty(sewhere)) {
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)) {
return res.sendError(errorMessage.resourceNotFound);
}
......
......@@ -49,7 +49,7 @@ const TzJsqtzjcZxjc = sequelize.define('TzJsqtzjcZxjc', {
comment: "检查结果"
},
zgcsqd: {
type: DataTypes.TEXT,
type: DataTypes.JSON,
comment: "整改措施清单"
},
fjcl: {
......
......@@ -72,6 +72,6 @@ app.use(function (err, req, res, next) {
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`);
});
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