|
|
@@ -17,6 +17,7 @@ import com.fs.his.dto.SendResultDetailDTO;
|
|
|
import com.fs.qw.bo.SendMsgLogBo;
|
|
|
import com.fs.qw.dto.BatchAddAcquisitionLinkDTO;
|
|
|
import com.fs.qw.dto.IpadBlindAddDto;
|
|
|
+import com.fs.qw.dto.SendMessageLinkDTO;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFCell;
|
|
|
@@ -138,9 +139,11 @@ public class QwAcquisitionLinkInfoController extends BaseController
|
|
|
/**
|
|
|
* 发送获客链接短信
|
|
|
*/
|
|
|
- @GetMapping("/sendMessageLink/{id}/{phone}")
|
|
|
- public AjaxResult sendMessageLink(@PathVariable Long id,@PathVariable String phone) {
|
|
|
+ @PostMapping("/sendMessageLink")
|
|
|
+ public AjaxResult sendMessageLink(@Valid @RequestBody SendMessageLinkDTO dto) {
|
|
|
try {
|
|
|
+ Long id = dto.getId();
|
|
|
+ String phone = dto.getPhone();
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
if (loginUser==null||loginUser.getCompany()==null){
|
|
|
throw new CustomException("请登录");
|