Sfoglia il codice sorgente

视频列表添加返回模板,资源权限调整查询

private_deployment
谈文友 1 anno fa
parent
commit
5013da8bdf
3 ha cambiato i file con 10 aggiunte e 3 eliminazioni
  1. +6
    -1
      suimangService/src/main/java/com/iformall/service/impl/WxCUserAuthorityServiceImpl.java
  2. +1
    -0
      suimangService/src/main/java/com/iformall/service/impl/WxCVideoServiceImpl.java
  3. +3
    -2
      suimangService/src/main/resources/mapper/WxCUserAuthorityMapper.xml

+ 6
- 1
suimangService/src/main/java/com/iformall/service/impl/WxCUserAuthorityServiceImpl.java Vedi File

@@ -2,6 +2,7 @@ package com.iformall.service.impl;

import com.iformall.common.ResultData;
import com.iformall.domain.po.WxCUserAuthority;
import com.iformall.enums.EnumClassType;
import com.iformall.mapper.WxCUserAuthorityMapper;
import com.iformall.service.WxCUserAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
@@ -28,6 +29,7 @@ public class WxCUserAuthorityServiceImpl implements WxCUserAuthorityService {
if (type==1){
//查询声纹相关权限
resultList = wxCUserAuthorityMapper.getAuthorVoice(id,1,resourceId);

}

if (resourceId==null||resourceId==-1){
@@ -62,7 +64,10 @@ public class WxCUserAuthorityServiceImpl implements WxCUserAuthorityService {
data.put("username",wxCUserAuthority.getUserName());
data.put("type",wxCUserAuthority.getType());
data.put("resource_id",wxCUserAuthority.getResourceId());
data.put("class",wxCUserAuthority.getClassType());
if (String.valueOf(wxCUserAuthority.getClassType())!=null){
data.put("class",wxCUserAuthority.getClassType());
}
data.put("class", EnumClassType.SHARE.getCode());
data.put("current_time",new Date(System.currentTimeMillis()));
data.put("expire_time",wxCUserAuthority.getExpireTime());



+ 1
- 0
suimangService/src/main/java/com/iformall/service/impl/WxCVideoServiceImpl.java Vedi File

@@ -58,6 +58,7 @@ public class WxCVideoServiceImpl implements WxCVideoService,IExcelExportServer {
avatar.put("avatar_name",wxCVideoTable.getName());
avatar.put("avatar_image",wxCVideoTable.getImage());
avatar.put("avatar_demo",wxCVideoTable.getDemo());
avatar.put("avatar_model",wxCVideoTable.getModel());
File modelFile = new File(wxCVideoTable.getModelPath());

avatar.put("avatar_demo_md5",getFileMD5(modelFile));


+ 3
- 2
suimangService/src/main/resources/mapper/WxCUserAuthorityMapper.xml Vedi File

@@ -19,9 +19,10 @@ join wx_c_avatar wcav on wca.resource_id = wcav.id and wca.type = 0
where wca.user_id=#{id} and wca.resource_id = #{resourceId}
</select>
<select id="getAuthorVoice" resultType="com.iformall.domain.po.WxCUserAuthority">
select wca.user_name,wca.type,wca.resource_id,wca.expire_time,wcv.class
select wca.user_name,wca.type,wca.resource_id,wca.expire_time
from wx_c_author wca
join wx_c_voice wcv on wca.resource_id =wcv.id and wca.type = 1
join voice_info vi on wca.resource_id = vi.id
join voice_language vl on vi.language_id =vl.id
where wca.user_id=#{id} and wca.resource_id = #{resourceId}
</select>



Caricamento…
Annulla
Salva