|
|
@@ -10,10 +10,7 @@ import com.goafanti.common.dao.*;
|
|
|
import com.goafanti.common.enums.NoticeStatus;
|
|
|
import com.goafanti.common.error.BusinessException;
|
|
|
import com.goafanti.common.model.*;
|
|
|
-import com.goafanti.common.utils.AsyncUtils;
|
|
|
-import com.goafanti.common.utils.DateUtils;
|
|
|
-import com.goafanti.common.utils.SendEmailUtil;
|
|
|
-import com.goafanti.common.utils.WeChatUtils;
|
|
|
+import com.goafanti.common.utils.*;
|
|
|
import com.goafanti.core.mybatis.BaseMybatisDao;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
@@ -26,6 +23,8 @@ import com.goafanti.weChat.bo.*;
|
|
|
import com.goafanti.weChat.service.PublicReleaseService;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.socket.TextMessage;
|
|
|
@@ -1958,6 +1957,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
|
|
|
|
|
|
@Override
|
|
|
+ @Cacheable(value = "releaseAndExpenseCount#300", key = "'getCounts:key='+#in.buyerName+#in.contractNo+#in.aid+#in.depId+#in.allStatus")
|
|
|
public List<ExpenseCountsOrder> releaseAndExpenseCount(InputreleaseAndExpenseCount in) {
|
|
|
List<ExpenseCountsOrder> expenseCountsOrders = publicReleaseMapper.releaseAndExpenseCount(in);
|
|
|
expenseCountsOrders.forEach(e->{
|
|
|
@@ -1977,4 +1977,11 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
});
|
|
|
return expenseCountsOrders;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @CacheEvict(value = "releaseAndExpenseCount#300",allEntries = true)
|
|
|
+ public Object releaseAndExpenseCountClear() {
|
|
|
+ LoggerUtils.debug(getClass(),"公出&报销缓存清除。");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
}
|