Browse Source

[fix] 销售管理

修复客户资料录入时间不能正常筛选数据问题:修改客户资料后端分页接口
dev
liuxiaoxu 3 months ago
parent
commit
0507f7602c
  1. 2
      ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml
  2. 3
      ruoyi-admin/src/main/resources/templates/system/customer/customer.html

2
ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml

@ -119,7 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="customerPurser != null and customerPurser != ''"> and s.customer_purser like concat('%', #{customerPurser}, '%')</if> <if test="customerPurser != null and customerPurser != ''"> and s.customer_purser like concat('%', #{customerPurser}, '%')</if>
<if test="customerAbbreviation != null and customerAbbreviation != ''"> and s.customer_abbreviation like concat('%', #{customerAbbreviation}, '%')</if> <if test="customerAbbreviation != null and customerAbbreviation != ''"> and s.customer_abbreviation like concat('%', #{customerAbbreviation}, '%')</if>
<if test="deliveryAddress != null and deliveryAddress != ''"> and s.delivery_address like concat('%', #{deliveryAddress}, '%')</if> <if test="deliveryAddress != null and deliveryAddress != ''"> and s.delivery_address like concat('%', #{deliveryAddress}, '%')</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and s.first_add_time between #{params.beginCreateTime} and #{params.endCreateTime}</if> <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test="customerSign != null and customerSign != ''"> and s.customer_sign = #{customerSign}</if> <if test="customerSign != null and customerSign != ''"> and s.customer_sign = #{customerSign}</if>
</where> </where>
order by s.audit_status asc, s.create_time desc order by s.audit_status asc, s.create_time desc

3
ruoyi-admin/src/main/resources/templates/system/customer/customer.html

@ -545,9 +545,6 @@
}, },
{title: '录入时间',field: 'createTime', {title: '录入时间',field: 'createTime',
sortable: true, sortable: true,
formatter: function (value, row, index) {
if (value == null) {return " ";} else { return value;}
}
}, },
{title: '上次修改时间',field: 'updateTime',}, {title: '上次修改时间',field: 'updateTime',},
{title: '操作',align: 'center', {title: '操作',align: 'center',

Loading…
Cancel
Save