Quellcode durchsuchen

第一次提交

liao-sea vor 1 Jahr
Ursprung
Commit
c76b85e489

+ 103 - 0
src/main/java/com/hz/employmentsite/controller/baseSettings/InstitutionController.java

@@ -0,0 +1,103 @@
+package com.hz.employmentsite.controller.baseSettings;
+
+import com.alibaba.fastjson.JSON;
+import com.github.pagehelper.PageInfo;
+import com.hz.employmentsite.filter.exception.BaseResponse;
+import com.hz.employmentsite.filter.exception.RespGenerstor;
+import com.hz.employmentsite.util.ExcelHelper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import com.hz.employmentsite.services.service.baseSettings.InstitutionService;
+import com.hz.employmentsite.services.service.AccountService;
+import com.hz.employmentsite.vo.baseSettings.InstitutionModel;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.*;
+
+@RestController
+@RequestMapping("/api/institution/")
+public class InstitutionController {
+
+    @Autowired
+    private AccountService accountService;
+
+    @Autowired
+    private InstitutionService institutionService;
+
+    @Autowired
+    private ExcelHelper excelHelper;
+
+    @ResponseBody
+    @GetMapping("/getList")
+    public BaseResponse<PageInfo<InstitutionModel>> getList(@RequestParam("pageIndex") int pageIndex, @RequestParam("pageSize") int pageSize,
+                                                            @RequestParam(required = false) String primaryKey, @RequestParam(required = false) String companyName,
+                                                            @RequestParam(required = false) String companyAddress,@RequestParam(required = false) String dutyUserName) {
+
+        PageInfo<InstitutionModel> result = institutionService.getList(pageIndex,pageSize,primaryKey,companyName,companyAddress,dutyUserName);
+
+        return RespGenerstor.success(result);
+    }
+
+
+
+    @GetMapping("get")
+    public BaseResponse<InstitutionModel> get(@RequestParam(required = false) String szkey) {
+        InstitutionModel dataModel = new  InstitutionModel();
+        if (szkey==null || szkey==""){
+            dataModel.szkey = UUID.randomUUID().toString();
+        }else{
+            dataModel = institutionService.get(szkey);
+        }
+        return RespGenerstor.success(dataModel);
+    }
+
+    @PostMapping("save")
+    public BaseResponse<Integer> save(@RequestBody InstitutionModel  data) {
+        return RespGenerstor.success(institutionService.save(data,accountService.getLoginUserID()));
+    }
+
+    @GetMapping("export")
+    public BaseResponse export(HttpServletResponse response,
+                               @RequestParam(required = false) Boolean isExport, @RequestParam("page") int page, @RequestParam("rows") int rows,
+                               @RequestParam(required = false) String szkey, @RequestParam(required = false) String companyName,
+                               @RequestParam(required = false) String companyAddress,@RequestParam(required = false) String dutyUserName) throws Exception{
+
+        PageInfo<InstitutionModel> result = institutionService.getList(page,rows,szkey,companyName,companyAddress,dutyUserName);
+        if (isExport == null || !isExport) {
+            return RespGenerstor.success(result);
+        } else {
+            ExcelHelper.ExcelData data = excelHelper.new ExcelData();
+            data.setTitles(Arrays.asList(new String[]{"序号","年级","问题反馈日期", "学院", "问题描述","问题特性", "解决方案", "是否解决", "解决时间", "登记人"}));
+            int i = 0;
+            List<List<Object>> rowDatas = new ArrayList();
+            for (InstitutionModel item : result.getList()) {
+                List<Object> row = new ArrayList();
+                ++i;
+                row.add(i);
+                row.add(item.szcompanycode);
+                row.add(item.szcompanyname);
+                row.add(item.szcomusermobile);
+                row.add(item.szcomusername);
+                row.add(item.szfrmobile);
+                row.add(item.szfrname);
+                row.add(item.szsavetime);
+                row.add(item.szupdatetime);
+                row.add(item.szcomaddress);
+                row.add(item.szdetail);
+                row.add(item.szsaveuser);
+                row.add(item.szupdateuser);
+                rowDatas.add(row);
+            }
+            data.setRows(rowDatas);
+            excelHelper.exportExcel(response, data);
+            return null;
+        }
+    }
+
+    @ResponseBody
+    @PostMapping("/delete")
+    public BaseResponse<Integer> delete(@RequestBody List<String> idList){
+        return RespGenerstor.success(institutionService.delete(idList));
+    }
+}

+ 15 - 0
src/main/java/com/hz/employmentsite/mapper/InstitutionMapper.java

@@ -0,0 +1,15 @@
+package com.hz.employmentsite.mapper;
+
+import com.hz.employmentsite.model.InstitutionRecord;
+import com.hz.employmentsite.model.InstitutionRecordExample;
+
+public interface InstitutionMapper {
+
+    InstitutionRecord selectByPrimaryKey(String problemLedgerRecordID);
+
+    int insert(InstitutionRecord row);
+
+    int updateByPrimaryKey(InstitutionRecord row);
+
+    int deleteByExample(InstitutionRecordExample example);
+}

+ 13 - 0
src/main/java/com/hz/employmentsite/mapper/cquery/InstitutionCQuery.java

@@ -0,0 +1,13 @@
+package com.hz.employmentsite.mapper.cquery;
+
+import com.hz.employmentsite.vo.baseSettings.InstitutionModel;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface InstitutionCQuery {
+
+    List<InstitutionModel> getList(@Param("primaryKey") String primaryKey, @Param("companyName") String companyName,
+                                             @Param("companyAddress") String companyAddress,@Param("dutyUserName") String dutyUserName);
+
+}

