Răsfoiți Sursa

添加机构扩展信息

luojun 2 ani în urmă
părinte
comite
6e2c83cdba
19 a modificat fișierele cu 2102 adăugiri și 0 ștergeri
  1. 2 0
      soc-api/soc-api-system/src/main/java/com/xunmei/system/api/domain/SysOrg.java
  2. 95 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysBankPhysicalDefenseConstructionController.java
  3. 95 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysOrgExtendController.java
  4. 95 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysOrgPhysicalDefenseConstructionController.java
  5. 99 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysBankPhysicalDefenseConstruction.java
  6. 199 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysOrgExtend.java
  7. 99 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysOrgPhysicalDefenseConstruction.java
  8. 62 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysBankPhysicalDefenseConstructionMapper.java
  9. 62 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysOrgExtendMapper.java
  10. 62 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysOrgPhysicalDefenseConstructionMapper.java
  11. 72 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysBankPhysicalDefenseConstructionService.java
  12. 72 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysOrgExtendService.java
  13. 72 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysOrgPhysicalDefenseConstructionService.java
  14. 143 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysBankPhysicalDefenseConstructionServiceImpl.java
  15. 143 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysOrgExtendServiceImpl.java
  16. 141 0
      soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysOrgPhysicalDefenseConstructionServiceImpl.java
  17. 157 0
      soc-modules/soc-modules-system/src/main/resources/mapper/system/SysBankPhysicalDefenseConstructionMapper.xml
  18. 275 0
      soc-modules/soc-modules-system/src/main/resources/mapper/system/SysOrgExtendMapper.xml
  19. 157 0
      soc-modules/soc-modules-system/src/main/resources/mapper/system/SysOrgPhysicalDefenseConstructionMapper.xml

+ 2 - 0
soc-api/soc-api-system/src/main/java/com/xunmei/system/api/domain/SysOrg.java

