| | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScenseMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.UserinfoMapper |
| | | import javafx.scene.Scene |
| | | import org.springframework.stereotype.Repository |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.util.* |
| | |
| | | private val subTaskRep: SubTaskRep, |
| | | ) { |
| | | |
| | | fun insert(scense: Scense?):Int { |
| | | scense ?: return 0 |
| | | if (scense.guid == null) scense.guid = UUIDGenerator.generate16ShortUUID() |
| | | scense.createdate = Date() |
| | | return scenseMapper.insertSelective(scense) |
| | | fun insert(scene: Scense?):Int { |
| | | scene ?: return 0 |
| | | if (scene.guid == null) scene.guid = UUIDGenerator.generate16ShortUUID() |
| | | scene.createdate = Date() |
| | | return scenseMapper.insertSelective(scene) |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | fun findBySubTask(subTaskId: String): Scense? { |
| | | val subtask = subTaskRep.find(subTaskId) |
| | | val subtask = subTaskRep.findOne(subTaskId) |
| | | return scenseMapper.selectByPrimaryKey(subtask?.scenseid) |
| | | } |
| | | } |