+ 84 - 0
src/main/java/com/hz/employmentsite/model/InstitutionRecord.java

@@ -0,0 +1,84 @@
+package com.hz.employmentsite.model;
+
+public class InstitutionRecord {
+    public String szkey;
+    public String szcompanycode;
+    public String szcompanyname;
+    public String szcomaddress;
+    public String szdetail;
+
+    public String szcomusername;
+    public String szcomusermobile;
+
+    public String szfrname;
+    public String szfmobile;
+
+    public String szsaveuser;
+    public String szsavetime;
+    public String szupdateuser;
+    public String szupdatetime;
+
+    public String getszkey() {
+        return szkey;
+    }
+    public void setszkey(String szkey) {this.szkey = szkey == null ? null : szkey.trim();}
+
+
+    public String getszcompanycode() {
+        return szcompanycode;
+    }
+    public void setszcompanycode(String szcompanycode) {this.szcompanycode = szcompanycode == null ? null : szcompanycode.trim();}
+    public String getszcompanyname() {
+        return szcompanyname;
+    }
+    public void setszcompanyname(String szcompanyname) {this.szcompanyname = szcompanyname == null ? null : szcompanyname.trim();}
+    public String getszcomaddress() {
+        return szcomaddress;
+    }
+    public void setszcomaddress(String szcomaddress) {this.szcomaddress = szcomaddress == null ? null : szcomaddress.trim();}
+
+
+    public String getszcomusername() {
+        return szcomusername;
+    }
+    public void setszcomusername(String szcomusername) {this.szcomusername = szcomusername == null ? null : szcomusername.trim();}
+    public String getszcomusermobile() {
+        return szcomusermobile;
+    }
+    public void setszcomusermobile(String szcomusermobile) {this.szcomusermobile = szcomusermobile == null ? null : szcomusermobile.trim();}
+    public String getszdetail() {
+        return szdetail;
+    }
+    public void setszdetail(String szdetail) {this.szdetail = szdetail == null ? null : szdetail.trim();}
+
+    public String getszfrname() {
+        return szfrname;
+    }
+    public void setszfrname(String szfrname) {this.szfrname = szfrname == null ? null : szfrname.trim();}
+    public String getszfmobile() {
+        return szfmobile;
+    }
+    public void setszfmobile(String szfmobile) {this.szfmobile = szfmobile == null ? null : szfmobile.trim();}
+
+
+
+    public String getszsaveuser() {
+        return szsaveuser;
+    }
+    public void setszsaveuser(String szsaveuser) {this.szsaveuser = szsaveuser == null ? null : szsaveuser.trim();}
+    public String getszsavetime() {
+        return szsavetime;
+    }
+    public void setszsavetime(String szsavetime) {this.szsavetime = szsavetime == null ? null : szsavetime.trim();}
+
+
+    public String getszupdateuser() {
+        return szupdateuser;
+    }
+    public void setszupdateuser(String szupdateuser) {this.szupdateuser = szupdateuser == null ? null : szupdateuser.trim();}
+    public String getszupdatetime() {
+        return szupdatetime;
+    }
+    public void setszupdatetime(String szupdatetime) {this.szupdatetime = szupdatetime == null ? null : szupdatetime.trim();}
+
+}

Datei-Diff unterdrückt, da er zu groß ist
+ 1084 - 0
src/main/java/com/hz/employmentsite/model/InstitutionRecordExample.java


+ 93 - 0
src/main/java/com/hz/employmentsite/services/impl/baseSettings/InstitutionImpl.java

@@ -0,0 +1,93 @@
+package com.hz.employmentsite.services.impl.baseSettings;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import com.hz.employmentsite.mapper.InstitutionMapper;
+import com.hz.employmentsite.mapper.cquery.InstitutionCQuery;
+import com.hz.employmentsite.model.InstitutionRecord;
+import com.hz.employmentsite.model.InstitutionRecordExample;
+import com.hz.employmentsite.services.service.baseSettings.InstitutionService;
+import com.hz.employmentsite.util.StringUtils;
+import com.hz.employmentsite.vo.baseSettings.InstitutionModel;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+@Service("InstitutionService")
+public class InstitutionImpl implements InstitutionService {
+
+    @Autowired
+    private InstitutionCQuery institutionCQuery;
+
+    @Autowired
+    private StringUtils stringUtils;
+
+    @Autowired
+    private InstitutionMapper institutionMapper;
+
+    @Override
+    public PageInfo<InstitutionModel> getList(int pageIndex, int pageSize, String primaryKey,String companyName,String companyAddress,String dutyUserName) {
+        PageHelper.startPage(pageIndex, pageSize);
+        List<InstitutionModel> dataList = institutionCQuery.getList(primaryKey,companyName,companyAddress,dutyUserName);
+        PageInfo<InstitutionModel> result = new PageInfo(dataList);
+        return result;
+    }
+
+    @Override
+    public InstitutionModel get(String problemLedgerRecordID) {
+        List<String> ids = new ArrayList<>();
+        ids.add(problemLedgerRecordID);
+        InstitutionModel model = institutionCQuery.getList(stringUtils.ListToInSql(ids),null,null ,null).stream().findFirst().orElse(null);
+        return model;
+    }
+
+    @Override
+    public Integer save(InstitutionModel data, String userId) {
+        int result = 0;
+        InstitutionModel record = get(data.szkey);
+        InstitutionRecord dbData = record ==null ? null : institutionMapper.selectByPrimaryKey(record.szkey);
+        Boolean isExist = dbData != null;
+        if (!isExist) {
+            //添加
+            dbData = new InstitutionRecord();
+            dbData.setszkey(data.getSzkey());
+            dbData.setszcompanycode(data.getSzcompanycode());
+            dbData.setszcompanyname(data.getSzcompanyname());
+            dbData.setszcomaddress(data.getSzcomaddress());
+            dbData.setszcomusername(data.getSzcomusername());
+            dbData.setszcomusermobile(data.getSzcomusermobile());
+            dbData.setszfrname(data.getSzfrname());
+            dbData.setszfmobile(data.getSzfrmobile());
+            dbData.setszdetail(data.getSzdetail());
+            dbData.setszsaveuser(userId);
+            dbData.setszsavetime(new Date().toString());
+            result = institutionMapper.insert(dbData);
+        } else {
+            //修改
+            dbData.setszcompanycode(data.szcompanycode);
+            dbData.setszcomaddress(data.szcomaddress);
+            dbData.setszfmobile(data.szfrmobile);
+            dbData.setszdetail(data.szdetail);
+            dbData.setszfrname(data.szfrname);
+            dbData.setszcomusermobile(data.szcomusermobile);
+            dbData.setszcompanyname(data.szcompanyname);
+            dbData.setszcomusername(data.szcomusername);
+            dbData.setszupdateuser(userId);
+            dbData.setszupdatetime(new Date().toString());
+            result = institutionMapper.updateByPrimaryKey(dbData);
+        }
+        return result;
+    }
+
+    @Override
+    public Integer delete(List<String> idList){
+        InstitutionRecordExample contactExample = new InstitutionRecordExample();
+        contactExample.or().andszkeyIn(idList);
+        institutionMapper.deleteByExample(contactExample);
+
+        return institutionMapper.deleteByExample(contactExample);
+    }
+}

