diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java index 7f4067b8..49eeada0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewController.java @@ -8,14 +8,19 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import cn.hutool.core.util.ObjectUtil; 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.utils.DateUtils; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.http.HttpUtils; import com.ruoyi.common.utils.security.Md5Utils; import com.ruoyi.system.domain.ClewPhone; +import com.ruoyi.system.domain.CompanyApp; import com.ruoyi.system.domain.OppoCheck; import com.ruoyi.system.service.IClewPhoneService; +import com.ruoyi.system.service.ICompanyAppService; import com.ruoyi.system.service.ISysUserService; import com.ruoyi.web.core.config.GlobalLogHelper; import lombok.extern.slf4j.Slf4j; @@ -64,6 +69,9 @@ public class ClewController extends BaseController @Autowired private IClewPhoneService clewPhoneService; + @Autowired + private ICompanyAppService companyAppService; + @RequiresPermissions("system:clew:view") @GetMapping() public String clew(ModelMap modelMap) @@ -85,6 +93,11 @@ public class ClewController extends BaseController if(!"admin".equals(getSysUser().getLoginName())){ clew.setSaleId(getSysUser().getUserId()); } + long isSubAdmin = getSysUser().getRoles().stream().map(x->x.getRoleKey().equals("subAdmin")).count(); + if(isSubAdmin > 0 && !"admin".equals(getSysUser().getLoginName())){ + clew.setSaleId(null); + clew.setRemark("baidu"); + } List list = clewService.selectClewList(clew); list.forEach(model->{ if(model.getSaleId() != null){ @@ -93,6 +106,14 @@ public class ClewController extends BaseController model.setSaleName(user.getUserName()); } } + if(model.getSourceApp() != null){ + CompanyApp param = new CompanyApp(); + param.setCompanyId(model.getSourceApp()); + List result = companyAppService.selectCompanyAppList(param); + model.setSourceAppName(result.get(0).getAppName()); + }else { + model.setSourceAppName("黑猫APP"); + } }); return getDataTable(list); } @@ -153,6 +174,7 @@ public class ClewController extends BaseController List clewPhoneList = clewPhoneService.selectClewPhoneList(model); clewPhoneList.forEach(x->{ x.setStatus("1"); + x.setSourceApp(clew.getSourceApp()); clewPhoneService.updateClewPhone(x); }); // 调用oppo的统计接口 @@ -183,6 +205,9 @@ public class ClewController extends BaseController 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 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 headerMap = new HashMap<>(); headerMap.put("Content-Type", "application/json"); log.info("请求{}的属性{}", url, content); @@ -200,6 +225,12 @@ public class ClewController extends BaseController 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) @@ -297,6 +328,11 @@ public class ClewController extends BaseController @ResponseBody 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)); } @@ -315,6 +351,11 @@ public class ClewController extends BaseController if(StringUtils.isEmpty(clew.getIds())){ 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())); return toAjax(clewService.updateBatchClew(clew)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewImgController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewImgController.java index fed48466..12d14329 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewImgController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewImgController.java @@ -7,11 +7,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -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 org.springframework.web.bind.annotation.*; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.system.domain.ClewImg; @@ -58,9 +54,14 @@ public class ClewImgController extends BaseController @GetMapping("/app/list") @ResponseBody - public AjaxResult getAppList() + public AjaxResult getAppList(@RequestParam(value = "sourceApp", required = false) Long sourceApp) { - List list = clewImgService.selectClewImgList(new ClewImg()); + if(sourceApp == null){ + sourceApp = 1L; + } + ClewImg param = new ClewImg(); + param.setSourceApp(sourceApp); + List list = clewImgService.selectClewImgList(param); List imgList = list.stream().map(ClewImg::getImgUrl).collect(Collectors.toList()); return AjaxResult.success(imgList); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewMaterialController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewMaterialController.java index 83a8f658..8c1f5307 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewMaterialController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewMaterialController.java @@ -5,11 +5,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -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 org.springframework.web.bind.annotation.*; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.system.domain.ClewMaterial; @@ -56,9 +52,12 @@ public class ClewMaterialController extends BaseController @PostMapping("/app/list") @ResponseBody - public TableDataInfo appList(ClewMaterial clewMaterial) + public TableDataInfo appList(@RequestParam(value = "sourceApp", required = false) Long sourceApp, ClewMaterial clewMaterial) { startPage(); + if(sourceApp == null){ + clewMaterial.setSourceApp(1L); + } List list = clewMaterialService.selectClewMaterialList(clewMaterial); return getDataTable(list); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewPhoneController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewPhoneController.java index a1d689ab..fdac8808 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewPhoneController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewPhoneController.java @@ -51,6 +51,13 @@ public class ClewPhoneController extends BaseController { startPage(); List list = clewPhoneService.selectClewPhoneList(clewPhone); + list.forEach(model->{ + if(model.getSourceApp() != null && model.getSourceApp() == 2L){ + model.setSourceAppName("大象处理逾期"); + }else { + model.setSourceAppName("黑猫搞定逾期"); + } + }); return getDataTable(list); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewVideoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewVideoController.java index 38ef8a4c..9432967f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewVideoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ClewVideoController.java @@ -5,11 +5,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -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 org.springframework.web.bind.annotation.*; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.system.domain.ClewVideo; @@ -56,9 +52,14 @@ public class ClewVideoController extends BaseController @GetMapping("/app/list") @ResponseBody - public AjaxResult getAppList() + public AjaxResult getAppList(@RequestParam(value = "sourceApp", required = false) Long sourceApp) { - List list = clewVideoService.selectClewVideoList(new ClewVideo()); + if(sourceApp == null){ + sourceApp = 1L; + } + ClewVideo param = new ClewVideo(); + param.setSourceApp(sourceApp); + List list = clewVideoService.selectClewVideoList(param); return AjaxResult.success(list); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java index 80779316..6d51bfb5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/NoticeController.java @@ -13,7 +13,6 @@ import com.ruoyi.common.utils.ExceptionUtil; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.http.HttpUtils; 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.NoticeRequest; import com.ruoyi.system.domain.OppoCheck; @@ -23,10 +22,8 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; -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 org.springframework.web.bind.annotation.*; + import java.security.GeneralSecurityException; import java.security.Key; import javax.crypto.Cipher; @@ -61,6 +58,34 @@ public class NoticeController { 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") @ResponseBody public AjaxResult getLocationByLot(@RequestBody JSONObject jsonObject){ @@ -112,6 +137,11 @@ public class NoticeController { 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){ @@ -159,10 +189,16 @@ public class NoticeController { String clientIp = "58.49.150.163"; long convTime = System.currentTimeMillis(); String convType = "APP_REGISTER"; - long appId = 1545362; int customerId = 445972; + long appId = 1545362; String singKey = "rEQNdyVQxHlayYzw"; String encryptKey = "RPeKBIdybnbMAVlK"; + if(request.getSourceApp() != null && "2".equals(request.getSourceApp())){ + customerId = 593022; + appId = 1585622; + singKey = "WJzbmmPPufjyKESi"; + encryptKey = "sTrlawivcqdHzUDB"; + } GlobalLogHelper.UploadInfo uploadInfo = GlobalLogHelper.UploadInfo.builder() // .imei(imei) .oaid(oaid) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/GlobalLogHelper.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/GlobalLogHelper.java index 71d3f601..70bd6720 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/GlobalLogHelper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/GlobalLogHelper.java @@ -1,6 +1,6 @@ package com.ruoyi.web.core.config; -import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; +import cn.hutool.core.codec.Base64; import lombok.Builder; import lombok.Data; import lombok.SneakyThrows; diff --git a/ruoyi-admin/src/main/resources/templates/system/clew/add.html b/ruoyi-admin/src/main/resources/templates/system/clew/add.html index 6b2432e1..72b33051 100644 --- a/ruoyi-admin/src/main/resources/templates/system/clew/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/clew/add.html @@ -10,19 +10,19 @@
- +
- +
- +
@@ -55,7 +55,7 @@
- +
@@ -148,7 +148,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/clew/clew.html b/ruoyi-admin/src/main/resources/templates/system/clew/clew.html index 29813129..4540906f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/clew/clew.html +++ b/ruoyi-admin/src/main/resources/templates/system/clew/clew.html @@ -28,17 +28,48 @@
  • - 状态:
  • +
  • + 有效: +
  • +
  • + 意向: +
  • +
  • + 成交: +
  • +
  • + 来源应用: +
  • -
  • +
  • + + + - + +
  •  搜索  重置 @@ -80,6 +111,7 @@ var isPlan = [[${@dict.getType('is_plan')}]]; var isDeal = [[${@dict.getType('is_deal')}]]; var customerStatus = [[${@dict.getType('customer_status')}]]; + var assignStatus = [[${@dict.getType('assign_status')}]]; var prefix = ctx + "system/clew"; @@ -99,6 +131,10 @@ title: '主键', visible: false }, + { + field: 'sourceAppName', + title: '来源App' + }, { field: 'phone', title: '手机号' @@ -115,7 +151,8 @@ }, { field: 'debtType', - title: '债务类型' + title: '债务类型', + visible: false }, { field: 'debtMoney', @@ -129,10 +166,25 @@ field: 'customerRemark', title: '客户情况备注' }, + { + field: 'twoCustomerRemark', + title: '二次跟进情况' + }, { field: 'createTime', title: '创建时间' }, + { + field: 'updateTime', + title: '分配时间' + }, + { + field: 'assignTimes', + title: '二次分配', + formatter: function(value, row, index) { + return $.table.selectDictLabel(assignStatus, value); + } + }, { field: 'sourceType', title: '推广来源', @@ -208,15 +260,18 @@ }, { field: 'cityName', - title: '城市' + title: '城市', + visible: false }, { field: 'contactTime', - title: '方便接电话时间' + title: '方便接电话时间', + visible: false }, { field: 'otherPhone', - title: '其他联系方式' + title: '其他联系方式', + visible: false }, { field: 'company', diff --git a/ruoyi-admin/src/main/resources/templates/system/clew/edit.html b/ruoyi-admin/src/main/resources/templates/system/clew/edit.html index e3666487..98b0b47f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/clew/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/clew/edit.html @@ -127,6 +127,12 @@
  • +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/img/add.html b/ruoyi-admin/src/main/resources/templates/system/img/add.html index c44ceda4..1297e089 100644 --- a/ruoyi-admin/src/main/resources/templates/system/img/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/img/add.html @@ -14,6 +14,12 @@
    +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/img/edit.html b/ruoyi-admin/src/main/resources/templates/system/img/edit.html index d83836a5..e76c8890 100644 --- a/ruoyi-admin/src/main/resources/templates/system/img/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/img/edit.html @@ -13,6 +13,12 @@
    +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/img/img.html b/ruoyi-admin/src/main/resources/templates/system/img/img.html index 3d3fe194..91659e67 100644 --- a/ruoyi-admin/src/main/resources/templates/system/img/img.html +++ b/ruoyi-admin/src/main/resources/templates/system/img/img.html @@ -68,6 +68,10 @@ field: 'imgUrl', title: '图片链接' }, + { + field: 'sourceApp', + title: '来源APP' + }, { field: 'remark', title: '备注' diff --git a/ruoyi-admin/src/main/resources/templates/system/material/add.html b/ruoyi-admin/src/main/resources/templates/system/material/add.html index 693c0f00..ca75da44 100644 --- a/ruoyi-admin/src/main/resources/templates/system/material/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/material/add.html @@ -46,6 +46,12 @@
    +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/material/edit.html b/ruoyi-admin/src/main/resources/templates/system/material/edit.html index bcb58323..d8186167 100644 --- a/ruoyi-admin/src/main/resources/templates/system/material/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/material/edit.html @@ -38,6 +38,12 @@
    +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/material/material.html b/ruoyi-admin/src/main/resources/templates/system/material/material.html index 0205ef6b..7586483c 100644 --- a/ruoyi-admin/src/main/resources/templates/system/material/material.html +++ b/ruoyi-admin/src/main/resources/templates/system/material/material.html @@ -104,6 +104,10 @@ field: 'clewContent', title: '线索提交内容' }, + { + field: 'sourceApp', + title: '来源APP' + }, { title: '操作', align: 'center', diff --git a/ruoyi-admin/src/main/resources/templates/system/phone/phone.html b/ruoyi-admin/src/main/resources/templates/system/phone/phone.html index 865c276a..e15d5811 100644 --- a/ruoyi-admin/src/main/resources/templates/system/phone/phone.html +++ b/ruoyi-admin/src/main/resources/templates/system/phone/phone.html @@ -20,6 +20,12 @@ +
  • + 来源应用:
  • @@ -78,6 +84,10 @@ title: '主键', visible: false }, + { + field: 'sourceAppName', + title: '来源App' + }, { field: 'phone', title: '手机号' diff --git a/ruoyi-admin/src/main/resources/templates/system/video/add.html b/ruoyi-admin/src/main/resources/templates/system/video/add.html index ea78b569..8f590b94 100644 --- a/ruoyi-admin/src/main/resources/templates/system/video/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/video/add.html @@ -33,6 +33,12 @@
  • +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/video/edit.html b/ruoyi-admin/src/main/resources/templates/system/video/edit.html index 6154fc75..e39f8b2d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/video/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/video/edit.html @@ -19,6 +19,12 @@
    +
    + +
    + +
    +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/video/video.html b/ruoyi-admin/src/main/resources/templates/system/video/video.html index 0afcf199..58cd854a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/video/video.html +++ b/ruoyi-admin/src/main/resources/templates/system/video/video.html @@ -88,6 +88,10 @@ field: 'videoShowDate', title: '显示时间' }, + { + field: 'sourceApp', + title: '来源APP' + }, { field: 'remark', title: '备注' diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Clew.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Clew.java index 9ec0fa48..10bd6151 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Clew.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Clew.java @@ -69,6 +69,9 @@ public class Clew extends BaseEntity @Excel(name = "App来源") private Long sourceApp; + @Excel(name = "来源APP名称") + private String sourceAppName; + /** 微信号 */ @Excel(name = "微信号") private String wxAccount; @@ -121,6 +124,8 @@ public class Clew extends BaseEntity @Excel(name = "姓名") private String customerName; + private String assignTimes; + /** 方便接电话时间 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "方便接电话时间", width = 30, dateFormat = "yyyy-MM-dd") @@ -133,6 +138,9 @@ public class Clew extends BaseEntity @Excel(name = "客户情况备注") private String customerRemark; + @Excel(name = "客户二次情况备注") + private String twoCustomerRemark; + private String searchStatus; private String imei; diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewImg.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewImg.java index 1195640e..02b6048e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewImg.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewImg.java @@ -22,5 +22,7 @@ public class ClewImg extends BaseEntity @Excel(name = "图片链接") private String imgUrl; + private Long sourceApp; + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewMaterial.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewMaterial.java index cec5e160..dc720427 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewMaterial.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewMaterial.java @@ -45,4 +45,6 @@ public class ClewMaterial extends BaseEntity @Excel(name = "线索提交内容") private String clewContent; + private Long sourceApp; + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewPhone.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewPhone.java index c701552a..6ef82a8c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewPhone.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewPhone.java @@ -27,4 +27,10 @@ public class ClewPhone extends BaseEntity private String status; + private Long sourceApp; + + @Excel(name = "来源APP名称") + private String sourceAppName; + + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewVideo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewVideo.java index 7fce8cb0..f3c8c3e5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewVideo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/ClewVideo.java @@ -33,4 +33,6 @@ public class ClewVideo extends BaseEntity @Excel(name = "显示时间") private String videoShowDate; + private Long sourceApp; + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/NoticeRequest.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/NoticeRequest.java index 5b76096b..bee5fe1c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/NoticeRequest.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/NoticeRequest.java @@ -27,4 +27,7 @@ public class NoticeRequest { private String oaid; private String from; + + private String sourceApp; + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java index 13826b5d..0ec85860 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ClewServiceImpl.java @@ -65,7 +65,11 @@ public class ClewServiceImpl implements IClewService smsContent.put("uid", "12347"); smsContent.put("pwd", "wJgzaC0u"); smsContent.put("mobile", "18580868339"); - smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)"); + if(clew.getSourceApp() != null && clew.getSourceApp() == 2L){ + smsContent.put("content", "你有一条来自大象,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)"); + }else { + smsContent.put("content", "你有一条来自黑猫,新线索生成,客户电话:" + clew.getPhone() + "(请注意及时跟进)"); + } 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); @@ -85,14 +89,12 @@ public class ClewServiceImpl implements IClewService @Override public int updateClew(Clew clew) { - clew.setUpdateTime(DateUtils.getNowDate()); return clewMapper.updateClew(clew); } @Override public int updateBatchClew(Clew clew) { - clew.setUpdateTime(DateUtils.getNowDate()); return clewMapper.updateBatchClew(clew); } diff --git a/ruoyi-system/src/main/resources/mapper/system/ClewImgMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ClewImgMapper.xml index 9c6829cd..aa517501 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ClewImgMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ClewImgMapper.xml @@ -7,6 +7,7 @@ + @@ -15,13 +16,14 @@ - select id, img_url, create_time, create_by, update_time, update_by, remark from clew_img + select id, img_url, source_app, create_time, create_by, update_time, update_by, remark from clew_img @@ -34,6 +36,7 @@ insert into clew_img img_url, + source_app, create_time, create_by, update_time, @@ -42,6 +45,7 @@ #{imgUrl}, + #{sourceApp}, #{createTime}, #{createBy}, #{updateTime}, @@ -54,6 +58,7 @@ update clew_img img_url = #{imgUrl}, + source_app = #{sourceApp}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime}, diff --git a/ruoyi-system/src/main/resources/mapper/system/ClewMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ClewMapper.xml index 9eea340e..b4a4dad0 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ClewMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ClewMapper.xml @@ -37,6 +37,8 @@ + + @@ -45,7 +47,7 @@ source_app, wx_account, customer_status, customer_level, touch_qrcode, contact_number, is_touch, is_add_wx, is_effective, is_plan, is_deal, province_name, city_name, customer_name, contact_time, other_phone, - create_time, create_by, update_by, update_time, remark, customer_remark from clew + create_time, create_by, update_by, update_time, remark, customer_remark,two_customer_remark,assign_times from clew @@ -32,6 +33,7 @@ and labels = #{labels} and apply_num = #{applyNum} and clew_content = #{clewContent} + and source_app = #{sourceApp} @@ -50,6 +52,7 @@ detail, apply_num, clew_content, + source_app, create_by, create_time, update_by, @@ -63,6 +66,7 @@ #{detail}, #{applyNum}, #{clewContent}, + #{sourceApp}, #{createBy}, #{createTime}, #{updateBy}, @@ -80,6 +84,7 @@ detail = #{detail}, apply_num = #{applyNum}, clew_content = #{clewContent}, + source_app = #{sourceApp}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, diff --git a/ruoyi-system/src/main/resources/mapper/system/ClewPhoneMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ClewPhoneMapper.xml index dc3c6ec8..21f570d9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ClewPhoneMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ClewPhoneMapper.xml @@ -7,6 +7,7 @@ + @@ -16,13 +17,14 @@ - select id, phone,status, create_time, create_by, update_by, update_time, remark from clew_phone + select id, phone,status,source_app, create_time, create_by, update_by, update_time, remark from clew_phone and video_url = #{videoUrl} + and source_app = #{sourceApp} and video_title = #{videoTitle} and video_show_date = #{videoShowDate} @@ -42,6 +44,7 @@ video_img, video_title, video_show_date, + source_app, create_time, create_by, update_time, @@ -53,6 +56,7 @@ #{videoImg}, #{videoTitle}, #{videoShowDate}, + #{sourceApp}, #{createTime}, #{createBy}, #{updateTime}, @@ -68,6 +72,7 @@ video_img = #{videoImg}, video_title = #{videoTitle}, video_show_date = #{videoShowDate}, + source_app = #{sourceApp}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime},