线索相关修改

This commit is contained in:
kuang.yife 2023-11-11 10:42:12 +08:00
parent 72aba428d5
commit 0570995736
5 changed files with 34 additions and 2 deletions

View File

@ -13,6 +13,7 @@ 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;
@ -122,6 +123,17 @@ public class NoticeController {
log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的属性{}", JSONObject.toJSONString(model));
String s = HttpUtils.sendPost("https://api.ads.heytapmobi.com/api/uploadActiveData", JSONObject.toJSONString(model), headerMap);
log.info("请求https://api.ads.heytapmobi.com/api/uploadActiveData的响应{}", s);
}else if("vivo".equalsIgnoreCase(request.getFrom())){
String token = "78c0170798cf83a7f79ce8fcb5eba68f3329b0e94967686917efcb1dc37e336f";
String timeStamp = System.currentTimeMillis() + "";
String notice = "VIVO"+ (long)((Math.random()+1) * 10000000);
String url = "https://marketing-api.vivo.com.cn/openapi/v1/advertiser/behavior/upload?access_token="+token+"&timestamp="+timeStamp+"&nonce="+notice;
String content = "{\"dataList\":[{\"cvTime\":"+timeStamp+",\"cvType\":\"REGISTER\",\"userId\":\"OTHER\",\"userIdType\":\"OTHER\"}],\"pkgName\":\"com.yinliu.loan\",\"srcId\":\"ds-202310270565\",\"srcType\":\"app\"}";
Map<String, String> headerMap = new HashMap<>();
headerMap.put("Content-Type", "application/json");
log.info("请求{}的属性{}", url, content);
String s = HttpUtils.sendPost(url, content, headerMap);
log.info("请求{}的响应{}", url, s);
}else {
log.info("短信请求接口入参:{}", request);
}

View File

@ -114,6 +114,10 @@
field: 'remark',
title: 'App来源'
},
{
field: 'customerRemark',
title: '客户情况备注'
},
{
field: 'createTime',
title: '创建时间'

View File

@ -121,10 +121,16 @@
<input name="otherPhone" th:field="*{otherPhone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">客户情况备注:</label>
<div class="col-sm-8">
<input name="remark" th:field="*{customerRemark}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remark" th:field="*{remark}" class="form-control" type="text">
<input name="remark" readonly th:field="*{remark}" class="form-control" type="text">
</div>
</div>
</form>

View File

@ -124,6 +124,9 @@ public class Clew extends BaseEntity
@Excel(name = "其他联系方式")
private String otherPhone;
@Excel(name = "客户情况备注")
private String customerRemark;
private String imei;
private String oaid;

View File

@ -36,10 +36,16 @@
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="customerRemark" column="customer_remark" />
</resultMap>
<sql id="selectClewVo">
select id, company, sale_id, info_flow, next_time, wx_name, phone, debt_type, debt_money, source_type, 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 from clew
select id, company, sale_id, info_flow, next_time,
wx_name, phone, debt_type, debt_money, source_type,
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
</sql>
<select id="selectClewList" parameterType="Clew" resultMap="ClewResult">
@ -180,6 +186,7 @@
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="customerRemark != null">customer_remark = #{customerRemark},</if>
</trim>
where id = #{id}
</update>