| @@ -42,12 +42,10 @@ public class WxAppinfoServiceImpl implements WxAppinfoService { | |||||
| public WxAppinfo getCAppInfo(TenantEntity tenantEntity,EnumAppPlat appPlat) { | public WxAppinfo getCAppInfo(TenantEntity tenantEntity,EnumAppPlat appPlat) { | ||||
| WxAppinfo appInfo = null; | WxAppinfo appInfo = null; | ||||
| WxAppinfo appinfoQ = new WxAppinfo(); | WxAppinfo appinfoQ = new WxAppinfo(); | ||||
| // if (null == appPlat) { | |||||
| // appinfoQ.setPlat(EnumAppPlat.WX.getCode()); | |||||
| // }else { | |||||
| // appinfoQ.setPlat(appPlat.getCode()); | |||||
| // } | |||||
| if (appPlat != null) { | |||||
| appinfoQ.setPlat(appPlat.getCode()); | |||||
| } | |||||
| appinfoQ.updateTenantInfo(tenantEntity); | appinfoQ.updateTenantInfo(tenantEntity); | ||||
| appinfoQ.setType(EnumAppType.C.getCode()); | appinfoQ.setType(EnumAppType.C.getCode()); | ||||
| List<WxAppinfo> appList = wxAppinfoMapper.selectList(new QueryWrapper(appinfoQ)); | List<WxAppinfo> appList = wxAppinfoMapper.selectList(new QueryWrapper(appinfoQ)); | ||||
| @@ -310,7 +310,7 @@ | |||||
| <include refid="allVColumns"/> | <include refid="allVColumns"/> | ||||
| from wx_authorizer_info ai | from wx_authorizer_info ai | ||||
| left join wx_appinfo a on ai.`authorizer_appid` = a.app_id | left join wx_appinfo a on ai.`authorizer_appid` = a.app_id | ||||
| where a.type = 1 or a.type = 2 | |||||
| where (a.type = 1 or a.type = 2) | |||||
| </select> | </select> | ||||
| <select id="findWxMpList" resultMap="VBaseResultMap"> | <select id="findWxMpList" resultMap="VBaseResultMap"> | ||||
| @@ -318,7 +318,7 @@ | |||||
| <include refid="allVColumns"/> | <include refid="allVColumns"/> | ||||
| from wx_authorizer_info ai | from wx_authorizer_info ai | ||||
| left join wx_appinfo a on ai.`authorizer_appid` = a.app_id | left join wx_appinfo a on ai.`authorizer_appid` = a.app_id | ||||
| where a.type = 3 or a.type = 4 | |||||
| where (a.type = 3 or a.type = 4) | |||||
| </select> | </select> | ||||
| @@ -426,7 +426,7 @@ | |||||
| </delete> | </delete> | ||||
| <select id="findQrcodeEmptyList" resultType="com.iformall.domain.po.WxCouponChannel"> | <select id="findQrcodeEmptyList" resultType="com.iformall.domain.po.WxCouponChannel"> | ||||
| select * from wx_coupon_channel where qr_code is null or tt_qr_code is null | |||||
| select * from wx_coupon_channel where (qr_code is null or tt_qr_code is null) | |||||
| </select> | </select> | ||||
| <update id="cardDefer"> | <update id="cardDefer"> | ||||
| @@ -539,7 +539,7 @@ | |||||
| </select> | </select> | ||||
| <select id="findQrcodeEmptyList" resultMap="BaseResultMap"> | <select id="findQrcodeEmptyList" resultMap="BaseResultMap"> | ||||
| select * from wx_merchant where qr_code is null or tt_qr_code is null; | |||||
| select * from wx_merchant where (qr_code is null or tt_qr_code is null); | |||||
| </select> | </select> | ||||
| <select id="findBusByFloorId" resultType="hashmap" parameterType="hashmap"> | <select id="findBusByFloorId" resultType="hashmap" parameterType="hashmap"> | ||||