'提交代码'

dev-discount
胡锐 3 years ago
parent f1d8b83666
commit ac908d5de7
  1. 2
      hai-cweb/src/main/resources/dev/application.yml
  2. 3
      hai-service/src/main/java/com/hai/service/impl/HighDiscountServiceImpl.java

@ -9,7 +9,7 @@ debug: false
#datasource数据源设置
spring:
datasource:
url: jdbc:mysql://139.159.177.244:3306/hfkj?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url: jdbc:mysql://139.159.177.244:3306/hsg_pre?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: HF123456.
type: com.alibaba.druid.pool.DruidDataSource

@ -53,6 +53,9 @@ public class HighDiscountServiceImpl implements HighDiscountService {
if (MapUtils.getInteger(map, "discountType") != null) {
criteria.andDiscountTypeEqualTo(MapUtils.getInteger(map, "discountType"));
}
if (MapUtils.getLong(map, "companyId") != null) {
criteria.andCompanyIdEqualTo(MapUtils.getLong(map, "companyId"));
}
example.setOrderByClause("update_time desc");
return highDiscountMapper.selectByExample(example);

Loading…
Cancel
Save