|
|
@@ -5,9 +5,12 @@ import com.github.pagehelper.PageHelper;
|
|
|
import com.railway.business.catenary.mapper.BusJcbFdfxjyqMapper;
|
|
|
import com.railway.business.catenary.domain.BusJcbFdfxjyq;
|
|
|
import com.railway.business.catenary.service.IBusJcbFdfxjyqService;
|
|
|
+import com.railway.common.utils.SecurityUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
/**
|
|
|
* dxf分选绝缘器检查表
|
|
|
@@ -25,6 +28,8 @@ private BusJcbFdfxjyqMapper busJcbFdfxjyqMapper;
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public int create(BusJcbFdfxjyq busJcbFdfxjyq) {
|
|
|
+ busJcbFdfxjyq.setCreateTime(new Date());
|
|
|
+ busJcbFdfxjyq.setCreateBy(SecurityUtils.getUsername());
|
|
|
return busJcbFdfxjyqMapper.insert(busJcbFdfxjyq);
|
|
|
}
|
|
|
|
|
|
@@ -46,6 +51,8 @@ private BusJcbFdfxjyqMapper busJcbFdfxjyqMapper;
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public int update(BusJcbFdfxjyq busJcbFdfxjyq) {
|
|
|
+ busJcbFdfxjyq.setUpdateTime(new Date());
|
|
|
+ busJcbFdfxjyq.setUpdateBy(SecurityUtils.getUsername());
|
|
|
return busJcbFdfxjyqMapper.update(busJcbFdfxjyq);
|
|
|
}
|
|
|
|