ソースを参照

修改变更时的订单业务类型错误问题

吴学文 6 年 前
コミット
a7f94b0629

+ 1 - 1
Api/src/main/java/com/java110/api/listener/notice/UpdateNoticeListener.java

@@ -81,7 +81,7 @@ Assert.hasKeyAndValue(reqJson, "startTime", "必选,请填写开始时间 2019
 
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
-        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_COMMUNITY_INFO);
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_NOTICE);
         business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ);
         business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S);
         JSONObject businessNotice = new JSONObject();

+ 13 - 12
WebService/src/main/resources/components/add-notice/addNotice.html

@@ -35,18 +35,19 @@
 <option  value="1002">小区通知</option>
   </select>         </div>
 </div>
-<div class="form-group row">
-         <label class="col-sm-2 col-form-label">公告内容</label>
-         <div class="col-sm-10">
-           <input v-model="addNoticeInfo.context"                   type="text" placeholder="必填,请填写公告内容" class="form-control">
-         </div>
-</div>
-<div class="form-group row">
-         <label class="col-sm-2 col-form-label">开始时间</label>
-         <div class="col-sm-10">
-           <input v-model="addNoticeInfo.startTime"                   type="text" placeholder="必填,请填写开始时间" class="form-control">
-         </div>
-</div>
+                            <div class="form-group row">
+                                <label class="col-sm-2 col-form-label">开始时间</label>
+                                <div class="col-sm-10">
+                                    <input v-model="addNoticeInfo.startTime"                   type="text" placeholder="必填,请填写开始时间" class="form-control">
+                                </div>
+                            </div>
+                            <div class="form-group row">
+                                     <label class="col-sm-2 col-form-label">公告内容</label>
+                                     <div class="col-sm-10">
+                                         <textarea v-model="addNoticeInfo.context" cols="3"  type="text" placeholder="必填,请填写公告内容" class="form-control"></textarea>
+                                     </div>
+                            </div>
+
 
                             <div class="ibox-content">
                                 <button class="btn btn-primary float-right" type="button" v-on:click="saveNoticeInfo()" ><i class="fa fa-check"></i>&nbsp;保存</button>

+ 9 - 8
WebService/src/main/resources/components/edit-notice/editNotice.html

@@ -22,16 +22,17 @@
 <option  value="1002">小区通知</option>
   </select>         </div>
 </div>
-<div class="form-group row">
+    <div class="form-group row">
+        <label class="col-sm-2 col-form-label">开始时间</label>
+        <div class="col-sm-10">
+            <input v-model="editNoticeInfo.startTime"                   type="text" placeholder="必填,请填写开始时间" class="form-control">
+        </div>
+    </div>
+
+                            <div class="form-group row">
          <label class="col-sm-2 col-form-label">公告内容</label>
          <div class="col-sm-10">
-           <input v-model="editNoticeInfo.context"                   type="text" placeholder="必填,请填写公告内容" class="form-control">
-         </div>
-</div>
-<div class="form-group row">
-         <label class="col-sm-2 col-form-label">开始时间</label>
-         <div class="col-sm-10">
-           <input v-model="editNoticeInfo.startTime"                   type="text" placeholder="必填,请填写开始时间" class="form-control">
+             <textarea v-model="editNoticeInfo.context"     cols="3"     type="text" placeholder="必填,请填写公告内容" class="form-control"></textarea>
          </div>
 </div>
 

+ 1 - 1
java110-code-generator/src/main/resources/web/add/SaveListener.java

@@ -79,7 +79,7 @@ public class Save@@TemplateCode@@Listener extends AbstractServiceApiListener {
 
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
-        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_@@TEMPLATECODE@@_INFO);
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_@@TEMPLATECODE@@);
         business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ);
         business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S);
         JSONObject business@@TemplateCode@@ = new JSONObject();

+ 1 - 1
java110-code-generator/src/main/resources/web/delete/DeleteListener.java

@@ -77,7 +77,7 @@ public class Delete@@TemplateCode@@Listener extends AbstractServiceApiListener {
 
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
-        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_DELETE_@@TEMPLATECODE@@_INFO);
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_DELETE_@@TEMPLATECODE@@);
         business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ);
         business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S);
         JSONObject business@@TemplateCode@@ = new JSONObject();

+ 1 - 1
java110-code-generator/src/main/resources/web/edit/UpdateListener.java

@@ -76,7 +76,7 @@ public class Update@@TemplateCode@@Listener extends AbstractServiceApiListener {
 
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
-        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_COMMUNITY_INFO);
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_UPDATE_@@TEMPLATECODE@@);
         business.put(CommonConstant.HTTP_SEQ, DEFAULT_SEQ);
         business.put(CommonConstant.HTTP_INVOKE_MODEL, CommonConstant.HTTP_INVOKE_MODEL_S);
         JSONObject business@@TemplateCode@@ = new JSONObject();