| | |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | @Override |
| | | public int insertTmsProject(TmsProject tmsProject) |
| | | { |
| | | tmsProject.setCreateBy(SecurityUtils.getUsername()); |
| | | tmsProject.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsProjectMapper.insertTmsProject(tmsProject); |
| | | } |
| | |
| | | @Override |
| | | public int updateTmsProject(TmsProject tmsProject) |
| | | { |
| | | tmsProject.setUpdateBy(SecurityUtils.getUsername()); |
| | | tmsProject.setUpdateTime(DateUtils.getNowDate()); |
| | | return tmsProjectMapper.updateTmsProject(tmsProject); |
| | | } |