Browse Source

微信开户意愿

zhijiezhao 3 years ago
parent
commit
29d21af7c3

+ 9 - 0
src/main/java/com/caimei/modules/user/entity/SplitCode.java

@@ -7,6 +7,7 @@ public class SplitCode extends DataEntity<SplitCode> {
     private String codeRemark;//账户备注
     private String codeRemark;//账户备注
     private Integer shopId; //供应商ID
     private Integer shopId; //供应商ID
     private String email;
     private String email;
+    private Integer weChatFlag; // 微信开户意愿确认 1开通 2未开通
 
 
     public String getSplitCode() {
     public String getSplitCode() {
         return splitCode;
         return splitCode;
@@ -39,4 +40,12 @@ public class SplitCode extends DataEntity<SplitCode> {
     public void setEmail(String email) {
     public void setEmail(String email) {
         this.email = email;
         this.email = email;
     }
     }
+
+    public Integer getWeChatFlag() {
+        return weChatFlag;
+    }
+
+    public void setWeChatFlag(Integer weChatFlag) {
+        this.weChatFlag = weChatFlag;
+    }
 }
 }

+ 3 - 3
src/main/resources/mappings/modules/user/NewCmShopMapper.xml

@@ -149,7 +149,7 @@
 		</choose>
 		</choose>
 	</select>
 	</select>
 	<select id="findSplitCode" resultType="com.caimei.modules.user.entity.SplitCode">
 	<select id="findSplitCode" resultType="com.caimei.modules.user.entity.SplitCode">
-		select shopId,commercialCode as splitCode,codeDetail as codeRemark,email as email
+		select shopId,commercialCode as splitCode,codeDetail as codeRemark,email as email,weChatFlag
 		from cm_shop_splitcode
 		from cm_shop_splitcode
 		where shopId = #{shopID}
 		where shopId = #{shopID}
 	</select>
 	</select>
@@ -265,8 +265,8 @@
 	</insert>
 	</insert>
 	<insert id="insertSplitCode">
 	<insert id="insertSplitCode">
 		insert into cm_shop_splitcode
 		insert into cm_shop_splitcode
-		(shopId, commercialCode, codeDetail,email)
-		values (#{shopId},#{splitCode},#{codeRemark},#{email})
+		(shopId, commercialCode, codeDetail,email,weChatFlag)
+		values (#{shopId},#{splitCode},#{codeRemark},#{email},#{weChatFlag})
 	</insert>
 	</insert>
 	<insert id="insertSepcial" parameterType="NewCmShop"  keyProperty="shopID" useGeneratedKeys="true">
 	<insert id="insertSepcial" parameterType="NewCmShop"  keyProperty="shopID" useGeneratedKeys="true">
 		insert into shop(name,linkMan,contractMobile,status,addTime,shopType)
 		insert into shop(name,linkMan,contractMobile,status,addTime,shopType)

+ 3 - 0
src/main/webapp/WEB-INF/views/modules/user/cmNewProductShopEdit.jsp

@@ -1,3 +1,4 @@
+<%@ taglib prefix="input" uri="/struts-tags" %>
 <%@ page contentType="text/html;charset=UTF-8" %>
 <%@ page contentType="text/html;charset=UTF-8" %>
 <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
 <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
 <html>
 <html>
@@ -123,6 +124,7 @@
                             <form:input path="splitCodes[${varIndex.index}].codeRemark" id="paramsContent"
                             <form:input path="splitCodes[${varIndex.index}].codeRemark" id="paramsContent"
                                         maxlength="15" placeholder="请输入账户备注"
                                         maxlength="15" placeholder="请输入账户备注"
                                         class="input-small"/>
                                         class="input-small"/>
+                            <input name="splitCodes[${varIndex.index}].weChatFlag" type="checkbox" ${item.weChatFlag eq 1 ? 'checked':''} value="1">已确认微信支付开户意愿</input>
                             <span type="button" style="cursor: pointer;color: #0B61A4"
                             <span type="button" style="cursor: pointer;color: #0B61A4"
                                   onclick="deleteParams(this)">删除</span>
                                   onclick="deleteParams(this)">删除</span>
                         </div>
                         </div>
@@ -153,6 +155,7 @@
         html += '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="splitCodes[' + [productParametersIndex] + '].splitCode" id="splitCode" maxlength="15" placeholder="请输入分帐商户号" type="text" class="input-small"/>&nbsp;';
         html += '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="splitCodes[' + [productParametersIndex] + '].splitCode" id="splitCode" maxlength="15" placeholder="请输入分帐商户号" type="text" class="input-small"/>&nbsp;';
         html += '<input name="splitCodes[' + [productParametersIndex] + '].email" id="email" maxlength="15" placeholder="请输入对应邮箱号"  type="text"   class="input-small"/>&nbsp;';
         html += '<input name="splitCodes[' + [productParametersIndex] + '].email" id="email" maxlength="15" placeholder="请输入对应邮箱号"  type="text"   class="input-small"/>&nbsp;';
         html += '<input name="splitCodes[' + [productParametersIndex] + '].codeRemark" id="codeRemark" maxlength="15" placeholder="请输入账户备注"  type="text"   class="input-small"/>&nbsp;';
         html += '<input name="splitCodes[' + [productParametersIndex] + '].codeRemark" id="codeRemark" maxlength="15" placeholder="请输入账户备注"  type="text"   class="input-small"/>&nbsp;';
+        html += '<input name="splitCodes[' + [productParametersIndex] + '].weChatFlag" id="weChatFlag" type="checkbox" class="input-small" value="1">已确认微信支付开户意愿</input>&nbsp;';
         html += '<span type="button" style="cursor: pointer;color: #0B61A4" onclick="deleteParams(this)"">删除</span>';
         html += '<span type="button" style="cursor: pointer;color: #0B61A4" onclick="deleteParams(this)"">删除</span>';
         html += '</div>';
         html += '</div>';
         $("#addParamsItems").append(html).show();
         $("#addParamsItems").append(html).show();