fix
Helius
2021-11-08 37a869976450a44a842ee6bcd9b3618e1ece62e7
fix
4 files modified
28 ■■■■ changed files
zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java 1 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/mybatis/mapper/common/SysCompanyDao.xml 10 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/templates/views/super/sysCompany-form.html 16 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/templates/views/super/sysCompany-list.html 1 ●●●● patch | view | raw | blame | history
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;
    }
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>
@@ -849,6 +853,10 @@
                    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>
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>
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>