From 37a869976450a44a842ee6bcd9b3618e1ece62e7 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 08 Nov 2021 18:05:01 +0800
Subject: [PATCH] fix

---
 zq-erp/src/main/resources/templates/views/super/sysCompany-form.html   |   16 ++++++++++++++--
 zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java |    1 +
 zq-erp/src/main/resources/templates/views/super/sysCompany-list.html   |    1 +
 zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml      |   12 ++++++++++--
 4 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java b/zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java
index 8e53584..c72a1a6 100644
--- a/zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java
+++ b/zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java
@@ -281,6 +281,7 @@
         }
 
         AjaxResult ajaxResult = new AjaxResult();
+        ajaxResult.setStatus(AjaxResult.STATUS_SUCCESS);
         ajaxResult.putInMap("url", list.get(0).getComWebUrl());
         return ajaxResult;
     }
diff --git a/zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml b/zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml
index c9afd1d..d83fb31 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml
@@ -231,6 +231,9 @@
 			<if test="_parameter.containsKey('comPlats')">
 				com_plats = #{comPlats},
 			</if>
+			<if test="_parameter.containsKey('comCode')">
+				com_code = #{comCode},
+			</if>
 		</set>
 		WHERE com_id=#{comId}
 	</update>
@@ -694,7 +697,8 @@
 		com_logo,
 		com_valid,
 		com_functions,
-		com_plats
+		com_plats,
+		com_code
 		from sys_company
 		where com_id=#{comId}
 	</select>
@@ -846,9 +850,13 @@
 					and com_functions = #{record.comFunctions}
 				</if>
 				<if
-					test="(record.comPlats!=null and record.comPlats!='') or (record.comPlats!='' and record.comPlats==0)">
+						test="(record.comPlats!=null and record.comPlats!='') or (record.comPlats!='' and record.comPlats==0)">
 					and com_plats = #{record.comPlats}
 				</if>
+				<if
+						test="(record.comCode!=null and record.comCode!='') or (record.comCode!='' and record.comCode==0)">
+					and com_code = #{record.comCode}
+				</if>
 			</if>
 		</where>
 	</select>
diff --git a/zq-erp/src/main/resources/templates/views/super/sysCompany-form.html b/zq-erp/src/main/resources/templates/views/super/sysCompany-form.html
index 3c20837..7818f3a 100644
--- a/zq-erp/src/main/resources/templates/views/super/sysCompany-form.html
+++ b/zq-erp/src/main/resources/templates/views/super/sysCompany-form.html
@@ -70,10 +70,11 @@
 				</div>
 			</div>
 			<div class="form-group">
-				<label class="col-sm-2 control-label">网站地址</label>
+				<label class="col-sm-2 control-label">网站地址<span
+						class="text-danger">*</span></label>
 				<div class="col-sm-4">
 					<input   type="text"  class="form-control"
-						ignore="ignore" th:value="${obj.comWebUrl }" name="comWebUrl"
+						ignore="ignore" dataType="*1-100" th:value="${obj.comWebUrl }" name="comWebUrl"
 						nullmsg="网站不能为空">
 					<div class="Validform_checktip"></div>
 				</div>
@@ -85,6 +86,17 @@
 					<div class="Validform_checktip"></div>
 				</div>
 			</div>
+
+			<div class="form-group">
+				<label class="col-sm-2 control-label">公司编码<span
+						class="text-danger">*</span></label>
+				<div class="col-sm-4">
+					<input   type="text" dataType="*1-100" class="form-control"
+							 name="comCode" th:value="${obj.comCode }"
+							 nullmsg="公司编码不能为空">
+					<div class="Validform_checktip"></div>
+				</div>
+			</div>
 			<div class="form-group">
 				<label class="col-sm-2 control-label">企业功能</label>
 				<div class=" ztree col-sm-9" id="treeDemo"></div>
diff --git a/zq-erp/src/main/resources/templates/views/super/sysCompany-list.html b/zq-erp/src/main/resources/templates/views/super/sysCompany-list.html
index 9717af5..635c5fb 100644
--- a/zq-erp/src/main/resources/templates/views/super/sysCompany-list.html
+++ b/zq-erp/src/main/resources/templates/views/super/sysCompany-list.html
@@ -82,6 +82,7 @@
                 <th data-field="comBossTel">联系电话</th>
                 <th data-field="comAddress">地址</th>
                 <th data-field="comWebUrl" data-formatter="MGrid.getUrl">网站</th>
+                <th data-field="comCode">公司编码</th>
                 <th data-align="center" data-width="150px" data-field="comId"
                     data-formatter="buidOperate">操作
                 </th>

--
Gitblit v1.9.1