备份:财务改造前的版本 - 模板编辑功能和管理员入口
This commit is contained in:
@@ -57,9 +57,6 @@ router.put('/:id', async (req, res) => {
|
||||
if (existing.rows.length === 0) {
|
||||
return res.status(404).json({ success: false, message: '模板不存在' });
|
||||
}
|
||||
if (existing.rows[0].is_system) {
|
||||
return res.status(403).json({ success: false, message: '系统预设模板不可修改' });
|
||||
}
|
||||
const { name, description, phases } = req.body;
|
||||
const updates = [];
|
||||
const values = [];
|
||||
|
||||
Reference in New Issue
Block a user