Эх сурвалжийг харах

专题制图模板后台配置、合规性审查项增加status字段配置

wanger 4 сар өмнө
parent
commit
91bf1545ad

+ 1 - 1
onemap-modules/onemap-analyse/src/main/java/com/onemap/analyse/task/CtfxSchedule.java

@@ -48,7 +48,7 @@ public class CtfxSchedule {
             wrapper.orderByAsc("cjsj");
             //每次只操作一条记录
             List<TCtfxMainDTO> ress = ctfxMapper.selectList(wrapper);
-            log.info(ress.toString());
+//            log.info(ress.toString());
             if (ress.size() > 0) {
                 TCtfxMainDTO ctfxMainDTO = ress.get(0);
                 log.info(ctfxMainDTO.toString());

+ 2 - 0
onemap-modules/onemap-gen/src/main/resources/bootstrap.yml

@@ -12,6 +12,8 @@ spring:
     active: dev
   cloud:
     nacos:
+      username: nacos
+      password: nacos
       discovery:
         # 服务注册地址
         server-addr: 127.0.0.1:8848

+ 12 - 14
onemap-modules/onemap-gen/src/main/resources/vm/sql/sql.vm

@@ -1,22 +1,20 @@
 -- 菜单 SQL
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}菜单');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate, '', null, '${functionName}菜单');
 
--- 按钮父菜单ID
-SELECT @parentId := LAST_INSERT_ID();
 
 -- 按钮 SQL
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query',        '#', 'admin', sysdate(), '', null, '');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}查询', (select max(menu_id) from sys_menu), '1',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query',        '#', 'admin', sysdate, '', null, '');
 
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add',          '#', 'admin', sysdate(), '', null, '');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}新增', (select max(menu_id) - 1 from sys_menu), '2',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add',          '#', 'admin', sysdate, '', null, '');
 
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit',         '#', 'admin', sysdate(), '', null, '');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}修改', (select max(menu_id) - 2 from sys_menu), '3',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit',         '#', 'admin', sysdate, '', null, '');
 
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove',       '#', 'admin', sysdate(), '', null, '');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}删除', (select max(menu_id) - 3 from sys_menu), '4',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove',       '#', 'admin', sysdate, '', null, '');
 
-insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
-values('${functionName}导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export',       '#', 'admin', sysdate(), '', null, '');
+insert into sys_menu (menu_id,menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values((select max(menu_id) + 1 from sys_menu) ,'${functionName}导出', (select max(menu_id) - 4 from sys_menu), '5',  '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export',       '#', 'admin', sysdate, '', null, '');

+ 105 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/controller/TYztZttmbkController.java

@@ -0,0 +1,105 @@
+package com.onemap.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.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import com.onemap.common.security.annotation.RequiresPermissions;
+import com.onemap.system.domain.TYztZttmbk;
+import com.onemap.system.service.ITYztZttmbkService;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.page.TableDataInfo;
+
+/**
+ * 制作专题图模板Controller
+ * 
+ * @author siwei
+ * @date 2025-10-11
+ */
+@RestController
+@RequestMapping("/zttmbk")
+public class TYztZttmbkController extends BaseController
+{
+    @Autowired
+    private ITYztZttmbkService tYztZttmbkService;
+
+    /**
+     * 查询制作专题图模板列表
+     */
+    @RequiresPermissions("system:zttmbk:list")
+    @GetMapping("/list")
+    public TableDataInfo list(TYztZttmbk tYztZttmbk)
+    {
+        startPage();
+        List<TYztZttmbk> list = tYztZttmbkService.selectTYztZttmbkList(tYztZttmbk);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出制作专题图模板列表
+     */
+    @RequiresPermissions("system:zttmbk:export")
+    @Log(title = "制作专题图模板", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TYztZttmbk tYztZttmbk)
+    {
+        List<TYztZttmbk> list = tYztZttmbkService.selectTYztZttmbkList(tYztZttmbk);
+        ExcelUtil<TYztZttmbk> util = new ExcelUtil<TYztZttmbk>(TYztZttmbk.class);
+        util.exportExcel(response, list, "制作专题图模板数据");
+    }
+
+    /**
+     * 获取制作专题图模板详细信息
+     */
+    @RequiresPermissions("system:zttmbk:query")
+    @GetMapping(value = "/{bsm}")
+    public AjaxResult getInfo(@PathVariable("bsm") String bsm)
+    {
+        return success(tYztZttmbkService.selectTYztZttmbkByBsm(bsm));
+    }
+
+    /**
+     * 新增制作专题图模板
+     */
+    @RequiresPermissions("system:zttmbk:add")
+    @Log(title = "制作专题图模板", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TYztZttmbk tYztZttmbk)
+    {
+        return toAjax(tYztZttmbkService.insertTYztZttmbk(tYztZttmbk));
+    }
+
+    /**
+     * 修改制作专题图模板
+     */
+    @RequiresPermissions("system:zttmbk:edit")
+    @Log(title = "制作专题图模板", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TYztZttmbk tYztZttmbk)
+    {
+        return toAjax(tYztZttmbkService.updateTYztZttmbk(tYztZttmbk));
+    }
+
+    /**
+     * 删除制作专题图模板
+     */
+    @RequiresPermissions("system:zttmbk:remove")
+    @Log(title = "制作专题图模板", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{bsms}")
+    public AjaxResult remove(@PathVariable String[] bsms)
+    {
+        return toAjax(tYztZttmbkService.deleteTYztZttmbkByBsms(bsms));
+    }
+}

+ 13 - 1
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TFzssHgxfxScx.java

@@ -40,7 +40,19 @@ public class TFzssHgxfxScx extends BaseEntity
     /** 统计字段(空表示所有) */
     private String tjzd;
 
-    public void setBsm(String bsm) 
+
+    /** 状态 */
+    private Integer status;
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public void setBsm(String bsm)
     {
         this.bsm = bsm;
     }

+ 208 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/domain/TYztZttmbk.java

@@ -0,0 +1,208 @@
+package com.onemap.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.onemap.common.core.annotation.Excel;
+import com.onemap.common.core.web.domain.BaseEntity;
+
+/**
+ * 制作专题图模板对象 t_yzt_zttmbk
+ *
+ * @author siwei
+ * @date 2025-10-11
+ */
+public class TYztZttmbk extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 标识码
+     */
+    @Excel(name = "标识码")
+    private String bsm;
+
+    /**
+     * 分组标识码
+     */
+    @Excel(name = "分组标识码")
+    private String fzbsm;
+
+    /**
+     * 属性名称
+     */
+    @Excel(name = "属性名称")
+    private String mbmc;
+
+    /**
+     * 模板文件 在文件夹下名称
+     */
+    private String mbwj;
+
+    /**
+     * 模板描述
+     */
+    private String mbms;
+
+    /**
+     * 状态 1可用 2禁用
+     */
+    @Excel(name = "状态 1可用 2禁用")
+    private Long zt;
+
+    /**
+     * jpg文件路径
+     */
+    private String mbpath;
+
+    /**
+     * 0 原始模板 1自定义模板 自定义模板包含了地图名称  制作单位 等信息
+     */
+    private String mbtype;
+
+    /**
+     * 自定义模板 地图名称
+     */
+    private String mbdtmc;
+
+    /**
+     * 自定义模板  地图说明
+     */
+    private String mbdtsm;
+
+    /**
+     * 自定义模板  制作单位
+     */
+    private String mbzzdw;
+
+    /**
+     * 自定义模板  制作时间
+     */
+    private String mbzzsj;
+
+    /**
+     * 自定义模板  server的BSM 逗号隔开
+     */
+    private String mbserverid;
+
+    public void setBsm(String bsm) {
+        this.bsm = bsm;
+    }
+
+    public String getBsm() {
+        return bsm;
+    }
+
+    public void setFzbsm(String fzbsm) {
+        this.fzbsm = fzbsm;
+    }
+
+    public String getFzbsm() {
+        return fzbsm;
+    }
+
+    public void setMbmc(String mbmc) {
+        this.mbmc = mbmc;
+    }
+
+    public String getMbmc() {
+        return mbmc;
+    }
+
+    public void setMbwj(String mbwj) {
+        this.mbwj = mbwj;
+    }
+
+    public String getMbwj() {
+        return mbwj;
+    }
+
+    public void setMbms(String mbms) {
+        this.mbms = mbms;
+    }
+
+    public String getMbms() {
+        return mbms;
+    }
+
+    public void setZt(Long zt) {
+        this.zt = zt;
+    }
+
+    public Long getZt() {
+        return zt;
+    }
+
+    public void setMbpath(String mbpath) {
+        this.mbpath = mbpath;
+    }
+
+    public String getMbpath() {
+        return mbpath;
+    }
+
+    public void setMbtype(String mbtype) {
+        this.mbtype = mbtype;
+    }
+
+    public String getMbtype() {
+        return mbtype;
+    }
+
+    public void setMbdtmc(String mbdtmc) {
+        this.mbdtmc = mbdtmc;
+    }
+
+    public String getMbdtmc() {
+        return mbdtmc;
+    }
+
+    public void setMbdtsm(String mbdtsm) {
+        this.mbdtsm = mbdtsm;
+    }
+
+    public String getMbdtsm() {
+        return mbdtsm;
+    }
+
+    public void setMbzzdw(String mbzzdw) {
+        this.mbzzdw = mbzzdw;
+    }
+
+    public String getMbzzdw() {
+        return mbzzdw;
+    }
+
+    public void setMbzzsj(String mbzzsj) {
+        this.mbzzsj = mbzzsj;
+    }
+
+    public String getMbzzsj() {
+        return mbzzsj;
+    }
+
+    public void setMbserverid(String mbserverid) {
+        this.mbserverid = mbserverid;
+    }
+
+    public String getMbserverid() {
+        return mbserverid;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("bsm", getBsm())
+                .append("fzbsm", getFzbsm())
+                .append("mbmc", getMbmc())
+                .append("mbwj", getMbwj())
+                .append("mbms", getMbms())
+                .append("zt", getZt())
+                .append("mbpath", getMbpath())
+                .append("mbtype", getMbtype())
+                .append("mbdtmc", getMbdtmc())
+                .append("mbdtsm", getMbdtsm())
+                .append("mbzzdw", getMbzzdw())
+                .append("mbzzsj", getMbzzsj())
+                .append("mbserverid", getMbserverid())
+                .toString();
+    }
+}

+ 61 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/mapper/TYztZttmbkMapper.java

@@ -0,0 +1,61 @@
+package com.onemap.system.mapper;
+
+import java.util.List;
+import com.onemap.system.domain.TYztZttmbk;
+
+/**
+ * 制作专题图模板Mapper接口
+ * 
+ * @author siwei
+ * @date 2025-10-11
+ */
+public interface TYztZttmbkMapper 
+{
+    /**
+     * 查询制作专题图模板
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 制作专题图模板
+     */
+    public TYztZttmbk selectTYztZttmbkByBsm(String bsm);
+
+    /**
+     * 查询制作专题图模板列表
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 制作专题图模板集合
+     */
+    public List<TYztZttmbk> selectTYztZttmbkList(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 新增制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    public int insertTYztZttmbk(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 修改制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    public int updateTYztZttmbk(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 删除制作专题图模板
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 结果
+     */
+    public int deleteTYztZttmbkByBsm(String bsm);
+
+    /**
+     * 批量删除制作专题图模板
+     * 
+     * @param bsms 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTYztZttmbkByBsms(String[] bsms);
+}

+ 61 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/ITYztZttmbkService.java

@@ -0,0 +1,61 @@
+package com.onemap.system.service;
+
+import java.util.List;
+import com.onemap.system.domain.TYztZttmbk;
+
+/**
+ * 制作专题图模板Service接口
+ * 
+ * @author siwei
+ * @date 2025-10-11
+ */
+public interface ITYztZttmbkService 
+{
+    /**
+     * 查询制作专题图模板
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 制作专题图模板
+     */
+    public TYztZttmbk selectTYztZttmbkByBsm(String bsm);
+
+    /**
+     * 查询制作专题图模板列表
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 制作专题图模板集合
+     */
+    public List<TYztZttmbk> selectTYztZttmbkList(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 新增制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    public int insertTYztZttmbk(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 修改制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    public int updateTYztZttmbk(TYztZttmbk tYztZttmbk);
+
+    /**
+     * 批量删除制作专题图模板
+     * 
+     * @param bsms 需要删除的制作专题图模板主键集合
+     * @return 结果
+     */
+    public int deleteTYztZttmbkByBsms(String[] bsms);
+
+    /**
+     * 删除制作专题图模板信息
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 结果
+     */
+    public int deleteTYztZttmbkByBsm(String bsm);
+}

+ 93 - 0
onemap-modules/onemap-system/src/main/java/com/onemap/system/service/impl/TYztZttmbkServiceImpl.java

@@ -0,0 +1,93 @@
+package com.onemap.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.onemap.system.mapper.TYztZttmbkMapper;
+import com.onemap.system.domain.TYztZttmbk;
+import com.onemap.system.service.ITYztZttmbkService;
+
+/**
+ * 制作专题图模板Service业务层处理
+ * 
+ * @author siwei
+ * @date 2025-10-11
+ */
+@Service
+public class TYztZttmbkServiceImpl implements ITYztZttmbkService 
+{
+    @Autowired
+    private TYztZttmbkMapper tYztZttmbkMapper;
+
+    /**
+     * 查询制作专题图模板
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 制作专题图模板
+     */
+    @Override
+    public TYztZttmbk selectTYztZttmbkByBsm(String bsm)
+    {
+        return tYztZttmbkMapper.selectTYztZttmbkByBsm(bsm);
+    }
+
+    /**
+     * 查询制作专题图模板列表
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 制作专题图模板
+     */
+    @Override
+    public List<TYztZttmbk> selectTYztZttmbkList(TYztZttmbk tYztZttmbk)
+    {
+        return tYztZttmbkMapper.selectTYztZttmbkList(tYztZttmbk);
+    }
+
+    /**
+     * 新增制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    @Override
+    public int insertTYztZttmbk(TYztZttmbk tYztZttmbk)
+    {
+        return tYztZttmbkMapper.insertTYztZttmbk(tYztZttmbk);
+    }
+
+    /**
+     * 修改制作专题图模板
+     * 
+     * @param tYztZttmbk 制作专题图模板
+     * @return 结果
+     */
+    @Override
+    public int updateTYztZttmbk(TYztZttmbk tYztZttmbk)
+    {
+        return tYztZttmbkMapper.updateTYztZttmbk(tYztZttmbk);
+    }
+
+    /**
+     * 批量删除制作专题图模板
+     * 
+     * @param bsms 需要删除的制作专题图模板主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTYztZttmbkByBsms(String[] bsms)
+    {
+        return tYztZttmbkMapper.deleteTYztZttmbkByBsms(bsms);
+    }
+
+    /**
+     * 删除制作专题图模板信息
+     * 
+     * @param bsm 制作专题图模板主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTYztZttmbkByBsm(String bsm)
+    {
+        return tYztZttmbkMapper.deleteTYztZttmbkByBsm(bsm);
+    }
+}

+ 6 - 1
onemap-modules/onemap-system/src/main/resources/mapper/oracle/system/TFzssHgxfxScxMapper.xml

@@ -12,10 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="kzxjb"    column="KZXJB"    />
         <result property="xssx"    column="XSSX"    />
         <result property="tjzd"    column="TJZD"    />
+        <result property="status"    column="STATUS"    />
     </resultMap>
 
     <sql id="selectTFzssHgxfxScxVo">
-        select BSM, YSDM, YSMC, SJY, KZXJB, XSSX, TJZD from t_fzss_hgxfx_scx
+        select BSM, YSDM, YSMC, SJY, KZXJB, XSSX, TJZD, STATUS from t_fzss_hgxfx_scx
     </sql>
 
     <select id="selectTFzssHgxfxScxList" parameterType="TFzssHgxfxScx" resultMap="TFzssHgxfxScxResult">
@@ -25,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="ysmc != null  and ysmc != ''"> and YSMC = #{ysmc}</if>
             <if test="sjy != null  and sjy != ''"> and SJY = #{sjy}</if>
             <if test="kzxjb != null "> and KZXJB = #{kzxjb}</if>
+            <if test="status != null "> and STATUS = #{status}</if>
         </where>
     </select>
     
@@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="kzxjb != null">KZXJB,</if>
             <if test="xssx != null">XSSX,</if>
             <if test="tjzd != null">TJZD,</if>
+            <if test="status != null">STATUS,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="bsm != null">#{bsm},</if>
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="kzxjb != null">#{kzxjb},</if>
             <if test="xssx != null">#{xssx},</if>
             <if test="tjzd != null">#{tjzd},</if>
+            <if test="status != null">#{status},</if>
          </trim>
     </insert>
 
@@ -64,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="kzxjb != null">KZXJB = #{kzxjb},</if>
             <if test="xssx != null">XSSX = #{xssx},</if>
             <if test="tjzd != null">TJZD = #{tjzd},</if>
+            <if test="status != null">STATUS = #{status},</if>
         </trim>
         where BSM = #{bsm}
     </update>

+ 103 - 0
onemap-modules/onemap-system/src/main/resources/mapper/oracle/system/TYztZttmbkMapper.xml

@@ -0,0 +1,103 @@
+<?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.onemap.system.mapper.TYztZttmbkMapper">
+    
+    <resultMap type="TYztZttmbk" id="TYztZttmbkResult">
+        <result property="bsm"    column="bsm"    />
+        <result property="fzbsm"    column="fzbsm"    />
+        <result property="mbmc"    column="mbmc"    />
+        <result property="mbwj"    column="mbwj"    />
+        <result property="mbms"    column="mbms"    />
+        <result property="zt"    column="zt"    />
+        <result property="mbpath"    column="mbpath"    />
+        <result property="mbtype"    column="mbtype"    />
+        <result property="mbdtmc"    column="mbdtmc"    />
+        <result property="mbdtsm"    column="mbdtsm"    />
+        <result property="mbzzdw"    column="mbzzdw"    />
+        <result property="mbzzsj"    column="mbzzsj"    />
+        <result property="mbserverid"    column="mbserverid"    />
+    </resultMap>
+
+    <sql id="selectTYztZttmbkVo">
+        select bsm, fzbsm, mbmc, mbwj, mbms, zt, mbpath, mbtype, mbdtmc, mbdtsm, mbzzdw, mbzzsj, mbserverid from t_yzt_zttmbk
+    </sql>
+
+    <select id="selectTYztZttmbkList" parameterType="TYztZttmbk" resultMap="TYztZttmbkResult">
+        <include refid="selectTYztZttmbkVo"/>
+        <where>  
+            <if test="mbmc != null  and mbmc != ''"> and mbmc = #{mbmc}</if>
+            <if test="zt != null "> and zt = #{zt}</if>
+        </where>
+    </select>
+    
+    <select id="selectTYztZttmbkByBsm" parameterType="String" resultMap="TYztZttmbkResult">
+        <include refid="selectTYztZttmbkVo"/>
+        where bsm = #{bsm}
+    </select>
+        
+    <insert id="insertTYztZttmbk" parameterType="TYztZttmbk">
+        insert into t_yzt_zttmbk
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="bsm != null and bsm != ''">bsm,</if>
+            <if test="fzbsm != null">fzbsm,</if>
+            <if test="mbmc != null and mbmc != ''">mbmc,</if>
+            <if test="mbwj != null and mbwj != ''">mbwj,</if>
+            <if test="mbms != null">mbms,</if>
+            <if test="zt != null">zt,</if>
+            <if test="mbpath != null">mbpath,</if>
+            <if test="mbtype != null">mbtype,</if>
+            <if test="mbdtmc != null">mbdtmc,</if>
+            <if test="mbdtsm != null">mbdtsm,</if>
+            <if test="mbzzdw != null">mbzzdw,</if>
+            <if test="mbzzsj != null">mbzzsj,</if>
+            <if test="mbserverid != null">mbserverid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="bsm != null and bsm != ''">#{bsm},</if>
+            <if test="fzbsm != null">#{fzbsm},</if>
+            <if test="mbmc != null and mbmc != ''">#{mbmc},</if>
+            <if test="mbwj != null and mbwj != ''">#{mbwj},</if>
+            <if test="mbms != null">#{mbms},</if>
+            <if test="zt != null">#{zt},</if>
+            <if test="mbpath != null">#{mbpath},</if>
+            <if test="mbtype != null">#{mbtype},</if>
+            <if test="mbdtmc != null">#{mbdtmc},</if>
+            <if test="mbdtsm != null">#{mbdtsm},</if>
+            <if test="mbzzdw != null">#{mbzzdw},</if>
+            <if test="mbzzsj != null">#{mbzzsj},</if>
+            <if test="mbserverid != null">#{mbserverid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTYztZttmbk" parameterType="TYztZttmbk">
+        update t_yzt_zttmbk
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="fzbsm != null">fzbsm = #{fzbsm},</if>
+            <if test="mbmc != null and mbmc != ''">mbmc = #{mbmc},</if>
+            <if test="mbwj != null and mbwj != ''">mbwj = #{mbwj},</if>
+            <if test="mbms != null">mbms = #{mbms},</if>
+            <if test="zt != null">zt = #{zt},</if>
+            <if test="mbpath != null">mbpath = #{mbpath},</if>
+            <if test="mbtype != null">mbtype = #{mbtype},</if>
+            <if test="mbdtmc != null">mbdtmc = #{mbdtmc},</if>
+            <if test="mbdtsm != null">mbdtsm = #{mbdtsm},</if>
+            <if test="mbzzdw != null">mbzzdw = #{mbzzdw},</if>
+            <if test="mbzzsj != null">mbzzsj = #{mbzzsj},</if>
+            <if test="mbserverid != null">mbserverid = #{mbserverid},</if>
+        </trim>
+        where bsm = #{bsm}
+    </update>
+
+    <delete id="deleteTYztZttmbkByBsm" parameterType="String">
+        delete from t_yzt_zttmbk where bsm = #{bsm}
+    </delete>
+
+    <delete id="deleteTYztZttmbkByBsms" parameterType="String">
+        delete from t_yzt_zttmbk where bsm in 
+        <foreach item="bsm" collection="array" open="(" separator="," close=")">
+            #{bsm}
+        </foreach>
+    </delete>
+</mapper>

+ 1 - 1
onemap-modules/pom.xml

@@ -10,7 +10,7 @@
 
     <modules>
         <module>onemap-system</module>
-<!--        <module>onemap-gen</module>-->
+        <module>onemap-gen</module>
 <!--        <module>onemap-job</module>-->
         <module>onemap-file</module>
         <module>onemap-api</module>