Commit efc77cc7 authored by suichenguang's avatar suichenguang

11

parent 885a85bb
...@@ -94,7 +94,9 @@ public class LogApi { ...@@ -94,7 +94,9 @@ public class LogApi {
@RequestMapping("selectAnalysisData") @RequestMapping("selectAnalysisData")
public List<Map<String,Object>> selectAnalysisData(@RequestParam("uploadDate")String uploadDate){ public List<Map<String,Object>> selectAnalysisData(@RequestParam("uploadDate")String uploadDate){
System.out.println("1111111111111111111111"+uploadDate); System.out.println("1111111111111111111111"+uploadDate);
List<Map<String,Object>> resultList = logService.selectAnalysisData(uploadDate); System.out.println("22222222222222222222222222"+replaceDate(uploadDate));
List<Map<String,Object>> resultList = logService.selectAnalysisData(replaceDate(uploadDate));
return resultList; return resultList;
} }
...@@ -140,7 +142,7 @@ public class LogApi { ...@@ -140,7 +142,7 @@ public class LogApi {
* @return * @return
*/ */
private String replaceDate(String str){ private String replaceDate(String str){
return str.replace("-",""); return str.replace("-","").replace(":","").replace(" ","");
} }
} }
...@@ -13,13 +13,12 @@ public interface LogMapper { ...@@ -13,13 +13,12 @@ public interface LogMapper {
@Select("select distinct FILES.UPLOAD_DATE,PREPRO_PERSON.FILE_ID,PERSON_POST.LATTICE_MOUTH_INFORMATION,FILES.RECORD_NUMBER,FILE_NAME_DIC.FORM_START_TIME,FILE_NAME_DIC.FORM_DEADLINE\n" + @Select("select file_name_dic.upload_date,file_name_dic.FILE_NAME,count(*),\n" +
"from PREPRO_PERSON \n" + "file_name_dic.FORM_START_TIME,file_name_dic.FORM_DEADLINE\n" +
"left join FILES on PREPRO_PERSON.FILE_ID =FILES.ID\n" + "from file_name_dic \n" +
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n" + "left join PERSON_POST on PERSON_POST.FILE_ID=file_name_dic.FILE_ID\n" +
"LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID\n" + "where subStr(file_name_dic.upload_date,0,8) = #{uploadDate} group by file_name_dic.upload_date, file_name_dic.FILE_NAME, file_name_dic.FORM_START_TIME, file_name_dic.FORM_DEADLINE\n" +
"where TO_CHAR(FILES.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss') =#{uploadDate}" + "\n")
"")
public List<Map<String,Object>> selectAnalysisData(@Param("uploadDate") String uploadDate); public List<Map<String,Object>> selectAnalysisData(@Param("uploadDate") String uploadDate);
......
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