diff --git a/interface-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/InstitutionApi.java b/interface-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/InstitutionApi.java new file mode 100644 index 0000000..cf613ef --- /dev/null +++ b/interface-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/InstitutionApi.java @@ -0,0 +1,112 @@ +package cn.com.tenlion.institutionmanagement.service.institution; + +import cn.com.tenlion.institutionmanagement.pojo.bos.institution.InstitutionBO; +import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO; +import cn.com.tenlion.institutionmanagement.pojo.pos.institution.InstitutionPO; +import cn.com.tenlion.institutionmanagement.pojo.vos.institution.InstitutionVO; +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.SuccessResultList; + + +import java.util.List; +import java.util.Map; + +/** + * @ClassName: IInstitutionService + * @Description: 机构管理 + * @Author: CodeFactory + * @Date: 2021-04-28 17:58:49 + * @Version: 3.0 + **/ +public interface InstitutionApi { + + + /** + * 机构管理详情 + * + * @param params 参数Map + * @return + */ + InstitutionDTO get(Map params); + + /** + * 机构管理详情 + * + * @param institutionId + * @return + */ + InstitutionDTO get(String institutionId); + + /** + * 机构管理详情 + * + * @param params 参数Map + * @return + */ + InstitutionBO getBO(Map params); + + /** + * 机构管理详情 + * + * @param institutionId + * @return + */ + InstitutionBO getBO(String institutionId); + + /** + * 机构管理详情 + * + * @param params 参数Map + * @return + */ + InstitutionPO getPO(Map params); + + /** + * 机构管理详情 + * + * @param institutionId + * @return + */ + InstitutionPO getPO(String institutionId); + + /** + * 机构管理列表 + * + * @param params + * @return + */ + List list(Map params); + + /** + * 机构管理列表 + * + * @param params + * @return + */ + List listBO(Map params); + + /** + * 机构管理列表 + * + * @param params + * @return + */ + List listPO(Map params); + + /** + * 机构管理分页列表 + * + * @param page + * @return + */ + SuccessResultList> listPage(ListPage page); + + /** + * 机构管理统计 + * + * @param params + * @return + */ + Integer count(Map params); + +} \ No newline at end of file diff --git a/interface-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/OrganizationApi.java b/interface-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/OrganizationApi.java new file mode 100644 index 0000000..98a406c --- /dev/null +++ b/interface-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/OrganizationApi.java @@ -0,0 +1,117 @@ +package cn.com.tenlion.organizationmanagement.service.organization; + +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.SuccessResultList; +import cn.com.tenlion.organizationmanagement.pojo.dtos.organization.OrganizationDTO; +import cn.com.tenlion.organizationmanagement.pojo.vos.organization.OrganizationVO; +import cn.com.tenlion.organizationmanagement.pojo.bos.organization.OrganizationBO; +import cn.com.tenlion.organizationmanagement.pojo.pos.organization.OrganizationPO; + +import java.util.List; +import java.util.Map; + +/** + * @ClassName: IOrganizationService + * @Description: 组织管理 + * @Author: CodeFactory + * @Date: 2021-04-28 11:06:42 + * @Version: 3.0 + **/ +public interface OrganizationApi { + + + + + + + + + /** + * 组织管理详情 + * + * @param params 参数Map + * @return + */ + OrganizationDTO get(Map params); + + /** + * 组织管理详情 + * + * @param organizationId + * @return + */ + OrganizationDTO get(String organizationId); + + /** + * 组织管理详情 + * + * @param params 参数Map + * @return + */ + OrganizationBO getBO(Map params); + + /** + * 组织管理详情 + * + * @param organizationId + * @return + */ + OrganizationBO getBO(String organizationId); + + /** + * 组织管理详情 + * + * @param params 参数Map + * @return + */ + OrganizationPO getPO(Map params); + + /** + * 组织管理详情 + * + * @param organizationId + * @return + */ + OrganizationPO getPO(String organizationId); + + /** + * 组织管理列表 + * + * @param params + * @return + */ + List list(Map params); + + /** + * 组织管理列表 + * + * @param params + * @return + */ + List listBO(Map params); + + /** + * 组织管理列表 + * + * @param params + * @return + */ + List listPO(Map params); + + /** + * 组织管理分页列表 + * + * @param page + * @return + */ + SuccessResultList> listPage(ListPage page); + + /** + * 组织管理统计 + * + * @param params + * @return + */ + Integer count(Map params); + +} \ No newline at end of file diff --git a/module-institution-management/pom.xml b/module-institution-management/pom.xml index d69b815..44c1e2e 100644 --- a/module-institution-management/pom.xml +++ b/module-institution-management/pom.xml @@ -18,6 +18,16 @@ interface-institution-management 1.0-SNAPSHOT + + + ink.wgink + module-dictionary + 1.0-SNAPSHOT + compile + + + + diff --git a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/controller/route/institution/InstitutionRouteController.java b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/controller/route/institution/InstitutionRouteController.java index 47e965a..12aeaab 100644 --- a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/controller/route/institution/InstitutionRouteController.java +++ b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/controller/route/institution/InstitutionRouteController.java @@ -39,4 +39,8 @@ public class InstitutionRouteController extends DefaultBaseController { return new ModelAndView("institution/list"); } + @GetMapping("baidumap") + public ModelAndView baiDuMap(){return new ModelAndView("baidumap/map-baidu.html");} + + } \ No newline at end of file diff --git a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/dao/institution/IInstitutionDao.java b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/dao/institution/IInstitutionDao.java index b31d769..e5a720e 100644 --- a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/dao/institution/IInstitutionDao.java +++ b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/dao/institution/IInstitutionDao.java @@ -1,12 +1,13 @@ package cn.com.tenlion.institutionmanagement.dao.institution; +import cn.com.tenlion.institutionmanagement.pojo.bos.institution.InstitutionBO; +import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO; +import cn.com.tenlion.institutionmanagement.pojo.pos.institution.InstitutionPO; import ink.wgink.exceptions.RemoveException; import ink.wgink.exceptions.SaveException; import ink.wgink.exceptions.SearchException; import ink.wgink.exceptions.UpdateException; -import cn.com.tenlion.pojo.bos.institution.InstitutionBO; -import cn.com.tenlion.pojo.pos.institution.InstitutionPO; -import cn.com.tenlion.pojo.dtos.institution.InstitutionDTO; + import org.springframework.stereotype.Repository; import java.util.List; diff --git a/interface-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/IInstitutionService.java b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/IInstitutionService.java similarity index 100% rename from interface-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/IInstitutionService.java rename to module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/IInstitutionService.java diff --git a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/impl/InstitutionServiceImpl.java b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/impl/InstitutionServiceImpl.java index fa1a9b1..c80b296 100644 --- a/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/impl/InstitutionServiceImpl.java +++ b/module-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/service/institution/impl/InstitutionServiceImpl.java @@ -1,17 +1,18 @@ package cn.com.tenlion.institutionmanagement.service.institution.impl; +import cn.com.tenlion.institutionmanagement.dao.institution.IInstitutionDao; +import cn.com.tenlion.institutionmanagement.pojo.bos.institution.InstitutionBO; +import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO; +import cn.com.tenlion.institutionmanagement.pojo.pos.institution.InstitutionPO; +import cn.com.tenlion.institutionmanagement.pojo.vos.institution.InstitutionVO; +import cn.com.tenlion.institutionmanagement.service.institution.IInstitutionService; +import cn.com.tenlion.institutionmanagement.service.institution.InstitutionApi; import ink.wgink.common.base.DefaultBaseService; import ink.wgink.pojo.ListPage; -import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.util.map.HashMapUtil; import ink.wgink.util.UUIDUtil; -import cn.com.tenlion.dao.institution.IInstitutionDao; -import cn.com.tenlion.pojo.dtos.institution.InstitutionDTO; -import cn.com.tenlion.pojo.vos.institution.InstitutionVO; -import cn.com.tenlion.pojo.bos.institution.InstitutionBO; -import cn.com.tenlion.pojo.pos.institution.InstitutionPO; -import cn.com.tenlion.service.institution.IInstitutionService; + import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import org.apache.commons.lang3.StringUtils; @@ -28,7 +29,7 @@ import java.util.*; * @Version: 3.0 **/ @Service -public class InstitutionServiceImpl extends DefaultBaseService implements IInstitutionService { +public class InstitutionServiceImpl extends DefaultBaseService implements IInstitutionService,InstitutionApi { @Autowired private IInstitutionDao institutionDao; diff --git a/module-institution-management/src/main/resources/mybatis/mapper/institution/institution-mapper.xml b/module-institution-management/src/main/resources/mybatis/mapper/institution/institution-mapper.xml index a3c64ba..30238c1 100644 --- a/module-institution-management/src/main/resources/mybatis/mapper/institution/institution-mapper.xml +++ b/module-institution-management/src/main/resources/mybatis/mapper/institution/institution-mapper.xml @@ -1,8 +1,8 @@ - + - + @@ -18,11 +18,12 @@ + - + @@ -38,6 +39,7 @@ + @@ -45,7 +47,7 @@ - + @@ -61,6 +63,7 @@ + @@ -70,7 +73,7 @@ - INSERT INTO institution( + INSERT INTO m_institution( institution_id, institution_name, institution_desc, @@ -86,6 +89,7 @@ institution_region_area, institution_region_village, institution_region_street, + institution_type, creator, gmt_create, modifier, @@ -107,6 +111,7 @@ #{institutionRegionArea}, #{institutionRegionVillage}, #{institutionRegionStreet}, + #{institutionType}, #{creator}, #{gmtCreate}, #{modifier}, @@ -118,7 +123,7 @@ UPDATE - institution + m_institution SET gmt_modified = #{gmtModified}, modifier = #{modifier}, @@ -133,7 +138,7 @@ DELETE FROM - institution + m_institution WHERE institution_id IN @@ -144,53 +149,29 @@ UPDATE - institution + m_institution SET institution_name = #{institutionName}, - + + institution_type = #{institutionType}, + institution_desc = #{institutionDesc}, - - institution_image = #{institutionImage}, - - institution_address = #{institutionAddress}, - - institution_x = #{institutionX}, - - institution_y = #{institutionY}, - - institution_founding_time = #{institutionFoundingTime}, - - institution_principal = #{institutionPrincipal}, - - institution_contact = #{institutionContact}, - - institution_region_province = #{institutionRegionProvince}, - - institution_region_city = #{institutionRegionCity}, - - institution_region_area = #{institutionRegionArea}, - - institution_region_village = #{institutionRegionVillage}, - - institution_region_street = #{institutionRegionStreet}, - gmt_modified = #{gmtModified}, - modifier = #{modifier}, - institution_id = institution_id + modifier = #{modifier} WHERE institution_id = #{institutionId} @@ -212,9 +193,10 @@ t1.institution_region_area, t1.institution_region_village, t1.institution_region_street, + t1.institution_type, t1.institution_id FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 @@ -241,13 +223,14 @@ t1.institution_region_area, t1.institution_region_village, t1.institution_region_street, + t1.institution_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 @@ -274,13 +257,14 @@ t1.institution_region_area, t1.institution_region_village, t1.institution_region_street, + t1.institution_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 @@ -307,17 +291,17 @@ t1.institution_region_area, t1.institution_region_village, t1.institution_region_street, + t1.institution_type, t1.creator, - t1.gmt_create, - 1 + t1.gmt_create FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 AND ( - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.institution_name LIKE CONCAT('%', #{keywords}, '%') ) @@ -335,6 +319,11 @@ #{institutionIds[${index}]} + + AND + t1.institution_type = #{institutionType} + + ORDER BY t1.gmt_create DESC @@ -355,19 +344,20 @@ t1.institution_region_area, t1.institution_region_village, t1.institution_region_street, + t1.institution_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 AND ( - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.institution_name LIKE CONCAT('%', #{keywords}, '%') ) @@ -385,6 +375,11 @@ #{institutionIds[${index}]} + + AND + t1.institution_type = #{institutionType} + + ORDER BY t1.gmt_create DESC @@ -411,13 +406,13 @@ t1.gmt_modified, t1.is_delete FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 AND ( - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.institution_name LIKE CONCAT('%', #{keywords}, '%') ) @@ -435,6 +430,11 @@ #{institutionIds[${index}]} + + AND + t1.institution_type = #{institutionType} + + ORDER BY t1.gmt_create DESC @@ -442,7 +442,7 @@ SELECT COUNT(*) FROM - institution t1 + m_institution t1 WHERE t1.is_delete = 0 diff --git a/module-institution-management/src/main/resources/templates/baidumap/map-baidu.html b/module-institution-management/src/main/resources/templates/baidumap/map-baidu.html new file mode 100644 index 0000000..0137699 --- /dev/null +++ b/module-institution-management/src/main/resources/templates/baidumap/map-baidu.html @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + +
+
+
+ +
+ + + + +
+
+
+ +
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/module-institution-management/src/main/resources/mybatis/templates/institution/list.html b/module-institution-management/src/main/resources/templates/institution/list.html similarity index 75% rename from module-institution-management/src/main/resources/mybatis/templates/institution/list.html rename to module-institution-management/src/main/resources/templates/institution/list.html index e3dcd0e..e9be5b1 100644 --- a/module-institution-management/src/main/resources/mybatis/templates/institution/list.html +++ b/module-institution-management/src/main/resources/templates/institution/list.html @@ -9,6 +9,7 @@ +
@@ -86,42 +87,27 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'institutionName', width: 180, title: '机构名称', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'institutionDesc', width: 180, title: '机构描述', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, {field: 'institutionImage', width: 180, title: '机构图片', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { return '-'; } - var downloadFile = ''; + var value='
    '; var datas = rowData.split(','); for(var i = 0, item = datas[i]; item = datas[i++];) { - if(downloadFile.length > 0) { - downloadFile += ' | '; - } - downloadFile += '点击下载' + value += '
  • 图片1
  • '; } - return downloadFile; + value += '
'; + setTimeout(function() { + new Viewer(document.getElementById("viewer"),{ + loop:true + }); + }, 50); + return value; } }, - {field: 'institutionAddress', width: 180, title: '机构详情地址', align:'center', + {field: 'institutionName', width: 180, title: '机构名称', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -148,7 +134,7 @@ return rowData; } }, - {field: 'institutionContact', width: 180, title: '机构联系方式', align:'center', + {field: 'institutionContact', width: 250, title: '机构联系方式', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -157,7 +143,7 @@ return rowData; } }, - {field: 'institutionRegionProvince', width: 180, title: '行政区划-省', align:'center', + {field: 'institutionAddress', width: 350, title: '机构详情地址', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -166,52 +152,7 @@ return rowData; } }, - {field: 'institutionRegionCity', width: 180, title: '行政区化-市', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'institutionRegionArea', width: 180, title: '行政区化-区', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'institutionRegionVillage', width: 180, title: '行政区化-村', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'institutionRegionStreet', width: 180, title: '行政区化-街', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'creator', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'gmtCreate', width: 180, title: '', align:'center', + {field: 'institutionDesc', width: 180, title: '机构描述', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -220,6 +161,7 @@ return rowData; } }, + ] ], page: true, diff --git a/module-institution-management/src/main/resources/mybatis/templates/institution/save.html b/module-institution-management/src/main/resources/templates/institution/save.html similarity index 71% rename from module-institution-management/src/main/resources/mybatis/templates/institution/save.html rename to module-institution-management/src/main/resources/templates/institution/save.html index 864a713..76ee6cb 100644 --- a/module-institution-management/src/main/resources/mybatis/templates/institution/save.html +++ b/module-institution-management/src/main/resources/templates/institution/save.html @@ -10,6 +10,20 @@ +
@@ -22,18 +36,6 @@
-
- -
- -
-
-
- -
- -
-
@@ -64,28 +66,22 @@
-
- -
- -
-
- +
- -
-
-
- -
- +
- + +
+
+
+ +
+
@@ -101,33 +97,46 @@
- +
-
-
- +
- +
- +
+
+ +
+ + + +
+
+
+
+
+
+
+ @@ -157,6 +167,7 @@ var wangEditor = window.wangEditor; var wangEditorObj = {}; var viewerObj = {}; + var dictId = '0'; function closeBox() { parent.layer.close(parent.layer.getFrameIndex(window.name)); @@ -184,7 +195,6 @@ } return; } - top.restAjax.get(top.restAjax.path('api/file/list', []), { ids: ids }, null, function(code, data) { @@ -268,8 +278,7 @@ function initInstitutionFoundingTimeDateTime() { laydate.render({ elem: '#institutionFoundingTime', - type: 'datetime', - value: new Date(), + type: 'date', trigger: 'click' }); } @@ -279,6 +288,8 @@ function initData() { initInstitutionImageUploadFile(); initInstitutionFoundingTimeDateTime(); + initMap('109.85017859252311', '40.66017700460503'); + initDataDict(dictId,'institutionRegionProvince'); } initData(); @@ -315,6 +326,91 @@ closeBox(); }); + //初始化百度地图 + function initMap(longitude, latitude) { + map = new BMap.Map("mapContainer", {enableMapClick: false,}); + var point = new BMap.Point(longitude, latitude); + map.centerAndZoom(point, 13); + map.disableDoubleClickZoom(); + map.addControl(new BMap.NavigationControl()); + map.addControl(new BMap.ScaleControl()); + map.addControl(new BMap.OverviewMapControl()); + map.addControl(new BMap.MapTypeControl()); + map.enableScrollWheelZoom();//启用地图滚轮放大缩小 + map.enableContinuousZoom();//开启缩放平滑 + // 点击获取地址 + var geocoder= new BMap.Geocoder(); + mapMarkPoint(map, point); + map.addEventListener("click", function(e) { + map.clearOverlays(); + $('#institutionX').val(e.point.lng); + $('#institutionY').val(e.point.lat); + point = new BMap.Point(e.point.lng, e.point.lat); + mapMarkPoint(map, point); + geocoder.getLocation(e.point, function(rs) { + $('#institutionAddress').val(rs.address); + }); + }); + } + //地图标点 + function mapMarkPoint(map, point) { + var marker = new BMap.Marker(point); + map.addOverlay(marker); + } + + //c初始化数据字典 + function initDataDict(dictId,tabId){ + if(!dictId){ + return; + } + top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { + $("#"+tabId).empty(); + var html = ''; + if ('institutionRegionProvince' === tabId){ + html += ''; + } + if ('institutionRegionCity' === tabId){ + html += ''; + } + if ('institutionRegionArea' === tabId){ + html += ''; + } + if ('institutionRegionVillage' === tabId){ + html += ''; + } + if ('institutionRegionStreet' === tabId){ + html += ''; + } + + $.each(data, function (index, item) { + html += ''; + }); + $("#"+tabId).append(html); + form.render('select'); + }); + } + + //省监听事件 + form.on('select(institutionRegionProvince)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionCity'); + }); + //市监听事件 + form.on('select(institutionRegionCity)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionArea'); + }); + //区监听事件 + form.on('select(institutionRegionArea)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionVillage'); + }); + //镇、村监听事件 + form.on('select(institutionRegionVillage)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionStreet'); + }); + // 校验 form.verify({ }); diff --git a/module-institution-management/src/main/resources/mybatis/templates/institution/update.html b/module-institution-management/src/main/resources/templates/institution/update.html similarity index 64% rename from module-institution-management/src/main/resources/mybatis/templates/institution/update.html rename to module-institution-management/src/main/resources/templates/institution/update.html index 9dbb122..ae290e4 100644 --- a/module-institution-management/src/main/resources/mybatis/templates/institution/update.html +++ b/module-institution-management/src/main/resources/templates/institution/update.html @@ -10,6 +10,20 @@ +
@@ -22,18 +36,6 @@
-
- -
- -
-
-
- -
- -
-
@@ -64,28 +66,22 @@
-
- -
- -
-
- +
- -
-
-
- -
- +
- + +
+
+
+ +
+
@@ -101,33 +97,44 @@
- -
- + +
+ +
+
+ +
+
+ +
+
+ +
+
+
- +
- + + +
-
- -
- -
-
-
- -
- -
-
-
- -
- +
+
+
@@ -142,6 +149,7 @@
+ @@ -157,6 +165,7 @@ var laytpl = layui.laytpl; var laydate = layui.laydate; var institutionId = top.restAjax.params(window.location.href).institutionId; + var dictId = '0'; var wangEditor = window.wangEditor; var wangEditorObj = {}; @@ -269,11 +278,11 @@ } // 初始化机构成立时间时间戳 - function initInstitutionFoundingTimeDateTime() { + function initInstitutionFoundingTimeDateTime(v) { laydate.render({ elem: '#institutionFoundingTime', - type: 'datetime', - value: new Date(), + type: 'date', + value: v, trigger: 'click' }); } @@ -290,7 +299,13 @@ form.val('dataForm', dataFormData); form.render(null, 'dataForm'); initInstitutionImageUploadFile(); - initInstitutionFoundingTimeDateTime(); + initInstitutionFoundingTimeDateTime(data.institutionFoundingTime); + initMap(data.institutionX,data.institutionY); + initDataDict(dictId,'institutionRegionProvince',data.institutionRegionProvince); + initDataDict(data.institutionRegionProvince,'institutionRegionCity',data.institutionRegionCity); + initDataDict(data.institutionRegionCity,'institutionRegionArea',data.institutionRegionArea); + initDataDict(data.institutionRegionArea,'institutionRegionVillage',data.institutionRegionVillage); + initDataDict(data.institutionRegionVillage,'institutionRegionStreet',data.institutionRegionStreet); }, function(code, data) { top.dialog.msg(data.msg); }, function() { @@ -334,6 +349,103 @@ closeBox(); }); + + //初始化百度地图 + function initMap(longitude, latitude) { + if (longitude == '' || latitude == ''){ + longitude = '109.85017859252311'; + latitude = '40.66017700460503'; + } + map = new BMap.Map("mapContainer", {enableMapClick: false,}); + var point = new BMap.Point(longitude, latitude); + map.centerAndZoom(point, 13); + map.disableDoubleClickZoom(); + map.addControl(new BMap.NavigationControl()); + map.addControl(new BMap.ScaleControl()); + map.addControl(new BMap.OverviewMapControl()); + map.addControl(new BMap.MapTypeControl()); + map.enableScrollWheelZoom();//启用地图滚轮放大缩小 + map.enableContinuousZoom();//开启缩放平滑 + // 点击获取地址 + var geocoder= new BMap.Geocoder(); + mapMarkPoint(map, point); + map.addEventListener("click", function(e) { + map.clearOverlays(); + $('#institutionX').val(e.point.lng); + $('#institutionY').val(e.point.lat); + point = new BMap.Point(e.point.lng, e.point.lat); + mapMarkPoint(map, point); + geocoder.getLocation(e.point, function(rs) { + $('#institutionAddress').val(rs.address); + }); + }); + } + //地图标点 + function mapMarkPoint(map, point) { + var marker = new BMap.Marker(point); + map.addOverlay(marker); + } + + + //c初始化数据字典 + function initDataDict(dictId,tabId,selectVelue){ + if(!dictId){ + return; + } + top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { + $("#"+tabId).empty(); + var html = ''; + if ('institutionRegionProvince' === tabId){ + html += ''; + } + if ('institutionRegionCity' === tabId){ + html += ''; + } + if ('institutionRegionArea' === tabId){ + html += ''; + } + if ('institutionRegionVillage' === tabId){ + html += ''; + } + if ('institutionRegionStreet' === tabId){ + html += ''; + } + + $.each(data, function (index, item) { + if(selectVelue == item.areaId){ + html += ''; + }else{ + html += ''; + } + }); + $("#"+tabId).append(html); + form.render('select'); + }); + } + + //省监听事件 + form.on('select(institutionRegionProvince)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionCity'); + }); + //市监听事件 + form.on('select(institutionRegionCity)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionArea'); + }); + //区监听事件 + form.on('select(institutionRegionArea)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionVillage'); + }); + //镇、村监听事件 + form.on('select(institutionRegionVillage)', function(data){ + var v = data.value; + initDataDict(v,'institutionRegionStreet'); + }); + + + // 校验 form.verify({ }); diff --git a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/api/organization/OrganizationController.java b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/api/organization/OrganizationController.java index 178722b..ef9efcb 100644 --- a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/api/organization/OrganizationController.java +++ b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/api/organization/OrganizationController.java @@ -1,5 +1,6 @@ package cn.com.tenlion.organizationmanagement.controller.api.organization; +import cn.com.tenlion.organizationmanagement.service.organization.IOrganizationService; import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; import ink.wgink.interfaces.consts.ISystemConstant; @@ -10,7 +11,7 @@ import ink.wgink.pojo.result.SuccessResultData; import ink.wgink.pojo.result.SuccessResultList; import cn.com.tenlion.organizationmanagement.pojo.dtos.organization.OrganizationDTO; import cn.com.tenlion.organizationmanagement.pojo.vos.organization.OrganizationVO; -import cn.com.tenlion.organizationmanagement.service.organization.IOrganizationService; +import cn.com.tenlion.organizationmanagement.service.organization.OrganizationApi; import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; diff --git a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/route/organization/OrganizationRouteController.java b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/route/organization/OrganizationRouteController.java index 476bf91..0ffd199 100644 --- a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/route/organization/OrganizationRouteController.java +++ b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/controller/route/organization/OrganizationRouteController.java @@ -2,16 +2,10 @@ package cn.com.tenlion.organizationmanagement.controller.route.organization; import ink.wgink.common.base.DefaultBaseController; import ink.wgink.interfaces.consts.ISystemConstant; -import cn.com.tenlion.organizationmanagement.service.organization.IOrganizationService; import io.swagger.annotations.*; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; -import java.util.Arrays; -import java.util.List; -import java.util.Map; - /** * @ClassName: OrganizationController * @Description: 组织管理 diff --git a/interface-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/IOrganizationService.java b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/IOrganizationService.java similarity index 100% rename from interface-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/IOrganizationService.java rename to module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/IOrganizationService.java diff --git a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/impl/OrganizationServiceImpl.java b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/impl/OrganizationServiceImpl.java index fbecee3..3cba978 100644 --- a/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/impl/OrganizationServiceImpl.java +++ b/module-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/service/organization/impl/OrganizationServiceImpl.java @@ -1,17 +1,18 @@ package cn.com.tenlion.organizationmanagement.service.organization.impl; +import cn.com.tenlion.organizationmanagement.dao.organization.IOrganizationDao; +import cn.com.tenlion.organizationmanagement.service.organization.IOrganizationService; import ink.wgink.common.base.DefaultBaseService; import ink.wgink.pojo.ListPage; -import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.util.map.HashMapUtil; import ink.wgink.util.UUIDUtil; -import cn.com.tenlion.organizationmanagement.dao.organization.IOrganizationDao; + import cn.com.tenlion.organizationmanagement.pojo.dtos.organization.OrganizationDTO; import cn.com.tenlion.organizationmanagement.pojo.vos.organization.OrganizationVO; import cn.com.tenlion.organizationmanagement.pojo.bos.organization.OrganizationBO; import cn.com.tenlion.organizationmanagement.pojo.pos.organization.OrganizationPO; -import cn.com.tenlion.organizationmanagement.service.organization.IOrganizationService; +import cn.com.tenlion.organizationmanagement.service.organization.OrganizationApi; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import org.apache.commons.lang3.StringUtils; @@ -30,7 +31,7 @@ import java.util.*; **/ @Primary @Service -public class OrganizationServiceImpl extends DefaultBaseService implements IOrganizationService { +public class OrganizationServiceImpl extends DefaultBaseService implements IOrganizationService,OrganizationApi { @Autowired private IOrganizationDao organizationDao; diff --git a/module-organization-management/src/main/resources/mybatis/mapper/organization/organization-mapper.xml b/module-organization-management/src/main/resources/mybatis/mapper/organization/organization-mapper.xml index d6f3a9a..01726b0 100644 --- a/module-organization-management/src/main/resources/mybatis/mapper/organization/organization-mapper.xml +++ b/module-organization-management/src/main/resources/mybatis/mapper/organization/organization-mapper.xml @@ -9,6 +9,7 @@ + @@ -20,6 +21,7 @@ + @@ -34,6 +36,7 @@ + @@ -43,13 +46,14 @@ - INSERT INTO organization( + INSERT INTO m_organization( organization_id, organization_name, organization_user_num, organization_principal, organization_desc, organization_image, + organization_type, creator, gmt_create, modifier, @@ -62,6 +66,7 @@ #{organizationPrincipal}, #{organizationDesc}, #{organizationImage}, + #{organizationType}, #{creator}, #{gmtCreate}, #{modifier}, @@ -73,7 +78,7 @@ UPDATE - organization + m_organization SET gmt_modified = #{gmtModified}, modifier = #{modifier}, @@ -88,7 +93,7 @@ DELETE FROM - organization + m_organization WHERE organization_id IN @@ -99,13 +104,16 @@ UPDATE - organization + m_organization SET organization_name = #{organizationName}, organization_user_num = #{organizationUserNum}, organization_principal = #{organizationPrincipal}, organization_desc = #{organizationDesc}, organization_image = #{organizationImage}, + + organization_type = #{organizationType}, + gmt_modified = #{gmtModified}, modifier = #{modifier} WHERE @@ -120,15 +128,16 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.organization_id FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 - - AND + + AND t1.organization_id = #{organizationId} - + @@ -140,19 +149,20 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 - - AND + + AND t1.organization_id = #{organizationId} - + @@ -164,19 +174,20 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 - - AND + + AND t1.organization_id = #{organizationId} - + @@ -188,10 +199,11 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.creator, t1.gmt_create FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 @@ -214,6 +226,10 @@ #{organizationIds[${index}]} + + + AND + t1.organization_type = #{organizationType} ORDER BY t1.gmt_create DESC @@ -227,13 +243,14 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 @@ -257,6 +274,10 @@ #{organizationIds[${index}]} + + AND + t1.organization_type = #{organizationType} + ORDER BY t1.gmt_create DESC @@ -269,13 +290,14 @@ t1.organization_principal, t1.organization_desc, t1.organization_image, + t1.organization_type, t1.creator, t1.gmt_create, t1.modifier, t1.gmt_modified, t1.is_delete FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 @@ -299,6 +321,10 @@ #{organizationIds[${index}]} + + AND + t1.organization_type = #{organizationType} + ORDER BY t1.gmt_create DESC @@ -307,7 +333,7 @@ SELECT COUNT(*) FROM - organization t1 + m_organization t1 WHERE t1.is_delete = 0 diff --git a/module-organization-management/src/main/resources/templates/organization/list.html b/module-organization-management/src/main/resources/templates/organization/list.html index 76aafbc..8585685 100644 --- a/module-organization-management/src/main/resources/templates/organization/list.html +++ b/module-organization-management/src/main/resources/templates/organization/list.html @@ -9,6 +9,7 @@ +
@@ -86,6 +87,26 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, + {field: 'organizationImage', width: 180, title: '组织图片', align:'center', + templet: function(row) { + var rowData = row[this.field]; + if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { + return '-'; + } + var value='
    '; + var datas = rowData.split(','); + for(var i = 0, item = datas[i]; item = datas[i++];) { + value += '
  • 图片1
  • '; + } + value += '
'; + setTimeout(function() { + new Viewer(document.getElementById("viewer"),{ + loop:true + }); + }, 50); + return value; + } + }, {field: 'organizationName', width: 180, title: '组织名称', align:'center', templet: function(row) { var rowData = row[this.field]; @@ -122,41 +143,7 @@ return rowData; } }, - {field: 'organizationImage', width: 180, title: '组织图片', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - var downloadFile = ''; - var datas = rowData.split(','); - for(var i = 0, item = datas[i]; item = datas[i++];) { - if(downloadFile.length > 0) { - downloadFile += ' | '; - } - downloadFile += '点击下载' - } - return downloadFile; - } - }, - {field: '创建人', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: '创建时间', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, + ] ], page: true, diff --git a/module-organization-management/src/main/resources/templates/organization/save.html b/module-organization-management/src/main/resources/templates/organization/save.html index a74efad..4edd1c6 100644 --- a/module-organization-management/src/main/resources/templates/organization/save.html +++ b/module-organization-management/src/main/resources/templates/organization/save.html @@ -10,6 +10,20 @@ +
@@ -25,13 +39,13 @@
- +
- +
diff --git a/module-organization-management/src/main/resources/templates/organization/update.html b/module-organization-management/src/main/resources/templates/organization/update.html index f6a56d2..163dc52 100644 --- a/module-organization-management/src/main/resources/templates/organization/update.html +++ b/module-organization-management/src/main/resources/templates/organization/update.html @@ -10,6 +10,20 @@ +
@@ -25,13 +39,13 @@
- +
- +
diff --git a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/bos/institution/InstitutionBO.java b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/bos/institution/InstitutionBO.java index efeeb71..f64a5b2 100644 --- a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/bos/institution/InstitutionBO.java +++ b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/bos/institution/InstitutionBO.java @@ -25,6 +25,7 @@ public class InstitutionBO { private String institutionRegionArea; private String institutionRegionVillage; private String institutionRegionStreet; + private String institutionType; private String creator; private String gmtCreate; private String modifier; @@ -192,4 +193,11 @@ public class InstitutionBO { } + public String getInstitutionType() { + return institutionType; + } + + public void setInstitutionType(String institutionType) { + this.institutionType = institutionType; + } } diff --git a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/dtos/institution/InstitutionDTO.java b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/dtos/institution/InstitutionDTO.java index 141c49e..1d4cb6d 100644 --- a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/dtos/institution/InstitutionDTO.java +++ b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/dtos/institution/InstitutionDTO.java @@ -44,9 +44,11 @@ public class InstitutionDTO { private String institutionRegionVillage; @ApiModelProperty(name = "institutionRegionStreet", value = "行政区化-街") private String institutionRegionStreet; - @ApiModelProperty(name = "creator", value = "") + @ApiModelProperty(name = "institutionType", value = "机构类型") + private String institutionType; + @ApiModelProperty(name = "creator", value = "创建人") private String creator; - @ApiModelProperty(name = "gmtCreate", value = "") + @ApiModelProperty(name = "gmtCreate", value = "创建时间") private String gmtCreate; public String getInstitutionId() { @@ -185,5 +187,11 @@ public class InstitutionDTO { this.gmtCreate = gmtCreate; } + public String getInstitutionType() { + return institutionType; + } + public void setInstitutionType(String institutionType) { + this.institutionType = institutionType; + } } diff --git a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/pos/institution/InstitutionPO.java b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/pos/institution/InstitutionPO.java index 8ed15b3..b1399af 100644 --- a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/pos/institution/InstitutionPO.java +++ b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/pos/institution/InstitutionPO.java @@ -25,6 +25,7 @@ public class InstitutionPO { private String institutionRegionArea; private String institutionRegionVillage; private String institutionRegionStreet; + private String institutionType; private String creator; private String gmtCreate; private String modifier; @@ -192,4 +193,11 @@ public class InstitutionPO { } + public String getInstitutionType() { + return institutionType; + } + + public void setInstitutionType(String institutionType) { + this.institutionType = institutionType; + } } diff --git a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/vos/institution/InstitutionVO.java b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/vos/institution/InstitutionVO.java index cd0cea3..ce3747d 100644 --- a/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/vos/institution/InstitutionVO.java +++ b/pojo-institution-management/src/main/java/cn/com/tenlion/institutionmanagement/pojo/vos/institution/InstitutionVO.java @@ -29,7 +29,6 @@ public class InstitutionVO { @ApiModelProperty(name = "institutionY", value = "机构纬度") private String institutionY; @ApiModelProperty(name = "institutionFoundingTime", value = "机构成立时间") - @CheckEmptyAnnotation(name = "机构成立时间", verifyType = "datetime") private String institutionFoundingTime; @ApiModelProperty(name = "institutionPrincipal", value = "机构负责人") private String institutionPrincipal; @@ -45,6 +44,8 @@ public class InstitutionVO { private String institutionRegionVillage; @ApiModelProperty(name = "institutionRegionStreet", value = "行政区化-街") private String institutionRegionStreet; + @ApiModelProperty(name = "institutionType", value = "机构类型") + private String institutionType; public String getInstitutionName() { return institutionName == null ? "" : institutionName.trim(); @@ -158,5 +159,11 @@ public class InstitutionVO { this.institutionRegionStreet = institutionRegionStreet; } + public String getInstitutionType() { + return institutionType; + } + public void setInstitutionType(String institutionType) { + this.institutionType = institutionType; + } } diff --git a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/bos/organization/OrganizationBO.java b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/bos/organization/OrganizationBO.java index 82e793d..c895ada 100644 --- a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/bos/organization/OrganizationBO.java +++ b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/bos/organization/OrganizationBO.java @@ -16,6 +16,7 @@ public class OrganizationBO { private String organizationPrincipal; private String organizationDesc; private String organizationImage; + private String organizationType; private String creator; private String gmtCreate; private String modifier; @@ -111,4 +112,11 @@ public class OrganizationBO { } + public String getOrganizationType() { + return organizationType; + } + + public void setOrganizationType(String organizationType) { + this.organizationType = organizationType; + } } diff --git a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/dtos/organization/OrganizationDTO.java b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/dtos/organization/OrganizationDTO.java index ca5e1a8..593debf 100644 --- a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/dtos/organization/OrganizationDTO.java +++ b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/dtos/organization/OrganizationDTO.java @@ -26,9 +26,11 @@ public class OrganizationDTO { private String organizationDesc; @ApiModelProperty(name = "organizationImage", value = "组织图片") private String organizationImage; - @ApiModelProperty(name = "creator", value = "") + @ApiModelProperty(name = "organizationType", value = "组织类型") + private String organizationType; + @ApiModelProperty(name = "creator", value = "创建人") private String creator; - @ApiModelProperty(name = "gmtCreate", value = "") + @ApiModelProperty(name = "gmtCreate", value = "创建时间") private String gmtCreate; public String getOrganizationId() { @@ -96,4 +98,11 @@ public class OrganizationDTO { } + public String getOrganizationType() { + return organizationType; + } + + public void setOrganizationType(String organizationType) { + this.organizationType = organizationType; + } } diff --git a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/pos/organization/OrganizationPO.java b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/pos/organization/OrganizationPO.java index 83b751e..897df12 100644 --- a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/pos/organization/OrganizationPO.java +++ b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/pos/organization/OrganizationPO.java @@ -16,6 +16,7 @@ public class OrganizationPO { private String organizationPrincipal; private String organizationDesc; private String organizationImage; + private String organizationType; private String creator; private String gmtCreate; private String modifier; @@ -111,4 +112,11 @@ public class OrganizationPO { } + public String getOrganizationType() { + return organizationType; + } + + public void setOrganizationType(String organizationType) { + this.organizationType = organizationType; + } } diff --git a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/vos/organization/OrganizationVO.java b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/vos/organization/OrganizationVO.java index 679044c..4fec965 100644 --- a/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/vos/organization/OrganizationVO.java +++ b/pojo-organization-management/src/main/java/cn/com/tenlion/organizationmanagement/pojo/vos/organization/OrganizationVO.java @@ -19,7 +19,6 @@ public class OrganizationVO { @ApiModelProperty(name = "organizationName", value = "组织名称") private String organizationName; @ApiModelProperty(name = "organizationUserNum", value = "组织人员数量") - @CheckNumberAnnotation(name = "组织人员数量") private Integer organizationUserNum; @ApiModelProperty(name = "organizationPrincipal", value = "组织负责人") private String organizationPrincipal; @@ -27,6 +26,8 @@ public class OrganizationVO { private String organizationDesc; @ApiModelProperty(name = "organizationImage", value = "组织图片") private String organizationImage; + @ApiModelProperty(name = "organizationType", value = "组织类型") + private String organizationType; public String getOrganizationName() { return organizationName == null ? "" : organizationName.trim(); @@ -68,5 +69,11 @@ public class OrganizationVO { this.organizationImage = organizationImage; } + public String getOrganizationType() { + return organizationType; + } + public void setOrganizationType(String organizationType) { + this.organizationType = organizationType; + } }