liurunyu
2024-10-19 8456b4e16a9fe4284c45b6d56d7dabeea1cb18e9
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
package com.dy.pipIrrGlobal.webCtrls;
 
import com.dy.pipIrrGlobal.daoFi.WebFileMapper;
import com.dy.pipIrrGlobal.pojoFi.WebFile;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
@Slf4j
@Service
public class WebFileSv {
 
    private WebFileMapper dao;
 
    @Autowired
    public void setDao(WebFileMapper dao){
        this.dao = dao ;
    }
 
    @Transactional
    public Long save(WebFile po){
        this.dao.insertSelective(po) ;
        return po.id ;
    }
}