admin
2019-03-13 33b4ed2bbf28ec16b66e552680f56a691a4e908d
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
package com.yeshi.fanli.service.impl.user;
 
import java.io.Serializable;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.yeshi.fanli.dao.config.SystemZnxDao;
import com.yeshi.fanli.entity.system.SystemZnx;
import com.yeshi.fanli.service.inter.user.SystemZnxService;
@Service
public class SystemZnxServiceImpl implements SystemZnxService{
    
    @Resource
    private SystemZnxDao systemZnxDao;
    
    /**
     * 插入数据
     */
    @Override
    public void save(SystemZnx systemZnx) {
        Serializable id = systemZnxDao.save(systemZnx);
        if(id!=null) {
            systemZnx.setId(Long.parseLong(id+""));
        }
    }
}