Browse Source

pagequery接口修改,去除总记录数sql

dev_shibei_match
yinzuomei 5 years ago
parent
commit
e2dcfeb675
  1. 9
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/dao/CustomerDao.java
  2. 12
      epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

9
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/dao/CustomerDao.java

@ -68,15 +68,6 @@ public interface CustomerDao extends BaseDao<CustomerEntity> {
**/
List<CustomerResultDTO> selectCustomerList(@Param("customerName") String customerName);
/**
* @return int
* @param customerName
* @author yinzuomei
* @description 查询有效客户数据(不区分是否在有效期内)按名称模糊查询 - 总记录数
* @Date 2020/8/5 11:02
**/
int selectCountByCustomerName(@Param("customerName") String customerName);
/**
* desc获取未删除的所有用户
* @return

12
epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

@ -71,18 +71,6 @@
</if>
</select>
<select id="selectCountByCustomerName" parameterType="map" resultType="java.lang.Integer">
SELECT
count(id) as total
FROM
customer
WHERE
del_flag = '0'
<if test='customerName != "" and customerName != null'>
AND customer_name LIKE concat('%', trim(#{customerName}), '%')
</if>
</select>
<select id="getAllList" resultMap="customerMap">
SELECT
*

Loading…
Cancel
Save