Commit 3dff6727 authored by chenzhao's avatar chenzhao

修改bug

parent cfed33b1
...@@ -32,7 +32,7 @@ public interface FirefightersMapper extends BaseMapper<Firefighters> { ...@@ -32,7 +32,7 @@ public interface FirefightersMapper extends BaseMapper<Firefighters> {
List<FirefightersTreeDto> getFirefightersJobTitleCount(); List<FirefightersTreeDto> getFirefightersJobTitleCount();
List<String> getFirefightersName( ); List<Map<String,String>> getFirefightersName( );
List<FirefightersExcelDto> exportToExcel(Boolean isDelete, String name, String postQualification, String fireTeamId, List<FirefightersExcelDto> exportToExcel(Boolean isDelete, String name, String postQualification, String fireTeamId,
String state, String areasExpertise, String jobTitle); String state, String areasExpertise, String jobTitle);
......
...@@ -159,9 +159,10 @@ WHERE ...@@ -159,9 +159,10 @@ WHERE
<if test='jobTitle!=null'>and f.job_title_code = #{jobTitle}</if> <if test='jobTitle!=null'>and f.job_title_code = #{jobTitle}</if>
</select> </select>
<select id="getFirefightersName" resultType="string"> <select id="getFirefightersName" resultType="Map">
SELECT SELECT
cb_firefighters.name cb_firefighters.name AS name,
cb_firefighters.mobile_phone AS phone
FROM FROM
cb_firefighters cb_firefighters
WHERE WHERE
......
...@@ -36,7 +36,7 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> { ...@@ -36,7 +36,7 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
List<AlertCalledTodyDto> getTodayAlertCalled(); List<AlertCalledTodyDto> getTodayAlertCalled();
List<String> getContactName( ); List<Map<String,String>> getContactName( );
List<String> getAddress(); List<String> getAddress();
......
...@@ -232,9 +232,10 @@ ...@@ -232,9 +232,10 @@
</select> </select>
<select id="getContactName" resultType="string"> <select id="getContactName" resultType="Map">
SELECT SELECT
jc_alert_called.contact_user jc_alert_called.contact_user AS name,
jc_alert_called.contact_phone AS phone
FROM FROM
jc_alert_called jc_alert_called
WHERE WHERE
......
...@@ -124,7 +124,7 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi ...@@ -124,7 +124,7 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
return menus; return menus;
} }
public List<String> getFirefightersName() { public List<Map<String,String>> getFirefightersName() {
return firefightersMapper.getFirefightersName(); return firefightersMapper.getFirefightersName();
......
...@@ -362,7 +362,7 @@ public class AlertCalledController extends BaseController { ...@@ -362,7 +362,7 @@ public class AlertCalledController extends BaseController {
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getAmosId", method = RequestMethod.GET) @RequestMapping(value = "/getAmosId", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "警情填报联系人模糊查询", notes = "警情填报联系人模糊查询") @ApiOperation(httpMethod = "GET", value = "警情填报联系人模糊查询", notes = "警情填报联系人模糊查询")
public ResponseModel< List<String>> getContact ( ) { public ResponseModel< List<Map<String,String>>> getContact ( ) {
return ResponseHelper.buildResponse(iAlertCalledService.getContactName()); return ResponseHelper.buildResponse(iAlertCalledService.getContactName());
} }
......
...@@ -797,9 +797,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal ...@@ -797,9 +797,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
} }
/*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 开始*/ /*2304 地址 联系人模糊查询缺失 陈召 2021-09-23 开始*/
public List<String> getContactName() { public List<Map<String,String>> getContactName() {
List<String> firefightersName = firefightersService.getFirefightersName(); List<Map<String,String>> firefightersName = firefightersService.getFirefightersName();
List<String> contactNames = alertCalledMapper.getContactName(); List<Map<String,String>> contactNames = alertCalledMapper.getContactName();
firefightersName.addAll(contactNames); firefightersName.addAll(contactNames);
return firefightersName; return firefightersName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment