Pārlūkot izejas kodu

供应商落地页V1.1.1

kaick 1 gadu atpakaļ
vecāks
revīzija
f628b3c559

+ 2 - 2
src/main/resources/mappings/modules/landing/CmQuestionnaireMapper.xml

@@ -301,7 +301,7 @@
     <insert id="addCmQuestionnaire" parameterType="com.caimei.modules.landing.domain.CmQuestionnaire" useGeneratedKeys="true" keyProperty="id">
         insert into cm_questionnaire
         <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null andid != ''">id,</if>
+            <if test="id != null and id != ''">id,</if>
             <if test="type != null and type != ''">type,</if>
             <if test="userId != null">userId,</if>
             <if test="userName != null and userName != ''">userName,</if>
@@ -316,7 +316,7 @@
             <if test="remark != null and remark != ''">remark,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null andid != ''">#{id},</if>
+            <if test="id != null and id != ''">#{id},</if>
             <if test="type != null and type != ''">#{type},</if>
             <if test="userId != null">#{userId},</if>
             <if test="userName != null and userName != ''">#{userName},</if>

+ 1 - 2
src/main/webapp/WEB-INF/views/modules/landing/cmQuestionnaireGet.jsp

@@ -80,8 +80,7 @@
 			dataType: "json",
 			success: function (res) {
 				if (res.success) {
-					$.jBox.tip('上传成功', 'info');
-					history.go(-1);
+					location.href='${ctx}/cmQuestionnaire/list?type=${cmQuestionnaire.type}'
 				} else {
 					$.jBox.tip(res.msg, 'error');
 				}