| | |
| | | |
| | | import com.lunhan.xxx.common.ExecutedResult; |
| | | import com.lunhan.xxx.common.PagerResult; |
| | | import com.lunhan.xxx.common.enums.EYesOrNo; |
| | | import com.lunhan.xxx.common.model.Tuple; |
| | | import com.lunhan.xxx.common.util.*; |
| | | import com.lunhan.xxx.entity.dto.search.SearchTestInfo; |
| | |
| | | import com.lunhan.xxx.entity.request.ReqSetSort; |
| | | import com.lunhan.xxx.entity.request.test.ReqCreateTestInfo; |
| | | import com.lunhan.xxx.entity.request.test.ReqModifyTestInfo; |
| | | import com.lunhan.xxx.repository.imapper.TestInfoMapper; |
| | | import com.lunhan.xxx.repository.impl.TestInfoMapperImpl; |
| | | import com.lunhan.xxx.repository.po.TestInfoPO; |
| | | import com.lunhan.xxx.repository.vo.TestInfoVO; |
| | | import com.lunhan.xxx.service.convert.TestInfoConvert; |
| | |
| | | @Service |
| | | public class TestInfoService extends BaseService { |
| | | @Autowired |
| | | private TestInfoMapper mapper; |
| | | private TestInfoMapperImpl mapper; |
| | | |
| | | public ExecutedResult<Long> create(ReqCreateTestInfo request) { |
| | | // 转换po |
| | |
| | | item.setStatus(EState.NORMAL.getValue()); |
| | | // 设置记录创建时间 |
| | | item.setCreateTime(LocalDateTimeUtil.nowTimeStamp()); |
| | | // 非逻辑删除 |
| | | item.setIsDelete(EYesOrNo.NO.getValue()); |
| | | |
| | | int rowCount = mapper.insert(item); |
| | | if (rowCount != 1) { |