Commit 10e37776 authored by liboyang's avatar liboyang

新增页面

parent 740c05ff
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.CountyDicEntity;
import com.yxproject.start.service.LogService; import com.yxproject.start.service.LogService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -40,4 +41,10 @@ public class LogApi { ...@@ -40,4 +41,10 @@ public class LogApi {
return result; return result;
} }
@RequestMapping("selectCountyList")
public List<CountyDicEntity> selectCountyList(){
List<CountyDicEntity> list = logService.getCountyList();
return list;
}
} }
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.CountyDicEntity;
import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -43,5 +44,6 @@ public interface LogMapper { ...@@ -43,5 +44,6 @@ public interface LogMapper {
"</script>") "</script>")
public List<Map<String,Object>> selectNewFilesLog(@Param("newFileName") String newFileName, @Param("cardId") String cardId, @Param("createDate") String createDate,@Param("uploadCountyName") String uploadCountyName, @Param("begin") long begin, @Param("end") long end); public List<Map<String,Object>> selectNewFilesLog(@Param("newFileName") String newFileName, @Param("cardId") String cardId, @Param("createDate") String createDate,@Param("uploadCountyName") String uploadCountyName, @Param("begin") long begin, @Param("end") long end);
@Select("select * from COUNTY_DIC")
public List<CountyDicEntity> getCountyListData();
} }
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.CountyDicEntity;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface LogService { public interface LogService {
public List<Map<String,Object>> selectNewFilesLog(String newFileName,String cardId,String createDate,String uploadCountyName,long currPage,long pageSize); public List<Map<String,Object>> selectNewFilesLog(String newFileName,String cardId,String createDate,String uploadCountyName,long currPage,long pageSize);
public List<CountyDicEntity> getCountyList();
} }
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.CountyDicEntity;
import com.yxproject.start.mapper.LogMapper; import com.yxproject.start.mapper.LogMapper;
import com.yxproject.start.service.LogService; import com.yxproject.start.service.LogService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -17,4 +18,10 @@ public class LogServiceImpl implements LogService { ...@@ -17,4 +18,10 @@ public class LogServiceImpl implements LogService {
List<Map<String, Object>> resultMap= logMapper.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyName,currPage * pageSize, (currPage - 1) * pageSize + 1); List<Map<String, Object>> resultMap= logMapper.selectNewFilesLog(newFileName,cardId,createDate,uploadCountyName,currPage * pageSize, (currPage - 1) * pageSize + 1);
return resultMap; return resultMap;
} }
@Override
public List<CountyDicEntity> getCountyList() {
return logMapper.getCountyListData();
}
} }
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