Commit a7528b2f authored by suichenguang's avatar suichenguang

制证信息管理2.0

parent 1ff9cf27
...@@ -16,8 +16,17 @@ public class InfoManagementApi { ...@@ -16,8 +16,17 @@ public class InfoManagementApi {
private InfoManagementService infoManagementService; private InfoManagementService infoManagementService;
@RequestMapping("selectInfoManagement") @RequestMapping("selectInfoManagement")
public List<NewFilesEntity>selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate){ public List<NewFilesEntity>selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate){
List<NewFilesEntity> resultList = infoManagementService.selectInfoManagement(beginFileName, endFileName, gajgMc, beginDate, endDate); List<NewFilesEntity> resultList = infoManagementService.selectInfoManagement(beginFileName, endFileName, gajgMc, replaceDate(beginDate), replaceDate(endDate));
return resultList; return resultList;
} }
/**
* 去除字符串中中线
* @param str
* @return
*/
private String replaceDate(String str){
return str.replace("-","");
}
} }
...@@ -21,7 +21,7 @@ public interface InfoManagementMapper { ...@@ -21,7 +21,7 @@ public interface InfoManagementMapper {
"and DWMC=#{gajgMc}\n" + "and DWMC=#{gajgMc}\n" +
"</if>" + "</if>" +
"<if test='beginDate != null '>" + "<if test='beginDate != null '>" +
"and (CREATE_DATE between(#{beginDate})and(#{endDate}))"+ "and (subStr(CREATE_DATE,0,8) between(#{beginDate})and(#{endDate}))"+
"</if>" + "</if>" +
"</script>") "</script>")
public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate); public List<NewFilesEntity> selectInfoManagement(@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate);
......
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