|
|
@@ -166,17 +166,14 @@
|
|
|
<select id="querymembergoodslimit" resultType="com.muchinfo.mtp3pojos.vo.organ.MemberGoodsLimitResult">
|
|
|
select t.autoid "autoid", t.userid "userid", t.roletype "roletype", t.goodsid "goodsid",
|
|
|
t.isnodisplay "isnodisplay", t.iscannotbuy "iscannotbuy", t.iscannotsell "iscannotsell",
|
|
|
+ g.marketid "marketid",
|
|
|
ua.userid || '/' || ua.accountname "membername",
|
|
|
g.goodscode || '/' || g.goodsname "goodsdisplay",
|
|
|
- ei.enumdicname "roledisplay", ei2.enumdicname "nodisplay",
|
|
|
- ei3.enumdicname "cannotbuy", ei4.enumdicname "cannotsell"
|
|
|
+ ei.enumdicname "roledisplay"
|
|
|
from MemberGoodsLimitConfig t
|
|
|
left join useraccount ua on t.userid = ua.userid
|
|
|
left join goods g on t.goodsid = g.goodsid
|
|
|
left join enumdicitem ei on ei.enumdiccode='roleType' and t.roletype = ei.enumitemname
|
|
|
- left join enumdicitem ei2 on ei2.enumdiccode='flag' and t.isnodisplay = ei2.enumitemname
|
|
|
- left join enumdicitem ei3 on ei3.enumdiccode='flag' and t.iscannotbuy = ei3.enumitemname
|
|
|
- left join enumdicitem ei4 on ei4.enumdiccode='flag' and t.iscannotsell = ei4.enumitemname
|
|
|
where 1 = 1
|
|
|
<if test="vo.roletype !=null and vo.roletype!=''">
|
|
|
and t.roletype = #{vo.roletype}
|