Commit 82973ffa by 孙亚楠

dd

parent 78b41fc3
......@@ -11,7 +11,7 @@ module.exports = function (db, DataTypes) {
product_id: {type: DataTypes.STRING, field: 'product_id', allowNull: true,defaultValue:'', comment:'产品id'},
product_type: {type: DataTypes.STRING, field: 'product_type', allowNull: true,defaultValue:'', comment:'产品类型'},
product_unit_price:{ type: DataTypes.STRING, field: 'product_unit_price', allowNull: true, defaultValue:'',comment:'产品单价'},
product_desc:{ type: DataTypes.STRING, field: 'product_desc', allowNull: true, defaultValue:'',comment:'产品描述'},
product_name:{ type: DataTypes.STRING, field: 'product_name', allowNull: true, defaultValue:'',comment:'产品名称'},
price:{ type: DataTypes.BIGINT, field: 'price', allowNull: true, defaultValue:0,comment:'订单价格'},
product_specifications: { type: DataTypes.INTEGER, field: 'product_specifications', allowNull: true, defaultValue:0,comment:'产品规格数量'},
contract_url: {type: DataTypes.STRING, field: 'contract_url', allowNull: true, defaultValue:'',comment:'合同Url' },
......
......@@ -32,6 +32,9 @@ class EorderService extends ServiceBase {
if(!params.product_id ){
return system.getResult(null, `参数错误 父产品ID列表不能为空`);
}
if(!params.product_name ){
return system.getResult(null, `参数错误 产品名称不能为空`);
}
if(!params.product_type || !this.PRODUCT_TYPE_ARRAY.includes(this.trim(params.product_type))){
return system.getResult(null, `参数错误 未知的产品类型`);
}
......
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