@@ -37,6 +37,8 @@ public class SysOrg extends BaseEntity {
      */
     @JsonSerialize(using = ToStringSerializer.class)
     private Long id;
+    @JsonSerialize(using = ToStringSerializer.class)
+    private Long orgExtendId;
 
     /**
      * $column.columnComment

+ 95 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysBankPhysicalDefenseConstructionController.java

@@ -0,0 +1,95 @@
+package com.xunmei.system.controller;
+
+import java.util.List;
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.xunmei.common.log.annotation.Log;
+import com.xunmei.common.log.enums.BusinessType;
+import com.xunmei.common.security.annotation.RequiresPermissions;
+import com.xunmei.system.domain.SysBankPhysicalDefenseConstruction;
+import com.xunmei.system.service.ISysBankPhysicalDefenseConstructionService;
+import com.xunmei.common.core.web.controller.BaseController;
+import com.xunmei.common.core.web.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 银行物防建设Controller
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Api(tags = {"SysBankPhysicalDefenseConstruction" })
+@RestController
+@RequestMapping("/BankPhysicalDefenseConstruction")
+public class SysBankPhysicalDefenseConstructionController extends BaseController {
+    @Autowired
+    private ISysBankPhysicalDefenseConstructionService sysBankPhysicalDefenseConstructionService;
+
+/**
+ * 查询银行物防建设列表
+ */
+@ApiOperation(value = "查询SysBankPhysicalDefenseConstruction列表")
+@RequiresPermissions("system:construction:list")
+@GetMapping("/list")
+    public TableDataInfo list(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+
+        return sysBankPhysicalDefenseConstructionService.selectPage( sysBankPhysicalDefenseConstruction);
+    }
+
+                                                
+    /**
+     * 获取银行物防建设详细信息
+     */
+    @ApiOperation(value = "获取SysBankPhysicalDefenseConstruction详细信息")
+    @RequiresPermissions("system:construction:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(sysBankPhysicalDefenseConstructionService.selectSysBankPhysicalDefenseConstructionById(id));
+    }
+
+    /**
+     * 新增银行物防建设
+     */
+    @ApiOperation(value = "新增SysBankPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:add")
+    @Log(title = "银行物防建设" , businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+        return toAjax(sysBankPhysicalDefenseConstructionService.insertSysBankPhysicalDefenseConstruction(sysBankPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 修改银行物防建设
+     */
+    @ApiOperation(value = "修改SysBankPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:edit")
+    @Log(title = "银行物防建设" , businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+        return toAjax(sysBankPhysicalDefenseConstructionService.updateSysBankPhysicalDefenseConstruction(sysBankPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 删除银行物防建设
+     */
+    @ApiOperation(value = "删除SysBankPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:remove")
+    @Log(title = "银行物防建设" , businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(sysBankPhysicalDefenseConstructionService.deleteSysBankPhysicalDefenseConstructionByIds(ids));
+    }
+}

+ 95 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysOrgExtendController.java

@@ -0,0 +1,95 @@
+package com.xunmei.system.controller;
+
+import java.util.List;
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.xunmei.common.log.annotation.Log;
+import com.xunmei.common.log.enums.BusinessType;
+import com.xunmei.common.security.annotation.RequiresPermissions;
+import com.xunmei.system.domain.SysOrgExtend;
+import com.xunmei.system.service.ISysOrgExtendService;
+import com.xunmei.common.core.web.controller.BaseController;
+import com.xunmei.common.core.web.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 机构扩展Controller
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Api(tags = {"SysOrgExtend"})
+@RestController
+@RequestMapping("/extend")
+public class SysOrgExtendController extends BaseController {
+    @Autowired
+    private ISysOrgExtendService sysOrgExtendService;
+
+    /**
+     * 查询机构扩展列表
+     */
+    @ApiOperation(value = "查询SysOrgExtend列表")
+    @RequiresPermissions("system:extend:list")
+    @GetMapping("/list")
+    public TableDataInfo list(SysOrgExtend sysOrgExtend) {
+
+        return sysOrgExtendService.selectPage(sysOrgExtend);
+    }
+
+
+    /**
+     * 获取机构扩展详细信息
+     */
+    @ApiOperation(value = "获取SysOrgExtend详细信息")
+    @RequiresPermissions("system:extend:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(sysOrgExtendService.selectSysOrgExtendById(id));
+    }
+
+    /**
+     * 新增机构扩展
+     */
+    @ApiOperation(value = "新增SysOrgExtend")
+    @RequiresPermissions("system:extend:add")
+    @Log(title = "机构扩展", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysOrgExtend sysOrgExtend) {
+        return toAjax(sysOrgExtendService.insertSysOrgExtend(sysOrgExtend));
+    }
+
+    /**
+     * 修改机构扩展
+     */
+    @ApiOperation(value = "修改SysOrgExtend")
+    @RequiresPermissions("system:extend:edit")
+    @Log(title = "机构扩展", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysOrgExtend sysOrgExtend) {
+        return toAjax(sysOrgExtendService.updateSysOrgExtend(sysOrgExtend));
+    }
+
+    /**
+     * 删除机构扩展
+     */
+    @ApiOperation(value = "删除SysOrgExtend")
+    @RequiresPermissions("system:extend:remove")
+    @Log(title = "机构扩展", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(sysOrgExtendService.deleteSysOrgExtendByIds(ids));
+    }
+}

+ 95 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/controller/SysOrgPhysicalDefenseConstructionController.java

@@ -0,0 +1,95 @@
+package com.xunmei.system.controller;
+
+import java.util.List;
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.xunmei.common.log.annotation.Log;
+import com.xunmei.common.log.enums.BusinessType;
+import com.xunmei.common.security.annotation.RequiresPermissions;
+import com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction;
+import com.xunmei.system.service.ISysOrgPhysicalDefenseConstructionService;
+import com.xunmei.common.core.web.controller.BaseController;
+import com.xunmei.common.core.web.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 机构物防建设Controller
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Api(tags = {"SysOrgPhysicalDefenseConstruction"})
+@RestController
+@RequestMapping("/OrgPhysicalDefenseConstruction")
+public class SysOrgPhysicalDefenseConstructionController extends BaseController {
+    @Autowired
+    private ISysOrgPhysicalDefenseConstructionService sysOrgPhysicalDefenseConstructionService;
+
+    /**
+     * 查询机构物防建设列表
+     */
+    @ApiOperation(value = "查询SysOrgPhysicalDefenseConstruction列表")
+    @RequiresPermissions("system:construction:list")
+    @GetMapping("/list")
+    public TableDataInfo list(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+
+        return sysOrgPhysicalDefenseConstructionService.selectPage(sysOrgPhysicalDefenseConstruction);
+    }
+
+
+    /**
+     * 获取机构物防建设详细信息
+     */
+    @ApiOperation(value = "获取SysOrgPhysicalDefenseConstruction详细信息")
+    @RequiresPermissions("system:construction:query")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(sysOrgPhysicalDefenseConstructionService.selectSysOrgPhysicalDefenseConstructionById(id));
+    }
+
+    /**
+     * 新增机构物防建设
+     */
+    @ApiOperation(value = "新增SysOrgPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:add")
+    @Log(title = "机构物防建设", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+        return toAjax(sysOrgPhysicalDefenseConstructionService.insertSysOrgPhysicalDefenseConstruction(sysOrgPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 修改机构物防建设
+     */
+    @ApiOperation(value = "修改SysOrgPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:edit")
+    @Log(title = "机构物防建设", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+        return toAjax(sysOrgPhysicalDefenseConstructionService.updateSysOrgPhysicalDefenseConstruction(sysOrgPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 删除机构物防建设
+     */
+    @ApiOperation(value = "删除SysOrgPhysicalDefenseConstruction")
+    @RequiresPermissions("system:construction:remove")
+    @Log(title = "机构物防建设", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(sysOrgPhysicalDefenseConstructionService.deleteSysOrgPhysicalDefenseConstructionByIds(ids));
+    }
+}

+ 99 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysBankPhysicalDefenseConstruction.java

@@ -0,0 +1,99 @@
+package com.xunmei.system.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.xunmei.common.core.web.domain.BaseEntity;
+
+/**
+ * 银行物防建设对象 sys_bank_physical_defense_construction
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("sys_bank_physical_defense_construction")
+@ApiModel(value = "SysBankPhysicalDefenseConstruction对象" , description = "银行物防建设")
+public class SysBankPhysicalDefenseConstruction extends BaseEntity
+        {
+private static final long serialVersionUID=1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 标准 */
+            @ApiModelProperty(value = "标准")
+    private String standard;
+
+    /** 达标日期 */
+            @JsonFormat(pattern = "yyyy-MM-dd")
+            @ApiModelProperty(value = "达标日期")
+    private Date dateOfCompliance;
+
+    /** 是否证书佐证 */
+            @ApiModelProperty(value = "是否证书佐证")
+    private Long certificateEvidence;
+
+    /** 证书 */
+            @ApiModelProperty(value = "证书")
+    private String certificate;
+
+    /** 佐证 */
+            @ApiModelProperty(value = "佐证")
+    private String evidence;
+
+    /** 机构id */
+            @ApiModelProperty(value = "机构id")
+    private Long orgId;
+
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
+@Override
+public String toString(){
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+
+
+                .append("id" ,getId())
+
+
+                .append("standard" ,getStandard())
+
+
+                .append("dateOfCompliance" ,getDateOfCompliance())
+
+
+                .append("certificateEvidence" ,getCertificateEvidence())
+
+
+                .append("certificate" ,getCertificate())
+
+
+                .append("evidence" ,getEvidence())
+
+
+                .append("createTime" ,getCreateTime())
+
+
+                .append("updateTime" ,getUpdateTime())
+
+
+                .append("createBy" ,getCreateBy())
+
+
+                .append("updateBy" ,getUpdateBy())
+
+
+                .append("orgId" ,getOrgId())
+        .toString();
+        }
+        }

+ 199 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysOrgExtend.java

@@ -0,0 +1,199 @@
+package com.xunmei.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.xunmei.common.core.web.domain.BaseEntity;
+
+/**
+ * 机构扩展对象 sys_org_extend
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("sys_org_extend")
+@ApiModel(value = "SysOrgExtend对象", description = "机构扩展")
+public class SysOrgExtend extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    private Long id;
+
+    /**
+     * 机构类型
+     */
+    @ApiModelProperty(value = "机构类型")
+    private Long orgType;
+
+    /**
+     * 天气区域编码
+     */
+    @ApiModelProperty(value = "天气区域编码")
+    private String weatherAreaCode;
+
+    /**
+     * 营业场所面积
+     */
+    @ApiModelProperty(value = "营业场所面积")
+    private Long premisesArea;
+
+    /**
+     * 是否自有产权
+     */
+    @ApiModelProperty(value = "是否自有产权")
+    private Long ownership;
+
+    /**
+     * 是否区域外
+     */
+    @ApiModelProperty(value = "是否区域外")
+    private Long outsideArea;
+
+    /**
+     * 机构物防建设id
+     */
+    @ApiModelProperty(value = "机构物防建设id")
+    private Long orgPhysicalDefenseConstructionId;
+
+    /**
+     * 有无保安
+     */
+    @ApiModelProperty(value = "有无保安")
+    private Long askari;
+
+    /**
+     * 保安证
+     */
+    @ApiModelProperty(value = "保安证")
+    private String askariCertificate;
+
+    /**
+     * 业务库类型
+     */
+    @ApiModelProperty(value = "业务库类型")
+    private Long businessLibraryType;
+
+    /**
+     * 值守方式
+     */
+    @ApiModelProperty(value = "值守方式")
+    private Long dutyMode;
+
+    /**
+     * 业务库出入口远程控制
+     */
+    @ApiModelProperty(value = "业务库出入口远程控制")
+    private Long remoteControl;
+
+    /**
+     * 是否有在行自助银行
+     */
+    @ApiModelProperty(value = "是否有在行自助银行")
+    private Long selfServiceBank;
+
+    /**
+     * 在行式大堂设备
+     */
+    @ApiModelProperty(value = "在行式大堂设备")
+    private Long lobbyEquipment;
+
+    /**
+     * 在行式穿墙设备
+     */
+    @ApiModelProperty(value = "在行式穿墙设备")
+    private Long wallPenetratingEquipment;
+
+    /**
+     * 银行物防建设id
+     */
+    @ApiModelProperty(value = "银行物防建设id")
+    private Long bankPhysicalDefenseConstructionId;
+
+    /**
+     * 机构id
+     */
+    @ApiModelProperty(value = "机构id")
+    private Long orgId;
+
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+
+
+                .append("id", getId())
+
+
+                .append("orgType", getOrgType())
+
+
+                .append("weatherAreaCode", getWeatherAreaCode())
+
+
+                .append("premisesArea", getPremisesArea())
+
+
+                .append("ownership", getOwnership())
+
+
+                .append("outsideArea", getOutsideArea())
+
+
+                .append("orgPhysicalDefenseConstructionId", getOrgPhysicalDefenseConstructionId())
+
+
+                .append("askari", getAskari())
+
+
+                .append("askariCertificate", getAskariCertificate())
+
+
+                .append("businessLibraryType" ,getBusinessLibraryType())
+
+
+                .append("dutyMode", getDutyMode())
+
+
+                .append("remoteControl", getRemoteControl())
+
+
+                .append("selfServiceBank", getSelfServiceBank())
+
+
+                .append("lobbyEquipment", getLobbyEquipment())
+
+
+                .append("wallPenetratingEquipment", getWallPenetratingEquipment())
+
+
+                .append("bankPhysicalDefenseConstructionId", getBankPhysicalDefenseConstructionId())
+
+
+                .append("createTime", getCreateTime())
+
+
+                .append("updateTime", getUpdateTime())
+
+
+                .append("createBy", getCreateBy())
+
+
+                .append("updateBy", getUpdateBy())
+
+
+                .append("orgId", getOrgId())
+                .toString();
+    }
+}

+ 99 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/domain/SysOrgPhysicalDefenseConstruction.java

@@ -0,0 +1,99 @@
+package com.xunmei.system.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.xunmei.common.core.web.domain.BaseEntity;
+
+/**
+ * 机构物防建设对象 sys_org_physical_defense_construction
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("sys_org_physical_defense_construction")
+@ApiModel(value = "SysOrgPhysicalDefenseConstruction对象" , description = "机构物防建设")
+public class SysOrgPhysicalDefenseConstruction extends BaseEntity
+        {
+private static final long serialVersionUID=1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 标准 */
+            @ApiModelProperty(value = "标准")
+    private String standard;
+
+    /** 达标日期 */
+            @JsonFormat(pattern = "yyyy-MM-dd")
+            @ApiModelProperty(value = "达标日期")
+    private Date dateOfCompliance;
+
+    /** 是否证书佐证 */
+            @ApiModelProperty(value = "是否证书佐证")
+    private Long certificateEvidence;
+
+    /** 证书 */
+            @ApiModelProperty(value = "证书")
+    private String certificate;
+
+    /** 佐证 */
+            @ApiModelProperty(value = "佐证")
+    private String evidence;
+
+    /** 机构id */
+            @ApiModelProperty(value = "机构id")
+    private Long orgId;
+
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
+@Override
+public String toString(){
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+
+
+                .append("id" ,getId())
+
+
+                .append("standard" ,getStandard())
+
+
+                .append("dateOfCompliance" ,getDateOfCompliance())
+
+
+                .append("certificateEvidence" ,getCertificateEvidence())
+
+
+                .append("certificate" ,getCertificate())
+
+
+                .append("evidence" ,getEvidence())
+
+
+                .append("createTime" ,getCreateTime())
+
+
+                .append("updateTime" ,getUpdateTime())
+
+
+                .append("createBy" ,getCreateBy())
+
+
+                .append("updateBy" ,getUpdateBy())
+
+
+                .append("orgId" ,getOrgId())
+        .toString();
+        }
+        }

+ 62 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysBankPhysicalDefenseConstructionMapper.java

@@ -0,0 +1,62 @@
+package com.xunmei.system.mapper;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysBankPhysicalDefenseConstruction;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 银行物防建设Mapper接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface SysBankPhysicalDefenseConstructionMapper extends BaseMapper<SysBankPhysicalDefenseConstruction> {
+    /**
+     * 查询银行物防建设
+     *
+     * @param id 银行物防建设主键
+     * @return 银行物防建设
+     */
+    public SysBankPhysicalDefenseConstruction selectSysBankPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询银行物防建设列表
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 银行物防建设集合
+     */
+    public List<SysBankPhysicalDefenseConstruction> selectSysBankPhysicalDefenseConstructionList(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 新增银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    public int insertSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 修改银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    public int updateSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 删除银行物防建设
+     *
+     * @param id 银行物防建设主键
+     * @return 结果
+     */
+    public int deleteSysBankPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 批量删除银行物防建设
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysBankPhysicalDefenseConstructionByIds(Long[] ids);
+}

+ 62 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysOrgExtendMapper.java

@@ -0,0 +1,62 @@
+package com.xunmei.system.mapper;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysOrgExtend;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 机构扩展Mapper接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface SysOrgExtendMapper extends BaseMapper<SysOrgExtend> {
+    /**
+     * 查询机构扩展
+     *
+     * @param id 机构扩展主键
+     * @return 机构扩展
+     */
+    public SysOrgExtend selectSysOrgExtendById(Long id);
+
+    /**
+     * 查询机构扩展列表
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 机构扩展集合
+     */
+    public List<SysOrgExtend> selectSysOrgExtendList(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 新增机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    public int insertSysOrgExtend(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 修改机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    public int updateSysOrgExtend(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 删除机构扩展
+     *
+     * @param id 机构扩展主键
+     * @return 结果
+     */
+    public int deleteSysOrgExtendById(Long id);
+
+    /**
+     * 批量删除机构扩展
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysOrgExtendByIds(Long[] ids);
+}

+ 62 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/mapper/SysOrgPhysicalDefenseConstructionMapper.java

@@ -0,0 +1,62 @@
+package com.xunmei.system.mapper;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 机构物防建设Mapper接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface SysOrgPhysicalDefenseConstructionMapper extends BaseMapper<SysOrgPhysicalDefenseConstruction> {
+    /**
+     * 查询机构物防建设
+     *
+     * @param id 机构物防建设主键
+     * @return 机构物防建设
+     */
+    public SysOrgPhysicalDefenseConstruction selectSysOrgPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询机构物防建设列表
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 机构物防建设集合
+     */
+    public List<SysOrgPhysicalDefenseConstruction> selectSysOrgPhysicalDefenseConstructionList(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 新增机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    public int insertSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 修改机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    public int updateSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 删除机构物防建设
+     *
+     * @param id 机构物防建设主键
+     * @return 结果
+     */
+    public int deleteSysOrgPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 批量删除机构物防建设
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysOrgPhysicalDefenseConstructionByIds(Long[] ids);
+}

+ 72 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysBankPhysicalDefenseConstructionService.java

@@ -0,0 +1,72 @@
+package com.xunmei.system.service;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysBankPhysicalDefenseConstruction;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 银行物防建设Service接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface ISysBankPhysicalDefenseConstructionService extends IService<SysBankPhysicalDefenseConstruction> {
+    /**
+     * 查询银行物防建设
+     *
+     * @param id 银行物防建设主键
+     * @return 银行物防建设
+     */
+    public SysBankPhysicalDefenseConstruction selectSysBankPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询银行物防建设列表
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 银行物防建设集合
+     */
+    public List<SysBankPhysicalDefenseConstruction> selectSysBankPhysicalDefenseConstructionList(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 新增银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    public int insertSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 修改银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    public int updateSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+
+    /**
+     * 批量删除银行物防建设
+     *
+     * @param ids 需要删除的银行物防建设主键集合
+     * @return 结果
+     */
+    public int deleteSysBankPhysicalDefenseConstructionByIds(Long[] ids);
+
+    /**
+     * 删除银行物防建设信息
+     *
+     * @param id 银行物防建设主键
+     * @return 结果
+     */
+    public int deleteSysBankPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询银行物防建设分页数据
+     *
+     * @param sysBankPhysicalDefenseConstruction 查询条件对象
+     * @return Page
+     */
+    public TableDataInfo selectPage(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction);
+}

+ 72 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysOrgExtendService.java

@@ -0,0 +1,72 @@
+package com.xunmei.system.service;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysOrgExtend;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 机构扩展Service接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface ISysOrgExtendService extends IService<SysOrgExtend> {
+    /**
+     * 查询机构扩展
+     *
+     * @param id 机构扩展主键
+     * @return 机构扩展
+     */
+    public SysOrgExtend selectSysOrgExtendById(Long id);
+
+    /**
+     * 查询机构扩展列表
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 机构扩展集合
+     */
+    public List<SysOrgExtend> selectSysOrgExtendList(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 新增机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    public int insertSysOrgExtend(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 修改机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    public int updateSysOrgExtend(SysOrgExtend sysOrgExtend);
+
+    /**
+     * 批量删除机构扩展
+     *
+     * @param ids 需要删除的机构扩展主键集合
+     * @return 结果
+     */
+    public int deleteSysOrgExtendByIds(Long[] ids);
+
+    /**
+     * 删除机构扩展信息
+     *
+     * @param id 机构扩展主键
+     * @return 结果
+     */
+    public int deleteSysOrgExtendById(Long id);
+
+    /**
+     * 查询机构扩展分页数据
+     *
+     * @param sysOrgExtend 查询条件对象
+     * @return Page
+     */
+    public TableDataInfo selectPage(SysOrgExtend sysOrgExtend);
+}

+ 72 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/ISysOrgPhysicalDefenseConstructionService.java

@@ -0,0 +1,72 @@
+package com.xunmei.system.service;
+
+import java.util.List;
+
+import com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+
+/**
+ * 机构物防建设Service接口
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+public interface ISysOrgPhysicalDefenseConstructionService extends IService<SysOrgPhysicalDefenseConstruction> {
+    /**
+     * 查询机构物防建设
+     *
+     * @param id 机构物防建设主键
+     * @return 机构物防建设
+     */
+    public SysOrgPhysicalDefenseConstruction selectSysOrgPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询机构物防建设列表
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 机构物防建设集合
+     */
+    public List<SysOrgPhysicalDefenseConstruction> selectSysOrgPhysicalDefenseConstructionList(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 新增机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    public int insertSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 修改机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    public int updateSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+
+    /**
+     * 批量删除机构物防建设
+     *
+     * @param ids 需要删除的机构物防建设主键集合
+     * @return 结果
+     */
+    public int deleteSysOrgPhysicalDefenseConstructionByIds(Long[] ids);
+
+    /**
+     * 删除机构物防建设信息
+     *
+     * @param id 机构物防建设主键
+     * @return 结果
+     */
+    public int deleteSysOrgPhysicalDefenseConstructionById(Long id);
+
+    /**
+     * 查询机构物防建设分页数据
+     *
+     * @param sysOrgPhysicalDefenseConstruction 查询条件对象
+     * @return Page
+     */
+    public TableDataInfo selectPage(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction);
+}

+ 143 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysBankPhysicalDefenseConstructionServiceImpl.java

@@ -0,0 +1,143 @@
+package com.xunmei.system.service.impl;
+
+import java.util.List;
+        import com.xunmei.common.core.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.xunmei.system.service.ISysOrgService;
+import java.util.Arrays;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+import com.xunmei.system.mapper.SysBankPhysicalDefenseConstructionMapper;
+import com.xunmei.system.domain.SysBankPhysicalDefenseConstruction;
+import com.xunmei.system.service.ISysBankPhysicalDefenseConstructionService;
+
+/**
+ * 银行物防建设Service业务层处理
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Service
+public class SysBankPhysicalDefenseConstructionServiceImpl extends ServiceImpl<SysBankPhysicalDefenseConstructionMapper, SysBankPhysicalDefenseConstruction> implements ISysBankPhysicalDefenseConstructionService {
+    @Autowired
+    private SysBankPhysicalDefenseConstructionMapper sysBankPhysicalDefenseConstructionMapper;
+    @Autowired
+    private ISysOrgService orgService;
+
+    @Override
+    public TableDataInfo selectPage(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+
+
+
+
+        //未删除
+//        sysBankPhysicalDefenseConstruction.setDeleted(0L);
+        Page<SysBankPhysicalDefenseConstruction> page;
+        //分页
+        if (sysBankPhysicalDefenseConstruction.getPageNum()!=null&&sysBankPhysicalDefenseConstruction.getPageSize()!=null)
+        {
+            page = new Page<>(sysBankPhysicalDefenseConstruction.getPageNum(), sysBankPhysicalDefenseConstruction.getPageSize());
+        }else{
+            page = new Page<>();
+        }
+        //查询条件
+        QueryWrapper<SysBankPhysicalDefenseConstruction> query = new QueryWrapper<>(sysBankPhysicalDefenseConstruction);
+        //下穿
+        if (sysBankPhysicalDefenseConstruction.getCheckSub()){
+            List<Long> ids = orgService.selectCheckSubOrgIdList(sysBankPhysicalDefenseConstruction.getOrgId());
+            //清空前端传递的org_id
+            sysBankPhysicalDefenseConstruction.setOrgId(null);
+            //添加in条件
+            query.in("org_id",ids);
+        }
+        //时间范围查询
+        if (sysBankPhysicalDefenseConstruction.getParams().get("beginTime")!=null&&sysBankPhysicalDefenseConstruction.getParams().get("endTime")!=null){
+            query.between("create_time", sysBankPhysicalDefenseConstruction.getParams().get("beginTime"), sysBankPhysicalDefenseConstruction.getParams().get("endTime"));
+        }
+        //获取数据
+        page = sysBankPhysicalDefenseConstructionMapper.selectPage(page, query);
+        //抓换为TableDataInfo适配前端
+        TableDataInfo tableDataInfo = new TableDataInfo();
+        tableDataInfo.setMsg("操作成功");
+        tableDataInfo.setCode(200);
+        tableDataInfo.setTotal(page.getTotal());
+        tableDataInfo.setRows(page.getRecords());
+        return tableDataInfo;
+
+
+
+
+    }
+
+
+    /**
+     * 查询银行物防建设
+     *
+     * @param id 银行物防建设主键
+     * @return 银行物防建设
+     */
+    @Override
+    public SysBankPhysicalDefenseConstruction selectSysBankPhysicalDefenseConstructionById(Long id) {
+        return sysBankPhysicalDefenseConstructionMapper.selectById(id);
+    }
+
+    /**
+     * 查询银行物防建设列表
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 银行物防建设
+     */
+    @Override
+    public List<SysBankPhysicalDefenseConstruction> selectSysBankPhysicalDefenseConstructionList(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+        return sysBankPhysicalDefenseConstructionMapper.selectList(new QueryWrapper<>(sysBankPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 新增银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    @Override
+    public int insertSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+                sysBankPhysicalDefenseConstruction.setCreateTime(DateUtils.getNowDate());
+            return sysBankPhysicalDefenseConstructionMapper.insert(sysBankPhysicalDefenseConstruction);
+    }
+
+    /**
+     * 修改银行物防建设
+     *
+     * @param sysBankPhysicalDefenseConstruction 银行物防建设
+     * @return 结果
+     */
+    @Override
+    public int updateSysBankPhysicalDefenseConstruction(SysBankPhysicalDefenseConstruction sysBankPhysicalDefenseConstruction) {
+                sysBankPhysicalDefenseConstruction.setUpdateTime(DateUtils.getNowDate());
+        return sysBankPhysicalDefenseConstructionMapper.updateById(sysBankPhysicalDefenseConstruction);
+    }
+
+    /**
+     * 批量删除银行物防建设
+     *
+     * @param ids 需要删除的银行物防建设主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysBankPhysicalDefenseConstructionByIds(Long[] ids) {
+        return sysBankPhysicalDefenseConstructionMapper.deleteBatchIds(Arrays.asList((ids)));
+    }
+
+    /**
+     * 删除银行物防建设信息
+     *
+     * @param id 银行物防建设主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysBankPhysicalDefenseConstructionById(Long id) {
+        return sysBankPhysicalDefenseConstructionMapper.deleteById(id);
+    }
+}

+ 143 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysOrgExtendServiceImpl.java

@@ -0,0 +1,143 @@
+package com.xunmei.system.service.impl;
+
+import java.util.List;
+        import com.xunmei.common.core.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.xunmei.system.service.ISysOrgService;
+import java.util.Arrays;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+import com.xunmei.system.mapper.SysOrgExtendMapper;
+import com.xunmei.system.domain.SysOrgExtend;
+import com.xunmei.system.service.ISysOrgExtendService;
+
+/**
+ * 机构扩展Service业务层处理
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Service
+public class SysOrgExtendServiceImpl extends ServiceImpl<SysOrgExtendMapper, SysOrgExtend> implements ISysOrgExtendService {
+    @Autowired
+    private SysOrgExtendMapper sysOrgExtendMapper;
+    @Autowired
+    private ISysOrgService orgService;
+
+    @Override
+    public TableDataInfo selectPage(SysOrgExtend sysOrgExtend) {
+
+
+
+
+        //未删除
+//        sysOrgExtend.setDeleted(0L);
+        Page<SysOrgExtend> page;
+        //分页
+        if (sysOrgExtend.getPageNum()!=null&&sysOrgExtend.getPageSize()!=null)
+        {
+            page = new Page<>(sysOrgExtend.getPageNum(), sysOrgExtend.getPageSize());
+        }else{
+            page = new Page<>();
+        }
+        //查询条件
+        QueryWrapper<SysOrgExtend> query = new QueryWrapper<>(sysOrgExtend);
+        //下穿
+        if (sysOrgExtend.getCheckSub()){
+            List<Long> ids = orgService.selectCheckSubOrgIdList(sysOrgExtend.getOrgId());
+            //清空前端传递的org_id
+            sysOrgExtend.setOrgId(null);
+            //添加in条件
+            query.in("org_id",ids);
+        }
+        //时间范围查询
+        if (sysOrgExtend.getParams().get("beginTime")!=null&&sysOrgExtend.getParams().get("endTime")!=null){
+            query.between("create_time", sysOrgExtend.getParams().get("beginTime"), sysOrgExtend.getParams().get("endTime"));
+        }
+        //获取数据
+        page = sysOrgExtendMapper.selectPage(page, query);
+        //抓换为TableDataInfo适配前端
+        TableDataInfo tableDataInfo = new TableDataInfo();
+        tableDataInfo.setMsg("操作成功");
+        tableDataInfo.setCode(200);
+        tableDataInfo.setTotal(page.getTotal());
+        tableDataInfo.setRows(page.getRecords());
+        return tableDataInfo;
+
+
+
+
+    }
+
+
+    /**
+     * 查询机构扩展
+     *
+     * @param id 机构扩展主键
+     * @return 机构扩展
+     */
+    @Override
+    public SysOrgExtend selectSysOrgExtendById(Long id) {
+        return sysOrgExtendMapper.selectById(id);
+    }
+
+    /**
+     * 查询机构扩展列表
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 机构扩展
+     */
+    @Override
+    public List<SysOrgExtend> selectSysOrgExtendList(SysOrgExtend sysOrgExtend) {
+        return sysOrgExtendMapper.selectList(new QueryWrapper<>(sysOrgExtend));
+    }
+
+    /**
+     * 新增机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    @Override
+    public int insertSysOrgExtend(SysOrgExtend sysOrgExtend) {
+                sysOrgExtend.setCreateTime(DateUtils.getNowDate());
+            return sysOrgExtendMapper.insert(sysOrgExtend);
+    }
+
+    /**
+     * 修改机构扩展
+     *
+     * @param sysOrgExtend 机构扩展
+     * @return 结果
+     */
+    @Override
+    public int updateSysOrgExtend(SysOrgExtend sysOrgExtend) {
+                sysOrgExtend.setUpdateTime(DateUtils.getNowDate());
+        return sysOrgExtendMapper.updateById(sysOrgExtend);
+    }
+
+    /**
+     * 批量删除机构扩展
+     *
+     * @param ids 需要删除的机构扩展主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysOrgExtendByIds(Long[] ids) {
+        return sysOrgExtendMapper.deleteBatchIds(Arrays.asList((ids)));
+    }
+
+    /**
+     * 删除机构扩展信息
+     *
+     * @param id 机构扩展主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysOrgExtendById(Long id) {
+        return sysOrgExtendMapper.deleteById(id);
+    }
+}

+ 141 - 0
soc-modules/soc-modules-system/src/main/java/com/xunmei/system/service/impl/SysOrgPhysicalDefenseConstructionServiceImpl.java

@@ -0,0 +1,141 @@
+package com.xunmei.system.service.impl;
+
+import java.util.List;
+
+import com.xunmei.common.core.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.xunmei.system.service.ISysOrgService;
+
+import java.util.Arrays;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.xunmei.common.core.web.page.TableDataInfo;
+import com.xunmei.system.mapper.SysOrgPhysicalDefenseConstructionMapper;
+import com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction;
+import com.xunmei.system.service.ISysOrgPhysicalDefenseConstructionService;
+
+/**
+ * 机构物防建设Service业务层处理
+ *
+ * @author xunmei
+ * @date 2023-08-16
+ */
+@Service
+public class SysOrgPhysicalDefenseConstructionServiceImpl extends ServiceImpl<SysOrgPhysicalDefenseConstructionMapper, SysOrgPhysicalDefenseConstruction> implements ISysOrgPhysicalDefenseConstructionService {
+    @Autowired
+    private SysOrgPhysicalDefenseConstructionMapper sysOrgPhysicalDefenseConstructionMapper;
+    @Autowired
+    private ISysOrgService orgService;
+
+    @Override
+    public TableDataInfo selectPage(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+
+
+        //未删除
+//        sysOrgPhysicalDefenseConstruction.setDeleted(0L);
+        Page<SysOrgPhysicalDefenseConstruction> page;
+        //分页
+        if (sysOrgPhysicalDefenseConstruction.getPageNum() != null && sysOrgPhysicalDefenseConstruction.getPageSize() != null) {
+            page = new Page<>(sysOrgPhysicalDefenseConstruction.getPageNum(), sysOrgPhysicalDefenseConstruction.getPageSize());
+        } else {
+            page = new Page<>();
+        }
+        //查询条件
+        QueryWrapper<SysOrgPhysicalDefenseConstruction> query = new QueryWrapper<>(sysOrgPhysicalDefenseConstruction);
+        //下穿
+        if (sysOrgPhysicalDefenseConstruction.getCheckSub()) {
+            List<Long> ids = orgService.selectCheckSubOrgIdList(sysOrgPhysicalDefenseConstruction.getOrgId());
+            //清空前端传递的org_id
+            sysOrgPhysicalDefenseConstruction.setOrgId(null);
+            //添加in条件
+            query.in("org_id", ids);
+        }
+        //时间范围查询
+        if (sysOrgPhysicalDefenseConstruction.getParams().get("beginTime") != null && sysOrgPhysicalDefenseConstruction.getParams().get("endTime") != null) {
+            query.between("create_time", sysOrgPhysicalDefenseConstruction.getParams().get("beginTime"), sysOrgPhysicalDefenseConstruction.getParams().get("endTime"));
+        }
+        //获取数据
+        page = sysOrgPhysicalDefenseConstructionMapper.selectPage(page, query);
+        //抓换为TableDataInfo适配前端
+        TableDataInfo tableDataInfo = new TableDataInfo();
+        tableDataInfo.setMsg("操作成功");
+        tableDataInfo.setCode(200);
+        tableDataInfo.setTotal(page.getTotal());
+        tableDataInfo.setRows(page.getRecords());
+        return tableDataInfo;
+
+
+    }
+
+
+    /**
+     * 查询机构物防建设
+     *
+     * @param id 机构物防建设主键
+     * @return 机构物防建设
+     */
+    @Override
+    public SysOrgPhysicalDefenseConstruction selectSysOrgPhysicalDefenseConstructionById(Long id) {
+        return sysOrgPhysicalDefenseConstructionMapper.selectById(id);
+    }
+
+    /**
+     * 查询机构物防建设列表
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 机构物防建设
+     */
+    @Override
+    public List<SysOrgPhysicalDefenseConstruction> selectSysOrgPhysicalDefenseConstructionList(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+        return sysOrgPhysicalDefenseConstructionMapper.selectList(new QueryWrapper<>(sysOrgPhysicalDefenseConstruction));
+    }
+
+    /**
+     * 新增机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    @Override
+    public int insertSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+        sysOrgPhysicalDefenseConstruction.setCreateTime(DateUtils.getNowDate());
+        return sysOrgPhysicalDefenseConstructionMapper.insert(sysOrgPhysicalDefenseConstruction);
+    }
+
+    /**
+     * 修改机构物防建设
+     *
+     * @param sysOrgPhysicalDefenseConstruction 机构物防建设
+     * @return 结果
+     */
+    @Override
+    public int updateSysOrgPhysicalDefenseConstruction(SysOrgPhysicalDefenseConstruction sysOrgPhysicalDefenseConstruction) {
+        sysOrgPhysicalDefenseConstruction.setUpdateTime(DateUtils.getNowDate());
+        return sysOrgPhysicalDefenseConstructionMapper.updateById(sysOrgPhysicalDefenseConstruction);
+    }
+
+    /**
+     * 批量删除机构物防建设
+     *
+     * @param ids 需要删除的机构物防建设主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysOrgPhysicalDefenseConstructionByIds(Long[] ids) {
+        return sysOrgPhysicalDefenseConstructionMapper.deleteBatchIds(Arrays.asList((ids)));
+    }
+
+    /**
+     * 删除机构物防建设信息
+     *
+     * @param id 机构物防建设主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysOrgPhysicalDefenseConstructionById(Long id) {
+        return sysOrgPhysicalDefenseConstructionMapper.deleteById(id);
+    }
+}

+ 157 - 0
soc-modules/soc-modules-system/src/main/resources/mapper/system/SysBankPhysicalDefenseConstructionMapper.xml

@@ -0,0 +1,157 @@
+<?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.xunmei.system.mapper.SysBankPhysicalDefenseConstructionMapper">
+
+    <resultMap type="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction" id="SysBankPhysicalDefenseConstructionResult">
+                <result property="id" column="id"/>
+                <result property="standard" column="standard"/>
+                <result property="dateOfCompliance" column="date_of_compliance"/>
+                <result property="certificateEvidence" column="certificate_evidence"/>
+                <result property="certificate" column="certificate"/>
+                <result property="evidence" column="evidence"/>
+                <result property="createTime" column="create_time"/>
+                <result property="updateTime" column="update_time"/>
+                <result property="createBy" column="create_by"/>
+                <result property="updateBy" column="update_by"/>
+                <result property="orgId" column="org_id"/>
+    </resultMap>
+
+    <sql id="selectSysBankPhysicalDefenseConstructionVo">
+        select id, standard, date_of_compliance, certificate_evidence, certificate, evidence, create_time, update_time, create_by, update_by, org_id
+        from sys_bank_physical_defense_construction
+    </sql>
+
+    <select id="selectSysBankPhysicalDefenseConstructionList" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction"
+            resultMap="SysBankPhysicalDefenseConstructionResult">
+        <include refid="selectSysBankPhysicalDefenseConstructionVo"/>
+        <where>
+                        <if test="standard != null  and standard != ''">
+                            and standard = #{standard}
+                        </if>
+                        <if test="dateOfCompliance != null ">
+                            and date_of_compliance = #{dateOfCompliance}
+                        </if>
+                        <if test="certificateEvidence != null ">
+                            and certificate_evidence = #{certificateEvidence}
+                        </if>
+                        <if test="certificate != null  and certificate != ''">
+                            and certificate = #{certificate}
+                        </if>
+                        <if test="evidence != null  and evidence != ''">
+                            and evidence = #{evidence}
+                        </if>
+                        <if test="orgId != null ">
+                            and org_id = #{orgId}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectSysBankPhysicalDefenseConstructionById" parameterType="Long"
+            resultMap="SysBankPhysicalDefenseConstructionResult">
+            <include refid="selectSysBankPhysicalDefenseConstructionVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertSysBankPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction">
+        insert into sys_bank_physical_defense_construction
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="id != null">id,
+                    </if>
+                    <if test="standard != null">standard,
+                    </if>
+                    <if test="dateOfCompliance != null">date_of_compliance,
+                    </if>
+                    <if test="certificateEvidence != null">certificate_evidence,
+                    </if>
+                    <if test="certificate != null">certificate,
+                    </if>
+                    <if test="evidence != null">evidence,
+                    </if>
+                    <if test="createTime != null">create_time,
+                    </if>
+                    <if test="updateTime != null">update_time,
+                    </if>
+                    <if test="createBy != null">create_by,
+                    </if>
+                    <if test="updateBy != null">update_by,
+                    </if>
+                    <if test="orgId != null">org_id,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="id != null">#{id},
+                    </if>
+                    <if test="standard != null">#{standard},
+                    </if>
+                    <if test="dateOfCompliance != null">#{dateOfCompliance},
+                    </if>
+                    <if test="certificateEvidence != null">#{certificateEvidence},
+                    </if>
+                    <if test="certificate != null">#{certificate},
+                    </if>
+                    <if test="evidence != null">#{evidence},
+                    </if>
+                    <if test="createTime != null">#{createTime},
+                    </if>
+                    <if test="updateTime != null">#{updateTime},
+                    </if>
+                    <if test="createBy != null">#{createBy},
+                    </if>
+                    <if test="updateBy != null">#{updateBy},
+                    </if>
+                    <if test="orgId != null">#{orgId},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateSysBankPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction">
+        update sys_bank_physical_defense_construction
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="standard != null">standard =
+                        #{standard},
+                    </if>
+                    <if test="dateOfCompliance != null">date_of_compliance =
+                        #{dateOfCompliance},
+                    </if>
+                    <if test="certificateEvidence != null">certificate_evidence =
+                        #{certificateEvidence},
+                    </if>
+                    <if test="certificate != null">certificate =
+                        #{certificate},
+                    </if>
+                    <if test="evidence != null">evidence =
+                        #{evidence},
+                    </if>
+                    <if test="createTime != null">create_time =
+                        #{createTime},
+                    </if>
+                    <if test="updateTime != null">update_time =
+                        #{updateTime},
+                    </if>
+                    <if test="createBy != null">create_by =
+                        #{createBy},
+                    </if>
+                    <if test="updateBy != null">update_by =
+                        #{updateBy},
+                    </if>
+                    <if test="orgId != null">org_id =
+                        #{orgId},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysBankPhysicalDefenseConstructionById" parameterType="Long">
+        delete
+        from sys_bank_physical_defense_construction where id = #{id}
+    </delete>
+
+    <delete id="deleteSysBankPhysicalDefenseConstructionByIds" parameterType="String">
+        delete from sys_bank_physical_defense_construction where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 275 - 0
soc-modules/soc-modules-system/src/main/resources/mapper/system/SysOrgExtendMapper.xml

@@ -0,0 +1,275 @@
+<?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.xunmei.system.mapper.SysOrgExtendMapper">
+
+    <resultMap type="com.xunmei.system.domain.SysOrgExtend" id="SysOrgExtendResult">
+                <result property="id" column="id"/>
+                <result property="orgType" column="org_type"/>
+                <result property="weatherAreaCode" column="weather_area_code"/>
+                <result property="premisesArea" column="premises_area"/>
+                <result property="ownership" column="ownership"/>
+                <result property="outsideArea" column="outside_area"/>
+                <result property="orgPhysicalDefenseConstructionId" column="org_physical_defense_construction_id"/>
+                <result property="askari" column="askari"/>
+                <result property="askariCertificate" column="askari_certificate"/>
+                <result property="businessLibraryType" column="business_library
+_type"/>
+                <result property="dutyMode" column="duty_mode"/>
+                <result property="remoteControl" column="remote_control"/>
+                <result property="selfServiceBank" column="self_service_bank"/>
+                <result property="lobbyEquipment" column="lobby_equipment"/>
+                <result property="wallPenetratingEquipment" column="wall_penetrating_equipment"/>
+                <result property="bankPhysicalDefenseConstructionId" column="bank_physical_defense_construction_id"/>
+                <result property="createTime" column="create_time"/>
+                <result property="updateTime" column="update_time"/>
+                <result property="createBy" column="create_by"/>
+                <result property="updateBy" column="update_by"/>
+                <result property="orgId" column="org_id"/>
+    </resultMap>
+
+    <sql id="selectSysOrgExtendVo">
+        select id, org_type, weather_area_code, premises_area, ownership, outside_area, org_physical_defense_construction_id, askari, askari_certificate, business_library
+_type, duty_mode, remote_control, self_service_bank, lobby_equipment, wall_penetrating_equipment, bank_physical_defense_construction_id, create_time, update_time, create_by, update_by, org_id
+        from sys_org_extend
+    </sql>
+
+    <select id="selectSysOrgExtendList" parameterType="com.xunmei.system.domain.SysOrgExtend"
+            resultMap="SysOrgExtendResult">
+        <include refid="selectSysOrgExtendVo"/>
+        <where>
+                        <if test="orgType != null ">
+                            and org_type = #{orgType}
+                        </if>
+                        <if test="weatherAreaCode != null  and weatherAreaCode != ''">
+                            and weather_area_code = #{weatherAreaCode}
+                        </if>
+                        <if test="premisesArea != null ">
+                            and premises_area = #{premisesArea}
+                        </if>
+                        <if test="ownership != null ">
+                            and ownership = #{ownership}
+                        </if>
+                        <if test="outsideArea != null ">
+                            and outside_area = #{outsideArea}
+                        </if>
+                        <if test="orgPhysicalDefenseConstructionId != null ">
+                            and org_physical_defense_construction_id = #{orgPhysicalDefenseConstructionId}
+                        </if>
+                        <if test="askari != null ">
+                            and askari = #{askari}
+                        </if>
+                        <if test="askariCertificate != null  and askariCertificate != ''">
+                            and askari_certificate = #{askariCertificate}
+                        </if>
+                        <if test="businessLibrary
+Type != null ">
+                            and business_library
+_type = #{businessLibrary
+Type}
+                        </if>
+                        <if test="dutyMode != null ">
+                            and duty_mode = #{dutyMode}
+                        </if>
+                        <if test="remoteControl != null ">
+                            and remote_control = #{remoteControl}
+                        </if>
+                        <if test="selfServiceBank != null ">
+                            and self_service_bank = #{selfServiceBank}
+                        </if>
+                        <if test="lobbyEquipment != null ">
+                            and lobby_equipment = #{lobbyEquipment}
+                        </if>
+                        <if test="wallPenetratingEquipment != null ">
+                            and wall_penetrating_equipment = #{wallPenetratingEquipment}
+                        </if>
+                        <if test="bankPhysicalDefenseConstructionId != null ">
+                            and bank_physical_defense_construction_id = #{bankPhysicalDefenseConstructionId}
+                        </if>
+                        <if test="orgId != null ">
+                            and org_id = #{orgId}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectSysOrgExtendById" parameterType="Long"
+            resultMap="SysOrgExtendResult">
+            <include refid="selectSysOrgExtendVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertSysOrgExtend" parameterType="com.xunmei.system.domain.SysOrgExtend"            useGeneratedKeys="true" keyProperty="id">
+        insert into sys_org_extend
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="orgType != null">org_type,
+                    </if>
+                    <if test="weatherAreaCode != null">weather_area_code,
+                    </if>
+                    <if test="premisesArea != null">premises_area,
+                    </if>
+                    <if test="ownership != null">ownership,
+                    </if>
+                    <if test="outsideArea != null">outside_area,
+                    </if>
+                    <if test="orgPhysicalDefenseConstructionId != null">org_physical_defense_construction_id,
+                    </if>
+                    <if test="askari != null">askari,
+                    </if>
+                    <if test="askariCertificate != null">askari_certificate,
+                    </if>
+                    <if test="businessLibrary
+Type != null">business_library
+_type,
+                    </if>
+                    <if test="dutyMode != null">duty_mode,
+                    </if>
+                    <if test="remoteControl != null">remote_control,
+                    </if>
+                    <if test="selfServiceBank != null">self_service_bank,
+                    </if>
+                    <if test="lobbyEquipment != null">lobby_equipment,
+                    </if>
+                    <if test="wallPenetratingEquipment != null">wall_penetrating_equipment,
+                    </if>
+                    <if test="bankPhysicalDefenseConstructionId != null">bank_physical_defense_construction_id,
+                    </if>
+                    <if test="createTime != null">create_time,
+                    </if>
+                    <if test="updateTime != null">update_time,
+                    </if>
+                    <if test="createBy != null">create_by,
+                    </if>
+                    <if test="updateBy != null">update_by,
+                    </if>
+                    <if test="orgId != null">org_id,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="orgType != null">#{orgType},
+                    </if>
+                    <if test="weatherAreaCode != null">#{weatherAreaCode},
+                    </if>
+                    <if test="premisesArea != null">#{premisesArea},
+                    </if>
+                    <if test="ownership != null">#{ownership},
+                    </if>
+                    <if test="outsideArea != null">#{outsideArea},
+                    </if>
+                    <if test="orgPhysicalDefenseConstructionId != null">#{orgPhysicalDefenseConstructionId},
+                    </if>
+                    <if test="askari != null">#{askari},
+                    </if>
+                    <if test="askariCertificate != null">#{askariCertificate},
+                    </if>
+                    <if test="businessLibrary
+Type != null">#{businessLibrary
+Type},
+                    </if>
+                    <if test="dutyMode != null">#{dutyMode},
+                    </if>
+                    <if test="remoteControl != null">#{remoteControl},
+                    </if>
+                    <if test="selfServiceBank != null">#{selfServiceBank},
+                    </if>
+                    <if test="lobbyEquipment != null">#{lobbyEquipment},
+                    </if>
+                    <if test="wallPenetratingEquipment != null">#{wallPenetratingEquipment},
+                    </if>
+                    <if test="bankPhysicalDefenseConstructionId != null">#{bankPhysicalDefenseConstructionId},
+                    </if>
+                    <if test="createTime != null">#{createTime},
+                    </if>
+                    <if test="updateTime != null">#{updateTime},
+                    </if>
+                    <if test="createBy != null">#{createBy},
+                    </if>
+                    <if test="updateBy != null">#{updateBy},
+                    </if>
+                    <if test="orgId != null">#{orgId},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateSysOrgExtend" parameterType="com.xunmei.system.domain.SysOrgExtend">
+        update sys_org_extend
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="orgType != null">org_type =
+                        #{orgType},
+                    </if>
+                    <if test="weatherAreaCode != null">weather_area_code =
+                        #{weatherAreaCode},
+                    </if>
+                    <if test="premisesArea != null">premises_area =
+                        #{premisesArea},
+                    </if>
+                    <if test="ownership != null">ownership =
+                        #{ownership},
+                    </if>
+                    <if test="outsideArea != null">outside_area =
+                        #{outsideArea},
+                    </if>
+                    <if test="orgPhysicalDefenseConstructionId != null">org_physical_defense_construction_id =
+                        #{orgPhysicalDefenseConstructionId},
+                    </if>
+                    <if test="askari != null">askari =
+                        #{askari},
+                    </if>
+                    <if test="askariCertificate != null">askari_certificate =
+                        #{askariCertificate},
+                    </if>
+                    <if test="businessLibrary
+Type != null">business_library
+_type =
+                        #{businessLibrary
+Type},
+                    </if>
+                    <if test="dutyMode != null">duty_mode =
+                        #{dutyMode},
+                    </if>
+                    <if test="remoteControl != null">remote_control =
+                        #{remoteControl},
+                    </if>
+                    <if test="selfServiceBank != null">self_service_bank =
+                        #{selfServiceBank},
+                    </if>
+                    <if test="lobbyEquipment != null">lobby_equipment =
+                        #{lobbyEquipment},
+                    </if>
+                    <if test="wallPenetratingEquipment != null">wall_penetrating_equipment =
+                        #{wallPenetratingEquipment},
+                    </if>
+                    <if test="bankPhysicalDefenseConstructionId != null">bank_physical_defense_construction_id =
+                        #{bankPhysicalDefenseConstructionId},
+                    </if>
+                    <if test="createTime != null">create_time =
+                        #{createTime},
+                    </if>
+                    <if test="updateTime != null">update_time =
+                        #{updateTime},
+                    </if>
+                    <if test="createBy != null">create_by =
+                        #{createBy},
+                    </if>
+                    <if test="updateBy != null">update_by =
+                        #{updateBy},
+                    </if>
+                    <if test="orgId != null">org_id =
+                        #{orgId},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysOrgExtendById" parameterType="Long">
+        delete
+        from sys_org_extend where id = #{id}
+    </delete>
+
+    <delete id="deleteSysOrgExtendByIds" parameterType="String">
+        delete from sys_org_extend where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 157 - 0
soc-modules/soc-modules-system/src/main/resources/mapper/system/SysOrgPhysicalDefenseConstructionMapper.xml

@@ -0,0 +1,157 @@
+<?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.xunmei.system.mapper.SysOrgPhysicalDefenseConstructionMapper">
+
+    <resultMap type="com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction" id="SysOrgPhysicalDefenseConstructionResult">
+                <result property="id" column="id"/>
+                <result property="standard" column="standard"/>
+                <result property="dateOfCompliance" column="date_of_compliance"/>
+                <result property="certificateEvidence" column="certificate_evidence"/>
+                <result property="certificate" column="certificate"/>
+                <result property="evidence" column="evidence"/>
+                <result property="createTime" column="create_time"/>
+                <result property="updateTime" column="update_time"/>
+                <result property="createBy" column="create_by"/>
+                <result property="updateBy" column="update_by"/>
+                <result property="orgId" column="org_id"/>
+    </resultMap>
+
+    <sql id="selectSysOrgPhysicalDefenseConstructionVo">
+        select id, standard, date_of_compliance, certificate_evidence, certificate, evidence, create_time, update_time, create_by, update_by, org_id
+        from sys_org_physical_defense_construction
+    </sql>
+
+    <select id="selectSysOrgPhysicalDefenseConstructionList" parameterType="com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction"
+            resultMap="SysOrgPhysicalDefenseConstructionResult">
+        <include refid="selectSysOrgPhysicalDefenseConstructionVo"/>
+        <where>
+                        <if test="standard != null  and standard != ''">
+                            and standard = #{standard}
+                        </if>
+                        <if test="dateOfCompliance != null ">
+                            and date_of_compliance = #{dateOfCompliance}
+                        </if>
+                        <if test="certificateEvidence != null ">
+                            and certificate_evidence = #{certificateEvidence}
+                        </if>
+                        <if test="certificate != null  and certificate != ''">
+                            and certificate = #{certificate}
+                        </if>
+                        <if test="evidence != null  and evidence != ''">
+                            and evidence = #{evidence}
+                        </if>
+                        <if test="orgId != null ">
+                            and org_id = #{orgId}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectSysOrgPhysicalDefenseConstructionById" parameterType="Long"
+            resultMap="SysOrgPhysicalDefenseConstructionResult">
+            <include refid="selectSysOrgPhysicalDefenseConstructionVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertSysOrgPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction">
+        insert into sys_org_physical_defense_construction
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="id != null">id,
+                    </if>
+                    <if test="standard != null">standard,
+                    </if>
+                    <if test="dateOfCompliance != null">date_of_compliance,
+                    </if>
+                    <if test="certificateEvidence != null">certificate_evidence,
+                    </if>
+                    <if test="certificate != null">certificate,
+                    </if>
+                    <if test="evidence != null">evidence,
+                    </if>
+                    <if test="createTime != null">create_time,
+                    </if>
+                    <if test="updateTime != null">update_time,
+                    </if>
+                    <if test="createBy != null">create_by,
+                    </if>
+                    <if test="updateBy != null">update_by,
+                    </if>
+                    <if test="orgId != null">org_id,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="id != null">#{id},
+                    </if>
+                    <if test="standard != null">#{standard},
+                    </if>
+                    <if test="dateOfCompliance != null">#{dateOfCompliance},
+                    </if>
+                    <if test="certificateEvidence != null">#{certificateEvidence},
+                    </if>
+                    <if test="certificate != null">#{certificate},
+                    </if>
+                    <if test="evidence != null">#{evidence},
+                    </if>
+                    <if test="createTime != null">#{createTime},
+                    </if>
+                    <if test="updateTime != null">#{updateTime},
+                    </if>
+                    <if test="createBy != null">#{createBy},
+                    </if>
+                    <if test="updateBy != null">#{updateBy},
+                    </if>
+                    <if test="orgId != null">#{orgId},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateSysOrgPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysOrgPhysicalDefenseConstruction">
+        update sys_org_physical_defense_construction
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="standard != null">standard =
+                        #{standard},
+                    </if>
+                    <if test="dateOfCompliance != null">date_of_compliance =
+                        #{dateOfCompliance},
+                    </if>
+                    <if test="certificateEvidence != null">certificate_evidence =
+                        #{certificateEvidence},
+                    </if>
+                    <if test="certificate != null">certificate =
+                        #{certificate},
+                    </if>
+                    <if test="evidence != null">evidence =
+                        #{evidence},
+                    </if>
+                    <if test="createTime != null">create_time =
+                        #{createTime},
+                    </if>
+                    <if test="updateTime != null">update_time =
+                        #{updateTime},
+                    </if>
+                    <if test="createBy != null">create_by =
+                        #{createBy},
+                    </if>
+                    <if test="updateBy != null">update_by =
+                        #{updateBy},
+                    </if>
+                    <if test="orgId != null">org_id =
+                        #{orgId},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysOrgPhysicalDefenseConstructionById" parameterType="Long">
+        delete
+        from sys_org_physical_defense_construction where id = #{id}
+    </delete>
+
+    <delete id="deleteSysOrgPhysicalDefenseConstructionByIds" parameterType="String">
+        delete from sys_org_physical_defense_construction where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>