zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package com.changhong.epc.demo.service.tenant.log.impl;
Z 2
3 import com.changhong.epc.bean.tenant.log.ProcessLog;
4 import com.changhong.epc.demo.mapper.tenant.log.ProcessLogMapper;
5 import com.changhong.epc.demo.service.tenant.log.ProessLogService;
6 import com.codingapi.tx.annotation.TxTransaction;
7 import com.iemsoft.framework.cloud.redis.annotation.CacheRm;
8 import com.iemsoft.framework.cloud.redis.annotation.CacheSave;
9 import org.springframework.stereotype.Service;
10 import org.springframework.transaction.annotation.Transactional;
11
12 import javax.annotation.Resource;
13 import java.util.List;
14
15 @Service("proessLogService")
16 public class ProessLogServiceImpl implements ProessLogService {
17
18     @Resource
19     private ProcessLogMapper processLogMapper;
20     
21     @Override
22     @CacheSave
23     public List<ProcessLog> processPage(ProcessLog processLog) {
24         return processLogMapper.selectPage(processLog);
25 //        return processLogMapper.selectAll();
26     }
27     
28     @CacheRm
29     public void updateProcess(){
30         
31     }
32
33     @Override
34     @TxTransaction
35     @Transactional
36     public void save() {
37         ProcessLog t = new ProcessLog();
38         t.setActivityInstId(1L);
39         t.setActivityDefId("defId");
40         t.setActivityDefName("defName");
41         processLogMapper.insert(t);
42     }
43
44 }