|
|
@ -19,10 +19,11 @@ async function bindAnxin2pep (ctx) { |
|
|
|
name, pepProjectId, anxinProjectId, |
|
|
|
updateTime: now, mappingClass, |
|
|
|
del: false, |
|
|
|
maintenanceEnd:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[1]:NULL, |
|
|
|
maintenanceStart:maintenancePeriod&&maintenancePeriod.length?maintenancePeriod[0]:NULL |
|
|
|
} |
|
|
|
|
|
|
|
if(maintenancePeriod&&maintenancePeriod.length){ |
|
|
|
storageData.maintenanceEnd=maintenancePeriod[1] |
|
|
|
storageData.maintenanceStart=maintenancePeriod[0] |
|
|
|
} |
|
|
|
// 仅限已有 pepProjectId 的项目
|
|
|
|
const existRes = pepProjectId ? await models.ProjectCorrelation.findOne({ |
|
|
|
where: Object.assign( |
|
|
|