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