|
|
@@ -2027,7 +2027,8 @@ func (r *Ermcp3GoodsGroup) buildSql() string {
|
|
|
" t.CLOSEPRICEMODE," +
|
|
|
" t.GROUPCATEGROYID" +
|
|
|
" FROM GOODSGROUP t" +
|
|
|
- " WHERE 1 = 1"
|
|
|
+ " LEFT JOIN market m on t.marketid=m.marketid" +
|
|
|
+ " WHERE 1 = 1 and m.trademode=15"
|
|
|
if r.ExcludeCfg == 1 {
|
|
|
str := "select t.goodsgroupid" +
|
|
|
" from ERMS_MiddleGoods t" +
|
|
|
@@ -2042,7 +2043,7 @@ func (r *Ermcp3GoodsGroup) buildSql() string {
|
|
|
" on t.goodsgroupid = g.goodsgroupid" +
|
|
|
" where t.isvalid=1 and t.areauserid = %v)"
|
|
|
str = fmt.Sprintf(str, r.AreaUserId, r.AreaUserId)
|
|
|
- sqlId.Join(fmt.Sprintf("and t.goodsgroupid in(%v)", str))
|
|
|
+ sqlId.Join(fmt.Sprintf(" and t.goodsgroupid in(%v)", str))
|
|
|
}
|
|
|
return sqlId.String()
|
|
|
}
|