+ 17 - 0
src/main/java/com/hz/employmentsite/services/service/baseSettings/InstitutionService.java

@@ -0,0 +1,17 @@
+package com.hz.employmentsite.services.service.baseSettings;
+
+import com.github.pagehelper.PageInfo;
+import com.hz.employmentsite.vo.baseSettings.InstitutionModel;
+
+import java.util.List;
+
+public interface InstitutionService {
+
+    PageInfo<InstitutionModel> getList(int pageIndex,int pageSize, String primaryKey,String companyName,String companyAddress,String dutyUserName);
+
+    InstitutionModel get(String practiceTaskStudentID);
+
+    Integer save(InstitutionModel data, String userId);
+
+    Integer delete(List<String> idList);
+}

+ 24 - 0
src/main/java/com/hz/employmentsite/vo/baseSettings/InstitutionModel.java

@@ -0,0 +1,24 @@
+package com.hz.employmentsite.vo.baseSettings;
+import lombok.Data;
+
+@Data
+public class InstitutionModel {
+
+    public String szkey;
+    public String szcompanycode;
+    public String szcompanyname;
+    public String szcomaddress;
+    public String szdetail;
+
+    public String szcomusername;
+    public String szcomusermobile;
+
+    public String szfrname;
+    public String szfrmobile;
+
+    public String szsaveuser;
+    public String szsavetime;
+    public String szupdateuser;
+    public String szupdatetime;
+
+}

+ 337 - 0
src/main/resources/mapping/InstitutionRecordMapper.xml

