|
|
@@ -329,4 +329,39 @@
|
|
|
</where>
|
|
|
order by m.orderindex
|
|
|
</select>
|
|
|
+ <select id="queryMarketSectionBean" resultType="com.muchinfo.mtp3pojos.vo.systemsetup.SystemMarketSetDetail"
|
|
|
+ parameterType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ m.marketsectionid,m.marketsectionname,m.pictureurl,
|
|
|
+ m.marketsectionnameen,m.marketsectionnamezh_tw,m.marketsectionnameth,m.marketsectionnamevi
|
|
|
+ m.orderindex,to_char(m.modifytime,'yyyy-MM-dd hh24:mi:ss') modifytimestr,
|
|
|
+ decode(m.modifiersrc,1,s.username,ui.customername) modifiername
|
|
|
+ from MarketSection m
|
|
|
+ left join systemmanager s on m.modifierid = s.autoid
|
|
|
+ left join loginaccount la on m.modifierid = la.loginid
|
|
|
+ left join userinfo ui on la.userid = ui.userid
|
|
|
+ <where> m.isvalid ='1'
|
|
|
+ <if test="marketsectionid!=null and marketsectionid!=''">
|
|
|
+ and m.marketsectionid = #{marketsectionid }
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by m.orderindex
|
|
|
+ </select>
|
|
|
+ <select id="queryMarketSectionConfigNewList"
|
|
|
+ resultType="com.muchinfo.mtp3pojos.vo.systemsetup.ListMarketSectionConfig"
|
|
|
+ parameterType="java.lang.Integer">
|
|
|
+ select ms.marketsectionid, ms.displayname, ms.marketids,
|
|
|
+ ms.orderindex, ms.trademode,
|
|
|
+ (select LISTAGG(m.marketname, ',') within group (order by marketid) as marketnames
|
|
|
+ from market m where ',' || ms.marketids || ',' like '%,' || m.marketid || ',%') as marketnames,
|
|
|
+ ms.displaynameen, ms.displaynamezh_tw, ms.displaynameth, ms.displaynamevi
|
|
|
+ from MarketSectionConfigNew ms
|
|
|
+ where ms.marketsectionid = #{marketsectionid }
|
|
|
+ order by ms.orderindex
|
|
|
+ </select>
|
|
|
+ <select id="queryI18nConfigs" resultType="com.muchinfo.mtp3pojos.vo.I18nconfig">
|
|
|
+ select langcode "langcode", langname "langname"
|
|
|
+ from i18nconfig
|
|
|
+ where isvalid = 1
|
|
|
+ </select>
|
|
|
</mapper>
|