Commit 6109c59e authored by 王夏晖's avatar 王夏晖

晚上项目信息列表

parent 2b2e87a1
...@@ -39,16 +39,20 @@ public interface ProjectRepository extends BaseMapper<BusProject> { ...@@ -39,16 +39,20 @@ public interface ProjectRepository extends BaseMapper<BusProject> {
* @return * @return
*/ */
@Select("<script>SELECT\n" + @Select("<script>SELECT\n" +
"\ta.*,e.SYS_NM,b.BLD_TP_NM,c.OWN_NM,d1.TEAM_NM TEAM_NM_ON,d2.TEAM_NM TEAM_NM_OFF\n" + "\ta.*,e.SYS_NM,b.BLD_TP_NM,c.OWN_NM,d1.TEAM_NM TEAM_NM_ON,d2.TEAM_NM TEAM_NM_OFF," +
"s1.EXAMINER SAVEING_COST_NM,s2.EXAMINER SAVEING_ENERGY_NM\n" +
"FROM bus_project a \n" + "FROM bus_project a \n" +
"LEFT JOIN bus_build_tp b ON a.BLD_TP_ID = b.BLD_TP_ID\n" + "LEFT JOIN bus_build_tp b ON a.BLD_TP_ID = b.BLD_TP_ID\n" +
"LEFT JOIN sys_owner c ON a.OWN_ID = c.OWN_ID\n" + "LEFT JOIN sys_owner c ON a.OWN_ID = c.OWN_ID\n" +
"LEFT JOIN bus_team d1 on a.TEAM_ID_ON = d1.TEAM_ID\n" + "LEFT JOIN bus_team d1 on a.TEAM_ID_ON = d1.TEAM_ID\n" +
"LEFT JOIN bus_team d2 on a.TEAM_ID_OFF = d2.TEAM_ID\n" + "LEFT JOIN bus_team d2 on a.TEAM_ID_OFF = d2.TEAM_ID\n" +
"LEFT JOIN bus_system e on a.PRO_ID = e.PRO_ID\n" + "LEFT JOIN bus_system e on a.PRO_ID = e.PRO_ID\n" +
"LEFT JOIN bus_saving s1 on a.SAVEING_COST = s1.ID\n" +
"LEFT JOIN bus_saving s2 on a.SAVEING_ENERGY = s2.ID\n" +
"where 1=1 " + "where 1=1 " +
"<if test =' proId != null '> and a.pro_id = #{proId}</if>" + "<if test =' proId != null '> and a.pro_id = #{proId}</if>" +
"<if test =' jwnum != null '> and a.jwnum = #{jwnum}</if>" + "<if test =' jwnum != null '> and a.jwnum = #{jwnum}</if>" +
"<if test =' saveFlag != null '> and a.SAVE_FLAG = #{saveFlag}</if>" +
"</script>") "</script>")
List<Map<String,Object>> queryBusProjects(BusProject busProject); List<Map<String,Object>> queryBusProjects(BusProject busProject);
} }
......
...@@ -194,7 +194,7 @@ public class BusProjectServiceImpl implements BusProjectService { ...@@ -194,7 +194,7 @@ public class BusProjectServiceImpl implements BusProjectService {
*/ */
public List<Map<String,Object>> findAllByPagination(PageUtil<BusProject> paginationUtility, public List<Map<String,Object>> findAllByPagination(PageUtil<BusProject> paginationUtility,
BusProject busProject){ BusProject busProject){
return projectRepository.queryBusProjects(null); return projectRepository.queryBusProjects(busProject);
} }
@Override @Override
......
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