Browse Source

Merge branch 'feature/dev_point_manage'

feature/teamB_zz_wgh
wanggongfeng 3 years ago
parent
commit
f7ddf9a38c
  1. 5
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/MapInfoFormDTO.java
  2. 5
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcPointAppController.java
  3. 1
      epmet-user/epmet-user-server/src/main/resources/mapper/IcPointNucleicMonitoringDao.xml
  4. 1
      epmet-user/epmet-user-server/src/main/resources/mapper/IcPointVaccinesInoculationDao.xml

5
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/MapInfoFormDTO.java

@ -41,6 +41,11 @@ public class MapInfoFormDTO implements Serializable {
*/
private String name;
/**
* 客户ID
*/
private String customerId;
}

5
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcPointAppController.java

@ -1,5 +1,7 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.commons.tools.validator.group.AddGroup;
@ -33,9 +35,10 @@ public class IcPointAppController {
* @return
*/
@PostMapping("getMapInfoByPointType")
public Result<List<MapInfoResultDTO>> getMapInfoByPointType(@RequestBody MapInfoFormDTO formDTO){
public Result<List<MapInfoResultDTO>> getMapInfoByPointType(@RequestBody MapInfoFormDTO formDTO, @LoginUser TokenDto tokenDto){
// 效验数据
ValidatorUtils.validateEntity(formDTO, AddGroup.class, DefaultGroup.class);
formDTO.setCustomerId(tokenDto.getCustomerId());
return icPointAppService.getMapInfoByPointType(formDTO);
}

1
epmet-user/epmet-user-server/src/main/resources/mapper/IcPointNucleicMonitoringDao.xml

@ -127,6 +127,7 @@
LATITUDE
from ic_point_nucleic_monitoring
where DEL_FLAG = 0
and CUSTOMER_ID = #{customerId}
<if test="name != null and name != ''">
and NAME like CONCAT('%' ,#{name}, '%')
</if>

1
epmet-user/epmet-user-server/src/main/resources/mapper/IcPointVaccinesInoculationDao.xml

@ -139,6 +139,7 @@
LATITUDE
from ic_point_vaccines_inoculation
where DEL_FLAG = 0
and CUSTOMER_ID = #{customerId}
<if test="name != null and name != ''">
and NAME like CONCAT('%' ,#{name}, '%')
</if>

Loading…
Cancel
Save