Commit 7aae7e5a by duanhq

修复启动报错 by duanht 2019/2/23

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17662 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 2590396e
...@@ -1162,7 +1162,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1162,7 +1162,7 @@ public class OrderServiceImpl implements IOrderService {
ServiceItemScale serviceItemScale = new ServiceItemScale(); ServiceItemScale serviceItemScale = new ServiceItemScale();
Date now = DateUtil.getCurrentDate(); Date now = DateUtil.getCurrentDate();
// “d”,今日;“w”,本周;“m",本月;"y".本年 // “d”,今日;“w”,本周;“m",本月;"y".本年
if (StringUtils.isEmpty(selectType)) { if (!StringUtils.isEmpty(selectType)) {
if ("d".equals(selectType)) { if ("d".equals(selectType)) {
dateStart = DateUtil.formatDateYmd(DateUtil.getStartDateOfCurrentDay(now)); dateStart = DateUtil.formatDateYmd(DateUtil.getStartDateOfCurrentDay(now));
} else if ("w".equals(selectType)) { } else if ("w".equals(selectType)) {
......
...@@ -45,7 +45,7 @@ public class CommonServiceImpl implements CommonService { ...@@ -45,7 +45,7 @@ public class CommonServiceImpl implements CommonService {
@Override @Override
public String sendVerificationCode(String phone) { public String sendVerificationCode(String phone) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
String smsKey = Constants.SMS_VERIFY_CODE_PREFIX + "." + phone; String smsKey = Constants.SMS_VERIFY_CODE_PREFIX + ":" + phone;
String smsCode = StringUtils.generateRandomCode(true, 4); String smsCode = StringUtils.generateRandomCode(true, 4);
redisCacheUtil.setCacheObject(smsKey, smsCode, Constants.SMS_VERIFY_CODE_TIMEOUT, TimeUnit.SECONDS); redisCacheUtil.setCacheObject(smsKey, smsCode, Constants.SMS_VERIFY_CODE_TIMEOUT, TimeUnit.SECONDS);
//redisTemplate.opsForValue().set(smsKey, smsCode, Constants.SMS_VERIFY_CODE_TIMEOUT, TimeUnit.SECONDS); //redisTemplate.opsForValue().set(smsKey, smsCode, Constants.SMS_VERIFY_CODE_TIMEOUT, TimeUnit.SECONDS);
......
...@@ -95,6 +95,12 @@ ...@@ -95,6 +95,12 @@
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version> <version>${slf4j.version}</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.6.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!