|
@@ -36,7 +36,7 @@ class CompilationModel extends BaseModel {
|
|
|
*/
|
|
|
async getCompilationList(fields = null) {
|
|
|
// 筛选字段
|
|
|
- let field = fields == null ?{_id: 1, name: 1, is_release: 1, release_time:1,categoryID: 1, description: 1,overWriteUrl: 1,example: 1, "ration_valuation.id": 1, "ration_valuation.name": 1, "ration_valuation.enable": 1,
|
|
|
+ let field = fields == null ?{_id: 1, name: 1, is_release: 1, release_time:1,categoryID: 1, description: 1,overWriteUrl: 1,example: 1,edition: 1, "ration_valuation.id": 1, "ration_valuation.name": 1, "ration_valuation.enable": 1,
|
|
|
"bill_valuation.id": 1, "bill_valuation.name": 1, "bill_valuation.enable": 1}:fields;
|
|
|
let compilationData = await this.findDataByCondition({name: {$ne: ''}}, field, false);
|
|
|
|
|
@@ -137,6 +137,17 @@ class CompilationModel extends BaseModel {
|
|
|
async setDescription(compilationId, description){
|
|
|
return await this.updateById(compilationId, {description: description});
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 设置版本号
|
|
|
+ *
|
|
|
+ * @param {String} compilationId
|
|
|
+ * @param {String} edition
|
|
|
+ * @return {Promise}
|
|
|
+ * */
|
|
|
+ async setEdition(compilationId, edition){
|
|
|
+ return await this.updateById(compilationId, {edition: edition});
|
|
|
+}
|
|
|
/*
|
|
|
设置代码覆盖路径
|
|
|
*/
|