Browse Source

Merge remote-tracking branch 'origin/dev_5big_coverage'

master
yinzuomei 3 years ago
parent
commit
53b5c4db37
  1. 5
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/AddCommunitySelfOrganizationFormDTO.java
  2. 5
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/EditCommunitySelfOrganizationFormDTO.java
  3. 5
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/CommunitySelfOrganizationListDTO.java
  4. 5
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/entity/IcCommunitySelfOrganizationEntity.java
  5. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcCommunitySelfOrganizationServiceImpl.java
  6. 1
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.21__selforg_address.sql
  7. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcCommunitySelfOrganizationDao.xml

5
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/AddCommunitySelfOrganizationFormDTO.java

@ -77,6 +77,11 @@ public class AddCommunitySelfOrganizationFormDTO implements Serializable {
*/ */
private String latitude; private String latitude;
/**
* 地址
*/
private String address;
/** /**
* 社区自组织人员 * 社区自组织人员
*/ */

5
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/EditCommunitySelfOrganizationFormDTO.java

@ -72,6 +72,11 @@ public class EditCommunitySelfOrganizationFormDTO implements Serializable {
*/ */
private String latitude; private String latitude;
/**
* 地址
*/
private String address;
/** /**
* 备注 * 备注
*/ */

5
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/CommunitySelfOrganizationListDTO.java

@ -87,6 +87,11 @@ public class CommunitySelfOrganizationListDTO implements Serializable {
*/ */
private String latitude; private String latitude;
/**
* 地址
*/
private String address;
/** /**
* 社区自组织ID * 社区自组织ID
*/ */

5
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/entity/IcCommunitySelfOrganizationEntity.java

@ -107,6 +107,11 @@ public class IcCommunitySelfOrganizationEntity extends BaseEpmetEntity {
*/ */
private String latitude; private String latitude;
/**
* 地址
*/
private String address;
/** /**
* 备注 * 备注
*/ */

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcCommunitySelfOrganizationServiceImpl.java

@ -605,7 +605,7 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo
} }
});*/ });*/
persons = ConvertUtils.sourceToTarget(l.getPersons(), IcCommunitySelfOrganizationPersonnelEntity.class); persons = ConvertUtils.sourceToTarget(l.getPersons(), IcCommunitySelfOrganizationPersonnelEntity.class);
Map<String, List<IcCommunitySelfOrganizationPersonnelEntity>> groupByPhone = persons.stream().collect(Collectors.groupingBy(IcCommunitySelfOrganizationPersonnelEntity::getPersonPhone)); Map<String, List<IcCommunitySelfOrganizationPersonnelEntity>> groupByPhone = CollectionUtils.isNotEmpty(persons) ? persons.stream().collect(Collectors.groupingBy(IcCommunitySelfOrganizationPersonnelEntity::getPersonPhone)) : new HashMap<>();
List<String> phones = new ArrayList<>(); List<String> phones = new ArrayList<>();
groupByPhone.forEach((k,v) -> { groupByPhone.forEach((k,v) -> {
if (v.size() > NumConstant.ONE){ if (v.size() > NumConstant.ONE){

1
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.21__selforg_address.sql

@ -0,0 +1 @@
alter TABLE ic_community_self_organization add COLUMN ADDRESS VARCHAR(256) COMMENT '地址' AFTER LATITUDE;

4
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcCommunitySelfOrganizationDao.xml

@ -17,7 +17,8 @@
REMARK = #{remark}, REMARK = #{remark},
UPDATED_TIME = NOW(), UPDATED_TIME = NOW(),
UPDATED_BY = #{updatedBy}, UPDATED_BY = #{updatedBy},
CATEGORY_CODE =#{categoryCode} CATEGORY_CODE =#{categoryCode},
ADDRESS = #{address}
WHERE DEL_FLAG = 0 WHERE DEL_FLAG = 0
AND ID = #{orgId} AND ID = #{orgId}
</update> </update>
@ -60,6 +61,7 @@
so.SERVICE_ITEM AS serviceItem, so.SERVICE_ITEM AS serviceItem,
so.LONGITUDE AS longitude, so.LONGITUDE AS longitude,
so.LATITUDE AS latitude, so.LATITUDE AS latitude,
so.ADDRESS as address,
so.ID as orgId, so.ID as orgId,
so.remark so.remark
FROM ic_community_self_organization so FROM ic_community_self_organization so

Loading…
Cancel
Save