Commit 06979059 authored by dahai's avatar dahai

push

parent 330cb6d6
...@@ -282,6 +282,16 @@ public class ReceiptApi { ...@@ -282,6 +282,16 @@ public class ReceiptApi {
public List<Map<String, Object>> queryReceiptDateByCheckDate(@RequestParam("date") String date) { public List<Map<String, Object>> queryReceiptDateByCheckDate(@RequestParam("date") String date) {
return receiptService.selectReceiptDateByCheckDate(replaceDate(date)); return receiptService.selectReceiptDateByCheckDate(replaceDate(date));
} }
/**
* 查询分局名称
*
* @param policeCode 派出所代码
* @return
*/
@RequestMapping("queryPoliceName")
public List<Map<String, Object>> queryPoliceName(@RequestParam("policeCode") String policeCode) {
return receiptService.queryPoliceName(policeCode);
}
/** /**
* 去除字符串中中线 * 去除字符串中中线
......
...@@ -165,6 +165,11 @@ public interface ReceiptMapper { ...@@ -165,6 +165,11 @@ public interface ReceiptMapper {
"WHERE ACCEPT_NO=#{groupNo}") "WHERE ACCEPT_NO=#{groupNo}")
public Map<String,Object> selectCountTimeT(@Param("groupNo") String groupNo); public Map<String,Object> selectCountTimeT(@Param("groupNo") String groupNo);
@Select("select police_name from (select DISTINCT substr(#{policeCode},4,2)||'0000' POLICE_CODE from POLICE_DIC where substr(#{policeCode},4,2)\n" +
"=substr(POLICE_DIC.POLICE_CODE,5,2) ) p1\n" +
"left join POLICE_DIC on p1.POLICE_CODE = substr(POLICE_DIC.POLICE_CODE,7,6)")
public Map<String,Object> queryPoliceName(@Param("policeCode") String policeCode);
@Select("select \n" + @Select("select \n" +
"prod_trace_t.DOWNLOAD_DATE as downloadDate,\n" + "prod_trace_t.DOWNLOAD_DATE as downloadDate,\n" +
"prod_trace_t.CHECK_DATE as checkDate,\n" + "prod_trace_t.CHECK_DATE as checkDate,\n" +
......
...@@ -40,6 +40,7 @@ public interface ReceiptService { ...@@ -40,6 +40,7 @@ public interface ReceiptService {
public boolean updateFinishCount(String GROUP_NO,int count); public boolean updateFinishCount(String GROUP_NO,int count);
public List<Map<String,Object>> queryPoliceName(String policeCode);
//特证查询是否生成交接单 //特证查询是否生成交接单
public List<Map<String, Object>> selectCountById(@Param("id") String id); public List<Map<String, Object>> selectCountById(@Param("id") String id);
......
...@@ -204,6 +204,12 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -204,6 +204,12 @@ public class ReceiptServiceImpl implements ReceiptService {
return resultMap; return resultMap;
} }
@Override
public List<Map<String, Object>> queryPoliceName(String policeCode) {
receiptMapper.queryPoliceName(policeCode);
return null;
}
private List<Map<String, Object>> formateMap(List<Map<String, Object>> maplist) { private List<Map<String, Object>> formateMap(List<Map<String, Object>> maplist) {
Map<String, Object> typeMap = new LinkedHashMap<>(); Map<String, Object> typeMap = new LinkedHashMap<>();
for (Map o : maplist) { for (Map o : maplist) {
......
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