|
|
@@ -79,10 +79,9 @@ public class RateTask {
|
|
|
*/
|
|
|
@Transactional
|
|
|
public void autoRate() {
|
|
|
-
|
|
|
User user = null;
|
|
|
List<User> userUUs = userDao.findUserByUserUU(sysConf.getAdminUU());
|
|
|
- if(CollectionUtils.isEmpty(userUUs)) {
|
|
|
+ if (CollectionUtils.isEmpty(userUUs)) {
|
|
|
throw new IllegalOperatorException("根据配置文件的adminUU 找不到对应的个人信息");
|
|
|
}
|
|
|
user = userUUs.get(0);
|
|
|
@@ -90,7 +89,7 @@ public class RateTask {
|
|
|
user.setEnterprise(enterprise);
|
|
|
SystemSession.setUser(user);
|
|
|
String infoByType = tradeBasicPropertiesDao.findInfoByType(Type.B2C_AUTO_RECEVIED_TIME.value());
|
|
|
- if(StringUtils.isEmpty(infoByType)) {
|
|
|
+ if (StringUtils.isEmpty(infoByType)) {
|
|
|
throw new IllegalOperatorException("买家自动初评时间为空,不能继续操作");
|
|
|
}
|
|
|
Integer automaticReceipt = null;
|
|
|
@@ -142,7 +141,7 @@ public class RateTask {
|
|
|
try {
|
|
|
User user = null;
|
|
|
List<User> userUUs = userDao.findUserByUserUU(sysConf.getAdminUU());
|
|
|
- if(CollectionUtils.isEmpty(userUUs)) {
|
|
|
+ if (CollectionUtils.isEmpty(userUUs)) {
|
|
|
throw new IllegalOperatorException("根据配置文件的adminUU 找不到对应的个人信息");
|
|
|
}
|
|
|
user = userUUs.get(0);
|
|
|
@@ -150,7 +149,7 @@ public class RateTask {
|
|
|
user.setEnterprise(enterprise);
|
|
|
SystemSession.setUser(user);
|
|
|
String infoByType = tradeBasicPropertiesDao.findInfoByType(Type.B2C_AUTO_RECEVIED_TIME.value());
|
|
|
- if(StringUtils.isEmpty(infoByType)) {
|
|
|
+ if (StringUtils.isEmpty(infoByType)) {
|
|
|
throw new IllegalOperatorException("买家自动追评时间为空,不能继续操作");
|
|
|
}
|
|
|
Integer automaticReceipt = null;
|