package com.dy.pipIrrApp.inspect;
|
|
import com.dy.pipIrrGlobal.daoOp.OpeInspectMapper;
|
import com.dy.pipIrrGlobal.daoOp.OpeTrackMapper;
|
import com.dy.pipIrrGlobal.pojoOp.OpeInspect;
|
import com.dy.pipIrrGlobal.pojoOp.OpeTrack;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2024-09-24 10:21
|
* @LastEditTime 2024-09-24 10:21
|
* @Description
|
*/
|
|
@Slf4j
|
@Service
|
public class InspectSv {
|
@Autowired
|
private OpeInspectMapper opeInspectMapper;
|
|
@Autowired
|
private OpeTrackMapper opeTrackMapper;
|
|
/**
|
* 添加巡检记录
|
* @param po
|
* @return
|
*/
|
public Long addInspect(OpeInspect po) {
|
opeInspectMapper.insert(po);
|
return po.getId();
|
}
|
|
/**
|
* 修改巡检记录
|
* @param po
|
* @return
|
*/
|
public Integer updateInspect(OpeInspect po) {
|
return opeInspectMapper.updateByPrimaryKeySelective(po);
|
}
|
|
/**
|
* 批量添加巡检轨迹
|
* @param list
|
* @return
|
*/
|
public Integer insertTracks(List<OpeTrack> list) {
|
return opeTrackMapper.insertTracks(list);
|
}
|
|
|
}
|