| | |
| | | ExcelUtil<ZfClean> util = new ExcelUtil<>(ZfClean.class); |
| | | util.exportExcel(response, list, "保洁收纳记录数据"); |
| | | } |
| | | /** |
| | | * 导出保洁收纳记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "保洁收纳记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfClean> list = zfCleanService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfClean> util = new ExcelUtil<>(ZfClean.class); |
| | | util.exportExcel(response, list, "保洁收纳记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 导入保洁收纳记录列表 |
| | |
| | | ExcelUtil<ZfCollection> util = new ExcelUtil<>(ZfCollection.class); |
| | | util.exportExcel(response, list, "收藏和荣誉记录数据"); |
| | | } |
| | | /** |
| | | * 导出收藏和荣誉记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "收藏和荣誉记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfCollection> list = zfCollectionService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfCollection> util = new ExcelUtil<>(ZfCollection.class); |
| | | util.exportExcel(response, list, "收藏和荣誉记录数据"); |
| | | } |
| | | // |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导出通讯录记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "通讯录记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfContact> list = zfContactService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfContact> util = new ExcelUtil<>(ZfContact.class); |
| | | util.exportExcel(response, list, "通讯录记录数据"); |
| | | } |
| | | /** |
| | | * 导入通讯录记录列表 |
| | | */ |
| | | @Log(title = "用户管理", businessType = BusinessType.IMPORT) |
| | |
| | | ExcelUtil<ZfDoctor> util = new ExcelUtil<>(ZfDoctor.class); |
| | | util.exportExcel(response, list, "家庭小医生记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 导出家庭小医生记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "家庭小医生记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export1(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfDoctor> list = zfDoctorService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfDoctor> util = new ExcelUtil<>(ZfDoctor.class); |
| | | util.exportExcel(response, list, "家庭小医生记录数据"); |
| | | } |
| | | /** |
| | | * 导入家庭小医生记录列表 |
| | | */ |
| | |
| | | ExcelUtil<ZfEconomy> util = new ExcelUtil<>(ZfEconomy.class); |
| | | util.exportExcel(response, list, "家庭收支台账记录数据"); |
| | | } |
| | | /** |
| | | * 导出家庭收支台账记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "家庭收支台账记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfEconomy> list = zfEconomyService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfEconomy> util = new ExcelUtil<>(ZfEconomy.class); |
| | | util.exportExcel(response, list, "家庭收支台账记录数据"); |
| | | } |
| | | // |
| | | |
| | | /** |
| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfEvent; |
| | | import com.ruoyi.domain.excel.ZfEconomyExcelBean; |
| | | import com.ruoyi.domain.excel.ZfEquipmentExcelBean; |
| | | import com.ruoyi.service.ZfEquipmentService; |
| | |
| | | ExcelUtil<ZfEquipment> util = new ExcelUtil<ZfEquipment>(ZfEquipment.class); |
| | | util.exportExcel(response, list, "家庭设备记录数据"); |
| | | } |
| | | /** |
| | | * 导出家庭设备记录列表 |
| | | */ |
| | | @Log(title = "家庭大事件记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export1(HttpServletResponse response, @PathVariable Long[] ids) { |
| | | List<ZfEquipment> list = zfEquipmentService.selectByIds(ids); |
| | | log.info("导出记录为:{}", list); |
| | | ExcelUtil<ZfEquipment> util = new ExcelUtil<ZfEquipment>(ZfEquipment.class); |
| | | util.exportExcel(response, list, "家庭大事件记录数据"); |
| | | |
| | | } |
| | | |
| | | // |
| | | |
| | | /** |
| | |
| | | ExcelUtil<ZfPet> util = new ExcelUtil<>(ZfPet.class); |
| | | util.exportExcel(response, list, "魅宠记录数据"); |
| | | } |
| | | /** |
| | | * 导出魅宠记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | | @Log(title = "魅宠记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export(HttpServletResponse response, @PathVariable Long[] ids) |
| | | { |
| | | List<ZfPet> list = zfPetService.selectByIds(ids); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZfPet> util = new ExcelUtil<>(ZfPet.class); |
| | | util.exportExcel(response, list, "魅宠记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 导入魅宠记录列表 |
| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.domain.excel.ZfEconomyExcelBean; |
| | | import com.ruoyi.domain.excel.ZfPropertyExcelBean; |
| | |
| | | ExcelUtil<ZfProperty> util = new ExcelUtil<>(ZfProperty.class); |
| | | util.exportExcel(response, list, "家庭资产记录数据"); |
| | | } |
| | | /** |
| | | * 导出家庭资产记录列表 |
| | | */ |
| | | @Log(title = "家庭大事件记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export1/{ids}") |
| | | public void export1(HttpServletResponse response, @PathVariable Long[] ids) { |
| | | List<ZfProperty> list = zfPropertyService.selectByIds(ids); |
| | | log.info("导出记录为:{}", list); |
| | | ExcelUtil<ZfProperty> util = new ExcelUtil<ZfProperty>(ZfProperty.class); |
| | | util.exportExcel(response, list, "家庭大事件记录数据"); |
| | | |
| | | } |
| | | // |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 发生时间 |
| | | */ |
| | | @Excel(name = "时间", dateFormat = "yyyy-MM-dd") |
| | | @Excel(name = "发生时间", dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
| | | private Date happenTime; |
| | | /** |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | List<ZfProperty> selectByCondition(ZfProperty zfProperty); |
| | | |
| | | AjaxResult selectPropertyList(ZfProperty zfProperty,Integer pageNum,Integer pageSize); |
| | | |
| | | List<ZfProperty> selectByIds( Long[] ids); |
| | | AjaxResult addData(ZfProperty zfProperty); |
| | | |
| | | AjaxResult addData2(ZfProperty zfProperty); |
| | |
| | | |
| | | List<ZfClean> selectByCondition(ZfClean zfClean); |
| | | |
| | | List<ZfClean> selectByIds(Long[] ids); |
| | | AjaxResult addData(ZfClean zfClean); |
| | | |
| | | AjaxResult addData2(ZfClean zfClean); |
| | |
| | | |
| | | List<ZfCollection> selectByCondition(ZfCollection zfCollection); |
| | | |
| | | List<ZfCollection> selectByIds(Long[] ids); |
| | | AjaxResult importExcel(MultipartFile file); |
| | | |
| | | AjaxResult addData2(ZfCollection zfCollection); |
| | |
| | | AjaxResult selectDataList(ZfContact zfContact, Integer pageNum, Integer pageSize); |
| | | |
| | | List<ZfContact> selectByCondition(ZfContact zfContact); |
| | | |
| | | List<ZfContact> selectByIds(Long [] ids); |
| | | AjaxResult addData(ZfContact zfContact); |
| | | |
| | | AjaxResult addData2(ZfContact zfContact); |
| | |
| | | AjaxResult selectDoctorList(ZfDoctor zfDoctor, Integer pageNum, Integer pageSize); |
| | | |
| | | List<ZfDoctor> selectByCondition(ZfDoctor zfDoctor); |
| | | List<ZfDoctor> selectByIds(Long[] ids); |
| | | |
| | | AjaxResult mySave(ZfDoctor zfDoctor); |
| | | |
| | |
| | | AjaxResult selectDataList(ZfEconomy zfEconomy, Integer pageNum, Integer pageSize); |
| | | |
| | | List<ZfEconomy> selectByCondition(ZfEconomy zfEconomy); |
| | | |
| | | List<ZfEconomy> selectByIds(Long [] ids); |
| | | AjaxResult importExcel(MultipartFile file); |
| | | |
| | | AjaxResult addData2(ZfEconomy zfEconomy); |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfEvent; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | |
| | | AjaxResult selectDataList(ZfEquipment zfEquipment, Integer pageNum, Integer pageSize); |
| | | |
| | | List<ZfEquipment> selectByCondition(ZfEquipment zfEquipment); |
| | | |
| | | List<ZfEquipment> selectByIds(Long[] ids); |
| | | AjaxResult addData(ZfEquipment zfEquipment); |
| | | AjaxResult addData2(ZfEquipment zfEquipment); |
| | | |
| | |
| | | AjaxResult selectPetList(ZfPet zfPet, Integer pageNum, Integer pageSize); |
| | | |
| | | List<ZfPet> selectByCondition(ZfPet zfPet); |
| | | |
| | | List<ZfPet> selectByIds(Long[] ids); |
| | | AjaxResult mySave(ZfPet zfPet); |
| | | } |
| | |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfEvent; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.mapper.ZfPropertyMapper; |
| | |
| | | import javax.annotation.Resource; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.ruoyi.constant.MenuAuthority.PROPERTY_LIST; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfProperty> selectByIds(Long[] ids) { |
| | | List<ZfProperty> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult addData(ZfProperty zfProperty) { |
| | | |
| | | String familyIds = listFamilyIds(); |
| | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfClean; |
| | | import com.ruoyi.domain.*; |
| | | |
| | | import com.ruoyi.domain.ZfClean; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.mapper.ZfCleanMapper; |
| | | import com.ruoyi.service.ZInfoUserService; |
| | | import com.ruoyi.service.ZfCleanService; |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | return markOwnData(familyIds, beanRecords); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfClean> selectByIds(Long[] ids) { |
| | | List<ZfClean> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | private static List<ZfClean> markOwnData(String familyIds, List<ZfClean> beanRecords) { |
| | | return beanRecords.stream().peek(record -> { |
| | | String recordFamilyId = record.getFamilyId(); |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | return markOwnData(familyIds, beanRecords); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfCollection> selectByIds(Long[] ids) { |
| | | List<ZfCollection> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | private List<ZfCollection> markOwnData(String familyIds, List<ZfCollection> beanRecords) { |
| | | return beanRecords.stream().peek(record -> { |
| | | String recordFamilyId = record.getFamilyId(); |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | return markOwnData(familyIds, beanRecords); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfContact> selectByIds(Long[] ids) { |
| | | List<ZfContact> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | private static List<ZfContact> markOwnData(String familyIds, List<ZfContact> beanRecords) { |
| | | return beanRecords.stream().peek(record -> { |
| | | String recordFamilyId = record.getFamilyId(); |
| | |
| | | import com.ruoyi.common.utils.MapUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.domain.ZfDoctor; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfPet; |
| | | import com.ruoyi.mapper.ZfDoctorMapper; |
| | | import com.ruoyi.service.ZfDoctorService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfDoctor> selectByIds(Long[] ids) { |
| | | List<ZfDoctor> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult mySave(ZfDoctor zfDoctor) { |
| | | //判断是否有重复数据 |
| | | LambdaQueryWrapper<ZfDoctor> lqw = uniqueCondition(zfDoctor); |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | return markOwnData(familyIds, beanRecords); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfEconomy> selectByIds(Long[] ids) { |
| | | List<ZfEconomy> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | private List<ZfEconomy> markOwnData(String familyIds, List<ZfEconomy> beanRecords) { |
| | | return beanRecords.stream().peek(record -> { |
| | | String recordFamilyId = record.getFamilyId(); |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | return markOwnData(familyIds, beanRecords); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfEquipment> selectByIds(Long[] ids) { |
| | | List<ZfEquipment> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; } |
| | | |
| | | private static List<ZfEquipment> markOwnData(String familyIds, List<ZfEquipment> beanRecords) { |
| | | return beanRecords.stream().peek(record -> { |
| | | String recordFamilyId = record.getFamilyId(); |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.MapUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.domain.ZfEquipment; |
| | | import com.ruoyi.domain.ZfPet; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.mapper.ZfPetMapper; |
| | |
| | | import org.apache.poi.util.StringUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZfPet> selectByIds(Long[] ids) { |
| | | List<ZfPet> list = new ArrayList<>(); |
| | | if(ids.length!=0) |
| | | list = listByIds(Arrays.asList(ids)); |
| | | else |
| | | list = list(); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult mySave(ZfPet zfPet) { |
| | | //判断是否有重复数据 |
| | | LambdaQueryWrapper<ZfPet> lqw = uniqueCondition(zfPet); |