Commit 45f1f338 by 王勇飞

fix TmInfoPusherApi

parent 40a8940b
......@@ -1661,13 +1661,21 @@ class TrademarkService extends ServiceBase {
}
async updateIsPushed(id) {
// try {
// let setObj = { isPushed: '1' };
// let whereObj = { where: { id: id } };
// let tmResult = await this.dao.updateByWhere(setObj, whereObj);
// return tmResult;
// } catch (e) {
// console.log('updateIsPushed更新失败', e);
// }
try {
let setObj = { isPushed: '1' };
let whereObj = { where: { id: id } };
let tmResult = await this.dao.updateByWhere(setObj, whereObj);
return tmResult;
let sql = "UPDATE h_trade_mark SET isPushed='1' WHERE id='" + id + "';";
let updateResult = await this.dao.customUpdate(sql);
return updateResult;
} catch (e) {
console.log('updateIsPushed更新失败', e);
return e;
}
}
......
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