| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | |
| | | |
| | | @Autowired |
| | | ZYearInfoServiceImpl zYearInfoService; |
| | | |
| | | @Resource |
| | | ZYearInfoMapper zYearInfoMapper; |
| | | |
| | | private LambdaQueryWrapper<ZYearInfo> uniqueCondition(ZYearInfo zYearInfo) { |
| | | LambdaQueryWrapper<ZYearInfo> lqw = new LambdaQueryWrapper<>(); |
| | |
| | | .like(StringUtils.isNotEmpty(zYearInfo.getHospital()), ZYearInfo::getHospital, zYearInfo.getHospital()) |
| | | .like(StringUtils.isNotEmpty(zYearInfo.getTitle()), ZYearInfo::getTitle, zYearInfo.getTitle()) |
| | | .like(StringUtils.isNotEmpty(zYearInfo.getNotice()),ZYearInfo::getNotice,zYearInfo.getNotice()) |
| | | .like(StringUtils.isNotEmpty(zYearInfo.getRemark()),ZYearInfo::getRemark,zYearInfo.getRemark()) |
| | | .between(zYearInfo.getHappenStartTime() != null && zYearInfo.getHappenEndTime() != null, ZYearInfo::getCheckTime, zYearInfo.getHappenStartTime(), zYearInfo.getHappenEndTime()) |
| | | .orderByDesc(ZYearInfo::getCreateTime); |
| | | return lqw; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult listType() { |
| | | List<String> result = zYearInfoMapper.listType(); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public AjaxResult importExcel(MultipartFile file) { |
| | | |