@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hz.employmentsite.mapper.InstitutionMapper">
+  <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.InstitutionRecord">
+    <id column="szkey" jdbcType="VARCHAR" property="szkey" />
+    <result column="szcompanycode" jdbcType="VARCHAR" property="szcompanycode" />
+    <result column="szcompanyname" jdbcType="VARCHAR" property="szcompanyname" />
+    <result column="szcomaddress" jdbcType="VARCHAR" property="szcomaddress" />
+    <result column="szdetail" jdbcType="VARCHAR" property="szdetail" />
+    <result column="szcomusername" jdbcType="VARCHAR" property="szcomusername" />
+    <result column="szcomusermobile" jdbcType="VARCHAR" property="szcomusermobile" />
+    <result column="szfrname" jdbcType="VARCHAR" property="szfrname" />
+    <result column="szfmobile" jdbcType="VARCHAR" property="szfmobile" />
+    <result column="szsaveuser" jdbcType="VARCHAR" property="szsaveuser" />
+    <result column="szsavetime" jdbcType="VARCHAR" property="szsavetime" />
+    <result column="szupdateuser" jdbcType="VARCHAR" property="szupdateuser" />
+    <result column="szupdatetime" jdbcType="VARCHAR" property="szupdatetime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    szkey,szcompanycode,szcompanyname,szcomaddress,szdetail,szcomusername,szcomusermobile,
+    szfrname,szfmobile,szsaveuser,szsavetime,szupdateuser,szupdatetime
+  </sql>
+  <select id="selectByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from pc_institution
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from pc_institution
+    where szkey = #{szkey,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    delete from pc_institution
+    where szkey = #{szkey,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord">
+    delete from pc_institution
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.hz.employmentsite.model.InstitutionRecord">
+    insert into pc_institution (szkey,szcompanycode,szcompanyname,szcomaddress,szdetail,szcomusername,szcomusermobile,
+    szfrname,szfmobile,szsaveuser,szsavetime,szupdateuser,szupdatetime)
+    values ( #{szkey,jdbcType=VARCHAR}, #{szcompanycode,jdbcType=VARCHAR},#{szcompanyname,jdbcType=VARCHAR},
+      #{szcomaddress,jdbcType=VARCHAR},#{szdetial,jdbcType=VARCHAR},#{szcomusername,jdbcType=VARCHAR},#{szcomusermobile,jdbcType=VARCHAR},
+      #{szfrname,jdbcType=VARCHAR}, #{szfmobile,jdbcType=VARCHAR},#{szsaveuser,jdbcType=VARCHAR},
+      #{szsavetime,jdbcType=VARCHAR},#{szupdateuser,jdbcType=VARCHAR},#{szupdatetime,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.hz.employmentsite.model.InstitutionRecord">
+    insert into pc_institution
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="szkey != null">
+        szkey,
+      </if>
+      <if test="szcompanycode != null">
+        szcompanycode,
+      </if>
+      <if test="szcompanyname != null">
+        szcompanyname,
+      </if>
+      <if test="szcomaddress != null">
+        szcomaddress,
+      </if>
+      <if test="szdetail != null">
+        szdetail,
+      </if>
+      <if test="szcomusername != null">
+        szcomusername,
+      </if>
+      <if test="szcomusermobile != null">
+        szcomusermobile,
+      </if>
+      <if test="szfrname != null">
+        szfrname,
+      </if>
+      <if test="szfmobile != null">
+        szfmobile,
+      </if>
+      <if test="szsaveuser != null">
+        szsaveuser,
+      </if>
+      <if test="szsavetime != null">
+        szsavetime,
+      </if>
+      <if test="szupdateuser != null">
+        szupdateuser,
+      </if>
+      <if test="szupdatetime != null">
+        szupdatetime,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="szkey != null">
+        #{szkey,jdbcType=VARCHAR},
+      </if>
+      <if test="szcompanycode != null">
+        #{szcompanycode,jdbcType=VARCHAR},
+      </if>
+      <if test="szcompanyname != null">
+        #{szcompanyname,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomaddress != null">
+        #{szcomaddress,jdbcType=VARCHAR},
+      </if>
+      <if test="szdetail != null">
+        #{szdetail,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomusername != null">
+        #{szcomusername,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomusermobile != null">
+        #{szcomusermobile,jdbcType=VARCHAR},
+      </if>
+      <if test="szfrname != null">
+        #{szfrname,jdbcType=VARCHAR},
+      </if>
+      <if test="szfmobile != null">
+        #{szfmobile,jdbcType=VARCHAR},
+      </if>
+      <if test="szsaveuser != null">
+        #{szsaveuser,jdbcType=VARCHAR},
+      </if>
+      <if test="szsavetime != null">
+        #{szsavetime,jdbcType=VARCHAR},
+      </if>
+      <if test="szupdateuser != null">
+        #{szupdateuser,jdbcType=VARCHAR},
+      </if>
+      <if test="szupdatetime != null">
+        #{szupdatetime,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord" resultType="java.lang.Long">
+    select count(*) from pc_institution
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update pc_institution
+    <set>
+      <if test="row.szkey != null">
+        szkey = #{row.szkey,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szcompanyname != null">
+        szcompanyname = #{row.szcompanyname,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szcompanycode != null">
+        szcompanycode = #{row.szcompanycode,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szcomaddress != null">
+        szcomaddress = #{row.szcomaddress,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szcomusername != null">
+        szcomusername = #{row.szcomusername,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szcomusermobile != null">
+        szcomusermobile = #{row.szcomusermobile,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szfrname != null">
+        szfrname = #{row.szfrname,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szfrmobile != null">
+        szfrmobile = #{row.szfrmobile,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szdetail != null">
+        szdetail = #{row.szdetail,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szsaveuser != null">
+        szsaveuser = #{row.szsaveuser,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szsavetime != null">
+        szsavetime = #{row.szsavetime,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szupdateuser != null">
+        szupdateuser = #{row.szupdateuser,jdbcType=VARCHAR},
+      </if>
+      <if test="row.szupdatetime != null">
+        szupdatetime = #{row.szupdatetime,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update pc_institution
+    set szkey = #{row.szkey,jdbcType=VARCHAR},
+        szcompanyname = #{row.szcompanyname,jdbcType=VARCHAR},
+        szcompanycode = #{row.szcompanycode,jdbcType=VARCHAR},
+        szcomaddress = #{row.szcomaddress,jdbcType=VARCHAR},
+        szcomusername = #{row.szcomusername,jdbcType=VARCHAR},
+        szcomusermobile = #{row.szcomusermobile,jdbcType=VARCHAR},
+        szfrname = #{row.szfrname,jdbcType=VARCHAR},
+        szfrmobile = #{row.szfrmobile,jdbcType=VARCHAR},
+        szdetail = #{row.szdetail,jdbcType=VARCHAR},
+        szsaveuser = #{row.szsaveuser,jdbcType=VARCHAR},
+        szsavetime = #{row.szsavetime,jdbcType=VARCHAR},
+        szupdateuser = #{row.szupdateuser,jdbcType=VARCHAR},
+        szupdatetime = #{row.szupdatetime,jdbcType=VARCHAR}
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.InstitutionRecord">
+    update pc_institution
+    <set>
+      <if test="szkey != null">
+        szkey = #{szkey,jdbcType=VARCHAR},
+      </if>
+      <if test="szcompanyname != null">
+        szcompanyname = #{szcompanyname,jdbcType=VARCHAR},
+      </if>
+      <if test="szcompanycode != null">
+        szcompanycode = #{szcompanycode,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomaddress != null">
+        szcomaddress = #{szcomaddress,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomusername != null">
+        szcomusername = #{szcomusername,jdbcType=VARCHAR},
+      </if>
+      <if test="szcomusermobile != null">
+        szcomusermobile = #{szcomusermobile,jdbcType=VARCHAR},
+      </if>
+      <if test="szfrname != null">
+        szfrname = #{szfrname,jdbcType=VARCHAR},
+      </if>
+      <if test="szfrmobile != null">
+        szfrmobile = #{szfrmobile,jdbcType=VARCHAR},
+      </if>
+      <if test="szdetail != null">
+        szdetail = #{szdetail,jdbcType=VARCHAR},
+      </if>
+      <if test="szsaveuser != null">
+        szsaveuser = #{szsaveuser,jdbcType=VARCHAR},
+      </if>
+      <if test="szsavetime != null">
+        szsavetime = #{szsavetime,jdbcType=VARCHAR},
+      </if>
+      <if test="szupdateuser != null">
+        szupdateuser = #{szupdateuser,jdbcType=VARCHAR},
+      </if>
+      <if test="szupdatetime != null">
+        szupdatetime = #{szupdatetime,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where szkey = #{szkey,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.InstitutionRecord">
+    update pc_institution
+    set szcompanyname = #{szcompanyname,jdbcType=VARCHAR},
+        szcompanycode = #{szcompanycode,jdbcType=VARCHAR},
+        szcomaddress = #{szcomaddress,jdbcType=VARCHAR},
+        szcomusername = #{szcomusername,jdbcType=VARCHAR},
+        szcomusermobile = #{szcomusermobile,jdbcType=VARCHAR},
+        szfrname = #{szfrname,jdbcType=VARCHAR},
+        szfrmobile = #{szfrmobile,jdbcType=VARCHAR},
+        szdetail = #{szdetail,jdbcType=VARCHAR},
+        szsaveuser = #{szsaveuser,jdbcType=VARCHAR},
+        szsavetime = #{szsavetime,jdbcType=VARCHAR},
+        szupdateuser = #{szupdateuser,jdbcType=VARCHAR},
+        szupdatetime = #{szupdatetime,jdbcType=VARCHAR}
+    where szkey = #{szkey,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 21 - 0
src/main/resources/mapping/cquery/InstitutionCQuery.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hz.employmentsite.mapper.cquery.InstitutionCQuery">
+
+    <select id="getList" resultType="com.hz.employmentsite.vo.baseSettings.InstitutionModel">
+        select  * from pc_institution where 1=1
+        <if test="primaryKey!='' and primaryKey!=null">
+            and szkey in (${primaryKey})
+        </if>
+        <if test="companyName!='' and companyName!=null">
+            and szcompanyname like Concat('%',#{companyName},'%')
+        </if>
+        <if test="companyAddress!='' and companyAddress!=null">
+            and szcomaddress = #{companyAddress}
+        </if>
+        <if test="dutyUserName!='' and dutyUserName!=null">
+            and szcomusername like Concat('%',#{dutyUserName},'%')
+        </if>
+    </select>
+
+</mapper>

+ 72 - 0
vue/src/api/baseSettings/institution.ts

@@ -0,0 +1,72 @@
+import {request} from "@/utils/request";
+
+
+export function getList(params: any) {
+  return request<object>(
+    {
+      url: "institution/getList",
+      method: 'get',
+      params: params,
+    },
+    {
+      isNew: true,
+    },
+  );
+}
+
+export function getDataList(params:any){
+  return request<any>(
+    {
+      url: 'institution/getDataList',
+      method: 'get',
+      params: params,
+    },
+    {
+      isNew: true,
+    },
+  );
+}
+
+export function get(id: string) {
+  return request<object>(
+    {
+      url: 'institution/get',
+      method: 'get',
+      params: {problemLedgerRecordID: id},
+    },
+    {
+      isNew: true,
+    },
+  );
+}
+
+export function save(data: any) {
+  return request<object>(
+    {
+      url: 'institution/save',
+      method: 'post',
+      data: data,
+    },
+    {
+      isNew: true,
+      successMsg: '提交成功!',
+      errorMsg: '提交失败!'
+    },
+  );
+}
+
+
+export function del(data: any) {
+  return request<object>(
+    {
+      url: 'institution/delete',
+      method: 'post',
+      data: data,
+    },
+    {
+      isNew: true,
+      successMsg: '删除成功!',
+      errorMsg: '删除失败!'
+    },
+  );
+}

+ 4 - 0
vue/src/router/asyncModules/basesettings.ts

@@ -0,0 +1,4 @@
+export default {
+  'baseSettings/institution/index': () => import('@/views/baseSettings/institution/index.vue'),
+  'baseSettings/institution/edit': () => import('@/views/baseSettings/institution/edit.vue'),
+};

+ 236 - 0
vue/src/views/baseSettings/institution/edit.vue

@@ -0,0 +1,236 @@
+<template>
+  <a-modal
+    :width="1200"
+    v-model:visible="visible"
+    :title="title"
+    :confirm-loading="confirmLoading"
+    @ok="handleOk"
+    ok-text="提交"
+    @cancel="handleCancel"
+    cancel-text="取消"
+    :keyboard="false"
+    :mask-closable="false"  >
+    <a-form  autocomplete="off" >
+      <a-divider orientation="left">基础信息管理</a-divider>
+      <a-row type="flex">
+        <a-col :span="7">
+          <a-form-item label="企业名称" name="CompanyName" :label-col="{span:7}">
+            <label v-if="isDetail">{{dataModel.szcompanyname}}</label>
+            <a-input v-model:value="dataModel.szcompanyname" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="7">
+          <a-form-item label="企业地址" name="CompanyAddress" :label-col="{span:7}">
+            <label v-if="isDetail">{{ dataModel.szcomaddress }}</label>
+            <a-input v-model:value="dataModel.szcomaddress" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="10">
+          <a-form-item label="负责人姓名" name="DutyUserName" :label-col="{span:10}" >
+            <label v-if="isDetail">{{dataModel.szcomusername}}</label>
+            <a-input v-model:value="dataModel.szcomusername" placeholder=""/>
+<!--            <a-date-picker  name="feedbackDate2" v-model:value="dataModel.feedbackDate"   value-format="YYYY-MM-DD" picker="date"
+                            placeholder="请选择问题反馈日期"  v-if="!isDetail"  />
+                <a-select  ref="select" v-model:value="dataModel.problemCharacteristics"
+                                   :options="problemAttrList"  :field-names="{label:'name',value:'value'}"
+                                   @change="loadData"  :allow-clear="true"  v-if="!isDetail">
+                        </a-select>-->
+          </a-form-item>
+        </a-col>
+      </a-row>
+      <a-row type="flex">
+        <a-col :span="7">
+          <a-form-item label="负责人电话:"  name="DutyUserMobile" :label-col="{span:7}">
+            <label v-if="isDetail">{{dataModel.szcomusermobile }}</label>
+            <a-input v-model:value="dataModel.szcomusermobile" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="7">
+          <a-form-item label="法人姓名:"  name="LegalerName" :label-col="{span:7}">
+            <label v-if="isDetail">{{dataModel.szfrname }}</label>
+            <a-input v-model:value="dataModel.szfrname" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="10">
+          <a-form-item label="法人电话:"  name="LegalerMobile" :label-col="{span:10}">
+            <label v-if="isDetail">{{dataModel.szfrmobile }}</label>
+            <a-input v-model:value="dataModel.szfrmobile" placeholder=""/>
+          </a-form-item>
+        </a-col>
+      </a-row>
+      <a-row type="flex">
+        <a-col :span="7">
+          <a-form-item label="企业机构代码:"  name="CompanyCode" :label-col="{span:7}">
+            <label v-if="isDetail">{{dataModel.szcompanycode }}</label>
+            <a-input v-model:value="dataModel.szcompanycode" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="7"></a-col>
+        <a-col :span="10"></a-col>
+      </a-row>
+      <a-divider orientation="left">管理驿站 共计:{{dataModel.szCount}}</a-divider>
+      <a-row>
+      <!--        <a-table :columns="columns" :data-source="dataList" :scroll="{ x:'100%', y: 500 }" :pagination="pagination"
+                 :loading="formState.loading"
+                 @change="handleTableChange"
+                 :row-selection="{ selectedRowKeys: formState.selectedRowKeys, onChange: onSelectChange}"
+                 :row-key="record=>record.szkey"
+                 bordered>
+          <template #bodyCell="{ column, text, record }">
+            <template v-if="column.key === 'operation'">
+              <div class="table-operation">
+                <a-button type="link" size="small" @click='onOperates(record.szkey.toString(),"修改",false)' >编辑</a-button>
+                <a-button type="link" size="small" @click="onDel(record)" >删除</a-button>
+              </div>
+            </template>
+          </template>
+        </a-table>-->
+      </a-row>
+      <a-divider orientation="left">其他</a-divider>
+      <a-row>
+        <a-textarea :auto-size="{ minRows: 4, maxRows: 10 }"  v-model:value="dataModel.szdetail"  :disabled="isDetail"
+                    placeholder="企业简介" style="text-align: center;" />
+      </a-row>
+      <a-row style="height: 10px"></a-row>
+      <a-row>
+        <a-textarea :auto-size="{ minRows: 4, maxRows: 10 }"  v-model:value="dataModel.remark"  :disabled="isDetail"
+                    placeholder="备注" style="text-align: center;" />
+      </a-row>
+    </a-form>
+  </a-modal>
+</template>
+<script lang="ts">
+import {defineComponent, reactive, ref, toRefs} from "vue";
+import {get, save, getDataList} from "@/api/baseSettings/institution";
+import BUploadFile from "@/components/file/uploadFile.vue";
+import type {SelectProps} from "ant-design-vue";
+import {getCollegeList,getDictionaryItemList} from "@/api/system/dictionary";
+import dayjs from "dayjs";
+import {message} from "ant-design-vue";
+
+interface FormState {
+  dataModel: any;
+}
+export default defineComponent({
+  name:'institutionEdit',
+  components: {BUploadFile},
+  props: {
+    loadData: {
+      type: Function,
+      default: null
+    }
+  },
+  setup(props) {
+    const feedbackDateDetail = ref();
+    const resolveDateDetail = ref();
+    const formState = reactive<FormState>({dataModel: {}});
+    const visible = ref<boolean>(false);
+    const confirmLoading = ref<boolean>(false);
+    const fileList = ref();
+    const title = ref();
+    const isAllowCommit = ref<boolean>(false);
+    const isDetail = ref<boolean>(false);
+
+    const problemAttrList = ref<SelectProps['options']>();
+    const collegeList = ref<SelectProps['options']>();
+    const schoolYearList = ref<SelectProps['options']>();
+
+    const loadProblemAttrList = () => {
+      getDictionaryItemList({code:"Characteristics"}).then(data => {
+        problemAttrList.value = data;
+      });
+    }
+    const loadCollegeList = () => {
+      getCollegeList().then(data => {
+        collegeList.value = data;
+      });
+    }
+    const loadSchoolYearList =()=>{
+      getDataList({page:1,rows:100000}).then(data=>{
+        schoolYearList.value =data.list;
+      })
+    }
+
+
+    const validate = ()  =>{
+      console.log(formState.dataModel);
+      if (formState.dataModel.collegeID==null) {
+        message.error("请选择学院!");
+        return;
+      }else if (formState.dataModel.feedbackDate==null) {
+        message.error("请选择问题反馈日期!");
+        return;
+      }else if (formState.dataModel.problemCharacteristics==null) {
+        message.error("请选择问题特性!");
+        return;
+      }else if (formState.dataModel.problemDesc==null) {
+        message.error("请填写问题描述!");
+        return;
+      }
+      isAllowCommit.value = true;
+    };
+
+    const show = (id: any,method:string,ifDetail:boolean) => {
+      isDetail.value = ifDetail;
+      loadData(id);
+      loadProblemAttrList();
+      loadCollegeList();
+      loadSchoolYearList();
+      title.value ="运营机构管理-"+method;
+      visible.value = true;
+    };
+
+
+    const handleOk = () => {
+      validate();
+      if (isAllowCommit.value){
+        save(formState.dataModel).then(result => {
+          if (result) {
+            visible.value = false;
+            props.loadData();
+          }
+        });
+      }
+    };
+
+    const handleCancel = () => {
+      visible.value = false;
+    };
+
+    const setFileList = (files) => {
+      fileList.value = files;
+    }
+
+
+    const loadData = (id: string) => {
+      get(id).then((result: any) => {
+        formState.dataModel = result;
+        feedbackDateDetail.value = dayjs(formState.dataModel.feedbackDate).format('YYYY-MM-DD');
+        resolveDateDetail.value = formState.dataModel.resolveDate == null?"": dayjs(formState.dataModel.resolveDate).format('YYYY-MM-DD');
+      });
+    }
+
+    return {
+      ...toRefs(formState),
+      feedbackDateDetail,
+      resolveDateDetail,
+      isAllowCommit,
+      isDetail,
+      visible,
+      title,
+      confirmLoading,
+      problemAttrList,
+      collegeList,
+      schoolYearList,
+      show,
+      handleOk,
+      handleCancel,
+      setFileList,
+      validate
+    };
+  },
+  created() {
+  },
+})
+</script>
+

+ 238 - 0
vue/src/views/baseSettings/institution/index.vue

@@ -0,0 +1,238 @@
+<template>
+  <div class="card-search">
+    <a-form ref="formRef" name="advanced_search"  class="ant-advanced-search-form" :model="searchParams" >
+      <a-row :gutter="24">
+        <a-col :span="6">
+          <a-form-item label="企业名称" :label-col="{span:6}" name="CompanyName">
+            <a-input v-model:value="searchParams.companyName" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="7">
+          <a-form-item label="企业地址" :label-col="{span:7}" name="CompanyAddress">
+            <a-input v-model:value="searchParams.companyAddress" placeholder=""/>
+<!--<a-range-picker format="YYYY-MM-DD" :placeholder="['开始日期', '结束日期']" @change="onRangeChange"/>-->
+          </a-form-item>
+        </a-col>
+        <a-col :span="6">
+          <a-form-item label="负责人名称" :label-col="{span:6}" name="DutyUserName">
+            <a-input v-model:value="searchParams.dutyUserName" placeholder=""/>
+<!--            <a-select  ref="select"  v-model:value="searchParamsState.collegeID" :options="collegeList"
+                       :field-names="{label:'name',value:'collegeID'}"  @change="loadData"  functioncode="T014000" :allow-clear="true"  >
+            </a-select>-->
+          </a-form-item>
+        </a-col>
+      <a-col :span="5" style="text-align: right">
+          <a-button type="primary" html-type="submit" @click="onSearch">查询</a-button>
+<!--          <a style="font-size: 12px" @click="expand = !expand">
+            <template v-if="expand">
+              <UpOutlined/>
+            </template>
+            <template v-else>
+              <DownOutlined/>
+            </template>
+            {{ expand ? '收缩' : '展开' }}
+          </a>-->
+        </a-col>
+      </a-row>
+<!--      <a-row :gutter="24" v-show="expand">
+        <a-col :span="6">
+          <a-form-item label="问题描述" :label-col="{span:6}" name="ProblemDesc">
+            <a-input v-model:value="searchParamsState.problemDesc" placeholder=""/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="7">
+          <a-form-item label="问题特性" :label-col="{span:7}" name="ProblemCharacteristics">
+            <a-select
+              ref="select"
+              v-model:value="searchParamsState.problemCharacteristics"
+              :options="problemAttrList"
+              :field-names="{label:'name',value:'value'}"
+              @change="loadData"
+              :allow-clear="true" >
+            </a-select>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6">
+          <a-form-item label="是否解决" :label-col="{span:6}" name="IsResolve">
+            <a-select
+              ref="select"
+              v-model:value="searchParamsState.isResolve"
+              :options="resolveList"
+              :field-names="{label:'resolveName',value:'resolveID'}"
+              @change="loadData"
+              :allow-clear="true" >
+            </a-select>
+          </a-form-item>
+        </a-col>
+        <a-col :span="5" style="text-align: left">
+        </a-col>
+      </a-row>-->
+      <a-row class="edit-operation">
+        <a-col :span="24" style="text-align: right">
+<!--functioncode="T014001"-->
+          <a-button type="primary" html-type="submit" @click='onOperates(null,"新增",false)' >新增</a-button>
+<!--          <BExportExcel :title="'导出'" :filename="'问题台账记录'" :url="'stitution/export'"
+                        :params="{...searchParams,isExport: true, rows:100000}"></BExportExcel>-->
+        </a-col>
+      </a-row>
+    </a-form>
+    <div class="search-result-list">
+      <a-table :columns="columns" :data-source="dataList" :scroll="{ x:'100%', y: 500 }" :pagination="pagination"
+               :loading="formState.loading"
+               @change="handleTableChange"
+               :row-selection="{ selectedRowKeys: formState.selectedRowKeys, onChange: onSelectChange}"
+               :row-key="record=>record.szkey"
+               bordered>
+        <template #bodyCell="{ column, text, record }">
+          <template v-if="column.key === 'operation'">
+            <div class="table-operation">
+              <a-button type="link" size="small" @click='onOperates(record.szkey.toString(),"修改",false)' >编辑</a-button>
+              <a-button type="link" size="small" @click="onDel(record)" >删除</a-button>
+            </div>
+          </template>
+        </template>
+      </a-table>
+    </div>
+    <InstitutionEditModel ref="institutionEditModelRef" :loadData="loadData"></InstitutionEditModel>
+  </div>
+</template>
+
+<script lang="ts">
+import {reactive, ref, computed, defineComponent, createVNode} from 'vue';
+import {DownOutlined, ExclamationCircleOutlined, UpOutlined} from '@ant-design/icons-vue';
+import type {FormInstance} from 'ant-design-vue';
+import type {TableColumnsType, TableProps} from 'ant-design-vue';
+import {getList, del} from '@/api/baseSettings/institution';
+import InstitutionEditModel from "@/views/baseSettings/institution/edit.vue";
+import BExportExcel from "@/components/basic/excel/exportExcel/exportExcel.vue";
+import {getPaginationTotalTitle} from "@/utils/common";
+import {message, Modal} from "ant-design-vue";
+
+export default defineComponent({
+  name: 'InstitutionList',
+  components: {InstitutionEditModel, DownOutlined, UpOutlined, BExportExcel},
+  setup() {
+    const formRef = ref<FormInstance>();
+    const searchParams = reactive({
+      pageIndex: 1,
+      pageSize: 20,
+      primaryKey:'',
+      companyName: '',
+      companyAddress: '',
+      dutyUserName:''
+    });
+    const formState = reactive({
+      total: 0,
+      selectedRowKeys: [],
+      loading: false
+    });
+    const columns: TableColumnsType = [
+      {title: '序号', align: "center",key: 'szkey',customRender: item => `${searchParams.pageSize * (searchParams.pageIndex - 1) + item.index + 1}`},
+      {title: '企业名称', dataIndex: 'szcompanyname', key: 'szcompanyname', align: "center"},
+      {title: '企业地址', dataIndex: 'szcomaddress', key: 'szcomaddress',width:120, align: "center"},
+      {title: '负责人姓名', dataIndex: 'szcomusername', key: 'szcomusername', align: "center"},
+      {title: '负责人电话', dataIndex: 'szcomusermobile', key: 'szcomusermobile', align: "center"},
+      {title: '法人姓名', dataIndex: 'szfrname', key: 'szfrname', align: "center"},
+      {title: '法人电话', dataIndex: 'szfrmobile', key: 'szfmobile', align: "center"},
+      {title: '企业机构代码', dataIndex: 'szcompanycode', key: 'szcompanycode', align: "center"},
+      {
+        title: '管理驿站数量', dataIndex: 'institunum', key: 'institunum', align: "center",
+        /*customRender:  ({record}) => record.resolveDate == null?"":dayjs(record.resolveDate).format('YYYY-MM-DD')*/
+      },
+      {title: '操作', key: 'operation', fixed: 'right',width:170, align: "center"},
+    ];
+    const pagination = computed(() => ({
+      total: formState.total,
+      current: searchParams.pageIndex,
+      pageSize: searchParams.pageSize,
+      showSizeChanger: true,
+      showTotal: total => getPaginationTotalTitle(total)
+    }));
+
+    const dataList = ref([]);
+    /*const problemAttrList = ref<SelectProps['options']>();
+    const collegeList = ref<SelectProps['options']>();
+    const resolveList = ref([{resolveName:"是",resolveID:1},{resolveName:"否",resolveID:0}]);*/
+    const institutionEditModelRef = ref();
+
+    const handleTableChange: TableProps['onChange'] = (pag: { pageSize: number; current: number },) => {
+      searchParams.pageIndex = pag.current;
+      searchParams.pageSize = pag.pageSize;
+      loadData();
+    };
+
+    const onSelectChange = (selectedRowKeys: any) => {
+      formState.selectedRowKeys = selectedRowKeys;
+    };
+
+    const onSearch = () => {
+      loadData();
+    }
+
+    const onDel= (item: any) => {
+      if (item) {
+        formState.selectedRowKeys.push(item.szkey as never)
+      }
+
+      if (formState.selectedRowKeys.length <= 0) {
+        message.warning('请选择需要删除的数据!');
+        return false;
+      }
+
+      Modal.confirm({
+        title: '确认删除选中的运营机构?',
+        icon: createVNode(ExclamationCircleOutlined),
+        content: '',
+        okText: '确认删除',
+        okType: 'danger',
+        okButtonProps: {},
+        cancelText: '取消',
+        onOk() {
+          del(formState.selectedRowKeys).then(() => {
+            loadData();
+          });
+        },
+        onCancel() {
+
+        },
+      });
+    };
+
+    const onOperates = (id: string,operation:string,isDetail:boolean) => {
+      institutionEditModelRef.value.show(id,operation,isDetail);
+    };
+    const loadData = async function () {
+      formState.loading = true;
+      const result: any = await getList(searchParams);
+      dataList.value = result.list;
+      formState.total = result.total;
+      formState.loading = false;
+    }
+
+
+
+    return {
+      formRef,
+      searchParams,
+      formState,
+      columns,
+      pagination,
+      dataList,
+      institutionEditModelRef,
+      handleTableChange,
+      onSelectChange,
+      onSearch,
+      onOperates,
+      onDel,
+      loadData
+    };
+  },
+  created() {
+    this.loadData();
+  },
+  activated() {
+    if (history.state.params?.reload)
+      this.loadData();
+  }
+});
+</script>