Browse Source

慧播用户注册初始化

master
winter 1 year ago
parent
commit
504e1908a4
3 changed files with 11 additions and 2 deletions
  1. +2
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/VoiceInfo.java
  2. +2
    -2
      suimangService/src/main/java/com/iformall/service/impl/WxCUserLiveBasicInfoServiceImpl.java
  3. +7
    -0
      suimangService/src/main/resources/mapper/VoiceMapper.xml

+ 2
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/VoiceInfo.java View File

@@ -32,6 +32,8 @@ public class VoiceInfo extends TenantEntity {
* 语种表id(voice_language.id) * 语种表id(voice_language.id)
*/ */
private Long languageId; private Long languageId;
@TableField(exist = false)
private List<Long> languageIds;
/** /**
* 性别 * 性别
*/ */


+ 2
- 2
suimangService/src/main/java/com/iformall/service/impl/WxCUserLiveBasicInfoServiceImpl.java View File

@@ -44,7 +44,7 @@ public class WxCUserLiveBasicInfoServiceImpl implements WxCUserLiveBasicInfoServ
@Autowired @Autowired
VoiceMapper voiceMapper; VoiceMapper voiceMapper;
@Override @Override
public void regeister(WxCUserBasicInfo wxCUserBasicInfo) { public void regeister(WxCUserBasicInfo wxCUserBasicInfo) {
SysConfig rconfig = sysConfigService.getByKey(SysConfigConstant.hb_regeister_days_expired, new TenantEntity()); SysConfig rconfig = sysConfigService.getByKey(SysConfigConstant.hb_regeister_days_expired, new TenantEntity());
@@ -86,7 +86,7 @@ public class WxCUserLiveBasicInfoServiceImpl implements WxCUserLiveBasicInfoServ
vss.add(Long.parseLong(_v)); vss.add(Long.parseLong(_v));
} }
VoiceInfo vq = new VoiceInfo(); VoiceInfo vq = new VoiceInfo();
vq.setIds(vss);
vq.setLanguageIds(vss);
List<VoiceInfo> vlist = voiceMapper.findList(vq);; List<VoiceInfo> vlist = voiceMapper.findList(vq);;
for (VoiceInfo v : vlist) { for (VoiceInfo v : vlist) {
WxCAuthor author = new WxCAuthor(); WxCAuthor author = new WxCAuthor();


+ 7
- 0
suimangService/src/main/resources/mapper/VoiceMapper.xml View File

@@ -35,6 +35,13 @@
<if test=" null != languageId "> <if test=" null != languageId ">
and `language_id` = #{languageId} and `language_id` = #{languageId}
</if> </if>
<if test=" null != languageIds ">
and language_id in
<foreach collection="lids" index="index" item="lidItem" open="(" separator="," close=")">
#{lidItem}
</foreach>
</if>


<if test=" null != ids "> <if test=" null != ids ">
and id in and id in


Loading…
Cancel
Save