待发展客户添加了红包金额字段,公众号菜单名称调整

This commit is contained in:
mzr 2024-04-11 18:15:40 +08:00
parent e63478f19a
commit 3b07740dbb
4 changed files with 18 additions and 4 deletions

View File

@ -35,13 +35,14 @@
<result column="address" property="address" jdbcType="VARCHAR" />
<result column="meeting_rule_id" property="meetingRuleId" jdbcType="VARCHAR" />
<result column="full_region_name" property="fullRegionName" jdbcType="VARCHAR" />
<result column="amount" property="amount" jdbcType="VARCHAR" />
</resultMap>
<!-- 表查询字段 -->
<sql id="allColumns">
a.id, a.client_no, a.client_name, a.dealer_id, a.staff_id, a.phone, a.status, a.stop_time, a.province_id,
a.city_id, a.region, a.grow_crops, a.grow_crops_name, a.plant_area, a.create_time, a.create_user, a.create_name,
a.demand_desc, a.company_id, a.longitude, a.latitude, a.address, a.meeting_rule_id
a.demand_desc, a.company_id, a.longitude, a.latitude, a.address, a.meeting_rule_id, a.amount
</sql>
<!-- 根据条件参数查询待发展客户表列表 -->
@ -104,7 +105,7 @@
INSERT INTO crm_potential_client (
id, client_no, client_name, dealer_id, staff_id, phone, status, province_id, city_id, region,
grow_crops, grow_crops_name, plant_area, create_time, create_user, create_name, demand_desc,
company_id, longitude, latitude, address, meeting_rule_id
company_id, longitude, latitude, address, meeting_rule_id, amount
) VALUES (
#{id,jdbcType=VARCHAR},
#{clientNo,jdbcType=VARCHAR},
@ -127,7 +128,8 @@
#{longitude,jdbcType=VARCHAR},
#{latitude,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{meetingRuleId,jdbcType=VARCHAR}
#{meetingRuleId,jdbcType=VARCHAR},
#{amount,jdbcType=VARCHAR}
)
</insert>
@ -189,6 +191,9 @@
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=VARCHAR},
</if>
</set>
WHERE id = #{id}
</update>

View File

@ -142,4 +142,8 @@ public class PotentialClient implements java.io.Serializable {
@ApiModelProperty(hidden = true)
private String fullRegionName;
/** 红包金额 */
@ApiModelProperty(value = "红包金额")
private String amount;
}

View File

@ -123,6 +123,11 @@ public class PotentialClientService {
updateRule.setId(meetingRuleId);
updateRule.setUsedNum(meetingRule.getUsedNum() + 1);
prizeMeetingRuleService.updateInfo(updateRule, ".updateCrmPrizeMeetingRule");
// 回写金额
Map<String, Object> params1 = new HashMap<>();
params1.put("id", uuid);
params1.put("amount", amount);
this.update(params1, ".updateCrmPotentialClient");
}
return true;
}

View File

@ -81,7 +81,7 @@ public class MenuManager {
btn22.put("url", "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + WXMPCMD.APPID + "&redirect_uri=" + url + "wechat/wxResponse.html?response_type=code&scope=snsapi_userinfo&state=path~personal");
Map btn23 = new HashMap<>();
btn23.put("name", "活动");
btn23.put("name", "销活动");
btn23.put("type", "view");
btn23.put("url", "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + WXMPCMD.APPID + "&redirect_uri=" + url + "wechat/wxResponse.html?response_type=code&scope=snsapi_userinfo&state=path~saleroom");