|
|
@@ -19,6 +19,7 @@ import com.fs.framework.service.TokenService;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
import com.fs.qw.domain.QwSopParam;
|
|
|
import com.fs.qw.domain.QwSopUpdateStatus;
|
|
|
+import com.fs.qw.domain.QwUser;
|
|
|
import com.fs.qw.service.IQwUserService;
|
|
|
import com.fs.qw.vo.QwUserVO;
|
|
|
import com.fs.sop.domain.QwSop;
|
|
|
@@ -40,6 +41,7 @@ import java.io.IOException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -447,4 +449,33 @@ public class QwSopController extends BaseController
|
|
|
qwSopService.updateSkipSopJson(sopParamStr, param.getSopId());
|
|
|
return R.ok();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 一键群发获取企微sop语音列表
|
|
|
+ * @param chatIds
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getVoiceList")
|
|
|
+ public TableDataInfo getVoiceList(@RequestParam("chatId") String chatIds){
|
|
|
+ String[] userIdArray = chatIds.split(",");
|
|
|
+ List<String> chatIdList = Arrays.asList(userIdArray);
|
|
|
+ List<Long> comPanyUserIdList = iQwUserService.selectByChatIdAndType(chatIdList);
|
|
|
+ List<QwSopTempVoice> list = voiceService.getVoiceListByCompanyUserIds(comPanyUserIdList);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * SOP营期一键群发获取企微sop语音列表
|
|
|
+ * @param qwUserIds
|
|
|
+ * @param corpId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getVoiceListByQwUserIds")
|
|
|
+ public TableDataInfo getVoiceListByQwUserIds( @RequestParam("qwUserIds") String qwUserIds,
|
|
|
+ @RequestParam("corpId") String corpId){
|
|
|
+ List<String> qwUserIdsList = JSON.parseArray(qwUserIds, String.class);
|
|
|
+ List<Long> comPanyUserIdList = iQwUserService.selectQwUserByIdsAndcorpId(qwUserIdsList,corpId);
|
|
|
+ List<QwSopTempVoice> list = voiceService.getVoiceListByCompanyUserIds(comPanyUserIdList);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
}
|