| | |
| | | import com.ycl.platform.mapper.CheckTemplateMapper; |
| | | import com.ycl.platform.mapper.CheckTemplateRuleMapper; |
| | | import com.ycl.platform.service.CheckTemplateService; |
| | | import com.ycl.platform.service.YwUnitService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import com.ycl.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | |
| | | private final CheckTemplateMapper checkTemplateMapper; |
| | | private final CheckTemplateRuleMapper checkTemplateRuleMapper; |
| | | |
| | | @Autowired |
| | | private YwUnitService unitService; |
| | | /** |
| | | * 添加 |
| | | * @param form |
| | |
| | | List<CheckTemplateVO> vos = page.getRecords().stream() |
| | | .map( |
| | | entity -> CheckTemplateVO.getVoByEntity(entity, null) |
| | | // .setUnitName(unitService.getById(entity.getUnitId()).getUnitName()) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos).total(page.getTotal()); |