Compare commits
No commits in common. "278bf616affee065bc0e87640511e9d04478c171" and "31e8ac48bc2b4c21ba6ea96a3e1dce6bcb8bdea7" have entirely different histories.
278bf616af
...
31e8ac48bc
|
|
@ -8,21 +8,15 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
|
||||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.common.utils.http.HttpUtils;
|
import com.ruoyi.common.utils.http.HttpUtils;
|
||||||
import com.ruoyi.common.utils.security.Md5Utils;
|
import com.ruoyi.common.utils.security.Md5Utils;
|
||||||
import com.ruoyi.system.domain.ClewPhone;
|
import com.ruoyi.system.domain.ClewPhone;
|
||||||
import com.ruoyi.system.domain.CompanyApp;
|
|
||||||
import com.ruoyi.system.domain.OppoCheck;
|
import com.ruoyi.system.domain.OppoCheck;
|
||||||
import com.ruoyi.system.service.IClewPhoneService;
|
import com.ruoyi.system.service.IClewPhoneService;
|
||||||
import com.ruoyi.system.service.ICompanyAppService;
|
|
||||||
import com.ruoyi.system.service.ISysUserService;
|
import com.ruoyi.system.service.ISysUserService;
|
||||||
import com.ruoyi.web.core.config.GlobalLogHelper;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import okhttp3.MediaType;
|
import okhttp3.MediaType;
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
|
|
@ -69,9 +63,6 @@ public class ClewController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private IClewPhoneService clewPhoneService;
|
private IClewPhoneService clewPhoneService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ICompanyAppService companyAppService;
|
|
||||||
|
|
||||||
@RequiresPermissions("system:clew:view")
|
@RequiresPermissions("system:clew:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public String clew(ModelMap modelMap)
|
public String clew(ModelMap modelMap)
|
||||||
|
|
@ -93,11 +84,6 @@ public class ClewController extends BaseController
|
||||||
if(!"admin".equals(getSysUser().getLoginName())){
|
if(!"admin".equals(getSysUser().getLoginName())){
|
||||||
clew.setSaleId(getSysUser().getUserId());
|
clew.setSaleId(getSysUser().getUserId());
|
||||||
}
|
}
|
||||||
long isSubAdmin = getSysUser().getRoles().stream().filter(x->x.getRoleKey().equals("subAdmin")).count();
|
|
||||||
if(isSubAdmin > 0 && !"admin".equals(getSysUser().getLoginName())){
|
|
||||||
clew.setSaleId(null);
|
|
||||||
clew.setRemark("baidu");
|
|
||||||
}
|
|
||||||
List<Clew> list = clewService.selectClewList(clew);
|
List<Clew> list = clewService.selectClewList(clew);
|
||||||
list.forEach(model->{
|
list.forEach(model->{
|
||||||
if(model.getSaleId() != null){
|
if(model.getSaleId() != null){
|
||||||
|
|
@ -106,14 +92,6 @@ public class ClewController extends BaseController
|
||||||
model.setSaleName(user.getUserName());
|
model.setSaleName(user.getUserName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(model.getSourceApp() != null){
|
|
||||||
CompanyApp param = new CompanyApp();
|
|
||||||
param.setCompanyId(model.getSourceApp());
|
|
||||||
List<CompanyApp> result = companyAppService.selectCompanyAppList(param);
|
|
||||||
model.setSourceAppName(result.get(0).getAppName());
|
|
||||||
}else {
|
|
||||||
model.setSourceAppName("黑猫APP");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
@ -174,7 +152,6 @@ public class ClewController extends BaseController
|
||||||
List<ClewPhone> clewPhoneList = clewPhoneService.selectClewPhoneList(model);
|
List<ClewPhone> clewPhoneList = clewPhoneService.selectClewPhoneList(model);
|
||||||
clewPhoneList.forEach(x->{
|
clewPhoneList.forEach(x->{
|
||||||
x.setStatus("1");
|
x.setStatus("1");
|
||||||
x.setSourceApp(clew.getSourceApp());
|
|
||||||
clewPhoneService.updateClewPhone(x);
|
clewPhoneService.updateClewPhone(x);
|
||||||
});
|
});
|
||||||
// 调用oppo的统计接口
|
// 调用oppo的统计接口
|
||||||
|
|
@ -205,42 +182,11 @@ public class ClewController extends BaseController
|
||||||
String notice = "VIVO"+ (long)((Math.random()+1) * 10000000);
|
String notice = "VIVO"+ (long)((Math.random()+1) * 10000000);
|
||||||
String url = "https://marketing-api.vivo.com.cn/openapi/v1/advertiser/behavior/upload?access_token="+token+"×tamp="+timeStamp+"&nonce="+notice;
|
String url = "https://marketing-api.vivo.com.cn/openapi/v1/advertiser/behavior/upload?access_token="+token+"×tamp="+timeStamp+"&nonce="+notice;
|
||||||
String content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"PAY\",\"userId\":\""+ clew.getOaid() +"\",\"userIdType\":\"OAID\"}],\"pkgName\":\"com.yinliu.loan\",\"srcId\":\"ds-202310270565\",\"srcType\":\"app\"}";
|
String content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"PAY\",\"userId\":\""+ clew.getOaid() +"\",\"userIdType\":\"OAID\"}],\"pkgName\":\"com.yinliu.loan\",\"srcId\":\"ds-202310270565\",\"srcType\":\"app\"}";
|
||||||
if(clew.getSourceApp() != null && clew.getSourceApp() == 2L){
|
|
||||||
content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"PAY\",\"userId\":\""+ clew.getOaid() +"\",\"userIdType\":\"OAID\"}],\"pkgName\":\"com.zh.gdyq\",\"srcId\":\"ds-202404185034\",\"srcType\":\"app\"}";
|
|
||||||
}
|
|
||||||
Map<String, String> headerMap = new HashMap<>();
|
Map<String, String> headerMap = new HashMap<>();
|
||||||
headerMap.put("Content-Type", "application/json");
|
headerMap.put("Content-Type", "application/json");
|
||||||
log.info("请求{}的属性{}", url, content);
|
log.info("请求{}的属性{}", url, content);
|
||||||
String s = HttpUtils.sendPost(url, content, headerMap);
|
String s = HttpUtils.sendPost(url, content, headerMap);
|
||||||
log.info("请求{}的响应{}", url, s);
|
log.info("请求{}的响应{}", url, s);
|
||||||
}else if("xiaomi".equalsIgnoreCase(clew.getRemark())){
|
|
||||||
log.info("oaid : {}, imei:{}", clew.getOaid(), clew.getImei());
|
|
||||||
// String imei = clew.getImei();
|
|
||||||
String oaid = clew.getOaid();
|
|
||||||
// String ua = "Dalvik/2.1.0 (Linux; U; Android 11; M2012K11AC Build/RKQ1.200826.002)";
|
|
||||||
String clientIp = "58.49.150.163";
|
|
||||||
long convTime = System.currentTimeMillis();
|
|
||||||
String convType = "APP_PAY";
|
|
||||||
long appId = 1545362;
|
|
||||||
int customerId = 445972;
|
|
||||||
String singKey = "FkqMqeKVbCaeSGBI";
|
|
||||||
String encryptKey = "IIUWoEaMXlzctOqk";
|
|
||||||
if(clew.getSourceApp() != null && clew.getSourceApp() == 2L){
|
|
||||||
customerId = 593022;
|
|
||||||
appId = 1585622;
|
|
||||||
singKey = "lNebrbVaMMubMqUr";
|
|
||||||
encryptKey = "hZdCGTMvrOAdVeUq";
|
|
||||||
}
|
|
||||||
GlobalLogHelper.UploadInfo uploadInfo = GlobalLogHelper.UploadInfo.builder()
|
|
||||||
// .imei(imei)
|
|
||||||
.oaid(oaid)
|
|
||||||
// .ua(ua)
|
|
||||||
.clientIp(clientIp)
|
|
||||||
.convTime(convTime).convType(convType)
|
|
||||||
.appId(appId).customerId(customerId).signKey(singKey).encryptKey(encryptKey).build().genInfo();
|
|
||||||
log.info("请求xiaomi的属性{}", uploadInfo.getFinalUrl());
|
|
||||||
String s = HttpUtils.sendGet(uploadInfo.getFinalUrl());
|
|
||||||
log.info("请求xiaomi的响应{}", s);
|
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
@ -328,11 +274,6 @@ public class ClewController extends BaseController
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult changeUser(Clew clew)
|
public AjaxResult changeUser(Clew clew)
|
||||||
{
|
{
|
||||||
Clew sourceClew = clewService.selectClewById(clew.getId());
|
|
||||||
if(!ObjectUtil.equals(sourceClew.getSaleId(), 1L)){
|
|
||||||
clew.setAssignTimes("02");
|
|
||||||
}
|
|
||||||
clew.setUpdateTime(DateUtils.getNowDate());
|
|
||||||
return toAjax(clewService.updateClew(clew));
|
return toAjax(clewService.updateClew(clew));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -351,11 +292,6 @@ public class ClewController extends BaseController
|
||||||
if(StringUtils.isEmpty(clew.getIds())){
|
if(StringUtils.isEmpty(clew.getIds())){
|
||||||
return AjaxResult.error("请选择线索!");
|
return AjaxResult.error("请选择线索!");
|
||||||
}
|
}
|
||||||
Clew sourceClew = clewService.selectClewById(Long.parseLong(clew.getIds().split(",")[0]));
|
|
||||||
if(!ObjectUtil.equals(sourceClew.getSaleId(), 1L)){
|
|
||||||
clew.setAssignTimes("02");
|
|
||||||
}
|
|
||||||
clew.setUpdateTime(DateUtils.getNowDate());
|
|
||||||
clew.setIdList(Arrays.stream(clew.getIds().split(",")).map(Long::parseLong).collect(Collectors.toList()));
|
clew.setIdList(Arrays.stream(clew.getIds().split(",")).map(Long::parseLong).collect(Collectors.toList()));
|
||||||
return toAjax(clewService.updateBatchClew(clew));
|
return toAjax(clewService.updateBatchClew(clew));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,11 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.ruoyi.common.annotation.Log;
|
import com.ruoyi.common.annotation.Log;
|
||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
import com.ruoyi.system.domain.ClewImg;
|
import com.ruoyi.system.domain.ClewImg;
|
||||||
|
|
@ -54,14 +58,9 @@ public class ClewImgController extends BaseController
|
||||||
|
|
||||||
@GetMapping("/app/list")
|
@GetMapping("/app/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult getAppList(@RequestParam(value = "sourceApp", required = false) Long sourceApp)
|
public AjaxResult getAppList()
|
||||||
{
|
{
|
||||||
if(sourceApp == null){
|
List<ClewImg> list = clewImgService.selectClewImgList(new ClewImg());
|
||||||
sourceApp = 1L;
|
|
||||||
}
|
|
||||||
ClewImg param = new ClewImg();
|
|
||||||
param.setSourceApp(sourceApp);
|
|
||||||
List<ClewImg> list = clewImgService.selectClewImgList(param);
|
|
||||||
List<String> imgList = list.stream().map(ClewImg::getImgUrl).collect(Collectors.toList());
|
List<String> imgList = list.stream().map(ClewImg::getImgUrl).collect(Collectors.toList());
|
||||||
return AjaxResult.success(imgList);
|
return AjaxResult.success(imgList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.ruoyi.common.annotation.Log;
|
import com.ruoyi.common.annotation.Log;
|
||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
import com.ruoyi.system.domain.ClewMaterial;
|
import com.ruoyi.system.domain.ClewMaterial;
|
||||||
|
|
@ -52,12 +56,9 @@ public class ClewMaterialController extends BaseController
|
||||||
|
|
||||||
@PostMapping("/app/list")
|
@PostMapping("/app/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo appList(@RequestParam(value = "sourceApp", required = false) Long sourceApp, ClewMaterial clewMaterial)
|
public TableDataInfo appList(ClewMaterial clewMaterial)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
if(sourceApp == null){
|
|
||||||
clewMaterial.setSourceApp(1L);
|
|
||||||
}
|
|
||||||
List<ClewMaterial> list = clewMaterialService.selectClewMaterialList(clewMaterial);
|
List<ClewMaterial> list = clewMaterialService.selectClewMaterialList(clewMaterial);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,6 @@ public class ClewPhoneController extends BaseController
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
List<ClewPhone> list = clewPhoneService.selectClewPhoneList(clewPhone);
|
List<ClewPhone> list = clewPhoneService.selectClewPhoneList(clewPhone);
|
||||||
list.forEach(model->{
|
|
||||||
if(model.getSourceApp() != null && model.getSourceApp() == 2L){
|
|
||||||
model.setSourceAppName("大象处理逾期");
|
|
||||||
}else {
|
|
||||||
model.setSourceAppName("黑猫搞定逾期");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.ruoyi.common.annotation.Log;
|
import com.ruoyi.common.annotation.Log;
|
||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
import com.ruoyi.system.domain.ClewVideo;
|
import com.ruoyi.system.domain.ClewVideo;
|
||||||
|
|
@ -52,14 +56,9 @@ public class ClewVideoController extends BaseController
|
||||||
|
|
||||||
@GetMapping("/app/list")
|
@GetMapping("/app/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult getAppList(@RequestParam(value = "sourceApp", required = false) Long sourceApp)
|
public AjaxResult getAppList()
|
||||||
{
|
{
|
||||||
if(sourceApp == null){
|
List<ClewVideo> list = clewVideoService.selectClewVideoList(new ClewVideo());
|
||||||
sourceApp = 1L;
|
|
||||||
}
|
|
||||||
ClewVideo param = new ClewVideo();
|
|
||||||
param.setSourceApp(sourceApp);
|
|
||||||
List<ClewVideo> list = clewVideoService.selectClewVideoList(param);
|
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ import com.ruoyi.common.utils.ExceptionUtil;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.common.utils.http.HttpUtils;
|
import com.ruoyi.common.utils.http.HttpUtils;
|
||||||
import com.ruoyi.common.utils.security.Md5Utils;
|
import com.ruoyi.common.utils.security.Md5Utils;
|
||||||
|
import com.ruoyi.common.utils.uuid.UUID;
|
||||||
import com.ruoyi.system.domain.ClewPhone;
|
import com.ruoyi.system.domain.ClewPhone;
|
||||||
import com.ruoyi.system.domain.NoticeRequest;
|
import com.ruoyi.system.domain.NoticeRequest;
|
||||||
import com.ruoyi.system.domain.OppoCheck;
|
import com.ruoyi.system.domain.OppoCheck;
|
||||||
|
|
@ -22,8 +23,10 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import java.security.GeneralSecurityException;
|
import java.security.GeneralSecurityException;
|
||||||
import java.security.Key;
|
import java.security.Key;
|
||||||
import javax.crypto.Cipher;
|
import javax.crypto.Cipher;
|
||||||
|
|
@ -58,34 +61,6 @@ public class NoticeController {
|
||||||
return AjaxResult.success("注销成功!");
|
return AjaxResult.success("注销成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/exposure")
|
|
||||||
@ResponseBody
|
|
||||||
public AjaxResult exposure(){
|
|
||||||
|
|
||||||
return AjaxResult.success("曝光成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/click")
|
|
||||||
@ResponseBody
|
|
||||||
public AjaxResult click(){
|
|
||||||
|
|
||||||
return AjaxResult.success("点击成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/download")
|
|
||||||
@ResponseBody
|
|
||||||
public AjaxResult download(){
|
|
||||||
|
|
||||||
return AjaxResult.success("下载成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/install")
|
|
||||||
@ResponseBody
|
|
||||||
public AjaxResult install(){
|
|
||||||
|
|
||||||
return AjaxResult.success("安装成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("/getLocation")
|
@PostMapping("/getLocation")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult getLocationByLot(@RequestBody JSONObject jsonObject){
|
public AjaxResult getLocationByLot(@RequestBody JSONObject jsonObject){
|
||||||
|
|
@ -127,27 +102,6 @@ public class NoticeController {
|
||||||
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
||||||
log.info("发送给{}短信响应为{}", request.getPhone(), sendSmsResponse);
|
log.info("发送给{}短信响应为{}", request.getPhone(), sendSmsResponse);
|
||||||
CacheUtils.put(request.getPhone(), code);
|
CacheUtils.put(request.getPhone(), code);
|
||||||
// 请求次数入库
|
|
||||||
try {
|
|
||||||
ClewPhone param = new ClewPhone();
|
|
||||||
param.setPhone(request.getPhone());
|
|
||||||
List<ClewPhone> clewPhones = clewPhoneService.selectClewPhoneList(param);
|
|
||||||
if(CollectionUtils.isEmpty(clewPhones)){
|
|
||||||
ClewPhone model = new ClewPhone();
|
|
||||||
model.setPhone(request.getPhone());
|
|
||||||
model.setCreateTime(new Date());
|
|
||||||
model.setRemark(request.getFrom());
|
|
||||||
if(StringUtils.isNotEmpty(request.getSourceApp())){
|
|
||||||
model.setSourceApp(Long.valueOf(request.getSourceApp()));
|
|
||||||
}else {
|
|
||||||
model.setSourceApp(1L);
|
|
||||||
}
|
|
||||||
clewPhoneService.insertClewPhone(model);
|
|
||||||
}
|
|
||||||
}catch (Exception e){
|
|
||||||
e.printStackTrace();
|
|
||||||
log.error("手机号入库失败!,原因:{}", e.getMessage());
|
|
||||||
}
|
|
||||||
// 调用oppo的统计接口
|
// 调用oppo的统计接口
|
||||||
try {
|
try {
|
||||||
if("oppo".equalsIgnoreCase(request.getFrom())){
|
if("oppo".equalsIgnoreCase(request.getFrom())){
|
||||||
|
|
@ -182,27 +136,20 @@ public class NoticeController {
|
||||||
String s = HttpUtils.sendPost(url, content, headerMap);
|
String s = HttpUtils.sendPost(url, content, headerMap);
|
||||||
log.info("请求{}的响应{}", url, s);
|
log.info("请求{}的响应{}", url, s);
|
||||||
}else if("xiaomi".equalsIgnoreCase(request.getFrom())){
|
}else if("xiaomi".equalsIgnoreCase(request.getFrom())){
|
||||||
log.info("oaid : {}, imei:{}", request.getOaid(), request.getImei());
|
|
||||||
String imei = request.getImei();
|
String imei = request.getImei();
|
||||||
String oaid = request.getOaid();
|
String oaid = request.getOaid();
|
||||||
// String ua = "Dalvik/2.1.0 (Linux; U; Android 11; M2012K11AC Build/RKQ1.200826.002)";
|
String ua = "Dalvik/2.1.0 (Linux; U; Android 11; M2012K11AC Build/RKQ1.200826.002)";
|
||||||
String clientIp = "58.49.150.163";
|
String clientIp = "127.0.0.1";
|
||||||
long convTime = System.currentTimeMillis();
|
long convTime = System.currentTimeMillis();
|
||||||
String convType = "APP_REGISTER";
|
String convType = "APP_PAY_NEW";
|
||||||
int customerId = 445972;
|
|
||||||
long appId = 1545362;
|
long appId = 1545362;
|
||||||
String singKey = "rEQNdyVQxHlayYzw";
|
int customerId = 1545362;
|
||||||
String encryptKey = "RPeKBIdybnbMAVlK";
|
String singKey = "IIUWoEaMXlzctOqk";
|
||||||
if(request.getSourceApp() != null && "2".equals(request.getSourceApp())){
|
String encryptKey = "FkqMqeKVbCaeSGBI";
|
||||||
customerId = 593022;
|
|
||||||
appId = 1585622;
|
|
||||||
singKey = "WJzbmmPPufjyKESi";
|
|
||||||
encryptKey = "sTrlawivcqdHzUDB";
|
|
||||||
}
|
|
||||||
GlobalLogHelper.UploadInfo uploadInfo = GlobalLogHelper.UploadInfo.builder()
|
GlobalLogHelper.UploadInfo uploadInfo = GlobalLogHelper.UploadInfo.builder()
|
||||||
// .imei(imei)
|
.imei(imei)
|
||||||
.oaid(oaid)
|
.oaid(oaid)
|
||||||
// .ua(ua)
|
.ua(ua)
|
||||||
.clientIp(clientIp)
|
.clientIp(clientIp)
|
||||||
.convTime(convTime).convType(convType)
|
.convTime(convTime).convType(convType)
|
||||||
.appId(appId).customerId(customerId).signKey(singKey).encryptKey(encryptKey).build().genInfo();
|
.appId(appId).customerId(customerId).signKey(singKey).encryptKey(encryptKey).build().genInfo();
|
||||||
|
|
@ -216,6 +163,22 @@ public class NoticeController {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
log.error("回调oppo报错:{}", e.getMessage());
|
log.error("回调oppo报错:{}", e.getMessage());
|
||||||
}
|
}
|
||||||
|
// 请求次数入库
|
||||||
|
try {
|
||||||
|
ClewPhone param = new ClewPhone();
|
||||||
|
param.setPhone(request.getPhone());
|
||||||
|
List<ClewPhone> clewPhones = clewPhoneService.selectClewPhoneList(param);
|
||||||
|
if(CollectionUtils.isEmpty(clewPhones)){
|
||||||
|
ClewPhone model = new ClewPhone();
|
||||||
|
model.setPhone(request.getPhone());
|
||||||
|
model.setCreateTime(new Date());
|
||||||
|
model.setRemark(request.getFrom());
|
||||||
|
clewPhoneService.insertClewPhone(model);
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
log.error("手机号入库失败!,原因:{}", e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("给 {} 发送短信失败 {}", request.getPhone(), ExceptionUtil.getExceptionMessage(e));
|
log.error("给 {} 发送短信失败 {}", request.getPhone(), ExceptionUtil.getExceptionMessage(e));
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.ruoyi.web.core.config;
|
package com.ruoyi.web.core.config;
|
||||||
|
|
||||||
import cn.hutool.core.codec.Base64;
|
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
|
@ -46,7 +46,7 @@ public class GlobalLogHelper {
|
||||||
private String signature;
|
private String signature;
|
||||||
|
|
||||||
private final static String HOST = "http://trail.e.mi.com";
|
private final static String HOST = "http://trail.e.mi.com";
|
||||||
private final static String PATH = "/global/log";
|
private final static String PATH = "/global/test";
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public UploadInfo genInfo() {
|
public UploadInfo genInfo() {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ ruoyi:
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
server:
|
server:
|
||||||
# 服务器的HTTP端口,默认为80
|
# 服务器的HTTP端口,默认为80
|
||||||
port: 19002
|
port: 8001
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
|
|
|
||||||
|
|
@ -10,19 +10,19 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">广告主:</label>
|
<label class="col-sm-3 control-label is-required">广告主:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="company" class="form-control" type="text" value="1" readonly>
|
<input name="company" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">销售:</label>
|
<label class="col-sm-3 control-label is-required">销售:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="saleId" class="form-control" type="text" value="1" readonly>
|
<input name="saleId" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label is-required">信息流:</label>
|
<label class="col-sm-3 control-label is-required">信息流:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="infoFlow" class="form-control" type="text" value="0" readonly>
|
<input name="infoFlow" class="form-control" type="text" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
@ -40,12 +40,6 @@
|
||||||
<input name="wxName" class="form-control" type="text">
|
<input name="wxName" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">姓名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="customerName" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">手机号:</label>
|
<label class="col-sm-3 control-label">手机号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
@ -61,7 +55,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">App来源:</label>
|
<label class="col-sm-3 control-label">App来源:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="sourceApp" class="form-control" value="8" type="text" readonly>
|
<input name="sourceApp" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
@ -130,6 +124,12 @@
|
||||||
<input name="cityName" class="form-control" type="text">
|
<input name="cityName" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="customerName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">备注:</label>
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="remark" class="form-control" value="baidu" type="text" readonly>
|
<input name="remark" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -28,49 +28,17 @@
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
加微:<select name="isAddWx" th:with="type=${@dict.getType('is_add_wx')}">
|
状态:<select name="searchStatus" th:with="type=${@dict.getType('follow_status')}">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
有效:<select name="isEffective" th:with="type=${@dict.getType('is_effective')}">
|
|
||||||
<option value="">所有</option>
|
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
意向:<select name="isPlan" th:with="type=${@dict.getType('is_plan')}">
|
|
||||||
<option value="">所有</option>
|
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
成交:<select name="isDeal" th:with="type=${@dict.getType('is_deal')}">
|
|
||||||
<option value="">所有</option>
|
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
来源应用:<select name="sourceApp">
|
|
||||||
<option value="">所有</option>
|
|
||||||
<option value="1">黑猫搞定逾期</option>
|
|
||||||
<option value="2">大象债务处理</option>
|
|
||||||
<option value="8">百度来源</option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
<li class="select-time">
|
<li class="select-time">
|
||||||
<label>创建时间: </label>
|
<label>创建时间: </label>
|
||||||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
||||||
<span>-</span>
|
<span>-</span>
|
||||||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
||||||
</li>
|
</li>
|
||||||
<li class="select-time">
|
|
||||||
<label>分配时间: </label>
|
|
||||||
<input type="text" class="time-input" id="updateStartTime" placeholder="开始时间" name="params[updateStartTime]"/>
|
|
||||||
<span>-</span>
|
|
||||||
<input type="text" class="time-input" id="updateEndTime" placeholder="结束时间" name="params[updateEndTime]"/>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
|
@ -112,7 +80,6 @@
|
||||||
var isPlan = [[${@dict.getType('is_plan')}]];
|
var isPlan = [[${@dict.getType('is_plan')}]];
|
||||||
var isDeal = [[${@dict.getType('is_deal')}]];
|
var isDeal = [[${@dict.getType('is_deal')}]];
|
||||||
var customerStatus = [[${@dict.getType('customer_status')}]];
|
var customerStatus = [[${@dict.getType('customer_status')}]];
|
||||||
var assignStatus = [[${@dict.getType('assign_status')}]];
|
|
||||||
|
|
||||||
var prefix = ctx + "system/clew";
|
var prefix = ctx + "system/clew";
|
||||||
|
|
||||||
|
|
@ -132,17 +99,14 @@
|
||||||
title: '主键',
|
title: '主键',
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'sourceAppName',
|
|
||||||
title: '来源App'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
title: '手机号'
|
title: '手机号'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'customerName',
|
field: 'customerName',
|
||||||
title: '姓名'
|
title: '姓名',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'wxName',
|
field: 'wxName',
|
||||||
|
|
@ -151,8 +115,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'debtType',
|
field: 'debtType',
|
||||||
title: '债务类型',
|
title: '债务类型'
|
||||||
visible: false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'debtMoney',
|
field: 'debtMoney',
|
||||||
|
|
@ -166,25 +129,10 @@
|
||||||
field: 'customerRemark',
|
field: 'customerRemark',
|
||||||
title: '客户情况备注'
|
title: '客户情况备注'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'twoCustomerRemark',
|
|
||||||
title: '二次跟进情况'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '创建时间'
|
title: '创建时间'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'updateTime',
|
|
||||||
title: '分配时间'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'assignTimes',
|
|
||||||
title: '二次分配',
|
|
||||||
formatter: function(value, row, index) {
|
|
||||||
return $.table.selectDictLabel(assignStatus, value);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'sourceType',
|
field: 'sourceType',
|
||||||
title: '推广来源',
|
title: '推广来源',
|
||||||
|
|
@ -260,18 +208,15 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'cityName',
|
field: 'cityName',
|
||||||
title: '城市',
|
title: '城市'
|
||||||
visible: false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'contactTime',
|
field: 'contactTime',
|
||||||
title: '方便接电话时间',
|
title: '方便接电话时间'
|
||||||
visible: false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'otherPhone',
|
field: 'otherPhone',
|
||||||
title: '其他联系方式',
|
title: '其他联系方式'
|
||||||
visible: false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'company',
|
field: 'company',
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,6 @@
|
||||||
<input name="wxName" th:field="*{wxName}" class="form-control" type="text">
|
<input name="wxName" th:field="*{wxName}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">姓名:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="customerName" th:field="*{customerName}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">手机号:</label>
|
<label class="col-sm-3 control-label">手机号:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
@ -106,6 +100,12 @@
|
||||||
<input name="cityName" th:field="*{cityName}" class="form-control" type="text">
|
<input name="cityName" th:field="*{cityName}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">姓名:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="customerName" th:field="*{customerName}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
@ -127,12 +127,6 @@
|
||||||
<input name="remark" th:field="*{customerRemark}" class="form-control" type="text">
|
<input name="remark" th:field="*{customerRemark}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">客户二次情况备注:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="twoCustomerRemark" th:field="*{twoCustomerRemark}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">备注:</label>
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,6 @@
|
||||||
<input type="file" name="imgUrlImg" id="imgUrlImg" multiple class="file" />
|
<input type="file" name="imgUrlImg" id="imgUrlImg" multiple class="file" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源app:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">备注:</label>
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@
|
||||||
<input name="imgUrl" th:field="*{imgUrl}" class="form-control" type="text">
|
<input name="imgUrl" th:field="*{imgUrl}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源APP:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" th:field="*{sourceApp}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">备注:</label>
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -68,10 +68,6 @@
|
||||||
field: 'imgUrl',
|
field: 'imgUrl',
|
||||||
title: '图片链接'
|
title: '图片链接'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'sourceApp',
|
|
||||||
title: '来源APP'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'remark',
|
field: 'remark',
|
||||||
title: '备注'
|
title: '备注'
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,6 @@
|
||||||
<input name="applyNum" class="form-control" type="text">
|
<input name="applyNum" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源App:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">线索提交内容:</label>
|
<label class="col-sm-3 control-label">线索提交内容:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,6 @@
|
||||||
<input name="applyNum" th:field="*{applyNum}" class="form-control" type="text">
|
<input name="applyNum" th:field="*{applyNum}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源APP:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" th:field="*{sourceApp}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">线索提交内容:</label>
|
<label class="col-sm-3 control-label">线索提交内容:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -104,10 +104,6 @@
|
||||||
field: 'clewContent',
|
field: 'clewContent',
|
||||||
title: '线索提交内容'
|
title: '线索提交内容'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'sourceApp',
|
|
||||||
title: '来源APP'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,6 @@
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
来源应用:<select name="sourceApp">
|
|
||||||
<option value="">所有</option>
|
|
||||||
<option value="1">黑猫搞定逾期</option>
|
|
||||||
<option value="2">大象债务处理</option>
|
|
||||||
</select>
|
|
||||||
<li class="select-time">
|
<li class="select-time">
|
||||||
<label>创建时间: </label>
|
<label>创建时间: </label>
|
||||||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
||||||
|
|
@ -84,10 +78,6 @@
|
||||||
title: '主键',
|
title: '主键',
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'sourceAppName',
|
|
||||||
title: '来源App'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
title: '手机号'
|
title: '手机号'
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,6 @@
|
||||||
<input name="videoShowDate" class="form-control" type="text">
|
<input name="videoShowDate" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源APP:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">备注:</label>
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,6 @@
|
||||||
<input name="videoTitle" th:field="*{videoTitle}" class="form-control" type="text">
|
<input name="videoTitle" th:field="*{videoTitle}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">来源APP:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input name="sourceApp" th:field="*{sourceApp}" class="form-control" type="text">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">显示时间:</label>
|
<label class="col-sm-3 control-label">显示时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
|
||||||
|
|
@ -88,10 +88,6 @@
|
||||||
field: 'videoShowDate',
|
field: 'videoShowDate',
|
||||||
title: '显示时间'
|
title: '显示时间'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'sourceApp',
|
|
||||||
title: '来源APP'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'remark',
|
field: 'remark',
|
||||||
title: '备注'
|
title: '备注'
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,6 @@ public class Clew extends BaseEntity
|
||||||
@Excel(name = "App来源")
|
@Excel(name = "App来源")
|
||||||
private Long sourceApp;
|
private Long sourceApp;
|
||||||
|
|
||||||
@Excel(name = "来源APP名称")
|
|
||||||
private String sourceAppName;
|
|
||||||
|
|
||||||
/** 微信号 */
|
/** 微信号 */
|
||||||
@Excel(name = "微信号")
|
@Excel(name = "微信号")
|
||||||
private String wxAccount;
|
private String wxAccount;
|
||||||
|
|
@ -124,8 +121,6 @@ public class Clew extends BaseEntity
|
||||||
@Excel(name = "姓名")
|
@Excel(name = "姓名")
|
||||||
private String customerName;
|
private String customerName;
|
||||||
|
|
||||||
private String assignTimes;
|
|
||||||
|
|
||||||
/** 方便接电话时间 */
|
/** 方便接电话时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "方便接电话时间", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "方便接电话时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
|
@ -138,9 +133,6 @@ public class Clew extends BaseEntity
|
||||||
@Excel(name = "客户情况备注")
|
@Excel(name = "客户情况备注")
|
||||||
private String customerRemark;
|
private String customerRemark;
|
||||||
|
|
||||||
@Excel(name = "客户二次情况备注")
|
|
||||||
private String twoCustomerRemark;
|
|
||||||
|
|
||||||
private String searchStatus;
|
private String searchStatus;
|
||||||
|
|
||||||
private String imei;
|
private String imei;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,5 @@ public class ClewImg extends BaseEntity
|
||||||
@Excel(name = "图片链接")
|
@Excel(name = "图片链接")
|
||||||
private String imgUrl;
|
private String imgUrl;
|
||||||
|
|
||||||
private Long sourceApp;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,4 @@ public class ClewMaterial extends BaseEntity
|
||||||
@Excel(name = "线索提交内容")
|
@Excel(name = "线索提交内容")
|
||||||
private String clewContent;
|
private String clewContent;
|
||||||
|
|
||||||
private Long sourceApp;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,4 @@ public class ClewPhone extends BaseEntity
|
||||||
|
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private Long sourceApp;
|
|
||||||
|
|
||||||
@Excel(name = "来源APP名称")
|
|
||||||
private String sourceAppName;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,4 @@ public class ClewVideo extends BaseEntity
|
||||||
@Excel(name = "显示时间")
|
@Excel(name = "显示时间")
|
||||||
private String videoShowDate;
|
private String videoShowDate;
|
||||||
|
|
||||||
private Long sourceApp;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,4 @@ public class NoticeRequest {
|
||||||
private String oaid;
|
private String oaid;
|
||||||
|
|
||||||
private String from;
|
private String from;
|
||||||
|
|
||||||
private String sourceApp;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ruoyi.common.utils.DateUtils;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.common.utils.http.HttpUtils;
|
import com.ruoyi.common.utils.http.HttpUtils;
|
||||||
|
|
@ -13,7 +12,6 @@ import com.ruoyi.system.mapper.ClewMapper;
|
||||||
import com.ruoyi.system.domain.Clew;
|
import com.ruoyi.system.domain.Clew;
|
||||||
import com.ruoyi.system.service.IClewService;
|
import com.ruoyi.system.service.IClewService;
|
||||||
import com.ruoyi.common.core.text.Convert;
|
import com.ruoyi.common.core.text.Convert;
|
||||||
import org.springframework.util.ObjectUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 线索Service业务层处理
|
* 线索Service业务层处理
|
||||||
|
|
@ -67,16 +65,10 @@ public class ClewServiceImpl implements IClewService
|
||||||
smsContent.put("uid", "12347");
|
smsContent.put("uid", "12347");
|
||||||
smsContent.put("pwd", "wJgzaC0u");
|
smsContent.put("pwd", "wJgzaC0u");
|
||||||
smsContent.put("mobile", "18580868339");
|
smsContent.put("mobile", "18580868339");
|
||||||
if(clew.getSourceApp() != null && clew.getSourceApp() == 2L){
|
smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)");
|
||||||
smsContent.put("content", "你有一条来自大象,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)");
|
log.info("请求傲众短信入参:{}", smsContent.toJSONString());
|
||||||
}else {
|
String s = HttpUtils.sendPost("http://www.aozhongyun.com/Admin/index.php/Message/send", smsContent.toJSONString());
|
||||||
smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)");
|
log.info("请求傲众短信url:{}, 响应:{}", "http://www.aozhongyun.com/Admin/index.php/Message/send", s);
|
||||||
}
|
|
||||||
if(!ObjectUtil.equals(clew.getSourceApp(), 8L)){
|
|
||||||
log.info("请求傲众短信入参:{}", smsContent.toJSONString());
|
|
||||||
String s = HttpUtils.sendPost("http://www.aozhongyun.com/Admin/index.php/Message/send", smsContent.toJSONString());
|
|
||||||
log.info("请求傲众短信url:{}, 响应:{}", "http://www.aozhongyun.com/Admin/index.php/Message/send", s);
|
|
||||||
}
|
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("请求傲众短信url:{}, 报错:{}","http://www.aozhongyun.com/Admin/index.php/Message/send", e.getMessage());
|
log.error("请求傲众短信url:{}, 报错:{}","http://www.aozhongyun.com/Admin/index.php/Message/send", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
@ -93,12 +85,14 @@ public class ClewServiceImpl implements IClewService
|
||||||
@Override
|
@Override
|
||||||
public int updateClew(Clew clew)
|
public int updateClew(Clew clew)
|
||||||
{
|
{
|
||||||
|
clew.setUpdateTime(DateUtils.getNowDate());
|
||||||
return clewMapper.updateClew(clew);
|
return clewMapper.updateClew(clew);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int updateBatchClew(Clew clew)
|
public int updateBatchClew(Clew clew)
|
||||||
{
|
{
|
||||||
|
clew.setUpdateTime(DateUtils.getNowDate());
|
||||||
return clewMapper.updateBatchClew(clew);
|
return clewMapper.updateBatchClew(clew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
<resultMap type="ClewImg" id="ClewImgResult">
|
<resultMap type="ClewImg" id="ClewImgResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="imgUrl" column="img_url" />
|
<result property="imgUrl" column="img_url" />
|
||||||
<result property="sourceApp" column="source_app" />
|
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
|
@ -16,14 +15,13 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectClewImgVo">
|
<sql id="selectClewImgVo">
|
||||||
select id, img_url, source_app, create_time, create_by, update_time, update_by, remark from clew_img
|
select id, img_url, create_time, create_by, update_time, update_by, remark from clew_img
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectClewImgList" parameterType="ClewImg" resultMap="ClewImgResult">
|
<select id="selectClewImgList" parameterType="ClewImg" resultMap="ClewImgResult">
|
||||||
<include refid="selectClewImgVo"/>
|
<include refid="selectClewImgVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
<if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
||||||
<if test="sourceApp != null"> and source_app = #{sourceApp}</if>
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -36,7 +34,6 @@
|
||||||
insert into clew_img
|
insert into clew_img
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="imgUrl != null">img_url,</if>
|
<if test="imgUrl != null">img_url,</if>
|
||||||
<if test="sourceApp != null">source_app,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="updateTime != null">update_time,</if>
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
|
@ -45,7 +42,6 @@
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="imgUrl != null">#{imgUrl},</if>
|
<if test="imgUrl != null">#{imgUrl},</if>
|
||||||
<if test="sourceApp != null">#{sourceApp},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
|
@ -58,7 +54,6 @@
|
||||||
update clew_img
|
update clew_img
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
||||||
<if test="sourceApp != null">source_app = #{sourceApp},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="createBy != null">create_by = #{createBy},</if>
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,6 @@
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
<result property="remark" column="remark" />
|
<result property="remark" column="remark" />
|
||||||
<result property="customerRemark" column="customer_remark" />
|
<result property="customerRemark" column="customer_remark" />
|
||||||
<result property="twoCustomerRemark" column="two_customer_remark"/>
|
|
||||||
<result property="assignTimes" column="assign_times" />
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectClewVo">
|
<sql id="selectClewVo">
|
||||||
|
|
@ -47,7 +45,7 @@
|
||||||
source_app, wx_account, customer_status, customer_level, touch_qrcode,
|
source_app, wx_account, customer_status, customer_level, touch_qrcode,
|
||||||
contact_number, is_touch, is_add_wx, is_effective, is_plan, is_deal,
|
contact_number, is_touch, is_add_wx, is_effective, is_plan, is_deal,
|
||||||
province_name, city_name, customer_name, contact_time, other_phone,
|
province_name, city_name, customer_name, contact_time, other_phone,
|
||||||
create_time, create_by, update_by, update_time, remark, customer_remark,two_customer_remark,assign_times from clew
|
create_time, create_by, update_by, update_time, remark, customer_remark from clew
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectClewList" parameterType="Clew" resultMap="ClewResult">
|
<select id="selectClewList" parameterType="Clew" resultMap="ClewResult">
|
||||||
|
|
@ -91,30 +89,14 @@
|
||||||
<if test="searchStatus == '04'">
|
<if test="searchStatus == '04'">
|
||||||
and is_deal = '1'
|
and is_deal = '1'
|
||||||
</if>
|
</if>
|
||||||
<if test="searchStatus == '05'">
|
|
||||||
and is_add_wx != '1'
|
|
||||||
</if>
|
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.updateStartTime != null and params.updateStartTime != ''"><!-- 开始时间检索 -->
|
|
||||||
AND date_format(update_time,'%y%m%d') >= date_format(#{params.updateStartTime},'%y%m%d')
|
|
||||||
</if>
|
|
||||||
<if test="params.updateEndTime != null and params.updateEndTime != ''"><!-- 结束时间检索 -->
|
|
||||||
AND date_format(update_time,'%y%m%d') <= date_format(#{params.updateEndTime},'%y%m%d')
|
|
||||||
</if>
|
|
||||||
</where>
|
</where>
|
||||||
<choose>
|
order by create_time desc
|
||||||
<when test="saleId != null ">
|
|
||||||
order by update_time desc
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
order by create_time desc
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectClewById" parameterType="Long" resultMap="ClewResult">
|
<select id="selectClewById" parameterType="Long" resultMap="ClewResult">
|
||||||
|
|
@ -224,8 +206,6 @@
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
<if test="customerRemark != null">customer_remark = #{customerRemark},</if>
|
<if test="customerRemark != null">customer_remark = #{customerRemark},</if>
|
||||||
<if test="twoCustomerRemark != null">two_customer_remark = #{twoCustomerRemark},</if>
|
|
||||||
<if test="assignTimes != null">assign_times = #{assignTimes},</if>
|
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -234,8 +214,6 @@
|
||||||
update clew
|
update clew
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="saleId != null">sale_id = #{saleId},</if>
|
<if test="saleId != null">sale_id = #{saleId},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
||||||
<if test="assignTimes != null">assign_times = #{assignTimes},</if>
|
|
||||||
</trim>
|
</trim>
|
||||||
<where>
|
<where>
|
||||||
<if test="idList != null and idList.size() > 0">
|
<if test="idList != null and idList.size() > 0">
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@
|
||||||
<result property="detail" column="detail" />
|
<result property="detail" column="detail" />
|
||||||
<result property="applyNum" column="apply_num" />
|
<result property="applyNum" column="apply_num" />
|
||||||
<result property="clewContent" column="clew_content" />
|
<result property="clewContent" column="clew_content" />
|
||||||
<result property="sourceApp" column="source_app" />
|
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
|
|
@ -21,7 +20,7 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectClewMaterialVo">
|
<sql id="selectClewMaterialVo">
|
||||||
select id, title, img_url, video_img, labels, detail, apply_num, clew_content, source_app, create_by, create_time, update_by, update_time from clew_material
|
select id, title, img_url, video_img, labels, detail, apply_num, clew_content, create_by, create_time, update_by, update_time from clew_material
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectClewMaterialList" parameterType="ClewMaterial" resultMap="ClewMaterialResult">
|
<select id="selectClewMaterialList" parameterType="ClewMaterial" resultMap="ClewMaterialResult">
|
||||||
|
|
@ -33,7 +32,6 @@
|
||||||
<if test="labels != null and labels != ''"> and labels = #{labels}</if>
|
<if test="labels != null and labels != ''"> and labels = #{labels}</if>
|
||||||
<if test="applyNum != null and applyNum != ''"> and apply_num = #{applyNum}</if>
|
<if test="applyNum != null and applyNum != ''"> and apply_num = #{applyNum}</if>
|
||||||
<if test="clewContent != null and clewContent != ''"> and clew_content = #{clewContent}</if>
|
<if test="clewContent != null and clewContent != ''"> and clew_content = #{clewContent}</if>
|
||||||
<if test="sourceApp != null "> and source_app = #{sourceApp}</if>
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -52,7 +50,6 @@
|
||||||
<if test="detail != null">detail,</if>
|
<if test="detail != null">detail,</if>
|
||||||
<if test="applyNum != null">apply_num,</if>
|
<if test="applyNum != null">apply_num,</if>
|
||||||
<if test="clewContent != null">clew_content,</if>
|
<if test="clewContent != null">clew_content,</if>
|
||||||
<if test="sourceApp != null">source_app,</if>
|
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
<if test="updateBy != null">update_by,</if>
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
|
@ -66,7 +63,6 @@
|
||||||
<if test="detail != null">#{detail},</if>
|
<if test="detail != null">#{detail},</if>
|
||||||
<if test="applyNum != null">#{applyNum},</if>
|
<if test="applyNum != null">#{applyNum},</if>
|
||||||
<if test="clewContent != null">#{clewContent},</if>
|
<if test="clewContent != null">#{clewContent},</if>
|
||||||
<if test="sourceApp != null">#{sourceApp},</if>
|
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
|
@ -84,7 +80,6 @@
|
||||||
<if test="detail != null">detail = #{detail},</if>
|
<if test="detail != null">detail = #{detail},</if>
|
||||||
<if test="applyNum != null">apply_num = #{applyNum},</if>
|
<if test="applyNum != null">apply_num = #{applyNum},</if>
|
||||||
<if test="clewContent != null">clew_content = #{clewContent},</if>
|
<if test="clewContent != null">clew_content = #{clewContent},</if>
|
||||||
<if test="sourceApp != null">source_app = #{sourceApp},</if>
|
|
||||||
<if test="createBy != null">create_by = #{createBy},</if>
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
<resultMap type="ClewPhone" id="ClewPhoneResult">
|
<resultMap type="ClewPhone" id="ClewPhoneResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="phone" column="phone" />
|
<result property="phone" column="phone" />
|
||||||
<result property="sourceApp" column="source_app" />
|
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
|
|
@ -17,14 +16,13 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectClewPhoneVo">
|
<sql id="selectClewPhoneVo">
|
||||||
select id, phone,status,source_app, create_time, create_by, update_by, update_time, remark from clew_phone
|
select id, phone,status, create_time, create_by, update_by, update_time, remark from clew_phone
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectClewPhoneList" parameterType="ClewPhone" resultMap="ClewPhoneResult">
|
<select id="selectClewPhoneList" parameterType="ClewPhone" resultMap="ClewPhoneResult">
|
||||||
<include refid="selectClewPhoneVo"/>
|
<include refid="selectClewPhoneVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||||
<if test="sourceApp != null"> and source_app = #{sourceApp}</if>
|
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -47,7 +45,6 @@
|
||||||
insert into clew_phone
|
insert into clew_phone
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="phone != null">phone,</if>
|
<if test="phone != null">phone,</if>
|
||||||
<if test="sourceApp != null">source_app,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="updateBy != null">update_by,</if>
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
|
@ -56,7 +53,6 @@
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="phone != null">#{phone},</if>
|
<if test="phone != null">#{phone},</if>
|
||||||
<if test="sourceApp != null">#{sourceApp},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
|
@ -69,7 +65,6 @@
|
||||||
update clew_phone
|
update clew_phone
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="phone != null">phone = #{phone},</if>
|
<if test="phone != null">phone = #{phone},</if>
|
||||||
<if test="sourceApp != null">source_app = #{sourceApp},</if>
|
|
||||||
<if test="status != null">status = #{status},</if>
|
<if test="status != null">status = #{status},</if>
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="createBy != null">create_by = #{createBy},</if>
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
<result property="videoImg" column="video_img" />
|
<result property="videoImg" column="video_img" />
|
||||||
<result property="videoTitle" column="video_title" />
|
<result property="videoTitle" column="video_title" />
|
||||||
<result property="videoShowDate" column="video_show_date" />
|
<result property="videoShowDate" column="video_show_date" />
|
||||||
<result property="sourceApp" column="source_app" />
|
|
||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
|
@ -19,14 +18,13 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectClewVideoVo">
|
<sql id="selectClewVideoVo">
|
||||||
select id, video_url, video_img, video_title, video_show_date,source_app, create_time, create_by, update_time, update_by, remark from clew_video
|
select id, video_url, video_img, video_title, video_show_date, create_time, create_by, update_time, update_by, remark from clew_video
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectClewVideoList" parameterType="ClewVideo" resultMap="ClewVideoResult">
|
<select id="selectClewVideoList" parameterType="ClewVideo" resultMap="ClewVideoResult">
|
||||||
<include refid="selectClewVideoVo"/>
|
<include refid="selectClewVideoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
|
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
|
||||||
<if test="sourceApp != null"> and source_app = #{sourceApp}</if>
|
|
||||||
<if test="videoTitle != null and videoTitle != ''"> and video_title = #{videoTitle}</if>
|
<if test="videoTitle != null and videoTitle != ''"> and video_title = #{videoTitle}</if>
|
||||||
<if test="videoShowDate != null and videoShowDate != ''"> and video_show_date = #{videoShowDate}</if>
|
<if test="videoShowDate != null and videoShowDate != ''"> and video_show_date = #{videoShowDate}</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
@ -44,7 +42,6 @@
|
||||||
<if test="videoImg != null">video_img,</if>
|
<if test="videoImg != null">video_img,</if>
|
||||||
<if test="videoTitle != null">video_title,</if>
|
<if test="videoTitle != null">video_title,</if>
|
||||||
<if test="videoShowDate != null">video_show_date,</if>
|
<if test="videoShowDate != null">video_show_date,</if>
|
||||||
<if test="sourceApp != null">source_app,</if>
|
|
||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
<if test="updateTime != null">update_time,</if>
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
|
@ -56,7 +53,6 @@
|
||||||
<if test="videoImg != null">#{videoImg},</if>
|
<if test="videoImg != null">#{videoImg},</if>
|
||||||
<if test="videoTitle != null">#{videoTitle},</if>
|
<if test="videoTitle != null">#{videoTitle},</if>
|
||||||
<if test="videoShowDate != null">#{videoShowDate},</if>
|
<if test="videoShowDate != null">#{videoShowDate},</if>
|
||||||
<if test="sourceApp != null">#{sourceApp},</if>
|
|
||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
|
@ -72,7 +68,6 @@
|
||||||
<if test="videoImg != null">video_img = #{videoImg},</if>
|
<if test="videoImg != null">video_img = #{videoImg},</if>
|
||||||
<if test="videoTitle != null">video_title = #{videoTitle},</if>
|
<if test="videoTitle != null">video_title = #{videoTitle},</if>
|
||||||
<if test="videoShowDate != null">video_show_date = #{videoShowDate},</if>
|
<if test="videoShowDate != null">video_show_date = #{videoShowDate},</if>
|
||||||
<if test="sourceApp != null">source_app = #{sourceApp},</if>
|
|
||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="createBy != null">create_by = #{createBy},</if>
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue