| | |
| | | import com.thhy.general.common.BasicResult; |
| | | import com.thhy.materials.modules.biz.helmet.entity.*; |
| | | import com.thhy.materials.modules.biz.helmet.entity.dto.ReportNumDto; |
| | | import com.thhy.materials.modules.biz.helmet.entity.dto.TypeName; |
| | | import com.thhy.materials.modules.biz.helmet.mapper.HelmetMapper; |
| | | import com.thhy.materials.modules.biz.helmet.service.HelmetService; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | helmetMapper.dataBox(tDataAi); |
| | | return BasicResult.success(); |
| | | } |
| | | |
| | | @Override |
| | | public BasicResult dataAIList(Map<String, Object> values) { |
| | | Integer pageNum = Integer.valueOf(values.get("pageNum").toString()); |
| | | Integer pageSize = Integer.valueOf(values.get("pageSize").toString()); |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<TDataAi> tDataAis = helmetMapper.dataAIList(values); |
| | | PageInfo<TDataAi> tDataAiPageInfo = new PageInfo<>(tDataAis); |
| | | return BasicResult.success(tDataAiPageInfo); |
| | | } |
| | | |
| | | @Override |
| | | public BasicResult dataAIType() { |
| | | List<TypeName> typeNames = helmetMapper.dataAIType(); |
| | | return BasicResult.success(typeNames); |
| | | } |
| | | } |