12 changed files with 62 additions and 144 deletions
@ -1,24 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.easy.admin.modules.huzhou.dao.HuzhouPeriodicallabMapper"> |
|||
<resultMap id="countPageMap" type="com.easy.admin.modules.huzhou.vo.PeriodicallabCountPage"> |
|||
<result property="workplace" column="workplace" jdbcType="VARCHAR"/> |
|||
<result property="adminDivision" column="adminDivision" jdbcType="VARCHAR"/> |
|||
<result property="number" column="number" jdbcType="NUMERIC"/> |
|||
</resultMap> |
|||
|
|||
<select id="getPeriodicalCountPage" resultMap="countPageMap"> |
|||
select COUNT(*) as number,duty_workplace as workplace,admin_division as adminDivision from huzhou_periodicallab |
|||
<where> |
|||
<if test="info.adminDivision!=null and info.adminDivision!=''"> |
|||
<bind name="tempStr" value="'%' + info.adminDivision + '%'" /> |
|||
and u.admin_division like #{tempStr} |
|||
</if> |
|||
<if test="info.workplace!=null and info.workplace!=''"> |
|||
<bind name="tempStr1" value="'%' + info.workplace + '%'" /> |
|||
and u.duty_workplace like #{tempStr1} |
|||
</if> |
|||
</where> |
|||
group by duty_workplace,adminDivision |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,26 @@ |
|||
package com.easy.admin.modules.huzhou.vo; |
|||
|
|||
|
|||
import lombok.Builder; |
|||
import lombok.Data; |
|||
import lombok.experimental.Accessors; |
|||
|
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
@Accessors(chain = true) |
|||
@Builder(toBuilder = true) |
|||
public class PeriodicallabPageOV { |
|||
private String id; |
|||
|
|||
/** |
|||
* 期刊名称 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 期数 |
|||
*/ |
|||
private String periods; |
|||
|
|||
private Date publishTime; |
|||
} |
Loading…
Reference in new issue