¶Ô±ÈÐÂÎļþ |
| | |
| | | Manifest-Version: 1.0 |
| | | Main-Class: com.dingzhuo.energy.EnergyManagementApplication |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>energy-management</artifactId> |
| | | <groupId>com.dingzhuo</groupId> |
| | | <version>1.0.0</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>basic-data</artifactId> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.dingzhuo</groupId> |
| | | <artifactId>basic</artifactId> |
| | | <version>${project.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.controller; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnerclass; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnerclassService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * è½æºåç§è®¾ç½®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-10 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/enerInfoManage/enerclass") |
| | | public class SysEnerclassController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysEnerclassService sysEnerclassService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysEnerclass sysEnerclass) |
| | | { |
| | | startPage(); |
| | | List<SysEnerclass> list = sysEnerclassService.selectSysEnerclassList(sysEnerclass); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè½æºåç§è®¾ç½®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:export')") |
| | | @Log(title = "è½æºåç§è®¾ç½®", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysEnerclass sysEnerclass) |
| | | { |
| | | List<SysEnerclass> list = sysEnerclassService.selectSysEnerclassList(sysEnerclass); |
| | | ExcelUtil<SysEnerclass> util = new ExcelUtil<SysEnerclass>(SysEnerclass.class); |
| | | return util.exportExcel(list, "enerclass"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè½æºåç§è®¾ç½®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:query')") |
| | | @GetMapping(value = "/{enerclassid}") |
| | | public AjaxResult getInfo(@PathVariable("enerclassid") Integer enerclassid) |
| | | { |
| | | return AjaxResult.success(sysEnerclassService.selectSysEnerclassById(enerclassid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½æºåç§è®¾ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:add')") |
| | | @Log(title = "è½æºåç§è®¾ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysEnerclass sysEnerclass) { |
| | | //éç©ºæ ¡éª |
| | | String name = sysEnerclass.getEnerclassname(); |
| | | if(name.length()>10){ |
| | | return AjaxResult.error("æ°å¢å¤±è´¥ï¼è½æºåç§°è¶
é¿ï¼"); |
| | | } |
| | | Integer nameNum = sysEnerclassService.selectSameEnergyNameNum(name); |
| | | if (nameNum==0){ |
| | | return toAjax(sysEnerclassService.insertSysEnerclass(sysEnerclass)); |
| | | } |
| | | return AjaxResult.error("æ°å¢å¤±è´¥ï¼è¯·æ£æ¥è½æºåç§°æ¯å¦éå¤ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºåç§è®¾ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:edit')") |
| | | @Log(title = "è½æºåç§è®¾ç½®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysEnerclass sysEnerclass) { |
| | | //å¯ä¸æ ¡éª |
| | | Integer id = sysEnerclass.getEnerclassid(); |
| | | String enerName = sysEnerclass.getEnerclassname(); |
| | | if(enerName.length()>10){ |
| | | return AjaxResult.error("ä¿®æ¹å¤±è´¥ï¼è½æºåç§°è¶
é¿ï¼"); |
| | | } |
| | | // éè¿è¦æ¹çè½æºåç§°æ¥å·²æä¸æ ·çè½æºåç§°æå 个 妿çäº1å°±è¦éè¿id夿æ¯ä¸æ¯æ¹èªå·± |
| | | if(sysEnerclassService.selectSameEnergyNameNum(enerName)==1&&id.equals(sysEnerclassService.selectIdByName(enerName))){ |
| | | return toAjax(sysEnerclassService.updateSysEnerclass(sysEnerclass)); |
| | | // 妿=0 就说æè¿ä¸ªè½æºåç§°å¯æ¹ |
| | | }else if(sysEnerclassService.selectSameEnergyNameNum(enerName)==0){ |
| | | return toAjax(sysEnerclassService.updateSysEnerclass(sysEnerclass)); |
| | | } |
| | | return AjaxResult.error("ä¿®æ¹å¤±è´¥ï¼è½æºåç§°éå¤ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½æºåç§è®¾ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enerclass:remove')") |
| | | @Log(title = "è½æºåç§è®¾ç½®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{enerclassids}") |
| | | public AjaxResult remove(@PathVariable Integer[] enerclassids) |
| | | { |
| | | return toAjax(sysEnerclassService.deleteSysEnerclassByIds(enerclassids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.controller; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnercoefficient; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnercoefficientService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * è½æºææ ç³»æ°Controller |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/enerInfoManage/enercoefficient") |
| | | public class SysEnercoefficientController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysEnercoefficientService sysEnercoefficientService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ°å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | startPage(); |
| | | List<SysEnercoefficient> list = sysEnercoefficientService.selectSysEnercoefficientList(sysEnercoefficient); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè½æºææ ç³»æ°å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:export')") |
| | | @Log(title = "è½æºææ ç³»æ°", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | List<SysEnercoefficient> list = sysEnercoefficientService.selectSysEnercoefficientList(sysEnercoefficient); |
| | | ExcelUtil<SysEnercoefficient> util = new ExcelUtil<SysEnercoefficient>(SysEnercoefficient.class); |
| | | return util.exportExcel(list, "enercoefficient"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè½æºææ ç³»æ°è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:query')") |
| | | @GetMapping(value = "/{ecid}") |
| | | public AjaxResult getInfo(@PathVariable("ecid") Integer ecid) |
| | | { |
| | | return AjaxResult.success(sysEnercoefficientService.selectSysEnercoefficientById(ecid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½æºææ ç³»æ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:add')") |
| | | @Log(title = "è½æºææ ç³»æ°", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | return toAjax(sysEnercoefficientService.insertSysEnercoefficient(sysEnercoefficient)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºææ ç³»æ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:edit')") |
| | | @Log(title = "è½æºææ ç³»æ°", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | return toAjax(sysEnercoefficientService.updateSysEnercoefficient(sysEnercoefficient)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½æºææ ç³»æ° |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:enercoefficient:remove')") |
| | | @Log(title = "è½æºææ ç³»æ°", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ecids}") |
| | | public AjaxResult remove(@PathVariable Integer[] ecids) |
| | | { |
| | | return toAjax(sysEnercoefficientService.deleteSysEnercoefficientByIds(ecids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.controller; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnerclass; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnergy; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnergyService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * energyController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/enerInfoManage/energy") |
| | | public class SysEnergyController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysEnergyService sysEnergyService; |
| | | |
| | | /** |
| | | * æ¥è¯¢enerclassnameè½æºç±»ååç§°ä¸ææ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:getenerclassname')") |
| | | @GetMapping("/getenerclassname") |
| | | public AjaxResult list() |
| | | { |
| | | List<SysEnerclass> s = sysEnergyService.getenerclassname(); |
| | | return AjaxResult.success(s); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢energyå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysEnergy sysEnergy) |
| | | { |
| | | startPage(); |
| | | List<SysEnergy> list = sysEnergyService.selectSysEnergyList(sysEnergy); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºenergyå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:export')") |
| | | @Log(title = "energy", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysEnergy sysEnergy) |
| | | { |
| | | List<SysEnergy> list = sysEnergyService.selectSysEnergyList(sysEnergy); |
| | | ExcelUtil<SysEnergy> util = new ExcelUtil<SysEnergy>(SysEnergy.class); |
| | | return util.exportExcel(list, "energy"); |
| | | } |
| | | |
| | | /** |
| | | * è·åenergy详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:query')") |
| | | @GetMapping(value = "/{enerid}") |
| | | public AjaxResult getInfo(@PathVariable("enerid") Integer enerid) |
| | | { |
| | | SysEnergy sysEnergy = sysEnergyService.selectSysEnergyById(enerid); |
| | | if(sysEnergy.getIsstorage()==0){ |
| | | sysEnergy.setIsstorageString("æ¯"); |
| | | }else{ |
| | | sysEnergy.setIsstorageString("å¦"); |
| | | } |
| | | return AjaxResult.success(sysEnergy); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢energy |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:add')") |
| | | @Log(title = "energy", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysEnergy sysEnergy) |
| | | { |
| | | String a = sysEnergy.getIsstorageString(); |
| | | if(a.equals("æ¯")){ |
| | | sysEnergy.setIsstorage(0); |
| | | }else { |
| | | sysEnergy.setIsstorage(1); |
| | | } |
| | | String d = sysEnergy.getEnerclassname(); |
| | | Integer enerclassid = sysEnergyService.getEnerClassid(d); |
| | | sysEnergy.setEnerclassid(enerclassid); |
| | | //éç©ºæ ¡éª |
| | | String name = sysEnergy.getEnername(); |
| | | if(name.length()>10){ |
| | | return AjaxResult.error("æ°å¢å¤±è´¥ï¼è½æºåç§°è¶
é¿ï¼"); |
| | | } |
| | | Integer nameNum = sysEnergyService.selectSameEnergyNameNum(name); |
| | | if (nameNum==0){ |
| | | return toAjax(sysEnergyService.insertSysEnergy(sysEnergy)); |
| | | } |
| | | return AjaxResult.error("æ°å¢å¤±è´¥ï¼è¯·æ£æ¥è½æºåç§°æ¯å¦éå¤ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹energy |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:edit')") |
| | | @Log(title = "energy", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysEnergy sysEnergy) |
| | | { |
| | | String a = sysEnergy.getIsstorageString(); |
| | | if(a.equals("æ¯")){ |
| | | sysEnergy.setIsstorage(0); |
| | | }else { |
| | | sysEnergy.setIsstorage(1); |
| | | } |
| | | String d = sysEnergy.getEnerclassname(); |
| | | Integer enerclassid = sysEnergyService.getEnerClassid(d); |
| | | sysEnergy.setEnerclassid(enerclassid); |
| | | //å¯ä¸æ ¡éª |
| | | Integer id = sysEnergy.getEnerid(); |
| | | String enerName = sysEnergy.getEnerclassname(); |
| | | if(enerName.length()>10){ |
| | | return AjaxResult.error("ä¿®æ¹å¤±è´¥ï¼è½æºåç§°è¶
é¿ï¼"); |
| | | } |
| | | // éè¿è¦æ¹çè½æºåç§°æ¥å·²æä¸æ ·çè½æºåç§°æå 个 妿çäº1å°±è¦éè¿id夿æ¯ä¸æ¯æ¹èªå·± |
| | | if(sysEnergyService.selectSameEnergyNameNum(enerName)==1&&id.equals(sysEnergyService.selectIdByName(enerName))){ |
| | | return toAjax(sysEnergyService.updateSysEnergy(sysEnergy)); |
| | | // 妿=0 就说æè¿ä¸ªè½æºåç§°å¯æ¹ |
| | | }else if(sysEnergyService.selectSameEnergyNameNum(enerName)==0){ |
| | | return toAjax(sysEnergyService.updateSysEnergy(sysEnergy)); |
| | | } |
| | | return AjaxResult.error("ä¿®æ¹å¤±è´¥ï¼è½æºåç§°éå¤ï¼"); |
| | | } |
| | | /** |
| | | * ä¿åè½æºå价设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:updateEnergyPrice')") |
| | | @Log(title = "energy", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/updateEnergyPrice") |
| | | public AjaxResult updateEnergyPrice(@RequestBody(required = false) SysEnergy sysEnergy) throws ParseException { |
| | | Integer enerid = sysEnergy.getEnerid(); |
| | | if(sysEnergy.getExecdate()==null){ |
| | | return AjaxResult.error("æ§è¡æ¥æä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | Date date = new Date(); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String dateString = formatter.format(date); |
| | | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Date now = df.parse(dateString); |
| | | if(sysEnergy.getExecdate().before(now)){ |
| | | return AjaxResult.error("æ§è¡æ¥æä»¥è¿ï¼"); |
| | | } |
| | | if((sysEnergyService.getPriceCountByEnerid(sysEnergy))==0){ |
| | | return toAjax(sysEnergyService.insertEnergyPrice(sysEnergy)); |
| | | }else if((sysEnergyService.getPriceCountByEnerid(sysEnergy))==1){ |
| | | return toAjax(sysEnergyService.updateEnergyPrice(sysEnergy)); |
| | | } |
| | | return AjaxResult.error("ä¿å失败ï¼"); |
| | | } |
| | | /** |
| | | * ä¿åè½æºææ ç³»æ°è®¾ç½® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:updateEnergyCoefficient')") |
| | | @Log(title = "energy", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/updateEnergyCoefficient") |
| | | public AjaxResult updateEnergyCoefficient(@RequestBody(required = false) SysEnergy sysEnergy) throws ParseException { |
| | | Integer enerid = sysEnergy.getEnerid(); |
| | | if(sysEnergy.getCoefficientexecdate()==null){ |
| | | return AjaxResult.error("æ§è¡æ¥æä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | Date date = new Date(); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String dateString = formatter.format(date); |
| | | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Date now = df.parse(dateString); |
| | | if(sysEnergy.getCoefficientexecdate().before(now)){ |
| | | return AjaxResult.error("æ§è¡æ¥æä»¥è¿ï¼"); |
| | | } |
| | | Integer count = sysEnergyService.getCoefficientCountByEnerid(enerid); |
| | | if(count==0){ |
| | | return toAjax(sysEnergyService.insertEnergyCoefficient(sysEnergy)); |
| | | }else if(count==1){ |
| | | return toAjax(sysEnergyService.updateEnergyCoefficient(sysEnergy)); |
| | | } |
| | | return AjaxResult.error("ä¿å失败ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * å é¤energy |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:energy:remove')") |
| | | @Log(title = "energy", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{enerids}") |
| | | public AjaxResult remove(@PathVariable Integer[] enerids) |
| | | { |
| | | return toAjax(sysEnergyService.deleteSysEnergyByIds(enerids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysPrice; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysPriceService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * å价设置Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-15 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/price/price") |
| | | public class SysPriceController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysPriceService sysPriceService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å价设置å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysPrice sysPrice) |
| | | { |
| | | startPage(); |
| | | List<SysPrice> list = sysPriceService.selectSysPriceList(sysPrice); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå价设置å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:export')") |
| | | @Log(title = "å价设置", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysPrice sysPrice) |
| | | { |
| | | List<SysPrice> list = sysPriceService.selectSysPriceList(sysPrice); |
| | | ExcelUtil<SysPrice> util = new ExcelUtil<SysPrice>(SysPrice.class); |
| | | return util.exportExcel(list, "price"); |
| | | } |
| | | |
| | | /** |
| | | * è·åå价设置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:query')") |
| | | @GetMapping(value = "/{priceid}") |
| | | public AjaxResult getInfo(@PathVariable("priceid") Integer priceid) |
| | | { |
| | | return AjaxResult.success(sysPriceService.selectSysPriceById(priceid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å价设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:add')") |
| | | @Log(title = "å价设置", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysPrice sysPrice) |
| | | { |
| | | return toAjax(sysPriceService.insertSysPrice(sysPrice)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å价设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:edit')") |
| | | @Log(title = "å价设置", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysPrice sysPrice) |
| | | { |
| | | return toAjax(sysPriceService.updateSysPrice(sysPrice)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å价设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('price:price:remove')") |
| | | @Log(title = "å价设置", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{priceids}") |
| | | public AjaxResult remove(@PathVariable Integer[] priceids) |
| | | { |
| | | return toAjax(sysPriceService.deleteSysPriceByIds(priceids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.controller; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysProduct; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysProductService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 产åController |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/enerInfoManage/product") |
| | | public class SysProductController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISysProductService sysProductService; |
| | | |
| | | /** |
| | | * æ¥è¯¢äº§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysProduct sysProduct) |
| | | { |
| | | startPage(); |
| | | List<SysProduct> list = sysProductService.selectSysProductList(sysProduct); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºäº§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:export')") |
| | | @Log(title = "产å", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(SysProduct sysProduct) |
| | | { |
| | | List<SysProduct> list = sysProductService.selectSysProductList(sysProduct); |
| | | ExcelUtil<SysProduct> util = new ExcelUtil<SysProduct>(SysProduct.class); |
| | | return util.exportExcel(list, "product"); |
| | | } |
| | | |
| | | /** |
| | | * è·å产å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:query')") |
| | | @GetMapping(value = "/{productid}") |
| | | public AjaxResult getInfo(@PathVariable("productid") Integer productid) |
| | | { |
| | | return AjaxResult.success(sysProductService.selectSysProductById(productid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢äº§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:add')") |
| | | @Log(title = "产å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SysProduct sysProduct) { |
| | | Integer sameNameNum = sysProductService.selectCountByName(sysProduct); |
| | | Integer sameNoNum = sysProductService.selectCountByNo(sysProduct); |
| | | if(sameNameNum==sameNoNum){ |
| | | if(sameNameNum==0){ |
| | | return toAjax(sysProductService.insertSysProduct(sysProduct)); |
| | | } |
| | | } |
| | | return AjaxResult.error("æ°å¢å¤±è´¥ï¼äº§ååç§°æäº§åç¼å·éå¤ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹äº§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:edit')") |
| | | @Log(title = "产å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SysProduct sysProduct) |
| | | { |
| | | Integer id = sysProduct.getProductid(); |
| | | Integer sameNameNum = sysProductService.selectCountByName(sysProduct); |
| | | Integer sameNoNum = sysProductService.selectCountByNo(sysProduct); |
| | | if(sameNameNum==sameNoNum){ |
| | | if(sameNameNum==0){ |
| | | return toAjax(sysProductService.updateSysProduct(sysProduct)); |
| | | } |
| | | } |
| | | boolean s = id==sysProductService.selectIdByName(sysProduct); |
| | | boolean a = id==sysProductService.selectIdByNo(sysProduct); |
| | | if(sameNameNum==1&&sameNoNum==1){ |
| | | if(a&&s){ |
| | | return toAjax(sysProductService.updateSysProduct(sysProduct)); |
| | | } |
| | | }else if(sameNameNum==1&&sameNoNum==0&&s){ |
| | | return toAjax(sysProductService.updateSysProduct(sysProduct)); |
| | | }else if(sameNoNum==1&&sameNameNum==0&&a){ |
| | | return toAjax(sysProductService.updateSysProduct(sysProduct)); |
| | | } |
| | | return AjaxResult.error("ä¿®æ¹å¤±è´¥ï¼äº§ååç§°æäº§åç¼å·éå¤ï¼"); |
| | | } |
| | | |
| | | /** |
| | | * å é¤äº§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('enerInfoManage:product:remove')") |
| | | @Log(title = "产å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{productids}") |
| | | public AjaxResult remove(@PathVariable Integer[] productids) |
| | | { |
| | | return toAjax(sysProductService.deleteSysProductByIds(productids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è½æºåç§è®¾ç½®å¯¹è±¡ sys_enerclass |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-10 |
| | | */ |
| | | public class SysEnerclass extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** è½æºç±»å«ID */ |
| | | private Integer enerclassid; |
| | | |
| | | /** è½æºç±»å«åç§° */ |
| | | @Excel(name = "è½æºç±»å«åç§°") |
| | | private String enerclassname; |
| | | |
| | | /** æä½äºº */ |
| | | @Excel(name = "æä½äºº") |
| | | private String oprMan; |
| | | |
| | | /** æä½æ¶é´ */ |
| | | @Excel(name = "æä½æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date oprTime; |
| | | |
| | | /** æ´æ°äºº */ |
| | | @Excel(name = "æ´æ°äºº") |
| | | private String modMan; |
| | | |
| | | /** æ´æ°æ¶é´ */ |
| | | @Excel(name = "æ´æ°æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date modTime; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String note; |
| | | |
| | | public void setEnerclassid(Integer enerclassid) |
| | | { |
| | | this.enerclassid = enerclassid; |
| | | } |
| | | |
| | | public Integer getEnerclassid() |
| | | { |
| | | return enerclassid; |
| | | } |
| | | public void setEnerclassname(String enerclassname) |
| | | { |
| | | this.enerclassname = enerclassname; |
| | | } |
| | | |
| | | public String getEnerclassname() |
| | | { |
| | | return enerclassname; |
| | | } |
| | | public void setOprMan(String oprMan) |
| | | { |
| | | this.oprMan = oprMan; |
| | | } |
| | | |
| | | public String getOprMan() |
| | | { |
| | | return oprMan; |
| | | } |
| | | public void setOprTime(Date oprTime) |
| | | { |
| | | this.oprTime = oprTime; |
| | | } |
| | | |
| | | public Date getOprTime() |
| | | { |
| | | return oprTime; |
| | | } |
| | | public void setModMan(String modMan) |
| | | { |
| | | this.modMan = modMan; |
| | | } |
| | | |
| | | public String getModMan() |
| | | { |
| | | return modMan; |
| | | } |
| | | public void setModTime(Date modTime) |
| | | { |
| | | this.modTime = modTime; |
| | | } |
| | | |
| | | public Date getModTime() |
| | | { |
| | | return modTime; |
| | | } |
| | | public void setNote(String note) |
| | | { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getNote() |
| | | { |
| | | return note; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("enerclassid", getEnerclassid()) |
| | | .append("enerclassname", getEnerclassname()) |
| | | .append("oprMan", getOprMan()) |
| | | .append("oprTime", getOprTime()) |
| | | .append("modMan", getModMan()) |
| | | .append("modTime", getModTime()) |
| | | .append("note", getNote()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è½æºææ ç³»æ°å¯¹è±¡ sys_enercoefficient |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-18 |
| | | */ |
| | | public class SysEnercoefficient extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ææ ç³»æ°ID */ |
| | | private Integer ecid; |
| | | |
| | | /** è½æºID */ |
| | | @Excel(name = "è½æºID") |
| | | private Integer enerid; |
| | | |
| | | /** çä»·ææ ç³»æ° */ |
| | | @Excel(name = "çä»·ææ ç³»æ°") |
| | | private double coefficient; |
| | | |
| | | /** å½éææ ç³»æ° */ |
| | | @Excel(name = "å½éææ ç³»æ°") |
| | | private double coefficient2; |
| | | |
| | | /** æ§è¡æ¥æ */ |
| | | @Excel(name = "æ§è¡æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date execdate; |
| | | |
| | | /** æä½äºº */ |
| | | private String oprMan; |
| | | |
| | | /** æä½æ¶é´ */ |
| | | private Date oprTime; |
| | | |
| | | /** æ´æ°äºº */ |
| | | private String modMan; |
| | | |
| | | /** æ´æ°æ¶é´ */ |
| | | private Date modTime; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String note; |
| | | |
| | | // è½æºåç§° |
| | | private String enername; |
| | | |
| | | public String getEnername() { |
| | | return enername; |
| | | } |
| | | |
| | | public void setEnername(String enername) { |
| | | this.enername = enername; |
| | | } |
| | | |
| | | public void setEcid(Integer ecid) |
| | | { |
| | | this.ecid = ecid; |
| | | } |
| | | |
| | | public Integer getEcid() |
| | | { |
| | | return ecid; |
| | | } |
| | | public void setEnerid(Integer enerid) |
| | | { |
| | | this.enerid = enerid; |
| | | } |
| | | |
| | | public Integer getEnerid() |
| | | { |
| | | return enerid; |
| | | } |
| | | public void setCoefficient(double coefficient) |
| | | { |
| | | this.coefficient = coefficient; |
| | | } |
| | | |
| | | public double getCoefficient() |
| | | { |
| | | return coefficient; |
| | | } |
| | | public void setCoefficient2(double coefficient2) |
| | | { |
| | | this.coefficient2 = coefficient2; |
| | | } |
| | | |
| | | public double getCoefficient2() |
| | | { |
| | | return coefficient2; |
| | | } |
| | | public void setExecdate(Date execdate) |
| | | { |
| | | this.execdate = execdate; |
| | | } |
| | | |
| | | public Date getExecdate() |
| | | { |
| | | return execdate; |
| | | } |
| | | public void setOprMan(String oprMan) |
| | | { |
| | | this.oprMan = oprMan; |
| | | } |
| | | |
| | | public String getOprMan() |
| | | { |
| | | return oprMan; |
| | | } |
| | | public void setOprTime(Date oprTime) |
| | | { |
| | | this.oprTime = oprTime; |
| | | } |
| | | |
| | | public Date getOprTime() |
| | | { |
| | | return oprTime; |
| | | } |
| | | public void setModMan(String modMan) |
| | | { |
| | | this.modMan = modMan; |
| | | } |
| | | |
| | | public String getModMan() |
| | | { |
| | | return modMan; |
| | | } |
| | | public void setModTime(Date modTime) |
| | | { |
| | | this.modTime = modTime; |
| | | } |
| | | |
| | | public Date getModTime() |
| | | { |
| | | return modTime; |
| | | } |
| | | public void setNote(String note) |
| | | { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getNote() |
| | | { |
| | | return note; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("ecid", getEcid()) |
| | | .append("enerid", getEnerid()) |
| | | .append("coefficient", getCoefficient()) |
| | | .append("coefficient2", getCoefficient2()) |
| | | .append("execdate", getExecdate()) |
| | | .append("oprMan", getOprMan()) |
| | | .append("oprTime", getOprTime()) |
| | | .append("modMan", getModMan()) |
| | | .append("modTime", getModTime()) |
| | | .append("note", getNote()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * energy对象 sys_energy |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-12 |
| | | */ |
| | | public class SysEnergy extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** æä½äºº */ |
| | | @Excel(name = "æä½äºº") |
| | | private String oprMan; |
| | | |
| | | /** æä½æ¶é´ */ |
| | | @Excel(name = "æä½æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date oprTime; |
| | | |
| | | /** ä¿®æ¹äºº */ |
| | | @Excel(name = "ä¿®æ¹äºº") |
| | | private String modMan; |
| | | |
| | | /** ä¿®æ¹æ¶é´ */ |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date modTime; |
| | | |
| | | /** è½æºID */ |
| | | private Integer enerid; |
| | | |
| | | /** è½æºåç§° */ |
| | | @Excel(name = "è½æºåç§°") |
| | | private String enername; |
| | | |
| | | /** 计éåä½ID */ |
| | | private Integer muid; |
| | | |
| | | /** è½æºç±»å«ID */ |
| | | private Integer enerclassid; |
| | | |
| | | /** è½æºç¼å· */ |
| | | @Excel(name = "è½æºç¼å·") |
| | | private String enersno; |
| | | |
| | | /** æ¯å¦åå¨ */ |
| | | @Excel(name = "æ¯å¦åå¨") |
| | | private Integer isstorage; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String note; |
| | | |
| | | /** è½æºç±»å */ |
| | | @Excel(name = "è½æºç±»å") |
| | | private String enerclassname; |
| | | |
| | | /** æ¯å¦å¨åï¼åç¬¦ä¸²ï¼ */ |
| | | private String isstorageString; |
| | | |
| | | /** åä»·*/ |
| | | private double price; |
| | | |
| | | /** æ§è¡æ¥æ */ |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date execdate; |
| | | |
| | | /** ä»·æ ¼å¤æ³¨ */ |
| | | private String pricenote; |
| | | |
| | | private Integer muidString; |
| | | |
| | | public String getMuidName() { |
| | | return muidName; |
| | | } |
| | | |
| | | public void setMuidName(String muidName) { |
| | | this.muidName = muidName; |
| | | } |
| | | |
| | | private String muidName; |
| | | |
| | | //çä»·ææ ç³»æ° |
| | | private double coefficient; |
| | | |
| | | //å½éææ ç³»æ° |
| | | private double coefficient2; |
| | | |
| | | //ææ ç³»æ°note |
| | | private String coefficientnote; |
| | | |
| | | /** ææ ç³»æ°æ§è¡æ¥æ */ |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date coefficientexecdate; |
| | | |
| | | public double getCoefficient() { |
| | | return coefficient; |
| | | } |
| | | |
| | | public void setCoefficient(double coefficient) { |
| | | this.coefficient = coefficient; |
| | | } |
| | | |
| | | public double getCoefficient2() { |
| | | return coefficient2; |
| | | } |
| | | |
| | | public void setCoefficient2(double coefficient2) { |
| | | this.coefficient2 = coefficient2; |
| | | } |
| | | |
| | | public String getCoefficientnote() { |
| | | return coefficientnote; |
| | | } |
| | | |
| | | public void setCoefficientnote(String coefficientnote) { |
| | | this.coefficientnote = coefficientnote; |
| | | } |
| | | |
| | | public Date getCoefficientexecdate() { |
| | | return coefficientexecdate; |
| | | } |
| | | |
| | | public void setCoefficientexecdate(Date coefficientexecdate) { |
| | | this.coefficientexecdate = coefficientexecdate; |
| | | } |
| | | |
| | | public Integer getMuidString() { |
| | | return muidString; |
| | | } |
| | | |
| | | public void setMuidString(Integer muidString) { |
| | | this.muidString = muidString; |
| | | } |
| | | |
| | | public double getPrice() { |
| | | return price; |
| | | } |
| | | |
| | | public void setPrice(double price) { |
| | | this.price = price; |
| | | } |
| | | |
| | | public Date getExecdate() { |
| | | return execdate; |
| | | } |
| | | |
| | | public void setExecdate(Date execdate) { |
| | | this.execdate = execdate; |
| | | } |
| | | |
| | | public String getPricenote() { |
| | | return pricenote; |
| | | } |
| | | |
| | | public void setPricenote(String pricenote) { |
| | | this.pricenote = pricenote; |
| | | } |
| | | |
| | | public String getIsstorageString() { |
| | | return isstorageString; |
| | | } |
| | | |
| | | public void setIsstorageString(String isstorageString) { |
| | | this.isstorageString = isstorageString; |
| | | } |
| | | |
| | | public String getEnerclassname() { |
| | | return enerclassname; |
| | | } |
| | | |
| | | public void setEnerclassname(String enerclassname) { |
| | | this.enerclassname = enerclassname; |
| | | } |
| | | |
| | | public void setOprMan(String oprMan) |
| | | { |
| | | this.oprMan = oprMan; |
| | | } |
| | | |
| | | public String getOprMan() |
| | | { |
| | | return oprMan; |
| | | } |
| | | public void setOprTime(Date oprTime) |
| | | { |
| | | this.oprTime = oprTime; |
| | | } |
| | | |
| | | public Date getOprTime() |
| | | { |
| | | return oprTime; |
| | | } |
| | | public void setModMan(String modMan) |
| | | { |
| | | this.modMan = modMan; |
| | | } |
| | | |
| | | public String getModMan() |
| | | { |
| | | return modMan; |
| | | } |
| | | public void setModTime(Date modTime) |
| | | { |
| | | this.modTime = modTime; |
| | | } |
| | | |
| | | public Date getModTime() |
| | | { |
| | | return modTime; |
| | | } |
| | | public void setEnerid(Integer enerid) |
| | | { |
| | | this.enerid = enerid; |
| | | } |
| | | |
| | | public Integer getEnerid() |
| | | { |
| | | return enerid; |
| | | } |
| | | public void setEnername(String enername) |
| | | { |
| | | this.enername = enername; |
| | | } |
| | | |
| | | public String getEnername() |
| | | { |
| | | return enername; |
| | | } |
| | | public void setMuid(Integer muid) |
| | | { |
| | | this.muid = muid; |
| | | } |
| | | |
| | | public Integer getMuid() |
| | | { |
| | | return muid; |
| | | } |
| | | public void setEnerclassid(Integer enerclassid) |
| | | { |
| | | this.enerclassid = enerclassid; |
| | | } |
| | | |
| | | public Integer getEnerclassid() |
| | | { |
| | | return enerclassid; |
| | | } |
| | | public void setEnersno(String enersno) |
| | | { |
| | | this.enersno = enersno; |
| | | } |
| | | |
| | | public String getEnersno() |
| | | { |
| | | return enersno; |
| | | } |
| | | public void setIsstorage(Integer isstorage) |
| | | { |
| | | this.isstorage = isstorage; |
| | | } |
| | | |
| | | public Integer getIsstorage() |
| | | { |
| | | return isstorage; |
| | | } |
| | | public void setNote(String note) |
| | | { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getNote() |
| | | { |
| | | return note; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("oprMan", getOprMan()) |
| | | .append("oprTime", getOprTime()) |
| | | .append("modMan", getModMan()) |
| | | .append("modTime", getModTime()) |
| | | .append("enerid", getEnerid()) |
| | | .append("enername", getEnername()) |
| | | .append("muid", getMuid()) |
| | | .append("enerclassid", getEnerclassid()) |
| | | .append("enersno", getEnersno()) |
| | | .append("isstorage", getIsstorage()) |
| | | .append("note", getNote()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å价设置对象 sys_price |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-15 |
| | | */ |
| | | public class SysPrice extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** åä»·ID */ |
| | | private Integer priceid; |
| | | |
| | | /** ObjectID_对象IDï¼ |
| | | ããè½æºIDãåæIDæäº§åID |
| | | */ |
| | | @Excel(name = "ObjectID_对象IDï¼ è½æºIDãåæIDæäº§åID ") |
| | | private Integer objectid; |
| | | |
| | | /** ObjectType_对象类å |
| | | ãã1=è½æº(Energy表)ï¼2=åæ(Material表)ï¼3=产å(Product表) */ |
| | | private Integer objecttype; |
| | | |
| | | /** åä»· */ |
| | | @Excel(name = "åä»·") |
| | | private Double price; |
| | | |
| | | /** æ§è¡æ¥æ */ |
| | | @Excel(name = "æ§è¡æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date execdate; |
| | | |
| | | /** æä½äºº */ |
| | | private String oprMan; |
| | | |
| | | /** æä½æ¶é´ */ |
| | | private Date oprTime; |
| | | |
| | | /** æ´æ°äºº */ |
| | | private String modMan; |
| | | |
| | | /** æ´æ°æ¶é´ */ |
| | | private Date modTime; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String note; |
| | | |
| | | //è½æºå |
| | | private String enername; |
| | | |
| | | public String getEnername() { |
| | | return enername; |
| | | } |
| | | |
| | | public void setEnername(String enername) { |
| | | this.enername = enername; |
| | | } |
| | | |
| | | public void setPriceid(Integer priceid) |
| | | { |
| | | this.priceid = priceid; |
| | | } |
| | | |
| | | public Integer getPriceid() |
| | | { |
| | | return priceid; |
| | | } |
| | | public void setObjectid(Integer objectid) |
| | | { |
| | | this.objectid = objectid; |
| | | } |
| | | |
| | | public Integer getObjectid() |
| | | { |
| | | return objectid; |
| | | } |
| | | public void setObjecttype(Integer objecttype) |
| | | { |
| | | this.objecttype = objecttype; |
| | | } |
| | | |
| | | public Integer getObjecttype() |
| | | { |
| | | return objecttype; |
| | | } |
| | | public void setPrice(Double price) |
| | | { |
| | | this.price = price; |
| | | } |
| | | |
| | | public Double getPrice() |
| | | { |
| | | return price; |
| | | } |
| | | public void setExecdate(Date execdate) |
| | | { |
| | | this.execdate = execdate; |
| | | } |
| | | |
| | | public Date getExecdate() |
| | | { |
| | | return execdate; |
| | | } |
| | | public void setOprMan(String oprMan) |
| | | { |
| | | this.oprMan = oprMan; |
| | | } |
| | | |
| | | public String getOprMan() |
| | | { |
| | | return oprMan; |
| | | } |
| | | public void setOprTime(Date oprTime) |
| | | { |
| | | this.oprTime = oprTime; |
| | | } |
| | | |
| | | public Date getOprTime() |
| | | { |
| | | return oprTime; |
| | | } |
| | | public void setModMan(String modMan) |
| | | { |
| | | this.modMan = modMan; |
| | | } |
| | | |
| | | public String getModMan() |
| | | { |
| | | return modMan; |
| | | } |
| | | public void setModTime(Date modTime) |
| | | { |
| | | this.modTime = modTime; |
| | | } |
| | | |
| | | public Date getModTime() |
| | | { |
| | | return modTime; |
| | | } |
| | | public void setNote(String note) |
| | | { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getNote() |
| | | { |
| | | return note; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("priceid", getPriceid()) |
| | | .append("objectid", getObjectid()) |
| | | .append("objecttype", getObjecttype()) |
| | | .append("price", getPrice()) |
| | | .append("execdate", getExecdate()) |
| | | .append("oprMan", getOprMan()) |
| | | .append("oprTime", getOprTime()) |
| | | .append("modMan", getModMan()) |
| | | .append("modTime", getModTime()) |
| | | .append("note", getNote()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 产å对象 sys_product |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-19 |
| | | */ |
| | | public class SysProduct extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 产åID */ |
| | | private Integer productid; |
| | | |
| | | /** 产ååç§° */ |
| | | @Excel(name = "产ååç§°") |
| | | private String productname; |
| | | |
| | | /** 产åç¼å· */ |
| | | @Excel(name = "产åç¼å·") |
| | | private String productsno; |
| | | |
| | | /** 计éåä½ */ |
| | | @Excel(name = "计éåä½") |
| | | private String muid; |
| | | |
| | | /** ç¶çº§äº§åID */ |
| | | @Excel(name = "ç¶çº§äº§åID") |
| | | private Integer superid; |
| | | |
| | | /** æ¯å¦ä¸ºå级 */ |
| | | @Excel(name = "æ¯å¦ä¸ºå级") |
| | | private String issub; |
| | | |
| | | /** æç®ç³»æ° */ |
| | | @Excel(name = "æç®ç³»æ°") |
| | | private Double procofficient; |
| | | |
| | | /** æ¯å¦æ¾ç¤º */ |
| | | @Excel(name = "æ¯å¦æ¾ç¤º") |
| | | private String isshow; |
| | | |
| | | /** æ¯å¦ä¸»è¦äº§å */ |
| | | @Excel(name = "æ¯å¦ä¸»è¦äº§å") |
| | | private String iscpnyproduct; |
| | | |
| | | /** æä½äºº */ |
| | | private String oprMan; |
| | | |
| | | /** æä½æ¶é´ */ |
| | | private Date oprTime; |
| | | |
| | | /** æ´æ°äºº */ |
| | | private String modMan; |
| | | |
| | | /** æ´æ°æ¶é´ */ |
| | | private Date modTime; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String note; |
| | | //ä»·æ ¼ |
| | | private double price; |
| | | |
| | | private String superidname; |
| | | |
| | | public String getSuperidname() { |
| | | return superidname; |
| | | } |
| | | |
| | | public void setSuperidname(String superidname) { |
| | | this.superidname = superidname; |
| | | } |
| | | |
| | | public double getPrice() { |
| | | return price; |
| | | } |
| | | |
| | | public void setPrice(double price) { |
| | | this.price = price; |
| | | } |
| | | |
| | | |
| | | |
| | | public void setProductid(Integer productid) |
| | | { |
| | | this.productid = productid; |
| | | } |
| | | |
| | | public Integer getProductid() |
| | | { |
| | | return productid; |
| | | } |
| | | public void setProductname(String productname) |
| | | { |
| | | this.productname = productname; |
| | | } |
| | | |
| | | public String getProductname() |
| | | { |
| | | return productname; |
| | | } |
| | | public void setProductsno(String productsno) |
| | | { |
| | | this.productsno = productsno; |
| | | } |
| | | |
| | | public String getProductsno() |
| | | { |
| | | return productsno; |
| | | } |
| | | public void setMuid(String muid) |
| | | { |
| | | this.muid = muid; |
| | | } |
| | | |
| | | public String getMuid() |
| | | { |
| | | return muid; |
| | | } |
| | | public void setSuperid(Integer superid) |
| | | { |
| | | this.superid = superid; |
| | | } |
| | | |
| | | public Integer getSuperid() |
| | | { |
| | | return superid; |
| | | } |
| | | public void setIssub(String issub) |
| | | { |
| | | this.issub = issub; |
| | | } |
| | | |
| | | public String getIssub() |
| | | { |
| | | return issub; |
| | | } |
| | | public void setProcofficient(Double procofficient) |
| | | { |
| | | this.procofficient = procofficient; |
| | | } |
| | | |
| | | public Double getProcofficient() |
| | | { |
| | | return procofficient; |
| | | } |
| | | public void setIsshow(String isshow) |
| | | { |
| | | this.isshow = isshow; |
| | | } |
| | | |
| | | public String getIsshow() |
| | | { |
| | | return isshow; |
| | | } |
| | | public void setIscpnyproduct(String iscpnyproduct) |
| | | { |
| | | this.iscpnyproduct = iscpnyproduct; |
| | | } |
| | | |
| | | public String getIscpnyproduct() |
| | | { |
| | | return iscpnyproduct; |
| | | } |
| | | public void setOprMan(String oprMan) |
| | | { |
| | | this.oprMan = oprMan; |
| | | } |
| | | |
| | | public String getOprMan() |
| | | { |
| | | return oprMan; |
| | | } |
| | | public void setOprTime(Date oprTime) |
| | | { |
| | | this.oprTime = oprTime; |
| | | } |
| | | |
| | | public Date getOprTime() |
| | | { |
| | | return oprTime; |
| | | } |
| | | public void setModMan(String modMan) |
| | | { |
| | | this.modMan = modMan; |
| | | } |
| | | |
| | | public String getModMan() |
| | | { |
| | | return modMan; |
| | | } |
| | | public void setModTime(Date modTime) |
| | | { |
| | | this.modTime = modTime; |
| | | } |
| | | |
| | | public Date getModTime() |
| | | { |
| | | return modTime; |
| | | } |
| | | public void setNote(String note) |
| | | { |
| | | this.note = note; |
| | | } |
| | | |
| | | public String getNote() |
| | | { |
| | | return note; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("productid", getProductid()) |
| | | .append("productname", getProductname()) |
| | | .append("productsno", getProductsno()) |
| | | .append("muid", getMuid()) |
| | | .append("superid", getSuperid()) |
| | | .append("issub", getIssub()) |
| | | .append("procofficient", getProcofficient()) |
| | | .append("isshow", getIsshow()) |
| | | .append("iscpnyproduct", getIscpnyproduct()) |
| | | .append("oprMan", getOprMan()) |
| | | .append("oprTime", getOprTime()) |
| | | .append("modMan", getModMan()) |
| | | .append("modTime", getModTime()) |
| | | .append("note", getNote()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnerclass; |
| | | import io.swagger.models.auth.In; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½æºåç§è®¾ç½®Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-10 |
| | | */ |
| | | public interface SysEnerclassMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return è½æºåç§è®¾ç½® |
| | | */ |
| | | public SysEnerclass selectSysEnerclassById(Integer enerclassid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½®å表 |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return è½æºåç§è®¾ç½®éå |
| | | */ |
| | | public List<SysEnerclass> selectSysEnerclassList(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * æ°å¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnerclass(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnerclass(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * å é¤è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnerclassById(Integer enerclassid); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnerclassByIds(Integer[] enerclassids); |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | int selectSameEnergyNameNum(String enerclassname); |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | Integer selectIdByName(String enerclassname); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnercoefficient; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½æºææ ç³»æ°Mapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-18 |
| | | */ |
| | | public interface SysEnercoefficientMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ° |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return è½æºææ ç³»æ° |
| | | */ |
| | | public SysEnercoefficient selectSysEnercoefficientById(Integer ecid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ°å表 |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return è½æºææ ç³»æ°éå |
| | | */ |
| | | public List<SysEnercoefficient> selectSysEnercoefficientList(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * æ°å¢è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnercoefficient(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnercoefficient(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * å é¤è½æºææ ç³»æ° |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnercoefficientById(Integer ecid); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºææ ç³»æ° |
| | | * |
| | | * @param ecids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnercoefficientByIds(Integer[] ecids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnergy; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * energyMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-12 |
| | | */ |
| | | public interface SysEnergyMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½æºç±»åä¸ææ¡ |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | List getenerclassname(); |
| | | /** |
| | | * æ¥è¯¢energy |
| | | * |
| | | * @param |
| | | * @return energy |
| | | */ |
| | | public SysEnergy selectSysEnergyById(Integer enerid); |
| | | |
| | | /** |
| | | * æ¥è¯¢energyå表 |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return energyéå |
| | | */ |
| | | public List<SysEnergy> selectSysEnergyList(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * æ°å¢energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnergy(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * ä¿®æ¹energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnergy(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * å é¤energy |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnergyById(Integer enerid); |
| | | |
| | | /** |
| | | * æ¹éå é¤energy |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnergyByIds(Integer[] enerids); |
| | | /** |
| | | * éè¿è½æºç±»ååç§°æ¥è¯¢ è½æºç±»åid |
| | | */ |
| | | Integer getEnerClassid(String enerclassname); |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | int selectSameEnergyNameNum(String enername); |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | Integer selectIdByName(String enername); |
| | | /** |
| | | * éè¿è½æºidæ¥è¯¢åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer getPriceCountByEnerid(SysEnergy sysEnergy); |
| | | /** |
| | | * å¢å åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer insertEnergyPrice(SysEnergy sysEnergy); |
| | | /** |
| | | * ä¿®æ¹åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer updateEnergyPrice(SysEnergy sysEnergy); |
| | | /** |
| | | * éè¿è½æºidæ¥ææ ç³»æ°num |
| | | */ |
| | | Integer getCoefficientCountByEnerid(Integer enerid); |
| | | /** |
| | | * å¢å ææ ç³»æ°ä¿¡æ¯ |
| | | */ |
| | | Integer insertEnergyCoefficient(SysEnergy sysEnergy); |
| | | /** |
| | | * ä¿®æ¹ææ ç³»æ°ä¿¡æ¯ |
| | | */ |
| | | Integer updateEnergyCoefficient(SysEnergy sysEnergy); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysPrice; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å价设置Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-15 |
| | | */ |
| | | public interface SysPriceMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢å价设置 |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return å价设置 |
| | | */ |
| | | public SysPrice selectSysPriceById(Integer priceid); |
| | | |
| | | /** |
| | | * æ¥è¯¢å价设置å表 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return å价设置éå |
| | | */ |
| | | public List<SysPrice> selectSysPriceList(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * æ°å¢å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysPrice(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * ä¿®æ¹å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysPrice(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * å é¤å价设置 |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysPriceById(Integer priceid); |
| | | |
| | | /** |
| | | * æ¹éå é¤å价设置 |
| | | * |
| | | * @param priceids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysPriceByIds(Integer[] priceids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysProduct; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 产åMapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-19 |
| | | */ |
| | | public interface SysProductMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢äº§å |
| | | * |
| | | * @param productid 产åID |
| | | * @return 产å |
| | | */ |
| | | public SysProduct selectSysProductById(Integer productid); |
| | | |
| | | /** |
| | | * æ¥è¯¢äº§åå表 |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return 产åéå |
| | | */ |
| | | public List<SysProduct> selectSysProductList(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * æ°å¢äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysProduct(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * ä¿®æ¹äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysProduct(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * å é¤äº§å |
| | | * |
| | | * @param productid 产åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysProductById(Integer productid); |
| | | |
| | | /** |
| | | * æ¹éå é¤äº§å |
| | | * |
| | | * @param productids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysProductByIds(Integer[] productids); |
| | | |
| | | //æ ¡éªnoåname å¯ä¸ |
| | | Integer selectCountByName(SysProduct sysProduct); |
| | | Integer selectCountByNo(SysProduct sysProduct); |
| | | Integer selectIdByName(SysProduct sysProduct); |
| | | Integer selectIdByNo(SysProduct sysProduct); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnerclass; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½æºåç§è®¾ç½®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-10 |
| | | */ |
| | | public interface ISysEnerclassService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return è½æºåç§è®¾ç½® |
| | | */ |
| | | public SysEnerclass selectSysEnerclassById(Integer enerclassid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½®å表 |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return è½æºåç§è®¾ç½®éå |
| | | */ |
| | | public List<SysEnerclass> selectSysEnerclassList(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * æ°å¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnerclass(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnerclass(SysEnerclass sysEnerclass); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassids éè¦å é¤çè½æºåç§è®¾ç½®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnerclassByIds(Integer[] enerclassids); |
| | | |
| | | /** |
| | | * å é¤è½æºåç§è®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnerclassById(Integer enerclassid); |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | int selectSameEnergyNameNum(String enerclassname); |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | Integer selectIdByName(String enerclassname); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnercoefficient; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½æºææ ç³»æ°Serviceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-18 |
| | | */ |
| | | public interface ISysEnercoefficientService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ° |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return è½æºææ ç³»æ° |
| | | */ |
| | | public SysEnercoefficient selectSysEnercoefficientById(Integer ecid); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ°å表 |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return è½æºææ ç³»æ°éå |
| | | */ |
| | | public List<SysEnercoefficient> selectSysEnercoefficientList(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * æ°å¢è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnercoefficient(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnercoefficient(SysEnercoefficient sysEnercoefficient); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºææ ç³»æ° |
| | | * |
| | | * @param ecids éè¦å é¤çè½æºææ ç³»æ°ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnercoefficientByIds(Integer[] ecids); |
| | | |
| | | /** |
| | | * å é¤è½æºææ ç³»æ°ä¿¡æ¯ |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnercoefficientById(Integer ecid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnergy; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * energyServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-12 |
| | | */ |
| | | public interface ISysEnergyService |
| | | { |
| | | /** |
| | | * æ¥è¯¢energy |
| | | * |
| | | * @param |
| | | * @return energy |
| | | */ |
| | | public SysEnergy selectSysEnergyById(Integer enerid); |
| | | |
| | | /** |
| | | * æ¥è¯¢energyå表 |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return energyéå |
| | | */ |
| | | public List<SysEnergy> selectSysEnergyList(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * æ°å¢energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysEnergy(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * ä¿®æ¹energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysEnergy(SysEnergy sysEnergy); |
| | | |
| | | /** |
| | | * æ¹éå é¤energy |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnergyByIds(Integer[] enerids); |
| | | |
| | | /** |
| | | * å é¤energyä¿¡æ¯ |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysEnergyById(Integer enerid); |
| | | /** |
| | | * æ¥è¯¢è½æºç±»åä¸ææ¡ |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | public List getenerclassname(); |
| | | /** |
| | | * æ¥è¯¢è½æºç±»åid by enerclassname |
| | | */ |
| | | Integer getEnerClassid(String enerclassname); |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | int selectSameEnergyNameNum(String enername); |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | Integer selectIdByName(String enername); |
| | | /** |
| | | * éè¿è½æºidæ¥è¯¢åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer getPriceCountByEnerid(SysEnergy sysEnergy); |
| | | /** |
| | | * å¢å åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer insertEnergyPrice(SysEnergy sysEnergy); |
| | | /** |
| | | * ä¿®æ¹åä»·ä¿¡æ¯ |
| | | */ |
| | | Integer updateEnergyPrice(SysEnergy sysEnergy); |
| | | /** |
| | | * éè¿è½æºidæ¥ææ ç³»æ°num |
| | | */ |
| | | Integer getCoefficientCountByEnerid(Integer enerid); |
| | | /** |
| | | * å¢å ææ ç³»æ°ä¿¡æ¯ |
| | | */ |
| | | Integer insertEnergyCoefficient(SysEnergy sysEnergy); |
| | | /** |
| | | * ä¿®æ¹ææ ç³»æ°ä¿¡æ¯ |
| | | */ |
| | | Integer updateEnergyCoefficient(SysEnergy sysEnergy); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysPrice; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å价设置Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-15 |
| | | */ |
| | | public interface ISysPriceService |
| | | { |
| | | /** |
| | | * æ¥è¯¢å价设置 |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return å价设置 |
| | | */ |
| | | public Object selectSysPriceById(Integer priceid); |
| | | |
| | | /** |
| | | * æ¥è¯¢å价设置å表 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return å价设置éå |
| | | */ |
| | | public List<SysPrice> selectSysPriceList(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * æ°å¢å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysPrice(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * ä¿®æ¹å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysPrice(SysPrice sysPrice); |
| | | |
| | | /** |
| | | * æ¹éå é¤å价设置 |
| | | * |
| | | * @param priceids éè¦å é¤çå价设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysPriceByIds(Integer[] priceids); |
| | | |
| | | /** |
| | | * å é¤åä»·è®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysPriceById(Integer priceid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysProduct; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 产åServiceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-19 |
| | | */ |
| | | public interface ISysProductService |
| | | { |
| | | /** |
| | | * æ¥è¯¢äº§å |
| | | * |
| | | * @param productid 产åID |
| | | * @return 产å |
| | | */ |
| | | public SysProduct selectSysProductById(Integer productid); |
| | | |
| | | /** |
| | | * æ¥è¯¢äº§åå表 |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return 产åéå |
| | | */ |
| | | public List<SysProduct> selectSysProductList(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * æ°å¢äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysProduct(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * ä¿®æ¹äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysProduct(SysProduct sysProduct); |
| | | |
| | | /** |
| | | * æ¹éå é¤äº§å |
| | | * |
| | | * @param productids éè¦å é¤ç产åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysProductByIds(Integer[] productids); |
| | | |
| | | /** |
| | | * å é¤äº§åä¿¡æ¯ |
| | | * |
| | | * @param productid 产åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysProductById(Integer productid); |
| | | //æ ¡éªnoåname å¯ä¸ |
| | | Integer selectCountByName(SysProduct sysProduct); |
| | | Integer selectCountByNo(SysProduct sysProduct); |
| | | Integer selectIdByName(SysProduct sysProduct); |
| | | Integer selectIdByNo(SysProduct sysProduct); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnerclassMapper; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnerclass; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnerclassService; |
| | | |
| | | /** |
| | | * è½æºåç§è®¾ç½®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-10 |
| | | */ |
| | | @Service |
| | | public class SysEnerclassServiceImpl implements ISysEnerclassService |
| | | { |
| | | @Autowired |
| | | private SysEnerclassMapper sysEnerclassMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return è½æºåç§è®¾ç½® |
| | | */ |
| | | @Override |
| | | public SysEnerclass selectSysEnerclassById(Integer enerclassid) |
| | | { |
| | | return sysEnerclassMapper.selectSysEnerclassById(enerclassid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºåç§è®¾ç½®å表 |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return è½æºåç§è®¾ç½® |
| | | */ |
| | | @Override |
| | | public List<SysEnerclass> selectSysEnerclassList(SysEnerclass sysEnerclass) |
| | | { |
| | | return sysEnerclassMapper.selectSysEnerclassList(sysEnerclass); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysEnerclass(SysEnerclass sysEnerclass) { |
| | | //è·åå½åç»å½äºº |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnerclass.setModMan(nowMan); |
| | | sysEnerclass.setOprMan(nowMan); |
| | | return sysEnerclassMapper.insertSysEnerclass(sysEnerclass); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºåç§è®¾ç½® |
| | | * |
| | | * @param sysEnerclass è½æºåç§è®¾ç½® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysEnerclass(SysEnerclass sysEnerclass) { |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnerclass.setModMan(nowMan); |
| | | return sysEnerclassMapper.updateSysEnerclass(sysEnerclass); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºåç§è®¾ç½® |
| | | * |
| | | * @param enerclassids éè¦å é¤çè½æºåç§è®¾ç½®ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnerclassByIds(Integer[] enerclassids) |
| | | { |
| | | return sysEnerclassMapper.deleteSysEnerclassByIds(enerclassids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½æºåç§è®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param enerclassid è½æºåç§è®¾ç½®ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnerclassById(Integer enerclassid) |
| | | { |
| | | return sysEnerclassMapper.deleteSysEnerclassById(enerclassid); |
| | | } |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | @Override |
| | | public int selectSameEnergyNameNum(String enerclassname) { |
| | | return sysEnerclassMapper.selectSameEnergyNameNum(enerclassname); |
| | | } |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | @Override |
| | | public Integer selectIdByName(String enerclassname) { |
| | | return sysEnerclassMapper.selectIdByName(enerclassname); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service.impl; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnercoefficientMapper; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnercoefficient; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnercoefficientService; |
| | | |
| | | /** |
| | | * è½æºææ ç³»æ°Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-18 |
| | | */ |
| | | @Service |
| | | public class SysEnercoefficientServiceImpl implements ISysEnercoefficientService |
| | | { |
| | | @Autowired |
| | | private SysEnercoefficientMapper sysEnercoefficientMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ° |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return è½æºææ ç³»æ° |
| | | */ |
| | | @Override |
| | | public SysEnercoefficient selectSysEnercoefficientById(Integer ecid) |
| | | { |
| | | return sysEnercoefficientMapper.selectSysEnercoefficientById(ecid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è½æºææ ç³»æ°å表 |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return è½æºææ ç³»æ° |
| | | */ |
| | | @Override |
| | | public List<SysEnercoefficient> selectSysEnercoefficientList(SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | return sysEnercoefficientMapper.selectSysEnercoefficientList(sysEnercoefficient); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysEnercoefficient(SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | return sysEnercoefficientMapper.insertSysEnercoefficient(sysEnercoefficient); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½æºææ ç³»æ° |
| | | * |
| | | * @param sysEnercoefficient è½æºææ ç³»æ° |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysEnercoefficient(SysEnercoefficient sysEnercoefficient) |
| | | { |
| | | return sysEnercoefficientMapper.updateSysEnercoefficient(sysEnercoefficient); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è½æºææ ç³»æ° |
| | | * |
| | | * @param ecids éè¦å é¤çè½æºææ ç³»æ°ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnercoefficientByIds(Integer[] ecids) |
| | | { |
| | | return sysEnercoefficientMapper.deleteSysEnercoefficientByIds(ecids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½æºææ ç³»æ°ä¿¡æ¯ |
| | | * |
| | | * @param ecid è½æºææ ç³»æ°ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnercoefficientById(Integer ecid) |
| | | { |
| | | return sysEnercoefficientMapper.deleteSysEnercoefficientById(ecid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnergyMapper; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysEnergy; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysEnergyService; |
| | | |
| | | /** |
| | | * energyServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-12 |
| | | */ |
| | | @Service |
| | | public class SysEnergyServiceImpl implements ISysEnergyService |
| | | { |
| | | @Autowired |
| | | private SysEnergyMapper sysEnergyMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢energy |
| | | * |
| | | * @param |
| | | * @return energy |
| | | */ |
| | | @Override |
| | | public SysEnergy selectSysEnergyById(Integer enerid) |
| | | { |
| | | return sysEnergyMapper.selectSysEnergyById(enerid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢energyå表 |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return energy |
| | | */ |
| | | @Override |
| | | public List<SysEnergy> selectSysEnergyList(SysEnergy sysEnergy) |
| | | { |
| | | String s = "1"; |
| | | //æ¾å
¥ æ¯å¦å¨åï¼åç¬¦ä¸²ï¼ |
| | | List<SysEnergy> list = sysEnergyMapper.selectSysEnergyList(sysEnergy); |
| | | for (SysEnergy energy : list) { |
| | | if (energy.getIsstorage() == 0) { |
| | | energy.setIsstorageString("æ¯"); |
| | | }else { |
| | | energy.setIsstorageString("å¦"); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysEnergy(SysEnergy sysEnergy) |
| | | { |
| | | //è·åå½åç»å½äºº |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | sysEnergy.setOprMan(nowMan); |
| | | return sysEnergyMapper.insertSysEnergy(sysEnergy); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹energy |
| | | * |
| | | * @param sysEnergy energy |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysEnergy(SysEnergy sysEnergy) |
| | | { |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | return sysEnergyMapper.updateSysEnergy(sysEnergy); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤energy |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnergyByIds(Integer[] enerids) |
| | | { |
| | | return sysEnergyMapper.deleteSysEnergyByIds(enerids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤energyä¿¡æ¯ |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysEnergyById(Integer enerid) |
| | | { |
| | | return sysEnergyMapper.deleteSysEnergyById(enerid); |
| | | } |
| | | /** |
| | | * æ¥è¯¢è½æºç±»åä¸ææ¡ |
| | | * |
| | | * @param |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public List getenerclassname() { |
| | | return sysEnergyMapper.getenerclassname(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer getEnerClassid(String enerclassname) { |
| | | return sysEnergyMapper.getEnerClassid(enerclassname); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸æ ·çè½æºåç§°æå 个 è½æºåç§°å¯ä¸æ ¡éª |
| | | */ |
| | | @Override |
| | | public int selectSameEnergyNameNum(String enername) { |
| | | return sysEnergyMapper.selectSameEnergyNameNum(enername); |
| | | } |
| | | /** |
| | | * ä¿®æ¹çæ¶åæ¥è¯¢ä¸æ ·è½æºåç§°çid |
| | | */ |
| | | @Override |
| | | public Integer selectIdByName(String enername) { |
| | | return sysEnergyMapper.selectIdByName(enername); |
| | | } |
| | | |
| | | @Override |
| | | public Integer getPriceCountByEnerid(SysEnergy sysEnergy) { |
| | | return sysEnergyMapper.getPriceCountByEnerid(sysEnergy); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertEnergyPrice(SysEnergy sysEnergy) { |
| | | //è·åå½åç»å½äºº |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | sysEnergy.setOprMan(nowMan); |
| | | return sysEnergyMapper.insertEnergyPrice(sysEnergy); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateEnergyPrice(SysEnergy sysEnergy) { |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | return sysEnergyMapper.updateEnergyPrice(sysEnergy); |
| | | } |
| | | |
| | | @Override |
| | | public Integer getCoefficientCountByEnerid(Integer enerid) { |
| | | return sysEnergyMapper.getCoefficientCountByEnerid(enerid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertEnergyCoefficient(SysEnergy sysEnergy) { |
| | | //è·åå½åç»å½äºº |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | sysEnergy.setOprMan(nowMan); |
| | | return sysEnergyMapper.insertEnergyCoefficient(sysEnergy); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateEnergyCoefficient(SysEnergy sysEnergy) { |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysEnergy.setModMan(nowMan); |
| | | return sysEnergyMapper.updateEnergyCoefficient(sysEnergy); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysPrice; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysPriceMapper; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysPriceService; |
| | | |
| | | /** |
| | | * å价设置Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2020-02-15 |
| | | */ |
| | | @Service |
| | | public class SysPriceServiceImpl implements ISysPriceService |
| | | { |
| | | @Autowired |
| | | private SysPriceMapper sysPriceMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢å价设置 |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return å价设置 |
| | | */ |
| | | @Override |
| | | public Object selectSysPriceById(Integer priceid) |
| | | { |
| | | return sysPriceMapper.selectSysPriceById(priceid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å价设置å表 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return å价设置 |
| | | */ |
| | | @Override |
| | | public List<SysPrice> selectSysPriceList(SysPrice sysPrice) |
| | | { |
| | | return sysPriceMapper.selectSysPriceList(sysPrice); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysPrice(SysPrice sysPrice) |
| | | { |
| | | return sysPriceMapper.insertSysPrice(sysPrice); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å价设置 |
| | | * |
| | | * @param sysPrice å价设置 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysPrice(SysPrice sysPrice) |
| | | { |
| | | return sysPriceMapper.updateSysPrice(sysPrice); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å价设置 |
| | | * |
| | | * @param priceids éè¦å é¤çå价设置ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysPriceByIds(Integer[] priceids) |
| | | { |
| | | return sysPriceMapper.deleteSysPriceByIds(priceids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤åä»·è®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param priceid å价设置ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysPriceById(Integer priceid) |
| | | { |
| | | return sysPriceMapper.deleteSysPriceById(priceid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.enerInfoManage.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysProductMapper; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.domain.SysProduct; |
| | | import com.dingzhuo.energy.basic.data.enerInfoManage.service.ISysProductService; |
| | | |
| | | /** |
| | | * 产åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-19 |
| | | */ |
| | | @Service |
| | | public class SysProductServiceImpl implements ISysProductService |
| | | { |
| | | @Autowired |
| | | private SysProductMapper sysProductMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢äº§å |
| | | * |
| | | * @param productid 产åID |
| | | * @return 产å |
| | | */ |
| | | @Override |
| | | public SysProduct selectSysProductById(Integer productid) |
| | | { |
| | | return sysProductMapper.selectSysProductById(productid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢äº§åå表 |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return 产å |
| | | */ |
| | | @Override |
| | | public List<SysProduct> selectSysProductList(SysProduct sysProduct) |
| | | { |
| | | return sysProductMapper.selectSysProductList(sysProduct); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysProduct(SysProduct sysProduct) |
| | | { |
| | | //è·åå½åç»å½äºº |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysProduct.setModMan(nowMan); |
| | | sysProduct.setOprMan(nowMan); |
| | | return sysProductMapper.insertSysProduct(sysProduct); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹äº§å |
| | | * |
| | | * @param sysProduct 产å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysProduct(SysProduct sysProduct) |
| | | { |
| | | String nowMan = SecurityUtils.getUsername(); |
| | | sysProduct.setModMan(nowMan); |
| | | return sysProductMapper.updateSysProduct(sysProduct); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤äº§å |
| | | * |
| | | * @param productids éè¦å é¤ç产åID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysProductByIds(Integer[] productids) |
| | | { |
| | | return sysProductMapper.deleteSysProductByIds(productids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤äº§åä¿¡æ¯ |
| | | * |
| | | * @param productid 产åID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysProductById(Integer productid) |
| | | { |
| | | return sysProductMapper.deleteSysProductById(productid); |
| | | } |
| | | |
| | | |
| | | //æ ¡éªnoåname å¯ä¸ |
| | | @Override |
| | | public Integer selectCountByName(SysProduct sysProduct) { |
| | | return sysProductMapper.selectCountByName(sysProduct); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectCountByNo(SysProduct sysProduct) { |
| | | return sysProductMapper.selectCountByNo(sysProduct); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectIdByName(SysProduct sysProduct) { |
| | | return sysProductMapper.selectIdByName(sysProduct); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectIdByNo(SysProduct sysProduct) { |
| | | return sysProductMapper.selectIdByNo(sysProduct); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProjectAnnex; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyProjectAnnexService; |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUploadUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.config.RuoYiConfig; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çéä»¶Controller |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-08 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/energy/energyAnnex") |
| | | public class EnergyProjectAnnexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEnergyProjectAnnexService energyProjectAnnexService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | private static final Logger log = LoggerFactory.getLogger(EnergyProjectAnnexController.class); |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | startPage(); |
| | | List<EnergyProjectAnnex> list = energyProjectAnnexService.selectEnergyProjectAnnexList(energyProjectAnnex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèè½é¡¹ç®ç®¡çéä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:export')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡çéä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | List<EnergyProjectAnnex> list = energyProjectAnnexService.selectEnergyProjectAnnexList(energyProjectAnnex); |
| | | ExcelUtil<EnergyProjectAnnex> util = new ExcelUtil<EnergyProjectAnnex>(EnergyProjectAnnex.class); |
| | | return util.exportExcel(list, "energyAnnex"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèè½é¡¹ç®ç®¡çé件详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(energyProjectAnnexService.selectEnergyProjectAnnexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:add')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡çéä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | return toAjax(energyProjectAnnexService.insertEnergyProjectAnnex(energyProjectAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:edit')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡çéä»¶", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | return toAjax(energyProjectAnnexService.updateEnergyProjectAnnex(energyProjectAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:remove')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡çéä»¶", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(energyProjectAnnexService.deleteEnergyProjectAnnexByIds(ids)); |
| | | } |
| | | /** |
| | | * èè½è®¡åéä»¶ä¸ä¼ |
| | | */ |
| | | @Log(title = "èè½è®¡åéä»¶ä¸ä¼ ", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:fileImport')") |
| | | @PostMapping("/fileImport") |
| | | public AjaxResult importData(MultipartFile file, String projectId) throws Exception |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //è·åé
ç½®çæä»¶ä¸ä¼ è·¯å¾ |
| | | String uploadPathDir = RuoYiConfig.getUploadPath(); |
| | | //è·åæä»¶åå§åç§° |
| | | String fileName = file.getOriginalFilename(); |
| | | //è·åæä»¶æ©å±å |
| | | String fileSuffix = FileUploadUtils.getExtension(file); |
| | | // System.out.println("implementId==="+implementId); |
| | | // System.out.println("filedir==="+uploadPathDir); |
| | | // System.out.println("fileName==="+fileName); |
| | | // System.out.println("fileSuffix==="+fileSuffix); |
| | | //æä»¶æç»ä¿åçç»å¯¹è·¯å¾ |
| | | String filePath = FileUploadUtils.uploadAll(uploadPathDir, file); |
| | | // System.out.println("ä¸ä¼ æä»¶å°å:===>"+filePath); |
| | | EnergyProjectAnnex energyProjectAnnex=new EnergyProjectAnnex(); |
| | | //设置主é®UUID |
| | | energyProjectAnnex.setId(IdUtils.simpleUUID()); |
| | | energyProjectAnnex.setFileName(fileName); |
| | | energyProjectAnnex.setFilePath(filePath); |
| | | energyProjectAnnex.setFileSuffix(fileSuffix); |
| | | energyProjectAnnex.setProjectId(projectId); |
| | | energyProjectAnnex.setCreateBy(loginUser.getUsername()); |
| | | if (this.energyProjectAnnexService.insertEnergyProjectAnnex(energyProjectAnnex)>0) |
| | | { |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 宿"); |
| | | } |
| | | } |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 失败"); |
| | | } |
| | | /** |
| | | * éç¨æå®æä»¶ä¸è½½è¯·æ± |
| | | * |
| | | * @param showFileName ä¸è½½å±ç¤ºæä»¶åç§° |
| | | // * @param filePath ä¸è½½æä»¶ç»å¯¹è·¯å¾ 带 æä»¶çå®åååè·¯å¾ |
| | | * @param delete æ¯å¦å é¤/ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyAnnex:assignDownload')") |
| | | @PostMapping("/assignDownload") |
| | | public void fileAssignDownload(String showFileName, String filePath, Boolean delete, HttpServletResponse response, HttpServletRequest request) |
| | | { |
| | | |
| | | try |
| | | { |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setContentType("multipart/form-data"); |
| | | response.setHeader("Content-Disposition", |
| | | "attachment;fileName=" + FileUtils.setFileDownloadHeader(request, showFileName)); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | // if (delete) |
| | | // { |
| | | // FileUtils.deleteFile(filePath); |
| | | // } |
| | | log.error("ä¸è½½æå", "aa"); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | log.error("ä¸è½½æä»¶å¤±è´¥", e); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProject; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyProjectService; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çController |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/energy/energyProject") |
| | | @Api(value = "èè½é¡¹ç®ç®¡ç",tags = {"èè½é¡¹ç®ç®¡ç"}) |
| | | public class EnergyProjectController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEnergyProjectService energyProjectService; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "èè½é¡¹ç®å表") |
| | | public TableDataInfo list(EnergyProject energyProject) |
| | | { |
| | | startPage(); |
| | | List<EnergyProject> list = energyProjectService.selectEnergyProjectList(energyProject); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèè½é¡¹ç®ç®¡çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:export')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | @ApiOperation(value = "èè½é¡¹ç®å¯¼åº") |
| | | public AjaxResult export(EnergyProject energyProject) |
| | | { |
| | | List<EnergyProject> list = energyProjectService.selectEnergyProjectList(energyProject); |
| | | ExcelUtil<EnergyProject> util = new ExcelUtil<EnergyProject>(EnergyProject.class); |
| | | return util.exportExcel(list, "energyProject"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèè½é¡¹ç®ç®¡ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "æ ¹æ®idè·åèè½é¡¹ç®è¯¦æ
") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(energyProjectService.selectEnergyProjectById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:add')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "æ°å¢èè½é¡¹ç®") |
| | | public AjaxResult add(@RequestBody EnergyProject energyProject) |
| | | { |
| | | energyProject.setId(UUID.randomUUID().toString()); |
| | | energyProject.setCreateOperator(SecurityUtils.getUsername()); |
| | | return toAjax(energyProjectService.insertEnergyProject(energyProject)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:edit')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "ç¼è¾èè½é¡¹ç®") |
| | | public AjaxResult edit(@RequestBody EnergyProject energyProject) |
| | | { |
| | | return toAjax(energyProjectService.updateEnergyProject(energyProject)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:energyProject:remove')") |
| | | @Log(title = "èè½é¡¹ç®ç®¡ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "å é¤èè½é¡¹ç®") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(energyProjectService.deleteEnergyProjectByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProjectAnnex; |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUploadUtils; |
| | | import com.dingzhuo.energy.framework.config.RuoYiConfig; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReportAnnex; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyReportAnnexService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çéä»¶Controller |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/energy/reportAnnex") |
| | | public class EnergyReportAnnexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEnergyReportAnnexService energyReportAnnexService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | startPage(); |
| | | List<EnergyReportAnnex> list = energyReportAnnexService.selectEnergyReportAnnexList(energyReportAnnex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèè½åææ¥å管çéä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:export')") |
| | | @Log(title = "èè½åææ¥å管çéä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | List<EnergyReportAnnex> list = energyReportAnnexService.selectEnergyReportAnnexList(energyReportAnnex); |
| | | ExcelUtil<EnergyReportAnnex> util = new ExcelUtil<EnergyReportAnnex>(EnergyReportAnnex.class); |
| | | return util.exportExcel(list, "reportAnnex"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèè½åææ¥å管çé件详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(energyReportAnnexService.selectEnergyReportAnnexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:add')") |
| | | @Log(title = "èè½åææ¥å管çéä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | return toAjax(energyReportAnnexService.insertEnergyReportAnnex(energyReportAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:edit')") |
| | | @Log(title = "èè½åææ¥å管çéä»¶", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | return toAjax(energyReportAnnexService.updateEnergyReportAnnex(energyReportAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çéä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:reportAnnex:remove')") |
| | | @Log(title = "èè½åææ¥å管çéä»¶", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(energyReportAnnexService.deleteEnergyReportAnnexByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * èè½è®¡åéä»¶ä¸ä¼ |
| | | */ |
| | | @Log(title = "èè½åææ¥å管çéä»¶ä¸ä¼ ", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/fileImport") |
| | | public AjaxResult importData(MultipartFile file, String reportId) throws Exception |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //è·åé
ç½®çæä»¶ä¸ä¼ è·¯å¾ |
| | | String uploadPathDir = RuoYiConfig.getUploadPath(); |
| | | //è·åæä»¶åå§åç§° |
| | | String fileName = file.getOriginalFilename(); |
| | | //è·åæä»¶æ©å±å |
| | | String fileSuffix = FileUploadUtils.getExtension(file); |
| | | //æä»¶æç»ä¿åçç»å¯¹è·¯å¾ |
| | | String filePath = FileUploadUtils.uploadAll(uploadPathDir, file); |
| | | // System.out.println("ä¸ä¼ æä»¶å°å:===>"+filePath); |
| | | EnergyReportAnnex energyReportAnnex=new EnergyReportAnnex(); |
| | | //设置主é®UUID |
| | | energyReportAnnex.setId(IdUtils.simpleUUID()); |
| | | energyReportAnnex.setFileName(fileName); |
| | | energyReportAnnex.setFilePath(filePath); |
| | | energyReportAnnex.setFileSuffix(fileSuffix); |
| | | energyReportAnnex.setReportId(reportId); |
| | | energyReportAnnex.setCreateBy(loginUser.getUsername()); |
| | | if (this.energyReportAnnexService.insertEnergyReportAnnex(energyReportAnnex)>0) |
| | | { |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 宿"); |
| | | } |
| | | } |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 失败"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReport; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyReportService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çController |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/energy/report") |
| | | public class EnergyReportController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEnergyReportService energyReportService; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(EnergyReport energyReport) |
| | | { |
| | | startPage(); |
| | | List<EnergyReport> list = energyReportService.selectEnergyReportList(energyReport); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèè½åææ¥å管çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:export')") |
| | | @Log(title = "èè½åææ¥å管ç", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(EnergyReport energyReport) |
| | | { |
| | | List<EnergyReport> list = energyReportService.selectEnergyReportList(energyReport); |
| | | ExcelUtil<EnergyReport> util = new ExcelUtil<EnergyReport>(EnergyReport.class); |
| | | return util.exportExcel(list, "report"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèè½åææ¥å管ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(energyReportService.selectEnergyReportById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:add')") |
| | | @Log(title = "èè½åææ¥å管ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody EnergyReport energyReport) |
| | | { |
| | | energyReport.setId(UUID.randomUUID().toString()); |
| | | energyReport.setCreateBy(SecurityUtils.getUsername()); |
| | | return toAjax(energyReportService.insertEnergyReport(energyReport)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:edit')") |
| | | @Log(title = "èè½åææ¥å管ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody EnergyReport energyReport) |
| | | { |
| | | return toAjax(energyReportService.updateEnergyReport(energyReport)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energy:report:remove')") |
| | | @Log(title = "èè½åææ¥å管ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(energyReportService.deleteEnergyReportByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡ç对象 energy_project |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-07 |
| | | */ |
| | | @ApiModel(value = "èè½é¡¹ç®") |
| | | public class EnergyProject extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | @ApiModelProperty(value = "id") |
| | | private String id; |
| | | |
| | | /** 项ç®åç§° */ |
| | | @ApiModelProperty(value = "项ç®åç§°") |
| | | @Excel(name = "项ç®åç§°") |
| | | private String name; |
| | | |
| | | /** èè½è®¡å */ |
| | | @ApiModelProperty(value = "èè½è®¡å") |
| | | @Excel(name = "èè½è®¡å") |
| | | private String plan; |
| | | |
| | | /** èè½ç®æ */ |
| | | @ApiModelProperty(value = "èè½ç®æ ") |
| | | @Excel(name = "èè½ç®æ ") |
| | | private String target; |
| | | |
| | | /** å¼å§æ¶é´ */ |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | @Excel(name = "å¼å§æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date startTime; |
| | | |
| | | /** ç»ææ¶é´ */ |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | @Excel(name = "ç»ææ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date enddTime; |
| | | |
| | | /** è´è´£äºº */ |
| | | @ApiModelProperty(value = "è´è´£äºº") |
| | | @Excel(name = "è´è´£äºº") |
| | | private String people; |
| | | |
| | | /** å¶å®æ¶æ£ */ |
| | | @ApiModelProperty(value = "å¶å®æ¶æ£") |
| | | @Excel(name = "å¶å®æ¶æ£", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date setTime; |
| | | |
| | | /** å建人 */ |
| | | @ApiModelProperty(value = "å建人") |
| | | @Excel(name = "å建人") |
| | | private String createOperator; |
| | | |
| | | /** ä¿®æ¹äºº */ |
| | | @ApiModelProperty(value = "ä¿®æ¹äºº") |
| | | @Excel(name = "ä¿®æ¹äºº") |
| | | private String updateOperator; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | public void setPlan(String plan) |
| | | { |
| | | this.plan = plan; |
| | | } |
| | | |
| | | public String getPlan() |
| | | { |
| | | return plan; |
| | | } |
| | | public void setTarget(String target) |
| | | { |
| | | this.target = target; |
| | | } |
| | | |
| | | public String getTarget() |
| | | { |
| | | return target; |
| | | } |
| | | public void setStartTime(Date startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setEnddTime(Date enddTime) |
| | | { |
| | | this.enddTime = enddTime; |
| | | } |
| | | |
| | | public Date getEnddTime() |
| | | { |
| | | return enddTime; |
| | | } |
| | | public void setPeople(String people) |
| | | { |
| | | this.people = people; |
| | | } |
| | | |
| | | public String getPeople() |
| | | { |
| | | return people; |
| | | } |
| | | public void setSetTime(Date setTime) |
| | | { |
| | | this.setTime = setTime; |
| | | } |
| | | |
| | | public Date getSetTime() |
| | | { |
| | | return setTime; |
| | | } |
| | | public void setCreateOperator(String createOperator) |
| | | { |
| | | this.createOperator = createOperator; |
| | | } |
| | | |
| | | public String getCreateOperator() |
| | | { |
| | | return createOperator; |
| | | } |
| | | public void setUpdateOperator(String updateOperator) |
| | | { |
| | | this.updateOperator = updateOperator; |
| | | } |
| | | |
| | | public String getUpdateOperator() |
| | | { |
| | | return updateOperator; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("name", getName()) |
| | | .append("plan", getPlan()) |
| | | .append("target", getTarget()) |
| | | .append("startTime", getStartTime()) |
| | | .append("enddTime", getEnddTime()) |
| | | .append("people", getPeople()) |
| | | .append("setTime", getSetTime()) |
| | | .append("createOperator", getCreateOperator()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateOperator", getUpdateOperator()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çé件对象 energy_project_annex |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-08 |
| | | */ |
| | | public class EnergyProjectAnnex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** å
³èå
³èenergy_project */ |
| | | @Excel(name = "å
³èenergy_project") |
| | | private String projectId; |
| | | |
| | | /** æä»¶å */ |
| | | @Excel(name = "æä»¶å") |
| | | private String fileName; |
| | | |
| | | /** æä»¶åç¼ */ |
| | | @Excel(name = "æä»¶åç¼") |
| | | private String fileSuffix; |
| | | |
| | | /** æä»¶è·¯å¾ */ |
| | | @Excel(name = "æä»¶è·¯å¾") |
| | | private String filePath; |
| | | |
| | | /** å 餿 å¿Yå é¤ N为å é¤ */ |
| | | @Excel(name = "å 餿 å¿Yå é¤ N为å é¤") |
| | | private String delFlage; |
| | | |
| | | /** 建ç«äºº */ |
| | | @Excel(name = "建ç«äºº") |
| | | private String createOperator; |
| | | |
| | | /** ä¿®æ¹äºº */ |
| | | @Excel(name = "ä¿®æ¹äºº") |
| | | private String updateOperator; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setProjectId(String projectId) |
| | | { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public String getProjectId() |
| | | { |
| | | return projectId; |
| | | } |
| | | public void setFileName(String fileName) |
| | | { |
| | | this.fileName = fileName; |
| | | } |
| | | |
| | | public String getFileName() |
| | | { |
| | | return fileName; |
| | | } |
| | | public void setFileSuffix(String fileSuffix) |
| | | { |
| | | this.fileSuffix = fileSuffix; |
| | | } |
| | | |
| | | public String getFileSuffix() |
| | | { |
| | | return fileSuffix; |
| | | } |
| | | public void setFilePath(String filePath) |
| | | { |
| | | this.filePath = filePath; |
| | | } |
| | | |
| | | public String getFilePath() |
| | | { |
| | | return filePath; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | public void setCreateOperator(String createOperator) |
| | | { |
| | | this.createOperator = createOperator; |
| | | } |
| | | |
| | | public String getCreateOperator() |
| | | { |
| | | return createOperator; |
| | | } |
| | | public void setUpdateOperator(String updateOperator) |
| | | { |
| | | this.updateOperator = updateOperator; |
| | | } |
| | | |
| | | public String getUpdateOperator() |
| | | { |
| | | return updateOperator; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("projectId", getProjectId()) |
| | | .append("fileName", getFileName()) |
| | | .append("fileSuffix", getFileSuffix()) |
| | | .append("filePath", getFilePath()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createOperator", getCreateOperator()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateOperator", getUpdateOperator()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * èè½åææ¥å管ç对象 energy_report |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public class EnergyReport extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** æ¥ååç§° */ |
| | | @Excel(name = "æ¥ååç§°") |
| | | private String name; |
| | | |
| | | /** å¼å§æ¶é´ */ |
| | | @Excel(name = "å¼å§æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date startTime; |
| | | |
| | | /** ç»ææ¶é´ */ |
| | | @Excel(name = "ç»ææ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date enddTime; |
| | | |
| | | /** 夿³¨ */ |
| | | @Excel(name = "夿³¨") |
| | | private String bak; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | public void setStartTime(Date startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setEnddTime(Date enddTime) |
| | | { |
| | | this.enddTime = enddTime; |
| | | } |
| | | |
| | | public Date getEnddTime() |
| | | { |
| | | return enddTime; |
| | | } |
| | | public void setBak(String bak) |
| | | { |
| | | this.bak = bak; |
| | | } |
| | | |
| | | public String getBak() |
| | | { |
| | | return bak; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("name", getName()) |
| | | .append("startTime", getStartTime()) |
| | | .append("enddTime", getEnddTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("bak", getBak()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çé件对象 energy_report_annex |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public class EnergyReportAnnex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** å
³èenergy_report.id */ |
| | | @Excel(name = "å
³èenergy_report.id") |
| | | private String reportId; |
| | | |
| | | /** æä»¶å */ |
| | | @Excel(name = "æä»¶å") |
| | | private String fileName; |
| | | |
| | | /** æä»¶åç¼ */ |
| | | @Excel(name = "æä»¶åç¼") |
| | | private String fileSuffix; |
| | | |
| | | /** æä»¶è·¯å¾ */ |
| | | @Excel(name = "æä»¶è·¯å¾") |
| | | private String filePath; |
| | | |
| | | /** å 餿 å¿Yå é¤ N为å é¤ */ |
| | | @Excel(name = "å 餿 å¿Yå é¤ N为å é¤") |
| | | private String delFlage; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setReportId(String reportId) |
| | | { |
| | | this.reportId = reportId; |
| | | } |
| | | |
| | | public String getReportId() |
| | | { |
| | | return reportId; |
| | | } |
| | | public void setFileName(String fileName) |
| | | { |
| | | this.fileName = fileName; |
| | | } |
| | | |
| | | public String getFileName() |
| | | { |
| | | return fileName; |
| | | } |
| | | public void setFileSuffix(String fileSuffix) |
| | | { |
| | | this.fileSuffix = fileSuffix; |
| | | } |
| | | |
| | | public String getFileSuffix() |
| | | { |
| | | return fileSuffix; |
| | | } |
| | | public void setFilePath(String filePath) |
| | | { |
| | | this.filePath = filePath; |
| | | } |
| | | |
| | | public String getFilePath() |
| | | { |
| | | return filePath; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("reportId", getReportId()) |
| | | .append("fileName", getFileName()) |
| | | .append("fileSuffix", getFileSuffix()) |
| | | .append("filePath", getFilePath()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProjectAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çéä»¶Mapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-08 |
| | | */ |
| | | public interface EnergyProjectAnnexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | public EnergyProjectAnnex selectEnergyProjectAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶å表 |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶éå |
| | | */ |
| | | public List<EnergyProjectAnnex> selectEnergyProjectAnnexList(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectAnnexByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProject; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çMapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-07 |
| | | */ |
| | | public interface EnergyProjectMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | public EnergyProject selectEnergyProjectById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çå表 |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return èè½é¡¹ç®ç®¡çéå |
| | | */ |
| | | public List<EnergyProject> selectEnergyProjectList(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyProject(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyProject(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReportAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çéä»¶Mapperæ¥å£selectEnergyReportAnnexList |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public interface EnergyReportAnnexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return èè½åææ¥å管çéä»¶ |
| | | */ |
| | | public EnergyReportAnnex selectEnergyReportAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶å表 |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return èè½åææ¥å管çéä»¶éå |
| | | */ |
| | | public List<EnergyReportAnnex> selectEnergyReportAnnexList(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyReportAnnex(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyReportAnnex(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportAnnexByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReport; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çMapperæ¥å£ |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public interface EnergyReportMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管ç |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return èè½åææ¥å管ç |
| | | */ |
| | | public EnergyReport selectEnergyReportById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çå表 |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return èè½åææ¥å管çéå |
| | | */ |
| | | public List<EnergyReport> selectEnergyReportList(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyReport(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyReport(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管ç |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管ç |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProjectAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çéä»¶Serviceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-08 |
| | | */ |
| | | public interface IEnergyProjectAnnexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | public EnergyProjectAnnex selectEnergyProjectAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶å表 |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶éå |
| | | */ |
| | | public List<EnergyProjectAnnex> selectEnergyProjectAnnexList(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çèè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectAnnexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çéä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectAnnexById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProject; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çServiceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-07 |
| | | */ |
| | | public interface IEnergyProjectService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | public EnergyProject selectEnergyProjectById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çå表 |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return èè½é¡¹ç®ç®¡çéå |
| | | */ |
| | | public List<EnergyProject> selectEnergyProjectList(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyProject(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyProject(EnergyProject energyProject); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çèè½é¡¹ç®ç®¡çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çä¿¡æ¯ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyProjectById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReportAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çéä»¶Serviceæ¥å£ |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public interface IEnergyReportAnnexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return èè½åææ¥å管çéä»¶ |
| | | */ |
| | | public EnergyReportAnnex selectEnergyReportAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶å表 |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return èè½åææ¥å管çéä»¶éå |
| | | */ |
| | | public List<EnergyReportAnnex> selectEnergyReportAnnexList(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyReportAnnex(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyReportAnnex(EnergyReportAnnex energyReportAnnex); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çèè½åææ¥å管çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportAnnexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çéä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportAnnexById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReport; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çServiceæ¥å£ |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | public interface IEnergyReportService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管ç |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return èè½åææ¥å管ç |
| | | */ |
| | | public EnergyReport selectEnergyReportById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çå表 |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return èè½åææ¥å管çéå |
| | | */ |
| | | public List<EnergyReport> selectEnergyReportList(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEnergyReport(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEnergyReport(EnergyReport energyReport); |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管ç |
| | | * |
| | | * @param ids éè¦å é¤çèè½åææ¥å管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çä¿¡æ¯ |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEnergyReportById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProjectAnnex; |
| | | import com.dingzhuo.energy.basic.data.energy.mapper.EnergyProjectAnnexMapper; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyProjectAnnexService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çéä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-08 |
| | | */ |
| | | @Service |
| | | public class EnergyProjectAnnexServiceImpl implements IEnergyProjectAnnexService |
| | | { |
| | | @Autowired |
| | | private EnergyProjectAnnexMapper energyProjectAnnexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | @Override |
| | | public EnergyProjectAnnex selectEnergyProjectAnnexById(String id) |
| | | { |
| | | return energyProjectAnnexMapper.selectEnergyProjectAnnexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çéä»¶å表 |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return èè½é¡¹ç®ç®¡çéä»¶ |
| | | */ |
| | | @Override |
| | | public List<EnergyProjectAnnex> selectEnergyProjectAnnexList(EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | return energyProjectAnnexMapper.selectEnergyProjectAnnexList(energyProjectAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | energyProjectAnnex.setCreateTime(DateUtils.getNowDate()); |
| | | return energyProjectAnnexMapper.insertEnergyProjectAnnex(energyProjectAnnex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param energyProjectAnnex èè½é¡¹ç®ç®¡çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEnergyProjectAnnex(EnergyProjectAnnex energyProjectAnnex) |
| | | { |
| | | energyProjectAnnex.setUpdateTime(DateUtils.getNowDate()); |
| | | return energyProjectAnnexMapper.updateEnergyProjectAnnex(energyProjectAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çèè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyProjectAnnexByIds(String[] ids) |
| | | { |
| | | return energyProjectAnnexMapper.deleteEnergyProjectAnnexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çéä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyProjectAnnexById(String id) |
| | | { |
| | | return energyProjectAnnexMapper.deleteEnergyProjectAnnexById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyProject; |
| | | import com.dingzhuo.energy.basic.data.energy.mapper.EnergyProjectMapper; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyProjectService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èè½é¡¹ç®ç®¡çServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-12-07 |
| | | */ |
| | | @Service |
| | | public class EnergyProjectServiceImpl implements IEnergyProjectService |
| | | { |
| | | @Autowired |
| | | private EnergyProjectMapper energyProjectMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | @Override |
| | | public EnergyProject selectEnergyProjectById(String id) |
| | | { |
| | | return energyProjectMapper.selectEnergyProjectById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½é¡¹ç®ç®¡çå表 |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return èè½é¡¹ç®ç®¡ç |
| | | */ |
| | | @Override |
| | | public List<EnergyProject> selectEnergyProjectList(EnergyProject energyProject) |
| | | { |
| | | return energyProjectMapper.selectEnergyProjectList(energyProject); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEnergyProject(EnergyProject energyProject) |
| | | { |
| | | energyProject.setCreateTime(DateUtils.getNowDate()); |
| | | return energyProjectMapper.insertEnergyProject(energyProject); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param energyProject èè½é¡¹ç®ç®¡ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEnergyProject(EnergyProject energyProject) |
| | | { |
| | | energyProject.setUpdateTime(DateUtils.getNowDate()); |
| | | energyProject.setUpdateOperator(SecurityUtils.getUsername()); |
| | | return energyProjectMapper.updateEnergyProject(energyProject); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½é¡¹ç®ç®¡ç |
| | | * |
| | | * @param ids éè¦å é¤çèè½é¡¹ç®ç®¡çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyProjectByIds(String[] ids) |
| | | { |
| | | return energyProjectMapper.deleteEnergyProjectByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½é¡¹ç®ç®¡çä¿¡æ¯ |
| | | * |
| | | * @param id èè½é¡¹ç®ç®¡çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyProjectById(String id) |
| | | { |
| | | return energyProjectMapper.deleteEnergyProjectById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.energy.mapper.EnergyReportAnnexMapper; |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReportAnnex; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyReportAnnexService; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çéä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | @Service |
| | | public class EnergyReportAnnexServiceImpl implements IEnergyReportAnnexService |
| | | { |
| | | @Autowired |
| | | private EnergyReportAnnexMapper energyReportAnnexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return èè½åææ¥å管çéä»¶ |
| | | */ |
| | | @Override |
| | | public EnergyReportAnnex selectEnergyReportAnnexById(String id) |
| | | { |
| | | return energyReportAnnexMapper.selectEnergyReportAnnexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çéä»¶å表 |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return èè½åææ¥å管çéä»¶ |
| | | */ |
| | | @Override |
| | | public List<EnergyReportAnnex> selectEnergyReportAnnexList(EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | return energyReportAnnexMapper.selectEnergyReportAnnexList(energyReportAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEnergyReportAnnex(EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | energyReportAnnex.setCreateTime(DateUtils.getNowDate()); |
| | | return energyReportAnnexMapper.insertEnergyReportAnnex(energyReportAnnex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param energyReportAnnex èè½åææ¥å管çéä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEnergyReportAnnex(EnergyReportAnnex energyReportAnnex) |
| | | { |
| | | energyReportAnnex.setUpdateTime(DateUtils.getNowDate()); |
| | | return energyReportAnnexMapper.updateEnergyReportAnnex(energyReportAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管çéä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çèè½åææ¥å管çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyReportAnnexByIds(String[] ids) |
| | | { |
| | | return energyReportAnnexMapper.deleteEnergyReportAnnexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çéä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id èè½åææ¥å管çéä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyReportAnnexById(String id) |
| | | { |
| | | return energyReportAnnexMapper.deleteEnergyReportAnnexById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energy.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.energy.mapper.EnergyReportMapper; |
| | | import com.dingzhuo.energy.basic.data.energy.domain.EnergyReport; |
| | | import com.dingzhuo.energy.basic.data.energy.service.IEnergyReportService; |
| | | |
| | | /** |
| | | * èè½åææ¥å管çServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-21 |
| | | */ |
| | | @Service |
| | | public class EnergyReportServiceImpl implements IEnergyReportService |
| | | { |
| | | @Autowired |
| | | private EnergyReportMapper energyReportMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管ç |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return èè½åææ¥å管ç |
| | | */ |
| | | @Override |
| | | public EnergyReport selectEnergyReportById(String id) |
| | | { |
| | | return energyReportMapper.selectEnergyReportById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èè½åææ¥å管çå表 |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return èè½åææ¥å管ç |
| | | */ |
| | | @Override |
| | | public List<EnergyReport> selectEnergyReportList(EnergyReport energyReport) |
| | | { |
| | | return energyReportMapper.selectEnergyReportList(energyReport); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEnergyReport(EnergyReport energyReport) |
| | | { |
| | | energyReport.setCreateTime(DateUtils.getNowDate()); |
| | | return energyReportMapper.insertEnergyReport(energyReport); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èè½åææ¥å管ç |
| | | * |
| | | * @param energyReport èè½åææ¥å管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEnergyReport(EnergyReport energyReport) |
| | | { |
| | | energyReport.setUpdateTime(DateUtils.getNowDate()); |
| | | return energyReportMapper.updateEnergyReport(energyReport); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èè½åææ¥å管ç |
| | | * |
| | | * @param ids éè¦å é¤çèè½åææ¥å管çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyReportByIds(String[] ids) |
| | | { |
| | | return energyReportMapper.deleteEnergyReportByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èè½åææ¥å管çä¿¡æ¯ |
| | | * |
| | | * @param id èè½åææ¥å管çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEnergyReportById(String id) |
| | | { |
| | | return energyReportMapper.deleteEnergyReportById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energyExamine.controller; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.energyExamine.domain.AssessmentIndex; |
| | | import com.dingzhuo.energy.basic.data.energyExamine.service.IAssessmentIndexService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ç¨è½èæ ¸æ åController |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-22 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/energyExamine/assessmentIndex") |
| | | public class AssessmentIndexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IAssessmentIndexService assessmentIndexService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(AssessmentIndex assessmentIndex) |
| | | { |
| | | startPage(); |
| | | List<AssessmentIndex> list = assessmentIndexService.selectAssessmentIndexList(assessmentIndex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ ååè¡¨æ ¹æ®æ¨¡åID |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:listindex')") |
| | | @GetMapping("/list/{modeNodeId}") |
| | | public TableDataInfo listindex(@PathVariable String modeNodeId,AssessmentIndex assessmentIndex) |
| | | { |
| | | assessmentIndex.setModeNodeId(modeNodeId); |
| | | startPage(); |
| | | List<AssessmentIndex> list = assessmentIndexService.selectAssessmentIndexListByMode(assessmentIndex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç¨è½èæ ¸æ åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:export')") |
| | | @Log(title = "ç¨è½èæ ¸æ å", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(AssessmentIndex assessmentIndex) |
| | | { |
| | | List<AssessmentIndex> list = assessmentIndexService.selectAssessmentIndexList(assessmentIndex); |
| | | ExcelUtil<AssessmentIndex> util = new ExcelUtil<AssessmentIndex>(AssessmentIndex.class); |
| | | return util.exportExcel(list, "assessmentIndex"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨è½èæ ¸æ å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(assessmentIndexService.selectAssessmentIndexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¨è½èæ ¸æ å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:add')") |
| | | @Log(title = "ç¨è½èæ ¸æ å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody AssessmentIndex assessmentIndex) |
| | | { |
| | | return toAjax(assessmentIndexService.insertAssessmentIndex(assessmentIndex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨è½èæ ¸æ å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:edit')") |
| | | @Log(title = "ç¨è½èæ ¸æ å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody AssessmentIndex assessmentIndex) |
| | | { |
| | | return toAjax(assessmentIndexService.updateAssessmentIndex(assessmentIndex)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¨è½èæ ¸æ å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('energyExamine:assessmentIndex:remove')") |
| | | @Log(title = "ç¨è½èæ ¸æ å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(assessmentIndexService.deleteAssessmentIndexByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å æ¨¡åèæ ¸èç¹çææ |
| | | */ |
| | | @Log(title = "æ·»å æ¨¡åèæ ¸èç¹çææ ", businessType = BusinessType.INSERT) |
| | | @PostMapping(value = "/addIndex/{modeNodeId}") |
| | | public AjaxResult edit(@PathVariable String modeNodeId, @RequestBody String[] ids) { |
| | | List<AssessmentIndex> assessmentIndexList = new ArrayList<AssessmentIndex>(); |
| | | if(ids!=null && modeNodeId!=null && modeNodeId.trim().length()>0) |
| | | { |
| | | for(String indexId:ids) |
| | | { |
| | | AssessmentIndex assessMentIdex = new AssessmentIndex(); |
| | | assessMentIdex.setId(UUID.randomUUID().toString()); |
| | | assessMentIdex.setIndexId(indexId); |
| | | assessMentIdex.setModeNodeId(modeNodeId); |
| | | assessmentIndexList.add(assessMentIdex); |
| | | } |
| | | } |
| | | AjaxResult ajax = toAjax(assessmentIndexService.batchAssessIndex(assessmentIndexList)); |
| | | return ajax; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energyExamine.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ç¨è½èæ ¸æ å对象 assessmentIndex |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-22 |
| | | */ |
| | | public class AssessmentIndex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private String id; |
| | | |
| | | /** 模åèç¹id */ |
| | | private String modeNodeId; |
| | | |
| | | /** ææ id */ |
| | | private String indexId; |
| | | |
| | | /** æ¯å¦è½è计å Y N */ |
| | | private boolean plan; |
| | | |
| | | /** æ¯å¦å¯¹æ Y N */ |
| | | private boolean benchmarking; |
| | | |
| | | /** æ æèå´åå
¸é¡¹ */ |
| | | private String benchRange; |
| | | |
| | | /** æ æç±»ååå
¸é¡¹ */ |
| | | private String benchType; |
| | | |
| | | /** æ¯å¦è½æºåæ§ Y N */ |
| | | private boolean dualControl; |
| | | |
| | | /** æ¯å¦èªå®ä¹æ å Y N */ |
| | | private boolean customStandard; |
| | | |
| | | /** æå®èªå®ä¹æ åæ°å¼ */ |
| | | private Double customVal; |
| | | |
| | | /**模ååç§°**/ |
| | | private String modename; |
| | | |
| | | /**ææ åç§°**/ |
| | | private String indexname; |
| | | |
| | | /**计éåä½**/ |
| | | private String jldw; |
| | | /**使ç¨ç¶æ Yä½¿ç¨ Nåç¨**/ |
| | | private String state; |
| | | //æ¥è¯¢æ¬çº§ãå
¨é¨çæ å¿ |
| | | private String eierarchyFlag; |
| | | |
| | | public String getEierarchyFlag(){ |
| | | return this.eierarchyFlag; |
| | | } |
| | | public void setEierarchyFlag(String eierarchyFlag) |
| | | { |
| | | this.eierarchyFlag =eierarchyFlag; |
| | | } |
| | | |
| | | public String getModename() { |
| | | return modename; |
| | | } |
| | | |
| | | public void setModename(String modename) { |
| | | this.modename = modename; |
| | | } |
| | | |
| | | public String getIndexname() { |
| | | return indexname; |
| | | } |
| | | |
| | | public void setIndexname(String indexname) { |
| | | this.indexname = indexname; |
| | | } |
| | | |
| | | public String getJldw() { |
| | | return jldw; |
| | | } |
| | | |
| | | public void setJldw(String jldw) { |
| | | this.jldw = jldw; |
| | | } |
| | | |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public AssessmentIndex() { |
| | | } |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setModeNodeId(String modeNodeId) |
| | | { |
| | | this.modeNodeId = modeNodeId; |
| | | } |
| | | |
| | | public String getModeNodeId() |
| | | { |
| | | return modeNodeId; |
| | | } |
| | | public void setIndexId(String indexId) |
| | | { |
| | | this.indexId = indexId; |
| | | } |
| | | |
| | | public String getIndexId() |
| | | { |
| | | return indexId; |
| | | } |
| | | public void setPlan(boolean plan) |
| | | { |
| | | this.plan = plan; |
| | | } |
| | | |
| | | public boolean getPlan() |
| | | { |
| | | return plan; |
| | | } |
| | | public void setBenchmarking(boolean benchmarking) |
| | | { |
| | | this.benchmarking = benchmarking; |
| | | } |
| | | |
| | | public boolean getBenchmarking() |
| | | { |
| | | return benchmarking; |
| | | } |
| | | public void setBenchRange(String benchRange) |
| | | { |
| | | this.benchRange = benchRange; |
| | | } |
| | | |
| | | public String getBenchRange() |
| | | { |
| | | return benchRange; |
| | | } |
| | | public void setBenchType(String benchType) |
| | | { |
| | | this.benchType = benchType; |
| | | } |
| | | |
| | | public String getBenchType() |
| | | { |
| | | return benchType; |
| | | } |
| | | public void setDualControl(boolean dualControl) |
| | | { |
| | | this.dualControl = dualControl; |
| | | } |
| | | |
| | | public boolean getDualControl() |
| | | { |
| | | return dualControl; |
| | | } |
| | | public void setCustomStandard(boolean customStandard) |
| | | { |
| | | this.customStandard = customStandard; |
| | | } |
| | | |
| | | public boolean getCustomStandard() |
| | | { |
| | | return customStandard; |
| | | } |
| | | public void setCustomVal(Double customVal) |
| | | { |
| | | this.customVal = customVal; |
| | | } |
| | | |
| | | public Double getCustomVal() |
| | | { |
| | | return customVal; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("modeNodeId", getModeNodeId()) |
| | | .append("indexId", getIndexId()) |
| | | .append("plan", getPlan()) |
| | | .append("benchmarking", getBenchmarking()) |
| | | .append("benchRange", getBenchRange()) |
| | | .append("benchType", getBenchType()) |
| | | .append("dualControl", getDualControl()) |
| | | .append("customStandard", getCustomStandard()) |
| | | .append("customVal", getCustomVal()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energyExamine.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energyExamine.domain.AssessmentIndex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¨è½èæ ¸æ åMapperæ¥å£ |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-22 |
| | | */ |
| | | public interface AssessmentIndexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç¨è½èæ ¸æ å |
| | | */ |
| | | public AssessmentIndex selectAssessmentIndexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ åå表 |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ åéå |
| | | */ |
| | | public List<AssessmentIndex> selectAssessmentIndexList(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ ååè¡¨æ ¹æ®æ¨¡åID |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ åéå |
| | | */ |
| | | public List<AssessmentIndex> selectAssessmentIndexListByMode(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * æ°å¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertAssessmentIndex(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateAssessmentIndex(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * å é¤ç¨è½èæ ¸æ å |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAssessmentIndexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨è½èæ ¸æ å |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAssessmentIndexByIds(String[] ids); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ¨¡åèæ ¸ææ |
| | | * |
| | | * @param assessmentIndexList èæ ¸ææ å表 |
| | | * @return ç»æ |
| | | */ |
| | | int batchAssessIndex(List<AssessmentIndex> assessmentIndexList); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energyExamine.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.energyExamine.domain.AssessmentIndex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¨è½èæ ¸æ åServiceæ¥å£ |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-22 |
| | | */ |
| | | public interface IAssessmentIndexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç¨è½èæ ¸æ å |
| | | */ |
| | | public AssessmentIndex selectAssessmentIndexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ åå表 |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ åéå |
| | | */ |
| | | public List<AssessmentIndex> selectAssessmentIndexList(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ ååè¡¨æ ¹æ®æ¨¡åID |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ åéå |
| | | */ |
| | | public List<AssessmentIndex> selectAssessmentIndexListByMode(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * æ°å¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertAssessmentIndex(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateAssessmentIndex(AssessmentIndex assessmentIndex); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨è½èæ ¸æ å |
| | | * |
| | | * @param ids éè¦å é¤çç¨è½èæ ¸æ åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAssessmentIndexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤ç¨è½èæ ¸æ åä¿¡æ¯ |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAssessmentIndexById(String id); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ¨¡åèæ ¸ææ |
| | | * |
| | | * @param assessmentIndexList èæ ¸ææ å表 |
| | | * @return ç»æ |
| | | */ |
| | | public int batchAssessIndex(List<AssessmentIndex> assessmentIndexList); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.energyExamine.service.impl; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.energyExamine.mapper.AssessmentIndexMapper; |
| | | import com.dingzhuo.energy.basic.data.energyExamine.domain.AssessmentIndex; |
| | | import com.dingzhuo.energy.basic.data.energyExamine.service.IAssessmentIndexService; |
| | | |
| | | /** |
| | | * ç¨è½èæ ¸æ åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaow |
| | | * @date 2020-12-22 |
| | | */ |
| | | @Service |
| | | public class AssessmentIndexServiceImpl implements IAssessmentIndexService |
| | | { |
| | | @Autowired |
| | | private AssessmentIndexMapper assessmentIndexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç¨è½èæ ¸æ å |
| | | */ |
| | | @Override |
| | | public AssessmentIndex selectAssessmentIndexById(String id) |
| | | { |
| | | return assessmentIndexMapper.selectAssessmentIndexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ åå表 |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ å |
| | | */ |
| | | @Override |
| | | public List<AssessmentIndex> selectAssessmentIndexList(AssessmentIndex assessmentIndex) |
| | | { |
| | | return assessmentIndexMapper.selectAssessmentIndexList(assessmentIndex); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨è½èæ ¸æ ååè¡¨æ ¹æ®æ¨¡åID |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç¨è½èæ ¸æ åéå |
| | | */ |
| | | public List<AssessmentIndex> selectAssessmentIndexListByMode(AssessmentIndex assessmentIndex) |
| | | { |
| | | return assessmentIndexMapper.selectAssessmentIndexListByMode(assessmentIndex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertAssessmentIndex(AssessmentIndex assessmentIndex) |
| | | { |
| | | return assessmentIndexMapper.insertAssessmentIndex(assessmentIndex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨è½èæ ¸æ å |
| | | * |
| | | * @param assessmentIndex ç¨è½èæ ¸æ å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateAssessmentIndex(AssessmentIndex assessmentIndex) |
| | | { |
| | | return assessmentIndexMapper.updateAssessmentIndex(assessmentIndex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨è½èæ ¸æ å |
| | | * |
| | | * @param ids éè¦å é¤çç¨è½èæ ¸æ åID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteAssessmentIndexByIds(String[] ids) |
| | | { |
| | | return assessmentIndexMapper.deleteAssessmentIndexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¨è½èæ ¸æ åä¿¡æ¯ |
| | | * |
| | | * @param id ç¨è½èæ ¸æ åID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteAssessmentIndexById(String id) |
| | | { |
| | | return assessmentIndexMapper.deleteAssessmentIndexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ¨¡åèæ ¸ææ |
| | | * |
| | | * @param assessmentIndexList èæ ¸ææ å表 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int batchAssessIndex(List<AssessmentIndex> assessmentIndexList){ |
| | | return assessmentIndexMapper.batchAssessIndex(assessmentIndexList); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUploadUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUtils; |
| | | import com.dingzhuo.energy.framework.config.RuoYiConfig; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityAnnex; |
| | | import com.dingzhuo.energy.basic.data.facility.service.IFacilityAnnexService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡éä»¶Controller |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/facility/annex") |
| | | public class FacilityAnnexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IFacilityAnnexService facilityAnnexService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(FacilityAnnexController.class); |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(FacilityAnnex facilityAnnex) |
| | | { |
| | | startPage(); |
| | | List<FacilityAnnex> list = facilityAnnexService.selectFacilityAnnexList(facilityAnnex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ¡£æ¡éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:export')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(FacilityAnnex facilityAnnex) |
| | | { |
| | | List<FacilityAnnex> list = facilityAnnexService.selectFacilityAnnexList(facilityAnnex); |
| | | ExcelUtil<FacilityAnnex> util = new ExcelUtil<FacilityAnnex>(FacilityAnnex.class); |
| | | return util.exportExcel(list, "annex"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè®¾å¤æ¡£æ¡é件详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(facilityAnnexService.selectFacilityAnnexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:add')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡éä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody FacilityAnnex facilityAnnex) |
| | | { |
| | | return toAjax(facilityAnnexService.insertFacilityAnnex(facilityAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:edit')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡éä»¶", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody FacilityAnnex facilityAnnex) |
| | | { |
| | | return toAjax(facilityAnnexService.updateFacilityAnnex(facilityAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:remove')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡éä»¶", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(facilityAnnexService.deleteFacilityAnnexByIds(ids)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * éç¨æå®æä»¶ä¸è½½è¯·æ± |
| | | * |
| | | * @param showFileName ä¸è½½å±ç¤ºæä»¶åç§° |
| | | // * @param filePath ä¸è½½æä»¶ç»å¯¹è·¯å¾ 带 æä»¶çå®åååè·¯å¾ |
| | | * @param delete æ¯å¦å é¤/ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:assignDownload')") |
| | | @PostMapping("/assignDownload") |
| | | public void fileAssignDownload(String showFileName, String filePath, Boolean delete, HttpServletResponse response, HttpServletRequest request) |
| | | { |
| | | try |
| | | { |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setContentType("multipart/form-data"); |
| | | response.setHeader("Content-Disposition", |
| | | "attachment;fileName=" + FileUtils.setFileDownloadHeader(request, showFileName)); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | // if (delete) |
| | | // { |
| | | // FileUtils.deleteFile(filePath); |
| | | // } |
| | | log.error("ä¸è½½æå", "aa"); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | log.error("ä¸è½½æä»¶å¤±è´¥", e); |
| | | } |
| | | } |
| | | @Log(title = "è®¾å¤æ¡£æ¡éä»¶ä¸ä¼ ", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('facility:annex:fileImport')") |
| | | @PostMapping("/fileImport") |
| | | public AjaxResult importData(MultipartFile file, String facilityId) throws Exception |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //è·åé
ç½®çæä»¶ä¸ä¼ è·¯å¾ |
| | | String uploadPathDir = RuoYiConfig.getUploadPath(); |
| | | //è·åæä»¶åå§åç§° |
| | | String fileName = file.getOriginalFilename(); |
| | | //è·åæä»¶æ©å±å |
| | | String fileSuffix = FileUploadUtils.getExtension(file); |
| | | // System.out.println("implementId==="+implementId); |
| | | // System.out.println("filedir==="+uploadPathDir); |
| | | // System.out.println("fileName==="+fileName); |
| | | // System.out.println("fileSuffix==="+fileSuffix); |
| | | //æä»¶æç»ä¿åçç»å¯¹è·¯å¾ |
| | | String filePath = FileUploadUtils.uploadAll(uploadPathDir, file); |
| | | // System.out.println("ä¸ä¼ æä»¶å°å:===>"+filePath); |
| | | FacilityAnnex facilityAnnex = new FacilityAnnex(); |
| | | //设置主é®UUID |
| | | facilityAnnex.setId(IdUtils.simpleUUID()); |
| | | facilityAnnex.setFileName(fileName); |
| | | facilityAnnex.setFilePath(filePath); |
| | | facilityAnnex.setFilesuffix(fileSuffix); |
| | | facilityAnnex.setFacilityId(facilityId); |
| | | facilityAnnex.setCreateBy(loginUser.getUsername()); |
| | | |
| | | facilityAnnex.setCreateBy(loginUser.getUsername()); |
| | | if (this.facilityAnnexService.insertFacilityAnnex(facilityAnnex)>0) |
| | | { |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 宿"); |
| | | } |
| | | } |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 失败"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | //import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | //import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | //import com.sun.org.glassfish.external.statistics.annotations.Reset; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityArchives; |
| | | import com.dingzhuo.energy.basic.data.facility.service.IFacilityArchivesService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡Controller |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/facility/archives") |
| | | @Api(value = "è®¾å¤æ¡£æ¡controller",tags = {"è®¾å¤æ¡£æ¡ç®¡ç"}) |
| | | public class FacilityArchivesController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IFacilityArchivesService facilityArchivesService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation(value = "è®¾å¤æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(FacilityArchives facilityArchives) |
| | | { |
| | | startPage(); |
| | | List<FacilityArchives> list = facilityArchivesService.selectFacilityArchivesList(facilityArchives); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ¡£æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:export')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | @ApiOperation("è®¾å¤æ¡£æ¡å表导åº") |
| | | public AjaxResult export(FacilityArchives facilityArchives) |
| | | { |
| | | List<FacilityArchives> list = facilityArchivesService.excelFacilityArchivesList(facilityArchives); |
| | | ExcelUtil<FacilityArchives> util = new ExcelUtil<FacilityArchives>(FacilityArchives.class); |
| | | return util.exportExcel(list, "archives"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè®¾å¤æ¡£æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "æ ¹æ®idè·åè®¾å¤æ¡£æ¡è¯¦ç»ä¿¡æ¯") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(facilityArchivesService.selectFacilityArchivesById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:add')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "æ°å¢è®¾å¤æ¡£æ¡") |
| | | public AjaxResult add(@RequestBody FacilityArchives facilityArchives) |
| | | { |
| | | FacilityArchives check = facilityArchivesService.selectFacilityArchivesByCode(facilityArchives); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //ç¼å·å¯ä¸æ§æ£æµ |
| | | if(check!=null && check.getCode()!=null && check.getCode().length()>0) |
| | | { |
| | | return AjaxResult.error(check.getCode()+"ç¼ç å·²åå¨!"); |
| | | }else |
| | | { |
| | | facilityArchives.setId(UUID.randomUUID().toString()); |
| | | facilityArchives.setCreateBy(loginUser.getUsername()); |
| | | return toAjax(facilityArchivesService.insertFacilityArchives(facilityArchives)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:edit')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "ç¼è¾è®¾å¤æ¡£æ¡") |
| | | public AjaxResult edit(@RequestBody FacilityArchives facilityArchives) |
| | | { |
| | | //æ´æ°æ¶çç¼ç å¯ä¸çº¦æ è¦å¤æ idä¸çäºèªå·±ï¼ä¸ codeåå¨éå¤çï¼è¦å
廿èªå·±ï¼å¦å èªå·±çä¿®æ¹ä¹æ¥é |
| | | FacilityArchives check = facilityArchivesService.selectFacilityArchivesByCode(facilityArchives); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //ç¼å·å¯ä¸æ§æ£æµ |
| | | if(check!=null && check.getCode()!=null && check.getCode().length()>0) |
| | | { |
| | | return AjaxResult.error(check.getCode()+"ç¼ç å·²åå¨!"); |
| | | }else |
| | | { |
| | | facilityArchives.setUpdateBy(loginUser.getUsername()); |
| | | return toAjax(facilityArchivesService.updateFacilityArchives(facilityArchives)); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:remove')")/**/ |
| | | @Log(title = "è®¾å¤æ¡£æ¡", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "å é¤è®¾å¤æ¡£æ¡") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(facilityArchivesService.deleteFacilityArchivesByIds(ids)); |
| | | } |
| | | /** |
| | | * æ£å®æ¢å¤ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:reset')") |
| | | @Log(title = "è®¾å¤æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping ("/{ids}") |
| | | @ApiOperation(value = "è®¾å¤æ¡£æ¡æ£å®æ¢å¤") |
| | | public AjaxResult reset(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(facilityArchivesService.resetFacilityArchivesByIds(ids)); |
| | | } |
| | | |
| | | |
| | | @Log(title = "è®¾å¤æ¡£æ¡ç»´æ¤å¯¼å
¥", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('facility:archives:import')") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception |
| | | { |
| | | ExcelUtil<FacilityArchives> util = new ExcelUtil<FacilityArchives>(FacilityArchives.class); |
| | | List<FacilityArchives> facilityList = util.importExcel(file.getInputStream()); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | String message = facilityArchivesService.excelImpSave(facilityList,loginUser); |
| | | return AjaxResult.success(message); |
| | | } |
| | | |
| | | @GetMapping("/importTemplate") |
| | | public AjaxResult importTemplate() |
| | | { |
| | | ExcelUtil<FacilityArchives> util = new ExcelUtil<FacilityArchives>(FacilityArchives.class); |
| | | return util.importTemplateExcel("è®¾å¤æ¡£æ¡æ°æ®"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡é件对象 facility_annex |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-24 |
| | | */ |
| | | public class FacilityAnnex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private String id; |
| | | |
| | | /** è®¾å¤æ¡£æ¡id */ |
| | | private String facilityId; |
| | | |
| | | /** æä»¶å */ |
| | | @Excel(name = "æä»¶å") |
| | | private String fileName; |
| | | |
| | | /** æä»¶åç¼ */ |
| | | private String filesuffix; |
| | | |
| | | /** æä»¶è·¯å¾ */ |
| | | private String filePath; |
| | | |
| | | /** å 餿 å¿ */ |
| | | private String delFlage; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setFacilityId(String facilityId) |
| | | { |
| | | this.facilityId = facilityId; |
| | | } |
| | | |
| | | public String getFacilityId() |
| | | { |
| | | return facilityId; |
| | | } |
| | | public void setFileName(String fileName) |
| | | { |
| | | this.fileName = fileName; |
| | | } |
| | | |
| | | public String getFileName() |
| | | { |
| | | return fileName; |
| | | } |
| | | public void setFilesuffix(String filesuffix) |
| | | { |
| | | this.filesuffix = filesuffix; |
| | | } |
| | | |
| | | public String getFilesuffix() |
| | | { |
| | | return filesuffix; |
| | | } |
| | | public void setFilePath(String filePath) |
| | | { |
| | | this.filePath = filePath; |
| | | } |
| | | |
| | | public String getFilePath() |
| | | { |
| | | return filePath; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("id", getId()) |
| | | .append("facilityId", getFacilityId()) |
| | | .append("fileName", getFileName()) |
| | | .append("filesuffix", getFilesuffix()) |
| | | .append("filePath", getFilePath()) |
| | | .append("delFlage", getDelFlage()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡å¯¹è±¡ facility_archives |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-24 |
| | | */ |
| | | @ApiModel(value = "è®¾å¤æ¡£æ¡") |
| | | public class FacilityArchives extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | @ApiModelProperty(value = "主é®id") |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | @ApiModelProperty(value = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** 设å¤åç§° */ |
| | | @Excel(name = "设å¤åç§°") |
| | | @ApiModelProperty(value = "设å¤åç§°") |
| | | private String facilityName; |
| | | |
| | | /** 设å¤ç±»å */ |
| | | @Excel(name = "设å¤ç±»å") |
| | | @ApiModelProperty(value = "设å¤ç±»å") |
| | | private String facilityType; |
| | | |
| | | /** 使ç¨åå */ |
| | | @Excel(name = "使ç¨åå") |
| | | @ApiModelProperty(value = "使ç¨åå") |
| | | private String branchFactory; |
| | | |
| | | /** ç©çä½ç½® */ |
| | | @Excel(name = "ç©çä½ç½®") |
| | | @ApiModelProperty(value = "ç©çä½ç½®") |
| | | private String istallationLocationn; |
| | | |
| | | /** è½èç级 */ |
| | | @Excel(name = "è½èç级") |
| | | @ApiModelProperty(value = "è½èç级") |
| | | private String facilityGrade; |
| | | |
| | | /** é¢å®åç */ |
| | | @Excel(name = "é¢å®åç") |
| | | @ApiModelProperty(value = "é¢å®åç") |
| | | private String ratedPower; |
| | | |
| | | /** çäº§æ¥æ */ |
| | | @Excel(name = "çäº§æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "çäº§æ¥æ") |
| | | private Date productionDate; |
| | | |
| | | /** æè¿æ¥æ */ |
| | | @Excel(name = "æè¿æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æè¿æ¥æ") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date putrunDate; |
| | | |
| | | /** ç产åå®¶ */ |
| | | @Excel(name = "ç产åå®¶") |
| | | @ApiModelProperty(value = "ç产åå®¶") |
| | | private String manufacturer; |
| | | |
| | | /** è´è´£äºº */ |
| | | @Excel(name = "è´è´£äºº") |
| | | @ApiModelProperty(value = "è´è´£äºº") |
| | | private String personCharge; |
| | | |
| | | /** ææ¯åæ° */ |
| | | @Excel(name = "ææ¯åæ°") |
| | | @ApiModelProperty(value = "ææ¯åæ°") |
| | | private String technicalData; |
| | | |
| | | /** èµ·å§æ¶é´ */ |
| | | @Excel(name = "èµ·å§æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "èµ·å§æ¶é´") |
| | | private Date startTime; |
| | | |
| | | /** æ£å®å¨æ */ |
| | | @Excel(name = "æ£å®å¨æ") |
| | | @ApiModelProperty(value = "æ£å®å¨æ") |
| | | private Integer checkCycle; |
| | | |
| | | /** æé卿 */ |
| | | @Excel(name = "æé卿") |
| | | @ApiModelProperty(value = "æé卿") |
| | | private Integer reminderCycle; |
| | | /** æ¯å¦éç¹è®¾å¤ */ |
| | | @Excel(name = "æ¯å¦éç¹è®¾å¤") |
| | | @ApiModelProperty(value = "æ¯å¦éç¹è®¾å¤") |
| | | private String pointFlag; |
| | | |
| | | private boolean txflage; |
| | | |
| | | public void setTxflage(boolean txflage) |
| | | { |
| | | this.txflage = txflage; |
| | | } |
| | | public boolean getTxflage() |
| | | { |
| | | return this.txflage; |
| | | } |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setFacilityName(String facilityName) |
| | | { |
| | | this.facilityName = facilityName; |
| | | } |
| | | |
| | | public String getFacilityName() |
| | | { |
| | | return facilityName; |
| | | } |
| | | public void setFacilityType(String facilityType) |
| | | { |
| | | this.facilityType = facilityType; |
| | | } |
| | | |
| | | public String getFacilityType() |
| | | { |
| | | return facilityType; |
| | | } |
| | | public void setBranchFactory(String branchFactory) |
| | | { |
| | | this.branchFactory = branchFactory; |
| | | } |
| | | |
| | | public String getBranchFactory() |
| | | { |
| | | return branchFactory; |
| | | } |
| | | public void setIstallationLocationn(String istallationLocationn) |
| | | { |
| | | this.istallationLocationn = istallationLocationn; |
| | | } |
| | | |
| | | public String getIstallationLocationn() |
| | | { |
| | | return istallationLocationn; |
| | | } |
| | | public void setFacilityGrade(String facilityGrade) |
| | | { |
| | | this.facilityGrade = facilityGrade; |
| | | } |
| | | |
| | | public String getFacilityGrade() |
| | | { |
| | | return facilityGrade; |
| | | } |
| | | public void setRatedPower(String ratedPower) |
| | | { |
| | | this.ratedPower = ratedPower; |
| | | } |
| | | |
| | | public String getRatedPower() |
| | | { |
| | | return ratedPower; |
| | | } |
| | | public void setProductionDate(Date productionDate) |
| | | { |
| | | this.productionDate = productionDate; |
| | | } |
| | | |
| | | public Date getProductionDate() |
| | | { |
| | | return productionDate; |
| | | } |
| | | public void setPutrunDate(Date putrunDate) |
| | | { |
| | | this.putrunDate = putrunDate; |
| | | } |
| | | |
| | | public Date getPutrunDate() |
| | | { |
| | | return putrunDate; |
| | | } |
| | | public void setManufacturer(String manufacturer) |
| | | { |
| | | this.manufacturer = manufacturer; |
| | | } |
| | | |
| | | public String getManufacturer() |
| | | { |
| | | return manufacturer; |
| | | } |
| | | public void setPersonCharge(String personCharge) |
| | | { |
| | | this.personCharge = personCharge; |
| | | } |
| | | |
| | | public String getPersonCharge() |
| | | { |
| | | return personCharge; |
| | | } |
| | | public void setTechnicalData(String technicalData) |
| | | { |
| | | this.technicalData = technicalData; |
| | | } |
| | | |
| | | public String getTechnicalData() |
| | | { |
| | | return technicalData; |
| | | } |
| | | public void setStartTime(Date startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setCheckCycle(Integer checkCycle) |
| | | { |
| | | this.checkCycle = checkCycle; |
| | | } |
| | | |
| | | public Integer getCheckCycle() |
| | | { |
| | | return checkCycle; |
| | | } |
| | | public void setReminderCycle(Integer reminderCycle) |
| | | { |
| | | this.reminderCycle = reminderCycle; |
| | | } |
| | | |
| | | public Integer getReminderCycle() |
| | | { |
| | | return reminderCycle; |
| | | } |
| | | |
| | | public String getPointFlag() { |
| | | return pointFlag; |
| | | } |
| | | |
| | | public void setPointFlag(String pointFlag) { |
| | | this.pointFlag = pointFlag; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("facilityName", getFacilityName()) |
| | | .append("facilityType", getFacilityType()) |
| | | .append("branchFactory", getBranchFactory()) |
| | | .append("istallationLocationn", getIstallationLocationn()) |
| | | .append("facilityGrade", getFacilityGrade()) |
| | | .append("ratedPower", getRatedPower()) |
| | | .append("productionDate", getProductionDate()) |
| | | .append("putrunDate", getPutrunDate()) |
| | | .append("manufacturer", getManufacturer()) |
| | | .append("personCharge", getPersonCharge()) |
| | | .append("technicalData", getTechnicalData()) |
| | | .append("startTime", getStartTime()) |
| | | .append("checkCycle", getCheckCycle()) |
| | | .append("reminderCycle", getReminderCycle()) |
| | | .append("remark", getRemark()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("txflage", getTxflage()) |
| | | .append("pointFlag", getPointFlag()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡éä»¶Mapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-24 |
| | | */ |
| | | public interface FacilityAnnexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | public FacilityAnnex selectFacilityAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return è®¾å¤æ¡£æ¡éä»¶éå |
| | | */ |
| | | public List<FacilityAnnex> selectFacilityAnnexList(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertFacilityAnnex(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateFacilityAnnex(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityAnnexByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityArchives; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡Mapperæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-24 |
| | | */ |
| | | public interface FacilityArchivesMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | public FacilityArchives selectFacilityArchivesById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡çcodeæ¯å¦åå¨ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡facilityArchives |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | public FacilityArchives selectFacilityArchivesByCode(FacilityArchives facilityArchives); |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡éå |
| | | */ |
| | | public List<FacilityArchives> selectFacilityArchivesList(FacilityArchives facilityArchives); |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å¯¼åºå表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡éå |
| | | */ |
| | | public List<FacilityArchives> excelFacilityArchivesList(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertFacilityArchives(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateFacilityArchives(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityArchivesById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityArchivesByIds(String[] ids); |
| | | |
| | | |
| | | |
| | | /* |
| | | * |
| | | * æ£å®æ¢å¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | public int resetFacilityArchivesById(String[] id); |
| | | */ |
| | | |
| | | /** |
| | | * æ¹éæ£å®æ¢å¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int resetFacilityArchivesByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡éä»¶Serviceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-24 |
| | | */ |
| | | public interface IFacilityAnnexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | public FacilityAnnex selectFacilityAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return è®¾å¤æ¡£æ¡éä»¶éå |
| | | */ |
| | | public List<FacilityAnnex> selectFacilityAnnexList(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertFacilityAnnex(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateFacilityAnnex(FacilityAnnex facilityAnnex); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityAnnexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityAnnexById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.service; |
| | | |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityArchives; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡Serviceæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-24 |
| | | */ |
| | | public interface IFacilityArchivesService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | public FacilityArchives selectFacilityArchivesById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡code |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | public FacilityArchives selectFacilityArchivesByCode(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡éå |
| | | */ |
| | | public List<FacilityArchives> selectFacilityArchivesList(FacilityArchives facilityArchives); |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表导åºå表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡éå |
| | | */ |
| | | public List<FacilityArchives> excelFacilityArchivesList(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertFacilityArchives(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateFacilityArchives(FacilityArchives facilityArchives); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityArchivesByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteFacilityArchivesById(String id); |
| | | |
| | | |
| | | /** |
| | | * æ¹éæ£å®æ¢å¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int resetFacilityArchivesByIds(String[] ids); |
| | | |
| | | /* *//** |
| | | * æ£å®æ¢å¤è®¾å¤æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | *//* |
| | | public int resetFacilityArchivesById(String[] id);*/ |
| | | |
| | | /** |
| | | * Excel导å
¥ è®¾å¤æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param facilityArchivesList è¦å¯¼å
¥çè®¾å¤æ¡£æ¡éå |
| | | * @param loginUser ç»å½ç¨æ·å¯¹è±¡ |
| | | * @return ç»æ |
| | | */ |
| | | public String excelImpSave(List<FacilityArchives> facilityArchivesList, LoginUser loginUser); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.facility.mapper.FacilityAnnexMapper; |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityAnnex; |
| | | import com.dingzhuo.energy.basic.data.facility.service.IFacilityAnnexService; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡éä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-02-24 |
| | | */ |
| | | @Service |
| | | public class FacilityAnnexServiceImpl implements IFacilityAnnexService |
| | | { |
| | | @Autowired |
| | | private FacilityAnnexMapper facilityAnnexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | @Override |
| | | public FacilityAnnex selectFacilityAnnexById(String id) |
| | | { |
| | | return facilityAnnexMapper.selectFacilityAnnexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return è®¾å¤æ¡£æ¡éä»¶ |
| | | */ |
| | | @Override |
| | | public List<FacilityAnnex> selectFacilityAnnexList(FacilityAnnex facilityAnnex) |
| | | { |
| | | return facilityAnnexMapper.selectFacilityAnnexList(facilityAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertFacilityAnnex(FacilityAnnex facilityAnnex) |
| | | { |
| | | facilityAnnex.setCreateTime(DateUtils.getNowDate()); |
| | | return facilityAnnexMapper.insertFacilityAnnex(facilityAnnex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param facilityAnnex è®¾å¤æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateFacilityAnnex(FacilityAnnex facilityAnnex) |
| | | { |
| | | facilityAnnex.setUpdateTime(DateUtils.getNowDate()); |
| | | return facilityAnnexMapper.updateFacilityAnnex(facilityAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteFacilityAnnexByIds(String[] ids) |
| | | { |
| | | return facilityAnnexMapper.deleteFacilityAnnexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteFacilityAnnexById(String id) |
| | | { |
| | | return facilityAnnexMapper.deleteFacilityAnnexById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.facility.service.impl; |
| | | |
| | | import java.util.*; |
| | | |
| | | import com.dingzhuo.energy.common.exception.CustomException; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.project.system.domain.SysDictData; |
| | | import com.dingzhuo.energy.project.system.mapper.SysDictDataMapper; |
| | | import com.dingzhuo.energy.project.system.service.impl.SysUserServiceImpl; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.facility.mapper.FacilityArchivesMapper; |
| | | import com.dingzhuo.energy.basic.data.facility.domain.FacilityArchives; |
| | | import com.dingzhuo.energy.basic.data.facility.service.IFacilityArchivesService; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-24 |
| | | */ |
| | | @Service |
| | | public class FacilityArchivesServiceImpl implements IFacilityArchivesService |
| | | { |
| | | @Autowired |
| | | private FacilityArchivesMapper facilityArchivesMapper; |
| | | |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public FacilityArchives selectFacilityArchivesById(String id) |
| | | { |
| | | return facilityArchivesMapper.selectFacilityArchivesById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡æ ¹æ®code |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡code |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public FacilityArchives selectFacilityArchivesByCode(FacilityArchives facilityArchives) |
| | | { |
| | | return facilityArchivesMapper.selectFacilityArchivesByCode(facilityArchives); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public List<FacilityArchives> selectFacilityArchivesList(FacilityArchives facilityArchives) |
| | | { |
| | | return facilityArchivesMapper.selectFacilityArchivesList(facilityArchives); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表导åºå表 |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Override |
| | | public List<FacilityArchives> excelFacilityArchivesList(FacilityArchives facilityArchives) |
| | | { |
| | | return facilityArchivesMapper.excelFacilityArchivesList(facilityArchives); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertFacilityArchives(FacilityArchives facilityArchives) |
| | | { |
| | | facilityArchives.setCreateTime(DateUtils.getNowDate()); |
| | | return facilityArchivesMapper.insertFacilityArchives(facilityArchives); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param facilityArchives è®¾å¤æ¡£æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateFacilityArchives(FacilityArchives facilityArchives) |
| | | { |
| | | facilityArchives.setUpdateTime(DateUtils.getNowDate()); |
| | | return facilityArchivesMapper.updateFacilityArchives(facilityArchives); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteFacilityArchivesByIds(String[] ids) |
| | | { |
| | | return facilityArchivesMapper.deleteFacilityArchivesByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteFacilityArchivesById(String id) |
| | | { |
| | | return facilityArchivesMapper.deleteFacilityArchivesById(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¹éæ£å®æ¢å¤è®¾å¤æ¡£æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int resetFacilityArchivesByIds(String[] ids) |
| | | { |
| | | return facilityArchivesMapper.resetFacilityArchivesByIds(ids); |
| | | } |
| | | |
| | | /* *//** |
| | | * æ£å®æ¢å¤è®¾å¤æ¡£æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è®¾å¤æ¡£æ¡ID |
| | | * @return ç»æ |
| | | *//* |
| | | @Override |
| | | public int resetFacilityArchivesById(String[] id) |
| | | { |
| | | return facilityArchivesMapper.resetFacilityArchivesById(id); |
| | | } |
| | | */ |
| | | /** |
| | | * Excel导å
¥ è®¾å¤æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param facilityArchivesList è¦å¯¼å
¥çè®¾å¤æ¡£æ¡éå |
| | | * @param loginUser ç»å½ç¨æ·å¯¹è±¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public String excelImpSave(List<FacilityArchives> facilityArchivesList, LoginUser loginUser) |
| | | { |
| | | |
| | | if (StringUtils.isNull(facilityArchivesList) || facilityArchivesList.size() == 0) |
| | | { |
| | | throw new CustomException("导å
¥è®¾å¤æ¡£æ¡ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | int successNum = 0; |
| | | int failureNum = 0; |
| | | StringBuilder successMsg = new StringBuilder(); |
| | | StringBuilder failureMsg = new StringBuilder(); |
| | | //1ãåå
¸æ°æ®ç¿»è¯ |
| | | // 设å¤ç±»å |
| | | List<SysDictData> facilityTypeList = dictDataMapper.selectDictDataByType("facility_type"); |
| | | Map<String,String> facilityTypeMap = this.initDictMap(facilityTypeList); |
| | | // 使ç¨åå |
| | | List<SysDictData> facilityBranchList = dictDataMapper.selectDictDataByType( |
| | | "branch_factory"); |
| | | Map<String,String> facilityBranchMap = this.initDictMap(facilityBranchList); |
| | | //è½èç级 |
| | | List<SysDictData> facilityGradeList = dictDataMapper.selectDictDataByType( |
| | | "facility_grade"); |
| | | Map<String,String> facilityGradeMap = this.initDictMap(facilityGradeList); |
| | | for (FacilityArchives facilityArchives : facilityArchivesList) |
| | | { |
| | | try |
| | | { |
| | | |
| | | // æ£å®å¨æãæé卿 å®ä¹çIntegerç±»åï¼å¦ææ°æ®ä¸å¹é
ä¼é»è®¤ä¸º0 |
| | | facilityArchives.setCheckCycle(facilityArchives.getCheckCycle()==null?1:facilityArchives.getCheckCycle()); |
| | | facilityArchives.setReminderCycle(facilityArchives.getReminderCycle()==null?1:facilityArchives.getReminderCycle()); |
| | | // 2éªè¯ ç¼ç æ¯å¦åå¨ |
| | | FacilityArchives chekcFacilityImplement = facilityArchivesMapper.selectFacilityArchivesByCode(facilityArchives); |
| | | if (StringUtils.isNull(chekcFacilityImplement)) |
| | | { |
| | | //è®¾ç½®ä¸»é® |
| | | facilityArchives.setId(UUID.randomUUID().toString()); |
| | | //ç¿»è¯ è®¾å¤ç±»å æ æè
å¼ä¸å¯¹å设置为空å符串 |
| | | String facilityType= StringUtils.nvl(facilityTypeMap.get(facilityArchives.getFacilityType()+""),""); |
| | | //å¤æç¶ææ¯å¦æ£ç¡® |
| | | if(StringUtils.isEmpty(facilityType)) |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + facilityArchives.getCode() + " ç设å¤ç±»åé误"); |
| | | continue; |
| | | } |
| | | facilityArchives.setFacilityType(facilityType+""); |
| | | //ç¿»è¯ ä½¿ç¨åå æ æè
å¼ä¸å¯¹å设置为空å符串 |
| | | String branchFactory= StringUtils.nvl(facilityBranchMap.get(facilityArchives.getBranchFactory()+""),""); |
| | | if(StringUtils.isEmpty(branchFactory)) |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + facilityArchives.getCode() + " ç使ç¨ååé误"); |
| | | continue; |
| | | } |
| | | facilityArchives.setBranchFactory(branchFactory); |
| | | |
| | | //ç¿»è¯ è½èç级 æ æè
å¼ä¸å¯¹å设置为空å符串 |
| | | String facilityGrade= StringUtils.nvl(facilityGradeMap.get(facilityArchives.getFacilityGrade()+""),""); |
| | | if(StringUtils.isEmpty(facilityGrade)) |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + facilityArchives.getCode() + " çè½èç级é误"); |
| | | continue; |
| | | } |
| | | facilityArchives.setFacilityGrade(facilityGrade); |
| | | |
| | | //设置建ç«äººåå»ºç«æ¶é´ |
| | | facilityArchives.setCreateBy(loginUser.getUsername()); |
| | | facilityArchives.setCreateTime(new Date()); |
| | | //åå¨ä¸æ¡æ°æ® |
| | | this.insertFacilityArchives(facilityArchives); |
| | | successNum++; |
| | | successMsg.append("<br/>" + successNum + "ãç¼å· " + facilityArchives.getCode() + " 导å
¥æå"); |
| | | } |
| | | else |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + facilityArchives.getCode() + " å·²åå¨"); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | failureNum++; |
| | | String msg = "<br/>" + failureNum + "ãç¼å· " + facilityArchives.getCode() + " 导å
¥å¤±è´¥ï¼"; |
| | | failureMsg.append(msg + e.getMessage()); |
| | | log.error(msg, e); |
| | | } |
| | | } |
| | | if (failureNum > 0) |
| | | { |
| | | failureMsg.insert(0, "徿±æï¼å¯¼å
¥å¤±è´¥ï¼å
± " + failureNum + " æ¡æ°æ®æ ¼å¼ä¸æ£ç¡®ï¼é误å¦ä¸ï¼"); |
| | | throw new CustomException(failureMsg.toString()); |
| | | } |
| | | else |
| | | { |
| | | successMsg.insert(0, "æåæ¨ï¼æ°æ®å·²å
¨é¨å¯¼å
¥æåï¼å
± " + successNum + " æ¡ï¼æ°æ®å¦ä¸ï¼"); |
| | | } |
| | | return successMsg.toString(); |
| | | } |
| | | |
| | | /** |
| | | * å°åå
¸ç±»å 对åºç åå
¸éå åå
¥mapä¸ä½¿ç¨ |
| | | * @param sysDictDataList |
| | | * @return |
| | | */ |
| | | public Map initDictMap(List<SysDictData> sysDictDataList) |
| | | { |
| | | Map<String,String> map = new HashMap<String,String>(); |
| | | for(SysDictData sysDictData : sysDictDataList) |
| | | { |
| | | //åæ¾ key=æ ç¾åå valueæ¯ è®¾ç½®å¼ |
| | | map.put(sysDictData.getDictLabel(),sysDictData.getDictValue()); |
| | | } |
| | | return map; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUploadUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUtils; |
| | | import com.dingzhuo.energy.common.utils.text.Convert; |
| | | import com.dingzhuo.energy.framework.config.RuoYiConfig; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import com.dingzhuo.energy.project.common.CommonController; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterAnnex; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterAnnexService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡éä»¶Controller |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-14 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/meter/annex") |
| | | public class MeterAnnexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IMeterAnnexService meterAnnexService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(MeterAnnexController.class); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(MeterAnnex meterAnnex) |
| | | { |
| | | startPage(); |
| | | List<MeterAnnex> list = meterAnnexService.selectMeterAnnexList(meterAnnex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¡éå¨å
·æ¡£æ¡éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:export')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(MeterAnnex meterAnnex) |
| | | { |
| | | List<MeterAnnex> list = meterAnnexService.selectMeterAnnexList(meterAnnex); |
| | | ExcelUtil<MeterAnnex> util = new ExcelUtil<MeterAnnex>(MeterAnnex.class); |
| | | return util.exportExcel(list, "annex"); |
| | | } |
| | | |
| | | /** |
| | | * è·å计éå¨å
·æ¡£æ¡é件详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(meterAnnexService.selectMeterAnnexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:add')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡éä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody MeterAnnex meterAnnex) |
| | | { |
| | | return toAjax(meterAnnexService.insertMeterAnnex(meterAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:edit')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡éä»¶", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody MeterAnnex meterAnnex) |
| | | { |
| | | return toAjax(meterAnnexService.updateMeterAnnex(meterAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:remove')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡éä»¶", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(meterAnnexService.deleteMeterAnnexByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * éç¨æå®æä»¶ä¸è½½è¯·æ± |
| | | * |
| | | * @param showFileName ä¸è½½å±ç¤ºæä»¶åç§° |
| | | // * @param filePath ä¸è½½æä»¶ç»å¯¹è·¯å¾ 带 æä»¶çå®åååè·¯å¾ |
| | | * @param delete æ¯å¦å é¤/ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:assignDownload')") |
| | | @PostMapping("/assignDownload") |
| | | public void fileAssignDownload(String showFileName, String filePath,Boolean delete, HttpServletResponse response, HttpServletRequest request) |
| | | { |
| | | try |
| | | { |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setContentType("multipart/form-data"); |
| | | response.setHeader("Content-Disposition", |
| | | "attachment;fileName=" + FileUtils.setFileDownloadHeader(request, showFileName)); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | // if (delete) |
| | | // { |
| | | // FileUtils.deleteFile(filePath); |
| | | // } |
| | | log.error("ä¸è½½æå", "aa"); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | log.error("ä¸è½½æä»¶å¤±è´¥", e); |
| | | } |
| | | } |
| | | @Log(title = "计éå¨å
·æ¡£æ¡éä»¶ä¸ä¼ ", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('meter:annex:fileImport')") |
| | | @PostMapping("/fileImport") |
| | | public AjaxResult importData(MultipartFile file, String implementId) throws Exception |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //è·åé
ç½®çæä»¶ä¸ä¼ è·¯å¾ |
| | | String uploadPathDir = RuoYiConfig.getUploadPath(); |
| | | //è·åæä»¶åå§åç§° |
| | | String fileName = file.getOriginalFilename(); |
| | | //è·åæä»¶æ©å±å |
| | | String fileSuffix = FileUploadUtils.getExtension(file); |
| | | // System.out.println("implementId==="+implementId); |
| | | // System.out.println("filedir==="+uploadPathDir); |
| | | // System.out.println("fileName==="+fileName); |
| | | // System.out.println("fileSuffix==="+fileSuffix); |
| | | //æä»¶æç»ä¿åçç»å¯¹è·¯å¾ |
| | | String filePath = FileUploadUtils.uploadAll(uploadPathDir, file); |
| | | // System.out.println("ä¸ä¼ æä»¶å°å:===>"+filePath); |
| | | MeterAnnex meterAnnex = new MeterAnnex(); |
| | | //设置主é®UUID |
| | | meterAnnex.setId(IdUtils.simpleUUID()); |
| | | meterAnnex.setFileName(fileName); |
| | | meterAnnex.setFilePath(filePath); |
| | | meterAnnex.setFileSuffix(fileSuffix); |
| | | meterAnnex.setImplementId(implementId); |
| | | meterAnnex.setCreateBy(loginUser.getUsername()); |
| | | if (this.meterAnnexService.insertMeterAnnex(meterAnnex)>0) |
| | | { |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 宿"); |
| | | } |
| | | } |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 失败"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | import com.dingzhuo.energy.project.system.domain.SysDictData; |
| | | import com.dingzhuo.energy.project.system.domain.SysUser; |
| | | import com.dingzhuo.energy.project.system.service.ISysDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterImplementService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤Controller |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/meter/implement") |
| | | @Api(value = "计éå¨å
·ç®¡ç",tags = {"计éå¨å
·ç®¡ç"}) |
| | | public class MeterImplementController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IMeterImplementService meterImplementService; |
| | | |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "计éå¨å
·å表") |
| | | public TableDataInfo list(MeterImplement meterImplement) |
| | | { |
| | | startPage(); |
| | | List<MeterImplement> list = meterImplementService.selectMeterImplementList(meterImplement); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:export')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡ç»´æ¤", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | @ApiOperation(value = "计éå¨å
·å表导åº") |
| | | public AjaxResult export(MeterImplement meterImplement) |
| | | { |
| | | // List<MeterImplement> list = meterImplementService.selectMeterImplementList(meterImplement); |
| | | //使ç¨ä¸ç¨ç导åºè°ç¨æ¹æ³ï¼è¿éé¢å° æ°æ®è¿è¡è½¬åï¼ ç¶æãç§ç±» è½¬æ¢æ 䏿ï¼ç¨å½æ°å®ç° éè¿æ°æ®åå
¸è½¬æ¢ |
| | | //MeterImplementExcel å¯¼åº Excelä¸ç¨å¯¹è±¡ |
| | | List<MeterImplementExcel> list = meterImplementService.exectMeterImplementList(meterImplement); |
| | | ExcelUtil<MeterImplementExcel> util = new ExcelUtil<MeterImplementExcel>(MeterImplementExcel.class); |
| | | return util.exportExcel(list, "implement"); |
| | | } |
| | | |
| | | /** |
| | | * è·å计éå¨å
·æ¡£æ¡ç»´æ¤è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "æ ¹æ®idè·å计éå¨å
·ç¸ä¿¡ä¿¡æ¯") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(meterImplementService.selectMeterImplementById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:add')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡ç»´æ¤", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "æ°å¢è®¡éå¨å
·") |
| | | public AjaxResult add(@RequestBody MeterImplement meterImplement) |
| | | { |
| | | MeterImplement check = meterImplementService.selectMeterImplementByCode(meterImplement); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //ç¼å·å¯ä¸æ§æ£æµ |
| | | if(check!=null && check.getCode()!=null && check.getCode().length()>0) |
| | | { |
| | | return AjaxResult.error(check.getCode()+"ç¼ç å·²åå¨!"); |
| | | }else |
| | | { |
| | | meterImplement.setId(UUID.randomUUID().toString()); |
| | | meterImplement.setCreateBy(loginUser.getUsername()); |
| | | return toAjax(meterImplementService.insertMeterImplement(meterImplement)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:edit')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡ç»´æ¤", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "ç¼è¾è®¡éå¨å
·") |
| | | public AjaxResult edit(@RequestBody MeterImplement meterImplement) |
| | | { |
| | | //æ´æ°æ¶çç¼ç å¯ä¸çº¦æ è¦å¤æ idä¸çäºèªå·±ï¼ä¸ codeåå¨éå¤çï¼è¦å
廿èªå·±ï¼å¦å èªå·±çä¿®æ¹ä¹æ¥é |
| | | MeterImplement check = meterImplementService.selectMeterImplementByCode(meterImplement); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //ç¼å·å¯ä¸æ§æ£æµ |
| | | if(check!=null && check.getCode()!=null && check.getCode().length()>0) |
| | | { |
| | | return AjaxResult.error(check.getCode()+"ç¼ç å·²åå¨!"); |
| | | }else |
| | | { |
| | | meterImplement.setUpdateBy(loginUser.getUsername()); |
| | | return toAjax(meterImplementService.updateMeterImplement(meterImplement)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:remove')") |
| | | @Log(title = "计éå¨å
·æ¡£æ¡ç»´æ¤", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "å é¤è®¡éå¨å
·") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(meterImplementService.deleteMeterImplementByIds(ids)); |
| | | } |
| | | |
| | | @Log(title = "计éå¨å
·æ¡£æ¡ç»´æ¤", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('meter:implement:import')") |
| | | @PostMapping("/importData") |
| | | @ApiOperation(value = "计éå¨å
·å¯¼å
¥") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception |
| | | { |
| | | ExcelUtil<MeterImplement> util = new ExcelUtil<MeterImplement>(MeterImplement.class); |
| | | List<MeterImplement> meterList = util.importExcel(file.getInputStream()); |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | String message = meterImplementService.excelImpSave(meterList,loginUser); |
| | | return AjaxResult.success(message); |
| | | } |
| | | |
| | | @GetMapping("/importTemplate") |
| | | @ApiOperation(value = "计éå¨å
·å¯¼åºæ¨¡æ¿") |
| | | public AjaxResult importTemplate() |
| | | { |
| | | ExcelUtil<MeterImplementExcel> util = new ExcelUtil<MeterImplementExcel>(MeterImplementExcel.class); |
| | | return util.importTemplateExcel("计éå¨å
·æ¡£æ¡æ°æ®"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.controller; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementCount; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterImplementCountService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 计éå¨å
·ç»è®¡æ¥è¯¢Controller |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/meter/implementCount") |
| | | public class MeterImplementCountController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IMeterImplementCountService meterImplementCountService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(MeterImplementCount meterImplementCount) |
| | | { |
| | | startPage(); |
| | | List<MeterImplementCount> list = meterImplementCountService.selectMeterImplementCountList(meterImplementCount); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¡éå¨å
·ç»è®¡æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:export')") |
| | | @Log(title = "计éå¨å
·ç»è®¡æ¥è¯¢", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(MeterImplementCount meterImplementCount) |
| | | { |
| | | List<MeterImplementCount> list = meterImplementCountService.selectMeterImplementCountList(meterImplementCount); |
| | | ExcelUtil<MeterImplementCount> util = new ExcelUtil<MeterImplementCount>(MeterImplementCount.class); |
| | | return util.exportExcel(list, "implementCount"); |
| | | } |
| | | |
| | | /** |
| | | * è·å计éå¨å
·ç»è®¡æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:query')") |
| | | @GetMapping(value = "/{code}") |
| | | public AjaxResult getInfo(@PathVariable("code") String code) |
| | | { |
| | | return AjaxResult.success(meterImplementCountService.selectMeterImplementCountById(code)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:add')") |
| | | @Log(title = "计éå¨å
·ç»è®¡æ¥è¯¢", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody MeterImplementCount meterImplementCount) |
| | | { |
| | | return toAjax(meterImplementCountService.insertMeterImplementCount(meterImplementCount)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:edit')") |
| | | @Log(title = "计éå¨å
·ç»è®¡æ¥è¯¢", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody MeterImplementCount meterImplementCount) |
| | | { |
| | | return toAjax(meterImplementCountService.updateMeterImplementCount(meterImplementCount)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('meter:implementCount:remove')") |
| | | @Log(title = "计éå¨å
·ç»è®¡æ¥è¯¢", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{codes}") |
| | | public AjaxResult remove(@PathVariable String[] codes) |
| | | { |
| | | return toAjax(meterImplementCountService.deleteMeterImplementCountByIds(codes)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡é件对象 meter_annex |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-14 |
| | | */ |
| | | public class MeterAnnex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** å
³èmeter_implement.id */ |
| | | private String implementId; |
| | | |
| | | /** æä»¶å */ |
| | | @Excel(name = "æä»¶å") |
| | | private String fileName; |
| | | |
| | | /** æä»¶åç¼ */ |
| | | private String fileSuffix; |
| | | |
| | | /** æä»¶è·¯å¾ */ |
| | | private String filePath; |
| | | |
| | | /** å 餿 å¿Y å é¤ Næªå é¤ */ |
| | | private String delFlage; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setImplementId(String implementId) |
| | | { |
| | | this.implementId = implementId; |
| | | } |
| | | |
| | | public String getImplementId() |
| | | { |
| | | return implementId; |
| | | } |
| | | public void setFileName(String fileName) |
| | | { |
| | | this.fileName = fileName; |
| | | } |
| | | |
| | | public String getFileName() |
| | | { |
| | | return fileName; |
| | | } |
| | | public void setFileSuffix(String fileSuffix) |
| | | { |
| | | this.fileSuffix = fileSuffix; |
| | | } |
| | | |
| | | public String getFileSuffix() |
| | | { |
| | | return fileSuffix; |
| | | } |
| | | public void setFilePath(String filePath) |
| | | { |
| | | this.filePath = filePath; |
| | | } |
| | | |
| | | public String getFilePath() |
| | | { |
| | | return filePath; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("implementId", getImplementId()) |
| | | .append("fileName", getFileName()) |
| | | .append("fileSuffix", getFileSuffix()) |
| | | .append("filePath", getFilePath()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤å¯¹è±¡ meter_implement |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | @ApiModel(value = "计éå¨å
·") |
| | | public class MeterImplement extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | @ApiModelProperty(value = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** å¨å
·åç§° */ |
| | | @Excel(name = "å¨å
·åç§°") |
| | | @ApiModelProperty(value = "å¨å
·åç§°") |
| | | private String meterName; |
| | | |
| | | /** ç§ç±» */ |
| | | @Excel(name = "ç§ç±»") |
| | | @ApiModelProperty(value = "ç§ç±»") |
| | | private String meterType; |
| | | |
| | | /** è§æ ¼åå· */ |
| | | @Excel(name = "è§æ ¼åå·") |
| | | @ApiModelProperty(value = "è§æ ¼åå·") |
| | | private String modelNumber; |
| | | |
| | | /** æµéèå´ */ |
| | | @Excel(name = "æµéèå´") |
| | | @ApiModelProperty(value = "æµéèå´") |
| | | private String measureRange; |
| | | |
| | | /** ç产åå */ |
| | | @Excel(name = "ç产åå") |
| | | @ApiModelProperty(value = "ç产åå") |
| | | private String manufacturer; |
| | | |
| | | /** è´è´£äºº */ |
| | | @Excel(name = "è´è´£äºº") |
| | | @ApiModelProperty(value = "") |
| | | private String personCharge; |
| | | |
| | | /** å®è£
ä½ç½® */ |
| | | @Excel(name = "å®è£
ä½ç½®") |
| | | @ApiModelProperty(value = "å®è£
ä½ç½®") |
| | | private String installactionLocation; |
| | | |
| | | /** èµ·å§æ¶é´ */ |
| | | @Excel(name = "èµ·å§æ¶é´") |
| | | @ApiModelProperty(value = "èµ·å§æ¶é´") |
| | | private Date startTime; |
| | | |
| | | /** æè¿æ¶é´ */ |
| | | @Excel(name = "æè¿æ¶é´") |
| | | @ApiModelProperty(value = "æè¿æ¶é´") |
| | | private Date putrunTime; |
| | | |
| | | /** æ£å®å¨æ */ |
| | | @Excel(name = "æ£å®å¨æ") |
| | | @ApiModelProperty(value = "æ£å®å¨æ") |
| | | private Integer checkCycle; |
| | | |
| | | /** æé卿 */ |
| | | @Excel(name = "æé卿") |
| | | @ApiModelProperty(value = "æé卿") |
| | | private Integer reminderCycle; |
| | | |
| | | /** ç¶æ */ |
| | | @Excel(name = "ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String meterStatus; |
| | | |
| | | /** é»è¾å 餿 å¿,Yå·²å é¤,Næªå é¤ */ |
| | | @ApiModelProperty(value = "é»è¾å 餿 å¿,Yå·²å é¤,Næªå é¤") |
| | | private String delFlage; |
| | | /** æ£å®æéæ å¿ true æé falseä¸éè¦æé */ |
| | | @ApiModelProperty(value = "æ£å®æéæ å¿ true æé falseä¸éè¦æé") |
| | | private boolean txflage; |
| | | |
| | | public void setTxflage(boolean txflage) |
| | | { |
| | | this.txflage = txflage; |
| | | } |
| | | public boolean getTxflage() |
| | | { |
| | | return this.txflage; |
| | | } |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setMeterName(String meterName) |
| | | { |
| | | this.meterName = meterName; |
| | | } |
| | | |
| | | public String getMeterName() |
| | | { |
| | | return meterName; |
| | | } |
| | | public void setMeterType(String meterType) |
| | | { |
| | | this.meterType = meterType; |
| | | } |
| | | |
| | | public String getMeterType() |
| | | { |
| | | return meterType; |
| | | } |
| | | public void setModelNumber(String modelNumber) |
| | | { |
| | | this.modelNumber = modelNumber; |
| | | } |
| | | |
| | | public String getModelNumber() |
| | | { |
| | | return modelNumber; |
| | | } |
| | | public void setMeasureRange(String measureRange) |
| | | { |
| | | this.measureRange = measureRange; |
| | | } |
| | | |
| | | public String getMeasureRange() |
| | | { |
| | | return measureRange; |
| | | } |
| | | public void setManufacturer(String manufacturer) |
| | | { |
| | | this.manufacturer = manufacturer; |
| | | } |
| | | |
| | | public String getManufacturer() |
| | | { |
| | | return manufacturer; |
| | | } |
| | | public void setPersonCharge(String personCharge) |
| | | { |
| | | this.personCharge = personCharge; |
| | | } |
| | | |
| | | public String getPersonCharge() |
| | | { |
| | | return personCharge; |
| | | } |
| | | public void setInstallactionLocation(String installactionLocation) |
| | | { |
| | | this.installactionLocation = installactionLocation; |
| | | } |
| | | |
| | | public String getInstallactionLocation() |
| | | { |
| | | return installactionLocation; |
| | | } |
| | | public void setStartTime(Date startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setCheckCycle(Integer checkCycle) |
| | | { |
| | | this.checkCycle = checkCycle; |
| | | } |
| | | |
| | | public Integer getCheckCycle() |
| | | { |
| | | return checkCycle; |
| | | } |
| | | public void setReminderCycle(Integer reminderCycle) |
| | | { |
| | | this.reminderCycle = reminderCycle; |
| | | } |
| | | |
| | | public Integer getReminderCycle() |
| | | { |
| | | return reminderCycle; |
| | | } |
| | | public void setMeterStatus(String meterStatus) |
| | | { |
| | | this.meterStatus = meterStatus; |
| | | } |
| | | |
| | | public String getMeterStatus() |
| | | { |
| | | return meterStatus; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("meterName", getMeterName()) |
| | | .append("meterType", getMeterType()) |
| | | .append("modelNumber", getModelNumber()) |
| | | .append("measureRange", getMeasureRange()) |
| | | .append("manufacturer", getManufacturer()) |
| | | .append("personCharge", getPersonCharge()) |
| | | .append("installactionLocation", getInstallactionLocation()) |
| | | .append("startTime", getStartTime()) |
| | | .append("checkCycle", getCheckCycle()) |
| | | .append("reminderCycle", getReminderCycle()) |
| | | .append("meterStatus", getMeterStatus()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("remark", getRemark()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("txflage", getTxflage()) |
| | | .toString(); |
| | | } |
| | | |
| | | public Date getPutrunTime() { |
| | | return putrunTime; |
| | | } |
| | | |
| | | public void setPutrunTime(Date putrunTime) { |
| | | this.putrunTime = putrunTime; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 计éå¨å
·ç»è®¡æ¥è¯¢å¯¹è±¡ meter_implement |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-21 |
| | | */ |
| | | public class MeterImplementCount extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** å¨å
·åç§° */ |
| | | @Excel(name = "å¨å
·åç§°") |
| | | private String meterName; |
| | | |
| | | /** ç§ç±» */ |
| | | @Excel(name = "ç§ç±»") |
| | | private String meterType; |
| | | |
| | | /** è§æ ¼åå· */ |
| | | @Excel(name = "è§æ ¼åå·") |
| | | private String modelNumber; |
| | | |
| | | /** æµéèå´ */ |
| | | @Excel(name = "æµéèå´") |
| | | private String measureRange; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** ç产åå */ |
| | | @Excel(name = "ç产åå") |
| | | private String manufacturer; |
| | | |
| | | /** è´è´£äºº */ |
| | | private String personCharge; |
| | | |
| | | /** å®è£
ä½ç½® */ |
| | | @Excel(name = "å®è£
ä½ç½®") |
| | | private String installactionLocation; |
| | | |
| | | /** èµ·å§æ¶é´ */ |
| | | private Date startTime; |
| | | |
| | | /** æè¿æ¶é´ */ |
| | | @Excel(name = "æè¿æ¶é´") |
| | | private Date putrunTime; |
| | | |
| | | |
| | | /** æ£å®å¨æ */ |
| | | private Integer checkCycle; |
| | | |
| | | /** æé卿 */ |
| | | private Integer reminderCycle; |
| | | |
| | | /** ç¶æ */ |
| | | @Excel(name = "ç¶æ") |
| | | private String meterStatus; |
| | | |
| | | /** é»è¾å 餿 å¿,Yå·²å é¤,Næªå é¤ */ |
| | | private String delFlage; |
| | | |
| | | private boolean txflage; |
| | | |
| | | public void setTxflage(boolean txflage) |
| | | { |
| | | this.txflage = txflage; |
| | | } |
| | | public boolean getTxflage() |
| | | { |
| | | return this.txflage; |
| | | } |
| | | |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setMeterName(String meterName) |
| | | { |
| | | this.meterName = meterName; |
| | | } |
| | | |
| | | public String getMeterName() |
| | | { |
| | | return meterName; |
| | | } |
| | | public void setMeterType(String meterType) |
| | | { |
| | | this.meterType = meterType; |
| | | } |
| | | |
| | | public String getMeterType() |
| | | { |
| | | return meterType; |
| | | } |
| | | public void setModelNumber(String modelNumber) |
| | | { |
| | | this.modelNumber = modelNumber; |
| | | } |
| | | |
| | | public String getModelNumber() |
| | | { |
| | | return modelNumber; |
| | | } |
| | | public void setMeasureRange(String measureRange) |
| | | { |
| | | this.measureRange = measureRange; |
| | | } |
| | | |
| | | public String getMeasureRange() |
| | | { |
| | | return measureRange; |
| | | } |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setManufacturer(String manufacturer) |
| | | { |
| | | this.manufacturer = manufacturer; |
| | | } |
| | | |
| | | public String getManufacturer() |
| | | { |
| | | return manufacturer; |
| | | } |
| | | public void setPersonCharge(String personCharge) |
| | | { |
| | | this.personCharge = personCharge; |
| | | } |
| | | |
| | | public String getPersonCharge() |
| | | { |
| | | return personCharge; |
| | | } |
| | | public void setInstallactionLocation(String installactionLocation) |
| | | { |
| | | this.installactionLocation = installactionLocation; |
| | | } |
| | | |
| | | public String getInstallactionLocation() |
| | | { |
| | | return installactionLocation; |
| | | } |
| | | public void setStartTime(Date startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public Date getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setCheckCycle(Integer checkCycle) |
| | | { |
| | | this.checkCycle = checkCycle; |
| | | } |
| | | |
| | | public Integer getCheckCycle() |
| | | { |
| | | return checkCycle; |
| | | } |
| | | public void setReminderCycle(Integer reminderCycle) |
| | | { |
| | | this.reminderCycle = reminderCycle; |
| | | } |
| | | |
| | | public Integer getReminderCycle() |
| | | { |
| | | return reminderCycle; |
| | | } |
| | | public void setMeterStatus(String meterStatus) |
| | | { |
| | | this.meterStatus = meterStatus; |
| | | } |
| | | |
| | | public String getMeterStatus() |
| | | { |
| | | return meterStatus; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("code", getCode()) |
| | | .append("meterName", getMeterName()) |
| | | .append("meterType", getMeterType()) |
| | | .append("modelNumber", getModelNumber()) |
| | | .append("measureRange", getMeasureRange()) |
| | | .append("id", getId()) |
| | | .append("manufacturer", getManufacturer()) |
| | | .append("personCharge", getPersonCharge()) |
| | | .append("installactionLocation", getInstallactionLocation()) |
| | | .append("startTime", getStartTime()) |
| | | .append("checkCycle", getCheckCycle()) |
| | | .append("reminderCycle", getReminderCycle()) |
| | | .append("meterStatus", getMeterStatus()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("remark", getRemark()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("txflage", getTxflage()) |
| | | .toString(); |
| | | } |
| | | public Date getPutrunTime() { |
| | | return putrunTime; |
| | | } |
| | | |
| | | public void setPutrunTime(Date putrunTime) { |
| | | this.putrunTime = putrunTime; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤ å¯¼åº Excelä¸ç¨å¯¹è±¡ meter_implement |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | public class MeterImplementExcel extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** å¨å
·åç§° */ |
| | | @Excel(name = "å¨å
·åç§°") |
| | | private String meterName; |
| | | |
| | | /** ç§ç±» */ |
| | | @Excel(name = "ç§ç±»") |
| | | private String meterType; |
| | | |
| | | /** è§æ ¼åå· */ |
| | | @Excel(name = "è§æ ¼åå·") |
| | | private String modelNumber; |
| | | |
| | | /** æµéèå´ */ |
| | | @Excel(name = "æµéèå´") |
| | | private String measureRange; |
| | | |
| | | /** ç产åå */ |
| | | @Excel(name = "ç产åå") |
| | | private String manufacturer; |
| | | |
| | | /** è´è´£äºº */ |
| | | @Excel(name = "è´è´£äºº") |
| | | private String personCharge; |
| | | |
| | | /** å®è£
ä½ç½® */ |
| | | @Excel(name = "å®è£
ä½ç½®") |
| | | private String installactionLocation; |
| | | |
| | | /** èµ·å§æ¶é´ */ |
| | | @Excel(name = "èµ·å§æ¶é´") |
| | | private String startTime; |
| | | |
| | | /** æ£å®å¨æ */ |
| | | @Excel(name = "æ£å®å¨æ") |
| | | private Integer checkCycle; |
| | | |
| | | /** æé卿 */ |
| | | @Excel(name = "æé卿") |
| | | private Integer reminderCycle; |
| | | |
| | | /** ç¶æ */ |
| | | @Excel(name = "ç¶æ") |
| | | private String meterStatus; |
| | | |
| | | /** é»è¾å 餿 å¿,Yå·²å é¤,Næªå é¤ */ |
| | | private String delFlage; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setMeterName(String meterName) |
| | | { |
| | | this.meterName = meterName; |
| | | } |
| | | |
| | | public String getMeterName() |
| | | { |
| | | return meterName; |
| | | } |
| | | public void setMeterType(String meterType) |
| | | { |
| | | this.meterType = meterType; |
| | | } |
| | | |
| | | public String getMeterType() |
| | | { |
| | | return meterType; |
| | | } |
| | | public void setModelNumber(String modelNumber) |
| | | { |
| | | this.modelNumber = modelNumber; |
| | | } |
| | | |
| | | public String getModelNumber() |
| | | { |
| | | return modelNumber; |
| | | } |
| | | public void setMeasureRange(String measureRange) |
| | | { |
| | | this.measureRange = measureRange; |
| | | } |
| | | |
| | | public String getMeasureRange() |
| | | { |
| | | return measureRange; |
| | | } |
| | | public void setManufacturer(String manufacturer) |
| | | { |
| | | this.manufacturer = manufacturer; |
| | | } |
| | | |
| | | public String getManufacturer() |
| | | { |
| | | return manufacturer; |
| | | } |
| | | public void setPersonCharge(String personCharge) |
| | | { |
| | | this.personCharge = personCharge; |
| | | } |
| | | |
| | | public String getPersonCharge() |
| | | { |
| | | return personCharge; |
| | | } |
| | | public void setInstallactionLocation(String installactionLocation) |
| | | { |
| | | this.installactionLocation = installactionLocation; |
| | | } |
| | | |
| | | public String getInstallactionLocation() |
| | | { |
| | | return installactionLocation; |
| | | } |
| | | public void setStartTime(String startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | |
| | | public String getStartTime() |
| | | { |
| | | return startTime; |
| | | } |
| | | public void setCheckCycle(Integer checkCycle) |
| | | { |
| | | this.checkCycle = checkCycle; |
| | | } |
| | | |
| | | public Integer getCheckCycle() |
| | | { |
| | | return checkCycle; |
| | | } |
| | | public void setReminderCycle(Integer reminderCycle) |
| | | { |
| | | this.reminderCycle = reminderCycle; |
| | | } |
| | | |
| | | public Integer getReminderCycle() |
| | | { |
| | | return reminderCycle; |
| | | } |
| | | public void setMeterStatus(String meterStatus) |
| | | { |
| | | this.meterStatus = meterStatus; |
| | | } |
| | | |
| | | public String getMeterStatus() |
| | | { |
| | | return meterStatus; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("meterName", getMeterName()) |
| | | .append("meterType", getMeterType()) |
| | | .append("modelNumber", getModelNumber()) |
| | | .append("measureRange", getMeasureRange()) |
| | | .append("manufacturer", getManufacturer()) |
| | | .append("personCharge", getPersonCharge()) |
| | | .append("installactionLocation", getInstallactionLocation()) |
| | | .append("startTime", getStartTime()) |
| | | .append("checkCycle", getCheckCycle()) |
| | | .append("reminderCycle", getReminderCycle()) |
| | | .append("meterStatus", getMeterStatus()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("remark", getRemark()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡éä»¶Mapperæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-14 |
| | | */ |
| | | public interface MeterAnnexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | public MeterAnnex selectMeterAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶éå |
| | | */ |
| | | public List<MeterAnnex> selectMeterAnnexList(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterAnnex(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterAnnex(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterAnnexByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementCount; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·ç»è®¡æ¥è¯¢Mapperæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-21 |
| | | */ |
| | | public interface MeterImplementCountMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | public MeterImplementCount selectMeterImplementCountById(String code); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢å表 |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢éå |
| | | */ |
| | | public List<MeterImplementCount> selectMeterImplementCountList(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterImplementCount(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterImplementCount(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementCountById(String code); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param codes éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementCountByIds(String[] codes); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.mapper; |
| | | |
| | | public class MeterImplementExcel { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤Mapperæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | public interface MeterImplementMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | public MeterImplement selectMeterImplementById(String id); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ç¼å· |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | public MeterImplement selectMeterImplementByCode(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤éå |
| | | */ |
| | | public List<MeterImplement> selectMeterImplementList(MeterImplement meterImplement); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤å¯¼åºå表ï¼å
¶ä¸åå
¸å段å¨SQLä¸è¿è¡ç¿»è¯ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤éå |
| | | */ |
| | | public List<MeterImplementExcel> exectMeterImplementList(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterImplement(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterImplement(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementByIds(String[] ids); |
| | | |
| | | /** |
| | | * æ ¹æ®idéåæ¥è¯¢è®¡éå¨å
·ä¿¡æ¯ |
| | | * |
| | | * @param meterIdList 计éå¨å
·id |
| | | * @return |
| | | */ |
| | | List<MeterImplement> listMeterImplementByIds(@Param("meterIdList") List<String> meterIdList); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡éä»¶Serviceæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-14 |
| | | */ |
| | | public interface IMeterAnnexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | public MeterAnnex selectMeterAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶éå |
| | | */ |
| | | public List<MeterAnnex> selectMeterAnnexList(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterAnnex(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterAnnex(MeterAnnex meterAnnex); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤ç计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterAnnexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterAnnexById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementCount; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·ç»è®¡æ¥è¯¢Serviceæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-21 |
| | | */ |
| | | public interface IMeterImplementCountService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | public MeterImplementCount selectMeterImplementCountById(String code); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢å表 |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢éå |
| | | */ |
| | | public List<MeterImplementCount> selectMeterImplementCountList(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterImplementCount(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterImplementCount(MeterImplementCount meterImplementCount); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param codes éè¦å é¤ç计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementCountByIds(String[] codes); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementCountById(String code); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤Serviceæ¥å£ |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | public interface IMeterImplementService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | public MeterImplement selectMeterImplementById(String id); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ç¼å· |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | public MeterImplement selectMeterImplementByCode(MeterImplement meterImplement); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤éå |
| | | */ |
| | | public List<MeterImplement> selectMeterImplementList(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * 导åºè®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤éå |
| | | */ |
| | | public List<MeterImplementExcel> exectMeterImplementList(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertMeterImplement(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateMeterImplement(MeterImplement meterImplement); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤ç计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteMeterImplementById(String id); |
| | | |
| | | /** |
| | | * Excel导å
¥ 计éå¨å
·æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param meterImplementList è¦å¯¼å
¥ç计éå¨å
·æ¡£æ¡éå |
| | | * @param loginUser ç»å½ç¨æ·å¯¹è±¡ |
| | | * @return ç»æ |
| | | */ |
| | | public String excelImpSave(List<MeterImplement> meterImplementList, LoginUser loginUser); |
| | | |
| | | /** |
| | | * æ ¹æ®idéåæ¥è¯¢è®¡éå¨å
·ä¿¡æ¯ |
| | | * |
| | | * @param meterIdList |
| | | * @return |
| | | */ |
| | | List<MeterImplement> listMeterImplementByIds(List<String> meterIdList); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.meter.mapper.MeterAnnexMapper; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterAnnex; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterAnnexService; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡éä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-14 |
| | | */ |
| | | @Service |
| | | public class MeterAnnexServiceImpl implements IMeterAnnexService |
| | | { |
| | | @Autowired |
| | | private MeterAnnexMapper meterAnnexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | @Override |
| | | public MeterAnnex selectMeterAnnexById(String id) |
| | | { |
| | | return meterAnnexMapper.selectMeterAnnexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡éä»¶å表 |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return 计éå¨å
·æ¡£æ¡éä»¶ |
| | | */ |
| | | @Override |
| | | public List<MeterAnnex> selectMeterAnnexList(MeterAnnex meterAnnex) |
| | | { |
| | | return meterAnnexMapper.selectMeterAnnexList(meterAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertMeterAnnex(MeterAnnex meterAnnex) |
| | | { |
| | | meterAnnex.setCreateTime(DateUtils.getNowDate()); |
| | | return meterAnnexMapper.insertMeterAnnex(meterAnnex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param meterAnnex 计éå¨å
·æ¡£æ¡éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateMeterAnnex(MeterAnnex meterAnnex) |
| | | { |
| | | meterAnnex.setUpdateTime(DateUtils.getNowDate()); |
| | | return meterAnnexMapper.updateMeterAnnex(meterAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤ç计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterAnnexByIds(String[] ids) |
| | | { |
| | | return meterAnnexMapper.deleteMeterAnnexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterAnnexById(String id) |
| | | { |
| | | return meterAnnexMapper.deleteMeterAnnexById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.meter.mapper.MeterImplementCountMapper; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementCount; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterImplementCountService; |
| | | |
| | | /** |
| | | * 计éå¨å
·ç»è®¡æ¥è¯¢Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-21 |
| | | */ |
| | | @Service |
| | | public class MeterImplementCountServiceImpl implements IMeterImplementCountService |
| | | { |
| | | @Autowired |
| | | private MeterImplementCountMapper meterImplementCountMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public MeterImplementCount selectMeterImplementCountById(String code) |
| | | { |
| | | return meterImplementCountMapper.selectMeterImplementCountById(code); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·ç»è®¡æ¥è¯¢å表 |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public List<MeterImplementCount> selectMeterImplementCountList(MeterImplementCount meterImplementCount) |
| | | { |
| | | return meterImplementCountMapper.selectMeterImplementCountList(meterImplementCount); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertMeterImplementCount(MeterImplementCount meterImplementCount) |
| | | { |
| | | meterImplementCount.setCreateTime(DateUtils.getNowDate()); |
| | | return meterImplementCountMapper.insertMeterImplementCount(meterImplementCount); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param meterImplementCount 计éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateMeterImplementCount(MeterImplementCount meterImplementCount) |
| | | { |
| | | meterImplementCount.setUpdateTime(DateUtils.getNowDate()); |
| | | return meterImplementCountMapper.updateMeterImplementCount(meterImplementCount); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ |
| | | * |
| | | * @param codes éè¦å é¤ç计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterImplementCountByIds(String[] codes) |
| | | { |
| | | return meterImplementCountMapper.deleteMeterImplementCountByIds(codes); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·ç»è®¡æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param code 计éå¨å
·ç»è®¡æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterImplementCountById(String code) |
| | | { |
| | | return meterImplementCountMapper.deleteMeterImplementCountById(code); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.meter.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | import com.dingzhuo.energy.basic.data.meter.mapper.MeterImplementMapper; |
| | | import com.dingzhuo.energy.basic.data.meter.service.IMeterImplementService; |
| | | import com.dingzhuo.energy.common.exception.CustomException; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.project.system.domain.SysDictData; |
| | | import com.dingzhuo.energy.project.system.mapper.SysDictDataMapper; |
| | | import com.dingzhuo.energy.project.system.service.impl.SysUserServiceImpl; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 计éå¨å
·æ¡£æ¡ç»´æ¤Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author zhaowei |
| | | * @date 2020-02-12 |
| | | */ |
| | | @Service |
| | | public class MeterImplementServiceImpl implements IMeterImplementService |
| | | { |
| | | @Autowired |
| | | private MeterImplementMapper meterImplementMapper; |
| | | |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public MeterImplement selectMeterImplementById(String id) |
| | | { |
| | | return meterImplementMapper.selectMeterImplementById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ ç¼å· |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public MeterImplement selectMeterImplementByCode(MeterImplement meterImplement) { |
| | | return meterImplementMapper.selectMeterImplementByCode(meterImplement); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public List<MeterImplement> selectMeterImplementList(MeterImplement meterImplement) |
| | | { |
| | | return meterImplementMapper.selectMeterImplementList(meterImplement); |
| | | } |
| | | /** |
| | | * 导åºè®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public List<MeterImplementExcel> exectMeterImplementList(MeterImplement meterImplement) |
| | | { |
| | | return meterImplementMapper.exectMeterImplementList(meterImplement); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertMeterImplement(MeterImplement meterImplement) |
| | | { |
| | | meterImplement.setCreateTime(DateUtils.getNowDate()); |
| | | return meterImplementMapper.insertMeterImplement(meterImplement); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param meterImplement 计éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateMeterImplement(MeterImplement meterImplement) |
| | | { |
| | | meterImplement.setUpdateTime(DateUtils.getNowDate()); |
| | | return meterImplementMapper.updateMeterImplement(meterImplement); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤ç计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterImplementByIds(String[] ids) |
| | | { |
| | | return meterImplementMapper.deleteMeterImplementByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¡éå¨å
·æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param id 计éå¨å
·æ¡£æ¡ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteMeterImplementById(String id) |
| | | { |
| | | return meterImplementMapper.deleteMeterImplementById(id); |
| | | } |
| | | |
| | | /** |
| | | * Excel导å
¥ 计éå¨å
·æ¡£æ¡ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param meterImplementList è¦å¯¼å
¥ç计éå¨å
·æ¡£æ¡éå |
| | | * @param loginUser ç»å½ç¨æ·å¯¹è±¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public String excelImpSave(List<MeterImplement> meterImplementList, LoginUser loginUser) |
| | | { |
| | | |
| | | if (StringUtils.isNull(meterImplementList) || meterImplementList.size() == 0) |
| | | { |
| | | throw new CustomException("导å
¥è®¡éå¨å
·æ¡£æ¡ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | int successNum = 0; |
| | | int failureNum = 0; |
| | | StringBuilder successMsg = new StringBuilder(); |
| | | StringBuilder failureMsg = new StringBuilder(); |
| | | //1ãåå
¸æ°æ®ç¿»è¯ |
| | | //计éå¨å
·ç¶æ |
| | | List<SysDictData> meterStatusList = dictDataMapper.selectDictDataByType("meter_status"); |
| | | Map<String,String> meterStatusMap = this.initDictMap(meterStatusList); |
| | | //计éå¨å
፱Ȍ |
| | | List<SysDictData> meterTypeList = dictDataMapper.selectDictDataByType( |
| | | "sys_device_type"); |
| | | Map<String,String> meterTypeMap = this.initDictMap(meterTypeList); |
| | | |
| | | for (MeterImplement meterImplement : meterImplementList) |
| | | { |
| | | try |
| | | { |
| | | // æ£å®å¨æãæé卿 å®ä¹çIntegerç±»åï¼å¦ææ°æ®ä¸å¹é
ä¼é»è®¤ä¸º0 |
| | | meterImplement.setCheckCycle(meterImplement.getCheckCycle()==null?1:meterImplement.getCheckCycle()); |
| | | meterImplement.setReminderCycle(meterImplement.getReminderCycle()==null?1:meterImplement.getReminderCycle()); |
| | | // 2éªè¯ ç¼ç æ¯å¦åå¨ |
| | | MeterImplement chekcMeterImplement = meterImplementMapper.selectMeterImplementByCode(meterImplement); |
| | | if (StringUtils.isNull(chekcMeterImplement)) |
| | | { |
| | | //è®¾ç½®ä¸»é® |
| | | meterImplement.setId(UUID.randomUUID().toString()); |
| | | //ç¿»è¯å¨å
·ç¶æ æ æè
å¼ä¸å¯¹å设置为空å符串 |
| | | String meterStatus= StringUtils.nvl(meterStatusMap.get(meterImplement.getMeterStatus()+""),""); |
| | | //å¤æç¶ææ¯å¦æ£ç¡® |
| | | if(StringUtils.isEmpty(meterStatus)) |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + meterImplement.getCode() + " çç¶æé误"); |
| | | continue; |
| | | } |
| | | meterImplement.setMeterStatus(meterStatus); |
| | | //ç¿»è¯å¨å
·ç§ç±» æ æè
å¼ä¸å¯¹å设置为空å符串 |
| | | String meterType= StringUtils.nvl(meterTypeMap.get(meterImplement.getMeterType()+""),""); |
| | | if(StringUtils.isEmpty(meterType)) |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + meterImplement.getCode() + " çç§ç±»é误"); |
| | | continue; |
| | | } |
| | | meterImplement.setMeterType(meterType); |
| | | //设置建ç«äººåå»ºç«æ¶é´ |
| | | meterImplement.setCreateBy(loginUser.getUsername()); |
| | | meterImplement.setCreateTime(new Date()); |
| | | //åå¨ä¸æ¡æ°æ® |
| | | this.insertMeterImplement(meterImplement); |
| | | successNum++; |
| | | successMsg.append("<br/>" + successNum + "ãç¼å· " + meterImplement.getCode() + " 导å
¥æå"); |
| | | } |
| | | else |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "ãç¼å· " + meterImplement.getCode() + " å·²åå¨"); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | failureNum++; |
| | | String msg = "<br/>" + failureNum + "ãç¼å· " + meterImplement.getCode() + " 导å
¥å¤±è´¥ï¼"; |
| | | failureMsg.append(msg + e.getMessage()); |
| | | log.error(msg, e); |
| | | } |
| | | } |
| | | if (failureNum > 0) { |
| | | failureMsg.insert(0, "徿±æï¼å¯¼å
¥å¤±è´¥ï¼å
± " + failureNum + " æ¡æ°æ®æ ¼å¼ä¸æ£ç¡®ï¼é误å¦ä¸ï¼"); |
| | | throw new CustomException(failureMsg.toString()); |
| | | } else { |
| | | successMsg.insert(0, "æåæ¨ï¼æ°æ®å·²å
¨é¨å¯¼å
¥æåï¼å
± " + successNum + " æ¡ï¼æ°æ®å¦ä¸ï¼"); |
| | | } |
| | | return successMsg.toString(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®idéåæ¥è¯¢è®¡éå¨å
·ä¿¡æ¯ |
| | | * |
| | | * @param meterIdList 计éå¨å
·id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MeterImplement> listMeterImplementByIds(List<String> meterIdList) { |
| | | return meterImplementMapper.listMeterImplementByIds(meterIdList); |
| | | } |
| | | |
| | | /** |
| | | * å°åå
¸ç±»å 对åºç åå
¸éå åå
¥mapä¸ä½¿ç¨ |
| | | * |
| | | * @param sysDictDataList |
| | | * @return |
| | | */ |
| | | public Map initDictMap(List<SysDictData> sysDictDataList) { |
| | | Map<String, String> map = new HashMap<String, String>(); |
| | | for (SysDictData sysDictData : sysDictDataList) { |
| | | //åæ¾ key=æ ç¾åå valueæ¯ è®¾ç½®å¼ |
| | | map.put(sysDictData.getDictLabel(), sysDictData.getDictValue()); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyAnnex; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyAnnexService; |
| | | import com.dingzhuo.energy.common.utils.IdUtils; |
| | | import com.dingzhuo.energy.common.utils.ServletUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUploadUtils; |
| | | import com.dingzhuo.energy.common.utils.file.FileUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.config.RuoYiConfig; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§éä»¶Controller |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/policy/annex") |
| | | public class PolicyAnnexController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPolicyAnnexService policyAnnexService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | private static final Logger log = LoggerFactory.getLogger(PolicyAnnexController.class); |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PolicyAnnex policyAnnex) |
| | | { |
| | | startPage(); |
| | | List<PolicyAnnex> list = policyAnnexService.selectPolicyAnnexList(policyAnnex); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¿çæ³è§éä»¶å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:export')") |
| | | @Log(title = "æ¿çæ³è§éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(PolicyAnnex policyAnnex) |
| | | { |
| | | List<PolicyAnnex> list = policyAnnexService.selectPolicyAnnexList(policyAnnex); |
| | | ExcelUtil<PolicyAnnex> util = new ExcelUtil<PolicyAnnex>(PolicyAnnex.class); |
| | | return util.exportExcel(list, "annex"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¿çæ³è§é件详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:query')") |
| | | @GetMapping(value = "/{filePath}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(policyAnnexService.selectPolicyAnnexById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:add')") |
| | | @Log(title = "æ¿çæ³è§éä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PolicyAnnex policyAnnex) |
| | | { |
| | | return toAjax(policyAnnexService.insertPolicyAnnex(policyAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:edit')") |
| | | @Log(title = "æ¿çæ³è§éä»¶", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PolicyAnnex policyAnnex) |
| | | { |
| | | return toAjax(policyAnnexService.updatePolicyAnnex(policyAnnex)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§éä»¶ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:remove')") |
| | | @Log(title = "æ¿çæ³è§éä»¶", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(policyAnnexService.deletePolicyAnnexByIds(ids)); |
| | | } |
| | | |
| | | @Log(title = "æ¿çæ³è§éä»¶ä¸ä¼ ", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:fileImport')") |
| | | @PostMapping("/fileImport") |
| | | public AjaxResult importData(MultipartFile file, String regulations_id) throws Exception |
| | | { |
| | | if (!file.isEmpty()) |
| | | { |
| | | LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); |
| | | //è·åé
ç½®çæä»¶ä¸ä¼ è·¯å¾ |
| | | String uploadPathDir = RuoYiConfig.getUploadPath(); |
| | | //è·åæä»¶åå§åç§° |
| | | String fileName = file.getOriginalFilename(); |
| | | //è·åæä»¶æ©å±å |
| | | String fileSuffix = FileUploadUtils.getExtension(file); |
| | | // System.out.println("implementId==="+implementId); |
| | | // System.out.println("filedir==="+uploadPathDir); |
| | | // System.out.println("fileName==="+fileName); |
| | | // System.out.println("fileSuffix==="+fileSuffix); |
| | | //æä»¶æç»ä¿åçç»å¯¹è·¯å¾ |
| | | String filePath = FileUploadUtils.uploadAll(uploadPathDir, file); |
| | | // System.out.println("ä¸ä¼ æä»¶å°å:===>"+filePath); |
| | | PolicyAnnex policyAnnex=new PolicyAnnex(); |
| | | //设置主é®UUID |
| | | policyAnnex.setId(IdUtils.simpleUUID()); |
| | | policyAnnex.setFileName(fileName); |
| | | policyAnnex.setFilePath(filePath); |
| | | policyAnnex.setFileSuffix(fileSuffix); |
| | | policyAnnex.setRegulationsId(regulations_id); |
| | | policyAnnex.setCreateBy(loginUser.getUsername()); |
| | | if (this.policyAnnexService.insertPolicyAnnex(policyAnnex)>0) |
| | | { |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 宿"); |
| | | } |
| | | } |
| | | return AjaxResult.success("éä»¶ä¸ä¼ 失败"); |
| | | } |
| | | /** |
| | | * éç¨æå®æä»¶ä¸è½½è¯·æ± |
| | | * |
| | | * @param showFileName ä¸è½½å±ç¤ºæä»¶åç§° |
| | | // * @param filePath ä¸è½½æä»¶ç»å¯¹è·¯å¾ 带 æä»¶çå®åååè·¯å¾ |
| | | * @param delete æ¯å¦å é¤/ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:annex:assignDownload')") |
| | | @PostMapping("/assignDownload") |
| | | public void fileAssignDownload(String showFileName, String filePath, Boolean delete, HttpServletResponse response, HttpServletRequest request) |
| | | { |
| | | |
| | | try |
| | | { |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setContentType("multipart/form-data"); |
| | | response.setHeader("Content-Disposition", |
| | | "attachment;fileName=" + FileUtils.setFileDownloadHeader(request, showFileName)); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | // if (delete) |
| | | // { |
| | | // FileUtils.deleteFile(filePath); |
| | | // } |
| | | log.error("ä¸è½½æå", "aa"); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | log.error("ä¸è½½æä»¶å¤±è´¥", e); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.controller; |
| | | |
| | | |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulations; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyRegulationsService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.security.service.TokenService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * æ¿çæ³è§ç»´æ¤Controller |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/policy/policyInsert") |
| | | @Api(value = "æ¿çæ³è§ç®¡ç",tags = {"æ¿çæ³è§ç®¡ç"}) |
| | | public class PolicyRegulationsController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPolicyRegulationsService policyRegulationsService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤å表 |
| | | */ |
| | | @ApiOperation(value = "æ¿çæ³è§å表") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PolicyRegulations policyRegulations) |
| | | { |
| | | startPage(); |
| | | List<PolicyRegulations> list = policyRegulationsService.selectPolicyRegulationsList(policyRegulations); |
| | | return getDataTable(list); |
| | | } |
| | | /** |
| | | * 导åºè®¡éå¨å
·æ¡£æ¡ç»´æ¤å表 |
| | | */ |
| | | @ApiOperation(value = "æ¿çæ³è§å表导åº") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:export')") |
| | | @Log(title = "æ¿çæ³è§æ¥è¯¢", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(PolicyRegulations policyRegulations) |
| | | { |
| | | List<PolicyRegulations> list = policyRegulationsService.selectPolicyRegulationsList(policyRegulations); |
| | | ExcelUtil<PolicyRegulations> util = new ExcelUtil<PolicyRegulations>(PolicyRegulations.class); |
| | | return util.exportExcel(list, "implement"); |
| | | } |
| | | /** |
| | | * è·åæ¿çæ³è§ç»´æ¤è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation(value = "æ ¹æ®idè·åæ¿çæ³è§è¯¦æ
") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(policyRegulationsService.selectPolicyRegulationsById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | @ApiOperation(value = "æ°å¢æ¿çæ³è§") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:add')") |
| | | @Log(title = "æ¿çæ³è§ç»´æ¤", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PolicyRegulations policyRegulations) |
| | | { |
| | | policyRegulations.setId(UUID.randomUUID().toString()); |
| | | policyRegulations.setOperator(SecurityUtils.getUsername()); |
| | | policyRegulations.setCreationTime(DateUtils.getNowDate()); |
| | | return toAjax(policyRegulationsService.insertPolicyRegulations(policyRegulations)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | @ApiOperation(value = "ç¼è¾æ¿çæ³è§") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:edit')") |
| | | @Log(title = "æ¿çæ³è§ç»´æ¤", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PolicyRegulations policyRegulations) |
| | | { |
| | | return toAjax(policyRegulationsService.updatePolicyRegulations(policyRegulations)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§ç»´æ¤ |
| | | */ |
| | | @ApiOperation(value = "å 餿¿çæ³è§") |
| | | @PreAuthorize("@ss.hasPermi('policy:policyInsert:remove')") |
| | | @Log(title = "æ¿çæ³è§ç»´æ¤", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(policyRegulationsService.deletePolicyRegulationsByIds(ids)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulationsTranslate; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyRegulationsTranslateService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * æ¿çæ³è§æ¥è¯¢Controller |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/policy/policyselete") |
| | | public class PolicyRegulationsTranslateController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPolicyRegulationsTranslateService policyRegulationsTranslateService; |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | startPage(); |
| | | List<PolicyRegulationsTranslate> list = policyRegulationsTranslateService.selectPolicyRegulationsTranslateList(policyRegulationsTranslate); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¿çæ³è§æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:export')") |
| | | @Log(title = "æ¿çæ³è§æ¥è¯¢", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | List<PolicyRegulationsTranslate> list = policyRegulationsTranslateService.selectPolicyRegulationsTranslateList(policyRegulationsTranslate); |
| | | ExcelUtil<PolicyRegulationsTranslate> util = new ExcelUtil<PolicyRegulationsTranslate>(PolicyRegulationsTranslate.class); |
| | | return util.exportExcel(list, "policyselete"); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¿çæ³è§æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(policyRegulationsTranslateService.selectPolicyRegulationsTranslateById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:add')") |
| | | @Log(title = "æ¿çæ³è§æ¥è¯¢", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | policyRegulationsTranslate.setId(UUID.randomUUID().toString()); |
| | | policyRegulationsTranslate.setOperator(SecurityUtils.getUsername()); |
| | | policyRegulationsTranslate.setCreationTime(DateUtils.getNowDate()); |
| | | return toAjax(policyRegulationsTranslateService.insertPolicyRegulationsTranslate(policyRegulationsTranslate)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:edit')") |
| | | @Log(title = "æ¿çæ³è§æ¥è¯¢", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | return toAjax(policyRegulationsTranslateService.updatePolicyRegulationsTranslate(policyRegulationsTranslate)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('policy:policyselete:remove')") |
| | | @Log(title = "æ¿çæ³è§æ¥è¯¢", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(policyRegulationsTranslateService.deletePolicyRegulationsTranslateByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æ¿çæ³è§é件对象 policy_annex |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public class PolicyAnnex extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** æä»¶è·¯å¾ */ |
| | | private String filePath; |
| | | |
| | | /** å 餿 å¿Yå é¤ N为å é¤ */ |
| | | private String delFlage; |
| | | |
| | | /** 建ç«äºº */ |
| | | private String createOperator; |
| | | |
| | | /** ä¿®æ¹äºº */ |
| | | private String updateOperator; |
| | | |
| | | /** ä¸»é® */ |
| | | private String id; |
| | | |
| | | /** å
³èpolicy_regulations */ |
| | | private String regulationsId; |
| | | |
| | | /** æä»¶å */ |
| | | @Excel(name = "æä»¶å") |
| | | private String fileName; |
| | | |
| | | /** æä»¶åç¼ */ |
| | | private String fileSuffix; |
| | | |
| | | public void setFilePath(String filePath) |
| | | { |
| | | this.filePath = filePath; |
| | | } |
| | | |
| | | public String getFilePath() |
| | | { |
| | | return filePath; |
| | | } |
| | | public void setDelFlage(String delFlage) |
| | | { |
| | | this.delFlage = delFlage; |
| | | } |
| | | |
| | | public String getDelFlage() |
| | | { |
| | | return delFlage; |
| | | } |
| | | public void setCreateOperator(String createOperator) |
| | | { |
| | | this.createOperator = createOperator; |
| | | } |
| | | |
| | | public String getCreateOperator() |
| | | { |
| | | return createOperator; |
| | | } |
| | | public void setUpdateOperator(String updateOperator) |
| | | { |
| | | this.updateOperator = updateOperator; |
| | | } |
| | | |
| | | public String getUpdateOperator() |
| | | { |
| | | return updateOperator; |
| | | } |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setRegulationsId(String regulationsId) |
| | | { |
| | | this.regulationsId = regulationsId; |
| | | } |
| | | |
| | | public String getRegulationsId() |
| | | { |
| | | return regulationsId; |
| | | } |
| | | public void setFileName(String fileName) |
| | | { |
| | | this.fileName = fileName; |
| | | } |
| | | |
| | | public String getFileName() |
| | | { |
| | | return fileName; |
| | | } |
| | | public void setFileSuffix(String fileSuffix) |
| | | { |
| | | this.fileSuffix = fileSuffix; |
| | | } |
| | | |
| | | public String getFileSuffix() |
| | | { |
| | | return fileSuffix; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("filePath", getFilePath()) |
| | | .append("delFlage", getDelFlage()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createOperator", getCreateOperator()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateOperator", getUpdateOperator()) |
| | | .append("id", getId()) |
| | | .append("regulationsId", getRegulationsId()) |
| | | .append("fileName", getFileName()) |
| | | .append("fileSuffix", getFileSuffix()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¿çæ³è§ç»´æ¤å¯¹è±¡ policy_regulations |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-23 |
| | | */ |
| | | @ApiModel(value = "æ¿çæ³è§") |
| | | public class PolicyRegulations extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** åºå· */ |
| | | @ApiModelProperty(value = "åºå·") |
| | | private String id; |
| | | |
| | | /** æ é¢ */ |
| | | @Excel(name = "æ é¢") |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String titleName; |
| | | |
| | | /** å
容 */ |
| | | @Excel(name = "å
容") |
| | | @ApiModelProperty(value = "å
容") |
| | | private String content; |
| | | |
| | | /** åç±» */ |
| | | @Excel(name = "åç±»") |
| | | @ApiModelProperty(value = "åç±»") |
| | | private String sort; |
| | | |
| | | /** å建æ¶é´ */ |
| | | @Excel(name = "å建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date creationTime; |
| | | |
| | | /** æä½äººå */ |
| | | @Excel(name = "æä½äººå") |
| | | @ApiModelProperty(value = "æä½äººå") |
| | | private String operator; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setTitleName(String titleName) |
| | | { |
| | | this.titleName = titleName; |
| | | } |
| | | |
| | | public String getTitleName() |
| | | { |
| | | return titleName; |
| | | } |
| | | public void setContent(String content) |
| | | { |
| | | this.content = content; |
| | | } |
| | | |
| | | public String getContent() |
| | | { |
| | | return content; |
| | | } |
| | | public void setSort(String sort) |
| | | { |
| | | this.sort = sort; |
| | | } |
| | | |
| | | public String getSort() |
| | | { |
| | | return sort; |
| | | } |
| | | public void setCreationTime(Date creationTime) |
| | | { |
| | | this.creationTime = creationTime; |
| | | } |
| | | |
| | | public Date getCreationTime() |
| | | { |
| | | return creationTime; |
| | | } |
| | | public void setOperator(String operator) |
| | | { |
| | | this.operator = operator; |
| | | } |
| | | |
| | | public String getOperator() |
| | | { |
| | | return operator; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("titleName", getTitleName()) |
| | | .append("content", getContent()) |
| | | .append("sort", getSort()) |
| | | .append("creationTime", getCreationTime()) |
| | | .append("operator", getOperator()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¿çæ³è§æ¥è¯¢å¯¹è±¡ policy_regulations |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public class PolicyRegulationsTranslate extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** åºå· */ |
| | | private String id; |
| | | |
| | | /** æ é¢ */ |
| | | @Excel(name = "æ é¢") |
| | | private String titleName; |
| | | |
| | | /** å
容 */ |
| | | @Excel(name = "å
容") |
| | | private String content; |
| | | |
| | | /** åç±» */ |
| | | @Excel(name = "åç±»") |
| | | private String sort; |
| | | |
| | | /** å建æ¶é´ */ |
| | | @Excel(name = "å建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date creationTime; |
| | | |
| | | /** æä½äººå */ |
| | | @Excel(name = "æä½äººå") |
| | | private String operator; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setTitleName(String titleName) |
| | | { |
| | | this.titleName = titleName; |
| | | } |
| | | |
| | | public String getTitleName() |
| | | { |
| | | return titleName; |
| | | } |
| | | public void setContent(String content) |
| | | { |
| | | this.content = content; |
| | | } |
| | | |
| | | public String getContent() |
| | | { |
| | | return content; |
| | | } |
| | | public void setSort(String sort) |
| | | { |
| | | this.sort = sort; |
| | | } |
| | | |
| | | public String getSort() |
| | | { |
| | | return sort; |
| | | } |
| | | public void setCreationTime(Date creationTime) |
| | | { |
| | | this.creationTime = creationTime; |
| | | } |
| | | |
| | | public Date getCreationTime() |
| | | { |
| | | return creationTime; |
| | | } |
| | | public void setOperator(String operator) |
| | | { |
| | | this.operator = operator; |
| | | } |
| | | |
| | | public String getOperator() |
| | | { |
| | | return operator; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("titleName", getTitleName()) |
| | | .append("content", getContent()) |
| | | .append("sort", getSort()) |
| | | .append("creationTime", getCreationTime()) |
| | | .append("operator", getOperator()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§éä»¶Mapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public interface PolicyAnnexMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return æ¿çæ³è§éä»¶ |
| | | */ |
| | | public PolicyAnnex selectPolicyAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶å表 |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return æ¿çæ³è§éä»¶éå |
| | | */ |
| | | public List<PolicyAnnex> selectPolicyAnnexList(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyAnnex(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyAnnex(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§éä»¶ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyAnnexByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplement; |
| | | import com.dingzhuo.energy.basic.data.meter.domain.MeterImplementExcel; |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulations; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§ç»´æ¤Mapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-23 |
| | | */ |
| | | public interface PolicyRegulationsMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | public PolicyRegulations selectPolicyRegulationsById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤å表 |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return æ¿çæ³è§ç»´æ¤éå |
| | | */ |
| | | public List<PolicyRegulations> selectPolicyRegulationsList(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyRegulations(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyRegulations(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsByIds(String[] ids); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulationsTranslate; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§æ¥è¯¢Mapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public interface PolicyRegulationsTranslateMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | public PolicyRegulationsTranslate selectPolicyRegulationsTranslateById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢å表 |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return æ¿çæ³è§æ¥è¯¢éå |
| | | */ |
| | | public List<PolicyRegulationsTranslate> selectPolicyRegulationsTranslateList(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsTranslateById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsTranslateByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyAnnex; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§éä»¶Serviceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public interface IPolicyAnnexService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return æ¿çæ³è§éä»¶ |
| | | */ |
| | | public PolicyAnnex selectPolicyAnnexById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶å表 |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return æ¿çæ³è§éä»¶éå |
| | | */ |
| | | public List<PolicyAnnex> selectPolicyAnnexList(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyAnnex(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyAnnex(PolicyAnnex policyAnnex); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyAnnexByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyAnnexById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service; |
| | | |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulations; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§ç»´æ¤Serviceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-23 |
| | | */ |
| | | public interface IPolicyRegulationsService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | public PolicyRegulations selectPolicyRegulationsById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤å表 |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return æ¿çæ³è§ç»´æ¤éå |
| | | */ |
| | | public List<PolicyRegulations> selectPolicyRegulationsList(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyRegulations(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyRegulations(PolicyRegulations policyRegulations); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsById(String id); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulationsTranslate; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§æ¥è¯¢Serviceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | public interface IPolicyRegulationsTranslateService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | public PolicyRegulationsTranslate selectPolicyRegulationsTranslateById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢å表 |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return æ¿çæ³è§æ¥è¯¢éå |
| | | */ |
| | | public List<PolicyRegulationsTranslate> selectPolicyRegulationsTranslateList(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate); |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsTranslateByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePolicyRegulationsTranslateById(String id); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyAnnex; |
| | | import com.dingzhuo.energy.basic.data.policy.mapper.PolicyAnnexMapper; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyAnnexService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§éä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | @Service |
| | | public class PolicyAnnexServiceImpl implements IPolicyAnnexService |
| | | { |
| | | @Autowired |
| | | private PolicyAnnexMapper policyAnnexMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return æ¿çæ³è§éä»¶ |
| | | */ |
| | | @Override |
| | | public PolicyAnnex selectPolicyAnnexById(String id) |
| | | { |
| | | return policyAnnexMapper.selectPolicyAnnexById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§éä»¶å表 |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return æ¿çæ³è§éä»¶ |
| | | */ |
| | | @Override |
| | | public List<PolicyAnnex> selectPolicyAnnexList(PolicyAnnex policyAnnex) |
| | | { |
| | | return policyAnnexMapper.selectPolicyAnnexList(policyAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPolicyAnnex(PolicyAnnex policyAnnex) |
| | | { |
| | | policyAnnex.setCreateTime(DateUtils.getNowDate()); |
| | | return policyAnnexMapper.insertPolicyAnnex(policyAnnex); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§éä»¶ |
| | | * |
| | | * @param policyAnnex æ¿çæ³è§éä»¶ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePolicyAnnex(PolicyAnnex policyAnnex) |
| | | { |
| | | policyAnnex.setUpdateTime(DateUtils.getNowDate()); |
| | | return policyAnnexMapper.updatePolicyAnnex(policyAnnex); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§éä»¶ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyAnnexByIds(String[] ids) |
| | | { |
| | | return policyAnnexMapper.deletePolicyAnnexByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§éä»¶ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§éä»¶ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyAnnexById(String id) |
| | | { |
| | | return policyAnnexMapper.deletePolicyAnnexById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service.impl; |
| | | |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulations; |
| | | import com.dingzhuo.energy.basic.data.policy.mapper.PolicyRegulationsMapper; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyRegulationsService; |
| | | import com.dingzhuo.energy.project.system.mapper.SysDictDataMapper; |
| | | import com.dingzhuo.energy.project.system.service.impl.SysUserServiceImpl; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§ç»´æ¤Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-23 |
| | | */ |
| | | @Service |
| | | public class PolicyRegulationsServiceImpl implements IPolicyRegulationsService |
| | | { |
| | | @Autowired |
| | | private PolicyRegulationsMapper policyRegulationsMapper; |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public PolicyRegulations selectPolicyRegulationsById(String id) |
| | | { |
| | | return policyRegulationsMapper.selectPolicyRegulationsById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§ç»´æ¤å表 |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return æ¿çæ³è§ç»´æ¤ |
| | | */ |
| | | @Override |
| | | public List<PolicyRegulations> selectPolicyRegulationsList(PolicyRegulations policyRegulations) |
| | | { |
| | | return policyRegulationsMapper.selectPolicyRegulationsList(policyRegulations); |
| | | } |
| | | /** |
| | | * æ°å¢æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPolicyRegulations(PolicyRegulations policyRegulations) |
| | | { |
| | | return policyRegulationsMapper.insertPolicyRegulations(policyRegulations); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param policyRegulations æ¿çæ³è§ç»´æ¤ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePolicyRegulations(PolicyRegulations policyRegulations) |
| | | { |
| | | return policyRegulationsMapper.updatePolicyRegulations(policyRegulations); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§ç»´æ¤ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyRegulationsByIds(String[] ids) |
| | | { |
| | | return policyRegulationsMapper.deletePolicyRegulationsByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§ç»´æ¤ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§ç»´æ¤ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyRegulationsById(String id) |
| | | { |
| | | return policyRegulationsMapper.deletePolicyRegulationsById(id); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.policy.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.policy.domain.PolicyRegulationsTranslate; |
| | | import com.dingzhuo.energy.basic.data.policy.mapper.PolicyRegulationsTranslateMapper; |
| | | import com.dingzhuo.energy.basic.data.policy.service.IPolicyRegulationsTranslateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¿çæ³è§æ¥è¯¢Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-04-24 |
| | | */ |
| | | @Service |
| | | public class PolicyRegulationsTranslateServiceImpl implements IPolicyRegulationsTranslateService |
| | | { |
| | | @Autowired |
| | | private PolicyRegulationsTranslateMapper policyRegulationsTranslateMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public PolicyRegulationsTranslate selectPolicyRegulationsTranslateById(String id) |
| | | { |
| | | return policyRegulationsTranslateMapper.selectPolicyRegulationsTranslateById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¿çæ³è§æ¥è¯¢å表 |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return æ¿çæ³è§æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public List<PolicyRegulationsTranslate> selectPolicyRegulationsTranslateList(PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | return policyRegulationsTranslateMapper.selectPolicyRegulationsTranslateList(policyRegulationsTranslate); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | return policyRegulationsTranslateMapper.insertPolicyRegulationsTranslate(policyRegulationsTranslate); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param policyRegulationsTranslate æ¿çæ³è§æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePolicyRegulationsTranslate(PolicyRegulationsTranslate policyRegulationsTranslate) |
| | | { |
| | | return policyRegulationsTranslateMapper.updatePolicyRegulationsTranslate(policyRegulationsTranslate); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¿çæ³è§æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæ¿çæ³è§æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyRegulationsTranslateByIds(String[] ids) |
| | | { |
| | | return policyRegulationsTranslateMapper.deletePolicyRegulationsTranslateByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¿çæ³è§æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param id æ¿çæ³è§æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePolicyRegulationsTranslateById(String id) |
| | | { |
| | | return policyRegulationsTranslateMapper.deletePolicyRegulationsTranslateById(id); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.Rostering; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringCopy; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * æç表æ¥è¯¢Controller |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-13 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/workforce/rosteringManagement") |
| | | public class RosteringController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IRosteringService rosteringService; |
| | | /** |
| | | *æ¥è¯¢è½®å¼æ¹æ¡åç§°éå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:schemeNamelist')") |
| | | @GetMapping("/schemeNamelist") |
| | | public TableDataInfo schemeNamelist(Rostering rostering) { |
| | | startPage(); |
| | | List<RosteringScheme> list = rosteringService.selectSchemeNameList(); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(Rostering rostering) |
| | | { |
| | | startPage(); |
| | | List<Rostering> list = rosteringService.selectRosteringList(rostering); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç表æ¥è¯¢å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:export')") |
| | | @Log(title = "æç表æ¥è¯¢", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(Rostering rostering) |
| | | { |
| | | List<Rostering> list = rosteringService.selectRosteringList(rostering); |
| | | ExcelUtil<Rostering> util = new ExcelUtil<Rostering>(Rostering.class); |
| | | return util.exportExcel(list, "rosteringManagement"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç表æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(rosteringService.selectRosteringById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç表æ¥è¯¢ï¼çæï¼ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:add')") |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody Rostering rostering) throws ParseException { |
| | | //æ ¹æ®è½®å¼æ¹æ¡idæ¥è¯¢ç次idã弿¬¡idçlist |
| | | List<RosteringCopy> list=rosteringService.selectList(rostering); |
| | | //设置转æ¢çæ¥ææ ¼å¼ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | //建ä¸ä¸ªæ°çliståæ¾insertçlist |
| | | List<Rostering> dataItems = new ArrayList<>(); |
| | | //å®ä¹ä¸ä¸ªcountæ¥å®æcodeï¼ç¼ç ï¼çèªå¢ |
| | | int count=1; |
| | | //å®ä¹ä»åå°è·åçå¼å§æ¶é´ startdate为å¼å§æ¶é´ |
| | | String startdate=sdf.format(rostering.getBeginTimes()); |
| | | /* Long timenum =(rostering.getEndTimes().getTime()-rostering.getBeginTimes().getTime())/(60*60*24*1000);//æ¶é´å·®*/ |
| | | for(RosteringCopy b:list){ |
| | | Date loopstarttime=sdf.parse(startdate); |
| | | long long3 =loopstarttime.getTime(); |
| | | long long4= rostering.getEndTimes().getTime(); |
| | | if(long3 > long4){//循ç¯åçæ¶é´>ä»é¡µé¢è·åçç»ææ¶é´ååæ¢å¾ªç¯ |
| | | break; |
| | | }else { |
| | | startdate=sdf.format(loopstarttime.getTime()); |
| | | for (RosteringCopy a:list) { |
| | | Rostering rosterings =new Rostering(); |
| | | rosterings.setId(UUID.randomUUID().toString()); |
| | | String code=String.valueOf(count); |
| | | rosterings.setCode(code); |
| | | rosterings.setName("æç"+code); |
| | | rosterings.setSchemeId(a.getSchemeId()); |
| | | rosterings.setShiftId(a.getShiftId()); |
| | | rosterings.setDutyId(a.getDutyId()); |
| | | rosterings.setDepartMemberId(rostering.getDepartMemberId()); |
| | | rosterings.setCreateBy(SecurityUtils.getUsername()); |
| | | rosterings.setCreateTime(DateUtils.getNowDate()); |
| | | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | String bengintime=startdate +" "+a.getStartTime();//bengintimeä¸ºæ¼æ¥å®çå¼å§æ¶é´ |
| | | Date looptime=sdf.parse(startdate);//循ç¯åçå¼å§æ¶é´ |
| | | Date endtime =rostering.getEndTimes();//ä»åå°è·åçç»ææ¶é´ |
| | | long long1 =looptime.getTime(); |
| | | long long2= endtime.getTime(); |
| | | if(long1 > long2){//è¥å½åæ¶é´>ä»åå°è·åçç»ææ¶é´åç»æå¾ªç¯ |
| | | break; |
| | | }else { |
| | | if(a.getIsCrossDay().equals("Y")) {//æ¯å¦è·¨å¤© |
| | | Date starttime = sdf.parse(startdate); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(starttime); |
| | | calendar.add(Calendar.DAY_OF_MONTH, 1); |
| | | Date looptimes=sdf.parse(startdate);//循ç¯åçå¼å§æ¶é´ |
| | | Date endtimes =rostering.getEndTimes();//ä»åå°è·åçç»ææ¶é´ |
| | | long long5 =looptime.getTime(); |
| | | long long6= endtime.getTime(); |
| | | Date beginTimes = df.parse(bengintime); |
| | | String enddate=startdate+" "+a.getEnddTime(); |
| | | Date endTimes = df.parse(enddate); |
| | | rosterings.setBeginTimes(beginTimes); |
| | | rosterings.setEndTimes(endTimes); |
| | | startdate=sdf.format(calendar.getTime());//ç»å¼å§æ¶é´èµå¼è·¨å¤©åçæ¶é´ |
| | | }else{ |
| | | Date beginTimes = df.parse(bengintime); |
| | | String enddate=startdate+" "+a.getEnddTime(); |
| | | Date endTimes = df.parse(enddate); |
| | | rosterings.setBeginTimes(beginTimes); |
| | | rosterings.setEndTimes(endTimes); |
| | | } |
| | | } |
| | | dataItems.add(rosterings); |
| | | count ++; |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.rosteringService.saveRostering(dataItems); |
| | | return AjaxResult.success("ä¿åæåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç表æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:edit')") |
| | | @Log(title = "æç表æ¥è¯¢", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody Rostering rostering) |
| | | { |
| | | rostering.setUpdateBy(SecurityUtils.getUsername()); |
| | | rostering.setUpdateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringService.updateRostering(rostering)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç表æ¥è¯¢ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:rosteringManagement:remove')") |
| | | @Log(title = "æç表æ¥è¯¢", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(rosteringService.deleteRosteringByIds(ids)); |
| | | } |
| | | public static <E> List<List<E>> splitList(List<E> targetList, Integer splitSize) { |
| | | if (targetList == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | int size = targetList.size(); |
| | | List<List<E>> resultList = new ArrayList<>(); |
| | | if (size <= splitSize) { |
| | | resultList.add(targetList); |
| | | } else { |
| | | for (int i = 0; i < size; i += splitSize) { |
| | | //ç¨äºéå¶æåä¸é¨åsizeå°äºsplitSizeçlist |
| | | int limit = i + splitSize; |
| | | if (limit > size) { |
| | | limit = size; |
| | | } |
| | | resultList.add(targetList.subList(i, limit)); |
| | | } |
| | | } |
| | | return resultList; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringDuty; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringDutyService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * æç管çController |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/workforce/dutyManagement") |
| | | public class RosteringDutyController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IRosteringDutyService rosteringDutyService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(RosteringDuty rosteringDuty) |
| | | { |
| | | startPage(); |
| | | List<RosteringDuty> list = rosteringDutyService.selectRosteringDutyList(rosteringDuty); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç管çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:export')") |
| | | @Log(title = "æç管ç", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(RosteringDuty rosteringDuty) |
| | | { |
| | | List<RosteringDuty> list = rosteringDutyService.selectRosteringDutyList(rosteringDuty); |
| | | ExcelUtil<RosteringDuty> util = new ExcelUtil<RosteringDuty>(RosteringDuty.class); |
| | | return util.exportExcel(list, "dutyManagement"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç管ç详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(rosteringDutyService.selectRosteringDutyById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:add')") |
| | | @Log(title = "æç管ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody RosteringDuty rosteringDuty) |
| | | { |
| | | rosteringDuty.setId(UUID.randomUUID().toString()); |
| | | rosteringDuty.setCreateBy(SecurityUtils.getUsername()); |
| | | rosteringDuty.setCreateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringDutyService.insertRosteringDuty(rosteringDuty)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:edit')") |
| | | @Log(title = "æç管ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody RosteringDuty rosteringDuty) |
| | | { |
| | | rosteringDuty.setUpdateBy(SecurityUtils.getUsername()); |
| | | rosteringDuty.setUpdateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringDutyService.updateRosteringDuty(rosteringDuty)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç管ç |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:dutyManagement:remove')") |
| | | @Log(title = "æç管ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(rosteringDutyService.deleteRosteringDutyByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringSchemeService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Controller |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/rosteringSrcheme/scheme") |
| | | public class RosteringSchemeController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IRosteringSchemeService rosteringSchemeService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(RosteringScheme rosteringScheme) |
| | | { |
| | | startPage(); |
| | | List<RosteringScheme> list = rosteringSchemeService.selectRosteringSchemeList(rosteringScheme); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè½®å¼æ¹æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:export')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(RosteringScheme rosteringScheme) |
| | | { |
| | | List<RosteringScheme> list = rosteringSchemeService.selectRosteringSchemeList(rosteringScheme); |
| | | ExcelUtil<RosteringScheme> util = new ExcelUtil<RosteringScheme>(RosteringScheme.class); |
| | | return util.exportExcel(list, "scheme"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè½®å¼æ¹æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(rosteringSchemeService.selectRosteringSchemeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:add')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody RosteringScheme rosteringScheme) |
| | | { |
| | | rosteringScheme.setId(UUID.randomUUID().toString()); |
| | | rosteringScheme.setCreateBy(SecurityUtils.getUsername()); |
| | | rosteringScheme.setCreateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringSchemeService.insertRosteringScheme(rosteringScheme)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:edit')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody RosteringScheme rosteringScheme) |
| | | { |
| | | rosteringScheme.setUpdateBy(SecurityUtils.getUsername()); |
| | | rosteringScheme.setUpdateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringSchemeService.updateRosteringScheme(rosteringScheme)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSrcheme:scheme:remove')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(rosteringSchemeService.deleteRosteringSchemeByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringSchemeitem; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringSchemeitemService; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Controller |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/rosteringSchemeitem/schemeItem") |
| | | public class RosteringSchemeitemController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IRosteringSchemeitemService rosteringSchemeitemService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | startPage(); |
| | | List<RosteringSchemeitem> list = rosteringSchemeitemService.selectRosteringSchemeitemList(rosteringSchemeitem); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè½®å¼æ¹æ¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:export')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | List<RosteringSchemeitem> list = rosteringSchemeitemService.selectRosteringSchemeitemList(rosteringSchemeitem); |
| | | ExcelUtil<RosteringSchemeitem> util = new ExcelUtil<RosteringSchemeitem>(RosteringSchemeitem.class); |
| | | return util.exportExcel(list, "schemeItem"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè½®å¼æ¹æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:query')") |
| | | @GetMapping(value = "/{description}") |
| | | public AjaxResult getInfo(@PathVariable("description") String description) |
| | | { |
| | | return AjaxResult.success(rosteringSchemeitemService.selectRosteringSchemeitemById(description)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:add')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | rosteringSchemeitem.setId(UUID.randomUUID().toString()); |
| | | rosteringSchemeitem.setCreateBy(SecurityUtils.getUsername()); |
| | | rosteringSchemeitem.setCreateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringSchemeitemService.insertRosteringSchemeitem(rosteringSchemeitem)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:edit')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | rosteringSchemeitem.setUpdateBy(SecurityUtils.getUsername()); |
| | | rosteringSchemeitem.setUpdateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringSchemeitemService.updateRosteringSchemeitem(rosteringSchemeitem)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('rosteringSchemeitem:schemeItem:remove')") |
| | | @Log(title = "è½®å¼æ¹æ¡", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{descriptions}") |
| | | public AjaxResult remove(@PathVariable String[] descriptions) |
| | | { |
| | | return toAjax(rosteringSchemeitemService.deleteRosteringSchemeitemByIds(descriptions)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.controller; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringShift; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringShiftService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.common.utils.SecurityUtils; |
| | | import com.dingzhuo.energy.common.utils.poi.ExcelUtil; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Log; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.enums.BusinessType; |
| | | import com.dingzhuo.energy.framework.web.controller.BaseController; |
| | | import com.dingzhuo.energy.framework.web.domain.AjaxResult; |
| | | import com.dingzhuo.energy.framework.web.page.TableDataInfo; |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | import org.jetbrains.annotations.NotNull; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * æç管ç设置Controller |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/workforce/shiftManagement") |
| | | public class RosteringShiftController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IRosteringShiftService rosteringShiftService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管çå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:treeList')") |
| | | @GetMapping("/treeList") |
| | | public AjaxResult treeList(RosteringShift rosteringShift) { |
| | | List<SysDept> list = rosteringShiftService.treeList(); |
| | | return AjaxResult.success(rosteringShiftService.buildModelNodeTree(list)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管ç设置å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(RosteringShift rosteringShift) |
| | | { |
| | | startPage(); |
| | | List<RosteringShift> list = rosteringShiftService.selectRosteringShiftList(rosteringShift); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç管ç设置å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:export')") |
| | | @Log(title = "æç管ç设置", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(RosteringShift rosteringShift) |
| | | { |
| | | List<RosteringShift> list = rosteringShiftService.selectRosteringShiftList(rosteringShift); |
| | | ExcelUtil<RosteringShift> util = new ExcelUtil<RosteringShift>(RosteringShift.class); |
| | | return util.exportExcel(list, "shiftManagement"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç管ç设置详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | | return AjaxResult.success(rosteringShiftService.selectRosteringShiftById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç管ç设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:add')") |
| | | @Log(title = "æç管ç设置", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@NotNull @RequestBody RosteringShift rosteringShift){ |
| | | rosteringShift.setId(UUID.randomUUID().toString()); |
| | | rosteringShift.setCreateBy(SecurityUtils.getUsername()); |
| | | rosteringShift.setCreateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringShiftService.insertRosteringShift(rosteringShift)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:edit')") |
| | | @Log(title = "æç管ç设置", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody RosteringShift rosteringShift) |
| | | { |
| | | rosteringShift.setUpdateBy(SecurityUtils.getUsername()); |
| | | rosteringShift.setUpdateTime(DateUtils.getNowDate()); |
| | | return toAjax(rosteringShiftService.updateRosteringShift(rosteringShift)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç管ç设置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('workforce:shiftManagement:remove')") |
| | | @Log(title = "æç管ç设置", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |
| | | { |
| | | return toAjax(rosteringShiftService.deleteRosteringShiftByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æç表æ¥è¯¢å¯¹è±¡ rostering |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-13 |
| | | */ |
| | | public class Rostering extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** åç§° */ |
| | | @Excel(name = "åç§°") |
| | | private String name; |
| | | |
| | | /** è½®å¼æ¹æ¡id */ |
| | | @Excel(name = "è½®å¼æ¹æ¡id") |
| | | private String schemeId; |
| | | /** è½®å¼æ¹æ¡name */ |
| | | @Excel(name = "è½®å¼æ¹æ¡name") |
| | | private String schemeName; |
| | | |
| | | /** çæ¬¡id */ |
| | | @Excel(name = "çæ¬¡id") |
| | | private String shiftId; |
| | | |
| | | /** çæ¬¡ */ |
| | | @Excel(name = "çæ¬¡") |
| | | private String shiftName; |
| | | |
| | | /** 弿¬¡id */ |
| | | @Excel(name = "弿¬¡id") |
| | | private String dutyId; |
| | | |
| | | /** 弿¬¡ */ |
| | | @Excel(name = "弿¬¡") |
| | | private String dutyName; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | /** ç»ç»ç»æId */ |
| | | @Excel(name = "ç»ç»ç»æId") |
| | | private Long departMemberId; |
| | | |
| | | /** ç»ç»ç»æName */ |
| | | @Excel(name = "ç»ç»ç»æName") |
| | | private String deptName; |
| | | |
| | | /** å¼å§æ¶é´ */ |
| | | @Excel(name = "å¼å§æ¶é´",dateFormat = "yyyy-MM-dd") |
| | | private Date beginTimes; |
| | | |
| | | /** ç»ææ¶é´ */ |
| | | @Excel(name = "ç»ææ¶é´",dateFormat = "yyyy-MM-dd") |
| | | private Date endTimes; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | |
| | | public void setSchemeId(String schemeId) |
| | | { |
| | | this.schemeId = schemeId; |
| | | } |
| | | public String getSchemeId() |
| | | { |
| | | return schemeId; |
| | | } |
| | | |
| | | public void setShiftId(String shiftId) |
| | | { |
| | | this.shiftId = shiftId; |
| | | } |
| | | public String getShiftId() |
| | | { |
| | | return shiftId; |
| | | } |
| | | |
| | | public void setShiftName(String shiftName) |
| | | { |
| | | this.shiftName = shiftName; |
| | | } |
| | | public String getShiftName() |
| | | { |
| | | return shiftName; |
| | | } |
| | | |
| | | public void setDutyId(String dutyId) |
| | | { |
| | | this.dutyId = dutyId; |
| | | } |
| | | public String getDutyId() |
| | | { |
| | | return dutyId; |
| | | } |
| | | |
| | | public void setDutyName(String dutyName) |
| | | { |
| | | this.dutyName = dutyName; |
| | | } |
| | | public String getDutyName() |
| | | { |
| | | return dutyName; |
| | | } |
| | | |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | public void setDepartMemberId(Long departMemberId) |
| | | { |
| | | this.departMemberId = departMemberId; |
| | | } |
| | | public Long getDepartMemberId() { |
| | | return departMemberId; |
| | | } |
| | | |
| | | public Date getBeginTimes() { return beginTimes; } |
| | | public void setBeginTimes(Date beginTimes) |
| | | { |
| | | this.beginTimes = beginTimes; |
| | | } |
| | | |
| | | public Date getEndTimes() |
| | | { |
| | | return endTimes; |
| | | } |
| | | public void setEndTimes(Date endTimes) |
| | | { |
| | | this.endTimes = endTimes; |
| | | } |
| | | |
| | | public void setSchemeName(String schemeName) { this.schemeName = schemeName; } |
| | | public String getSchemeName() { return schemeName; } |
| | | |
| | | public void setDeptName(String deptName) { this.deptName = deptName; } |
| | | public String getDeptName() { return deptName; } |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("name", getName()) |
| | | .append("schemeId", getSchemeId()) |
| | | .append("shiftId", getShiftId()) |
| | | .append("shiftName", getShiftName()) |
| | | .append("dutyId", getDutyId()) |
| | | .append("dutyName", getDutyName()) |
| | | .append("description", getDescription()) |
| | | .append("departMemberId",getDepartMemberId()) |
| | | .append("beginTimes",getBeginTimes()) |
| | | .append("endTimes",getEndTimes()) |
| | | .append("schemeName",getSchemeName()) |
| | | .append("deptName",getDeptName()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | public class RosteringCopy extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | /** åç§° */ |
| | | @Excel(name = "åç§°") |
| | | private String name; |
| | | /** è½®å¼æ¹æ¡id */ |
| | | @Excel(name = "è½®å¼æ¹æ¡id") |
| | | private String schemeId; |
| | | /** çæ¬¡åç§° */ |
| | | @Excel(name = "çæ¬¡åç§°") |
| | | private String shiftName; |
| | | /** å¼å§æ¶é´ */ |
| | | @Excel(name = "å¼å§æ¶é´", width = 30) |
| | | private String startTime; |
| | | /** ç»ææ¶é´ */ |
| | | @Excel(name = "ç»ææ¶é´", width = 30) |
| | | private String enddTime; |
| | | /** æ¯å¦è·¨å¤© */ |
| | | @Excel(name = "æ¯å¦è·¨å¤©") |
| | | private String isCrossDay; |
| | | /** 弿¬¡åç§° */ |
| | | @Excel(name = "弿¬¡åç§°") |
| | | private String dutyName; |
| | | /** çæ¬¡id */ |
| | | @Excel(name = "çæ¬¡id") |
| | | private String shiftId; |
| | | /** 弿¬¡id */ |
| | | @Excel(name = "弿¬¡id") |
| | | private String dutyId; |
| | | |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | |
| | | public void setSchemeId(String schemeId) |
| | | { |
| | | this.schemeId = schemeId; |
| | | } |
| | | public String getSchemeId() { return schemeId; } |
| | | |
| | | public void setShiftName(String shiftName) { this.shiftName = shiftName; } |
| | | public String getShiftName() { return shiftName; } |
| | | |
| | | public void setStartTime(String startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getStartTime() { return startTime; } |
| | | |
| | | public void setEnddTime(String enddTime) |
| | | { |
| | | this.enddTime = enddTime; |
| | | } |
| | | public String getEnddTime() { return enddTime; } |
| | | |
| | | public void setIsCrossDay(String isCrossDay) |
| | | { |
| | | this.isCrossDay = isCrossDay; |
| | | } |
| | | public String getIsCrossDay() |
| | | { |
| | | return isCrossDay; |
| | | } |
| | | |
| | | public void setDutyName(String dutyName) { this.dutyName = dutyName; } |
| | | public String getDutyName() { return dutyName; } |
| | | |
| | | public void setShiftId(String shiftId) |
| | | { |
| | | this.shiftId = shiftId; |
| | | } |
| | | public String getShiftId() |
| | | { |
| | | return shiftId; |
| | | } |
| | | public void setDutyId(String dutyId) |
| | | { |
| | | this.dutyId = dutyId; |
| | | } |
| | | public String getDutyId() |
| | | { |
| | | return dutyId; |
| | | } |
| | | @Override |
| | | public String toString(){ |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("code",getCode()) |
| | | .append("name",getName()) |
| | | .append("schemeId",getSchemeId()) |
| | | .append("shiftName",getShiftName()) |
| | | .append("startTime",getStartTime()) |
| | | .append("enddTime",getEnddTime()) |
| | | .append("isCrossDay",getIsCrossDay()) |
| | | .append("dutyName",getDutyName()) |
| | | .append("shiftId", getShiftId()) |
| | | .append("dutyId", getDutyId()) |
| | | .toString(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * æç管ç对象 rostering_duty |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public class RosteringDuty extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** ç¼å· */ |
| | | @Excel(name = "ç¼å·") |
| | | private String code; |
| | | |
| | | /** 弿¬¡åç§° */ |
| | | @Excel(name = "弿¬¡åç§°") |
| | | private String name; |
| | | |
| | | /** ç»ç»ç»æid */ |
| | | @Excel(name = "ç»ç»ç»æid") |
| | | private Long deptId; |
| | | private String deptName; |
| | | |
| | | /** 顺åºå· */ |
| | | @Excel(name = "顺åºå·") |
| | | private String orderNo; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | public Long getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptName(String deptName) |
| | | { |
| | | this.deptName = deptName; |
| | | } |
| | | public String getDeptName() |
| | | { |
| | | return deptName; |
| | | } |
| | | |
| | | public void setOrderNo(String orderNo) |
| | | { |
| | | this.orderNo = orderNo; |
| | | } |
| | | |
| | | public String getOrderNo() |
| | | { |
| | | return orderNo; |
| | | } |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("name", getName()) |
| | | .append("deptId", getDeptId()) |
| | | .append("deptName", getDeptName()) |
| | | .append("orderNo", getOrderNo()) |
| | | .append("description", getDescription()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡å¯¹è±¡ rostering_scheme |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-12 |
| | | */ |
| | | public class RosteringScheme extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** åç§° */ |
| | | @Excel(name = "åç§°") |
| | | private String name; |
| | | |
| | | /** ç»ç»ç»æId */ |
| | | @Excel(name = "ç»ç»ç»æId") |
| | | private Long departMemberId; |
| | | private String departMember; |
| | | /** è½®å¼æ¹æ¡ç±»å */ |
| | | @Excel(name = "è½®å¼æ¹æ¡ç±»å") |
| | | private String rosteringschemekind; |
| | | |
| | | /** åç
§æ¥æ */ |
| | | @Excel(name = "åç
§æ¥æ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date referencedate; |
| | | |
| | | /** æ¯å¦èªå¨æç */ |
| | | @Excel(name = "æ¯å¦èªå¨æç") |
| | | private String isautorostering; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | public void setRosteringschemekind(String rosteringschemekind) |
| | | { |
| | | this.rosteringschemekind = rosteringschemekind; |
| | | } |
| | | |
| | | public String getRosteringschemekind() |
| | | { |
| | | return rosteringschemekind; |
| | | } |
| | | public void setReferencedate(Date referencedate) |
| | | { |
| | | this.referencedate = referencedate; |
| | | } |
| | | |
| | | public Date getReferencedate() |
| | | { |
| | | return referencedate; |
| | | } |
| | | public void setIsautorostering(String isautorostering) |
| | | { |
| | | this.isautorostering = isautorostering; |
| | | } |
| | | |
| | | public String getIsautorostering() |
| | | { |
| | | return isautorostering; |
| | | } |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | public Long getDepartMemberId() { |
| | | return departMemberId; |
| | | } |
| | | |
| | | public void setDepartMemberId(Long departMemberId) { |
| | | this.departMemberId = departMemberId; |
| | | } |
| | | |
| | | public String getDepartMember() { |
| | | return departMember; |
| | | } |
| | | |
| | | public void setDepartMember(String departMember) { |
| | | this.departMember = departMember; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("name", getName()) |
| | | .append("departMemberId", getDepartMemberId()) |
| | | .append("rosteringschemekind", getRosteringschemekind()) |
| | | .append("referencedate", getReferencedate()) |
| | | .append("isautorostering", getIsautorostering()) |
| | | .append("description", getDescription()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡å¯¹è±¡ rostering_schemeItem |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ã对象 rostering_schemeItem |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | public class RosteringSchemeitem extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | private String id; |
| | | |
| | | /** ç¼ç */ |
| | | @Excel(name = "ç¼ç ") |
| | | private String code; |
| | | |
| | | /** åç§° */ |
| | | @Excel(name = "åç§°") |
| | | private String name; |
| | | |
| | | /** è½®å¼æ¹æ¡Id */ |
| | | @Excel(name = "è½®å¼æ¹æ¡Id") |
| | | private String schemeId; |
| | | private String schemeName; |
| | | /** 天次 */ |
| | | @Excel(name = "天次") |
| | | private String dayofloopdays; |
| | | |
| | | /** çæ¬¡Id */ |
| | | @Excel(name = "çæ¬¡Id") |
| | | private String shiftId; |
| | | private String shiftName; |
| | | /** 弿¬¡Id */ |
| | | @Excel(name = "弿¬¡Id") |
| | | private String dutyId; |
| | | private String dutyName; |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | public void setSchemeId(String schemeId) |
| | | { |
| | | this.schemeId = schemeId; |
| | | } |
| | | |
| | | public String getSchemeId() |
| | | { |
| | | return schemeId; |
| | | } |
| | | public void setDayofloopdays(String dayofloopdays) |
| | | { |
| | | this.dayofloopdays = dayofloopdays; |
| | | } |
| | | |
| | | public String getDayofloopdays() |
| | | { |
| | | return dayofloopdays; |
| | | } |
| | | public void setShiftId(String shiftId) |
| | | { |
| | | this.shiftId = shiftId; |
| | | } |
| | | |
| | | public String getShiftId() |
| | | { |
| | | return shiftId; |
| | | } |
| | | public void setDutyId(String dutyId) |
| | | { |
| | | this.dutyId = dutyId; |
| | | } |
| | | |
| | | public String getDutyId() |
| | | { |
| | | return dutyId; |
| | | } |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | public String getSchemeName() { |
| | | return schemeName; |
| | | } |
| | | |
| | | public void setSchemeName(String schemeName) { |
| | | this.schemeName = schemeName; |
| | | } |
| | | |
| | | public String getShiftName() { |
| | | return shiftName; |
| | | } |
| | | |
| | | public void setShiftName(String shiftName) { |
| | | this.shiftName = shiftName; |
| | | } |
| | | |
| | | public String getDutyName() { |
| | | return dutyName; |
| | | } |
| | | |
| | | public void setDutyName(String dutyName) { |
| | | this.dutyName = dutyName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("name", getName()) |
| | | .append("schemeId", getSchemeId()) |
| | | .append("dayofloopdays", getDayofloopdays()) |
| | | .append("shiftId", getShiftId()) |
| | | .append("dutyId", getDutyId()) |
| | | .append("description", getDescription()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.framework.aspectj.lang.annotation.Excel; |
| | | import com.dingzhuo.energy.framework.web.domain.BaseEntity; |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管ç设置对象 rostering_shift |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public class RosteringShift extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | private String id; |
| | | |
| | | /** ç¼å· */ |
| | | @Excel(name = "ç¼å·") |
| | | private String code; |
| | | |
| | | /** çæ¬¡åç§° */ |
| | | @Excel(name = "çæ¬¡åç§°") |
| | | private String name; |
| | | |
| | | /** ç»ç»ç»æidï¼é¨é¨idï¼ */ |
| | | @Excel(name = "ç»ç»ç»æid") |
| | | private Long deptId; |
| | | private String deptName; |
| | | /** å¼å§æ¶é´ */ |
| | | @Excel(name = "å¼å§æ¶é´", width = 30) |
| | | private String startTime; |
| | | |
| | | /** ç»ææ¶é´ */ |
| | | @Excel(name = "ç»ææ¶é´", width = 30) |
| | | private String enddTime; |
| | | |
| | | /** æ¯å¦è·¨å¤© */ |
| | | @Excel(name = "æ¯å¦è·¨å¤©") |
| | | private String isCrossDay; |
| | | |
| | | /** 顺åºå· */ |
| | | @Excel(name = "顺åºå·") |
| | | private String orderNo; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | public Long getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptName(String deptName) |
| | | { |
| | | this.deptName = deptName; |
| | | } |
| | | public String getDeptName() |
| | | { |
| | | return deptName; |
| | | } |
| | | |
| | | public void setStartTime(String startTime) |
| | | { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getStartTime() { return startTime; } |
| | | |
| | | public void setEnddTime(String enddTime) |
| | | { |
| | | this.enddTime = enddTime; |
| | | } |
| | | public String getEnddTime() { return enddTime; } |
| | | |
| | | public void setIsCrossDay(String isCrossDay) |
| | | { |
| | | this.isCrossDay = isCrossDay; |
| | | } |
| | | public String getIsCrossDay() |
| | | { |
| | | return isCrossDay; |
| | | } |
| | | |
| | | public void setOrderNo(String orderNo) |
| | | { |
| | | this.orderNo = orderNo; |
| | | } |
| | | public String getOrderNo() |
| | | { |
| | | return orderNo; |
| | | } |
| | | |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("code", getCode()) |
| | | .append("name", getName()) |
| | | .append("deptId", getDeptId()) |
| | | .append("startTime", getStartTime()) |
| | | .append("enddTime", getEnddTime()) |
| | | .append("isCrossDay", getIsCrossDay()) |
| | | .append("orderNo", getOrderNo()) |
| | | .append("description", getDescription()) |
| | | .append("deptName", getDeptName()) |
| | | .toString(); |
| | | } |
| | | private List<SysDept> children = new ArrayList<SysDept>(); |
| | | |
| | | public List<SysDept> getChildren() { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<SysDept> children) { |
| | | this.children = children; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.domain; |
| | | |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Treeselectæ ç»æå®ä½ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class workForceTreeObject implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èç¹ID |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * èç¹åç§° |
| | | */ |
| | | private String label; |
| | | |
| | | /** |
| | | * åèç¹ |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<workForceTreeObject> children; |
| | | |
| | | public workForceTreeObject() { |
| | | |
| | | } |
| | | |
| | | public workForceTreeObject(SysDept sysDept) { |
| | | this.id = sysDept.getDeptId(); |
| | | this.label = sysDept.getDeptName(); |
| | | this.children = sysDept.getChildren().stream().map(workForceTreeObject::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getLabel() { |
| | | return label; |
| | | } |
| | | |
| | | public void setLabel(String label) { |
| | | this.label = label; |
| | | } |
| | | |
| | | public List<workForceTreeObject> getChildren() { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<workForceTreeObject> children) { |
| | | this.children = children; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringDuty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管çMapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface RosteringDutyMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æç管ç |
| | | * |
| | | * @param id æç管çID |
| | | * @return æç管ç |
| | | */ |
| | | public RosteringDuty selectRosteringDutyById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管çå表 |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return æç管çéå |
| | | */ |
| | | public List<RosteringDuty> selectRosteringDutyList(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * æ°å¢æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringDuty(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringDuty(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * å 餿ç管ç |
| | | * |
| | | * @param id æç管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringDutyById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringDutyByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.Rostering; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringCopy; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç表æ¥è¯¢Mapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-13 |
| | | */ |
| | | public interface RosteringMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * @return è½®å¼æ¹æ¡åç§°æ¥è¯¢éå |
| | | */ |
| | | public List<RosteringScheme> selectSchemeNameList(); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return æç表æ¥è¯¢ |
| | | */ |
| | | public Rostering selectRosteringById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢å表 |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return æç表æ¥è¯¢éå |
| | | */ |
| | | public List<Rostering> selectRosteringList(Rostering rostering); |
| | | |
| | | public List<RosteringCopy> selectList(Rostering rostering); |
| | | /** |
| | | * æ°å¢æç表æ¥è¯¢ |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRostering(Rostering rostering); |
| | | public void saveRostering( List<Rostering> dataItems); |
| | | /** |
| | | * ä¿®æ¹æç表æ¥è¯¢ |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRostering(Rostering rostering); |
| | | |
| | | /** |
| | | * å 餿ç表æ¥è¯¢ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç表æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Mapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface RosteringSchemeMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | public RosteringScheme selectRosteringSchemeById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡éå |
| | | */ |
| | | public List<RosteringScheme> selectRosteringSchemeList(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringScheme(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringScheme(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringSchemeitem; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Mapperæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | public interface RosteringSchemeitemMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | public RosteringSchemeitem selectRosteringSchemeitemById(String description); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡éå |
| | | */ |
| | | public List<RosteringSchemeitem> selectRosteringSchemeitemList(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeitemById(String description); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param descriptions éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeitemByIds(String[] descriptions); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.mapper; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringShift; |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管ç设置Mapperæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface RosteringShiftMapper |
| | | { |
| | | public List<SysDept> treeList(); |
| | | /** |
| | | * æ¥è¯¢æç管ç设置 |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return æç管ç设置 |
| | | */ |
| | | public RosteringShift selectRosteringShiftById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管ç设置å表 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return æç管ç设置éå |
| | | */ |
| | | public List<RosteringShift> selectRosteringShiftList(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * æ°å¢æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringShift(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringShift(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * å 餿ç管ç设置 |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringShiftById(String id); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç设置 |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringShiftByIds(String[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringDuty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管çServiceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface IRosteringDutyService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æç管ç |
| | | * |
| | | * @param id æç管çID |
| | | * @return æç管ç |
| | | */ |
| | | public RosteringDuty selectRosteringDutyById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管çå表 |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return æç管çéå |
| | | */ |
| | | public List<RosteringDuty> selectRosteringDutyList(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * æ°å¢æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringDuty(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringDuty(RosteringDuty rosteringDuty); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç |
| | | * |
| | | * @param ids éè¦å é¤çæç管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringDutyByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿ç管çä¿¡æ¯ |
| | | * |
| | | * @param id æç管çID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringDutyById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Serviceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface IRosteringSchemeService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | public RosteringScheme selectRosteringSchemeById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡éå |
| | | */ |
| | | public List<RosteringScheme> selectRosteringSchemeList(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringScheme(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringScheme(RosteringScheme rosteringScheme); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeByIds(String[] ids); |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringSchemeitem; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Serviceæ¥å£ |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | public interface IRosteringSchemeitemService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | public RosteringSchemeitem selectRosteringSchemeitemById(String description); |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡éå |
| | | */ |
| | | public List<RosteringSchemeitem> selectRosteringSchemeitemList(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem); |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param descriptions éè¦å é¤çè½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeitemByIds(String[] descriptions); |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ä¿¡æ¯ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringSchemeitemById(String description); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.Rostering; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringCopy; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç表æ¥è¯¢Serviceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-13 |
| | | */ |
| | | public interface IRosteringService |
| | | { |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡åç§° |
| | | * @return è½®å¼æ¹æ¡åç§°éå |
| | | */ |
| | | public List<RosteringScheme> selectSchemeNameList(); |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return æç表æ¥è¯¢ |
| | | */ |
| | | public Rostering selectRosteringById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢å表 |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return æç表æ¥è¯¢éå |
| | | */ |
| | | public List<Rostering> selectRosteringList(Rostering rostering); |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | */ |
| | | public List<RosteringCopy> selectList(Rostering rostering); |
| | | /** |
| | | * æ°å¢æç表æ¥è¯¢ |
| | | |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRostering(Rostering rostering ); |
| | | public void saveRostering(List<Rostering> dataItems); |
| | | |
| | | /** |
| | | * ä¿®æ¹æç表æ¥è¯¢ |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRostering(Rostering rostering); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç表æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæç表æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿ç表æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringById(String id); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringShift; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.workForceTreeObject; |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管ç设置Serviceæ¥å£ |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | public interface IRosteringShiftService |
| | | { |
| | | public List<SysDept> treeList(); |
| | | public List<workForceTreeObject> buildModelNodeTree(List<SysDept> modelNodes); |
| | | /** |
| | | * æ¥è¯¢æç管ç设置 |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return æç管ç设置 |
| | | */ |
| | | public RosteringShift selectRosteringShiftById(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管ç设置å表 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return æç管ç设置éå |
| | | */ |
| | | public List<RosteringShift> selectRosteringShiftList(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * æ°å¢æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertRosteringShift(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateRosteringShift(RosteringShift rosteringShift); |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç设置 |
| | | * |
| | | * @param ids éè¦å é¤çæç管ç设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringShiftByIds(String[] ids); |
| | | |
| | | /** |
| | | * å 餿ç管çè®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteRosteringShiftById(String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringDuty; |
| | | import com.dingzhuo.energy.basic.data.workforce.mapper.RosteringDutyMapper; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringDutyService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç管çServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | @Service |
| | | public class RosteringDutyServiceImpl implements IRosteringDutyService |
| | | { |
| | | @Autowired |
| | | private RosteringDutyMapper rosteringDutyMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管ç |
| | | * |
| | | * @param id æç管çID |
| | | * @return æç管ç |
| | | */ |
| | | @Override |
| | | public RosteringDuty selectRosteringDutyById(String id) |
| | | { |
| | | return rosteringDutyMapper.selectRosteringDutyById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管çå表 |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return æç管ç |
| | | */ |
| | | @Override |
| | | public List<RosteringDuty> selectRosteringDutyList(RosteringDuty rosteringDuty) |
| | | { |
| | | return rosteringDutyMapper.selectRosteringDutyList(rosteringDuty); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertRosteringDuty(RosteringDuty rosteringDuty) |
| | | { |
| | | return rosteringDutyMapper.insertRosteringDuty(rosteringDuty); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç |
| | | * |
| | | * @param rosteringDuty æç管ç |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateRosteringDuty(RosteringDuty rosteringDuty) |
| | | { |
| | | rosteringDuty.setUpdateTime(DateUtils.getNowDate()); |
| | | return rosteringDutyMapper.updateRosteringDuty(rosteringDuty); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç |
| | | * |
| | | * @param ids éè¦å é¤çæç管çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringDutyByIds(String[] ids) |
| | | { |
| | | return rosteringDutyMapper.deleteRosteringDutyByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç管çä¿¡æ¯ |
| | | * |
| | | * @param id æç管çID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringDutyById(String id) |
| | | { |
| | | return rosteringDutyMapper.deleteRosteringDutyById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.workforce.mapper.RosteringSchemeMapper; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringSchemeService; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-12 |
| | | */ |
| | | @Service |
| | | public class RosteringSchemeServiceImpl implements IRosteringSchemeService |
| | | { |
| | | @Autowired |
| | | private RosteringSchemeMapper rosteringSchemeMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | @Override |
| | | public RosteringScheme selectRosteringSchemeById(String id) |
| | | { |
| | | return rosteringSchemeMapper.selectRosteringSchemeById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | @Override |
| | | public List<RosteringScheme> selectRosteringSchemeList(RosteringScheme rosteringScheme) |
| | | { |
| | | return rosteringSchemeMapper.selectRosteringSchemeList(rosteringScheme); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertRosteringScheme(RosteringScheme rosteringScheme) |
| | | { |
| | | return rosteringSchemeMapper.insertRosteringScheme(rosteringScheme); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringScheme è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateRosteringScheme(RosteringScheme rosteringScheme) |
| | | { |
| | | rosteringScheme.setUpdateTime(DateUtils.getNowDate()); |
| | | return rosteringSchemeMapper.updateRosteringScheme(rosteringScheme); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param ids éè¦å é¤çè½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringSchemeByIds(String[] ids) |
| | | { |
| | | return rosteringSchemeMapper.deleteRosteringSchemeByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ä¿¡æ¯ |
| | | * |
| | | * @param id è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringSchemeById(String id) |
| | | { |
| | | return rosteringSchemeMapper.deleteRosteringSchemeById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.dingzhuo.energy.basic.data.workforce.mapper.RosteringSchemeitemMapper; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringSchemeitem; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringSchemeitemService; |
| | | |
| | | /** |
| | | * è½®å¼æ¹æ¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author sys |
| | | * @date 2020-05-13 |
| | | */ |
| | | @Service |
| | | public class RosteringSchemeitemServiceImpl implements IRosteringSchemeitemService |
| | | { |
| | | @Autowired |
| | | private RosteringSchemeitemMapper rosteringSchemeitemMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | @Override |
| | | public RosteringSchemeitem selectRosteringSchemeitemById(String description) |
| | | { |
| | | return rosteringSchemeitemMapper.selectRosteringSchemeitemById(description); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡å表 |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return è½®å¼æ¹æ¡ |
| | | */ |
| | | @Override |
| | | public List<RosteringSchemeitem> selectRosteringSchemeitemList(RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | return rosteringSchemeitemMapper.selectRosteringSchemeitemList(rosteringSchemeitem); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | return rosteringSchemeitemMapper.insertRosteringSchemeitem(rosteringSchemeitem); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è½®å¼æ¹æ¡ |
| | | * |
| | | * @param rosteringSchemeitem è½®å¼æ¹æ¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateRosteringSchemeitem(RosteringSchemeitem rosteringSchemeitem) |
| | | { |
| | | rosteringSchemeitem.setUpdateTime(DateUtils.getNowDate()); |
| | | return rosteringSchemeitemMapper.updateRosteringSchemeitem(rosteringSchemeitem); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è½®å¼æ¹æ¡ |
| | | * |
| | | * @param descriptions éè¦å é¤çè½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringSchemeitemByIds(String[] descriptions) |
| | | { |
| | | return rosteringSchemeitemMapper.deleteRosteringSchemeitemByIds(descriptions); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è½®å¼æ¹æ¡ä¿¡æ¯ |
| | | * |
| | | * @param description è½®å¼æ¹æ¡ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringSchemeitemById(String description) |
| | | { |
| | | return rosteringSchemeitemMapper.deleteRosteringSchemeitemById(description); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.Rostering; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringCopy; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringScheme; |
| | | import com.dingzhuo.energy.basic.data.workforce.mapper.RosteringMapper; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç表æ¥è¯¢Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-13 |
| | | */ |
| | | @Service |
| | | public class RosteringServiceImpl implements IRosteringService |
| | | { |
| | | @Autowired |
| | | private RosteringMapper rosteringMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®å¼æ¹æ¡åç§° |
| | | * @return è½®å¼æ¹æ¡åç§°éå |
| | | */ |
| | | @Override |
| | | public List<RosteringScheme> selectSchemeNameList() { |
| | | return rosteringMapper.selectSchemeNameList(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return æç表æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public Rostering selectRosteringById(String id) |
| | | { |
| | | return rosteringMapper.selectRosteringById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æç表æ¥è¯¢å表 |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return æç表æ¥è¯¢ |
| | | */ |
| | | @Override |
| | | public List<Rostering> selectRosteringList(Rostering rostering) |
| | | { |
| | | return rosteringMapper.selectRosteringList(rostering); |
| | | } |
| | | @Override |
| | | public List<RosteringCopy> selectList(Rostering rostering) |
| | | { |
| | | return rosteringMapper.selectList(rostering); |
| | | } |
| | | /** |
| | | * æ°å¢æç表æ¥è¯¢ |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertRostering(Rostering rostering) |
| | | { |
| | | return rosteringMapper.insertRostering(rostering); |
| | | } |
| | | @Override |
| | | public void saveRostering(List<Rostering> dataItems){ |
| | | rosteringMapper.saveRostering(dataItems); |
| | | } |
| | | /** |
| | | * ä¿®æ¹æç表æ¥è¯¢ |
| | | * |
| | | * @param rostering æç表æ¥è¯¢ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateRostering(Rostering rostering) |
| | | { |
| | | rostering.setUpdateTime(DateUtils.getNowDate()); |
| | | return rosteringMapper.updateRostering(rostering); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿ç表æ¥è¯¢ |
| | | * |
| | | * @param ids éè¦å é¤çæç表æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringByIds(String[] ids) |
| | | { |
| | | return rosteringMapper.deleteRosteringByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç表æ¥è¯¢ä¿¡æ¯ |
| | | * |
| | | * @param id æç表æ¥è¯¢ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringById(String id) |
| | | { |
| | | return rosteringMapper.deleteRosteringById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.basic.data.workforce.service.impl; |
| | | |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.RosteringShift; |
| | | import com.dingzhuo.energy.basic.data.workforce.domain.workForceTreeObject; |
| | | import com.dingzhuo.energy.basic.data.workforce.mapper.RosteringShiftMapper; |
| | | import com.dingzhuo.energy.basic.data.workforce.service.IRosteringShiftService; |
| | | import com.dingzhuo.energy.common.utils.DateUtils; |
| | | import com.dingzhuo.energy.project.system.domain.SysDept; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static org.apache.commons.lang3.StringUtils.equalsAnyIgnoreCase; |
| | | |
| | | /** |
| | | * æç管ç设置Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author liuli |
| | | * @date 2020-05-12 |
| | | */ |
| | | @Service |
| | | public class RosteringShiftServiceImpl implements IRosteringShiftService |
| | | { |
| | | @Autowired |
| | | private RosteringShiftMapper rosteringShiftMapper; |
| | | @Override |
| | | public List<SysDept> treeList() { |
| | | return rosteringShiftMapper.treeList(); |
| | | } |
| | | @Override |
| | | public List<workForceTreeObject> buildModelNodeTree(List<SysDept> modelNodes) { |
| | | List<SysDept> modelNodeTree = modelNodes.stream() |
| | | .filter(f -> f.getParentId().toString().equals("0")) |
| | | .collect(Collectors.toList()); |
| | | for (SysDept modelNode : modelNodeTree) { |
| | | List<SysDept> children = modelNodes.stream() |
| | | .filter(f -> equalsAnyIgnoreCase(f.getParentId().toString(), modelNode.getDeptId().toString())) |
| | | .collect(Collectors.toList()); |
| | | buildTree(modelNode, children, modelNodes); |
| | | } |
| | | return modelNodeTree.stream().map(workForceTreeObject::new).collect(Collectors.toList()); |
| | | } |
| | | private void buildTree(SysDept parent, List<SysDept> children, List<SysDept> modelNodes) { |
| | | parent.setChildren(children); |
| | | |
| | | for (SysDept modelNode : children) { |
| | | List<SysDept> tmp = modelNodes.stream() |
| | | .filter(f -> equalsAnyIgnoreCase(f.getParentId().toString(), modelNode.getDeptId().toString())) |
| | | .collect(Collectors.toList()); |
| | | if (!tmp.isEmpty()) { |
| | | buildTree(modelNode, tmp, modelNodes); |
| | | } |
| | | } |
| | | } |
| | | /** |
| | | * æ¥è¯¢æç管ç设置 |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return æç管ç设置 |
| | | */ |
| | | @Override |
| | | public RosteringShift selectRosteringShiftById(String id) |
| | | { |
| | | return rosteringShiftMapper.selectRosteringShiftById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æç管ç设置å表 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return æç管ç设置 |
| | | */ |
| | | @Override |
| | | public List<RosteringShift> selectRosteringShiftList(RosteringShift rosteringShift) |
| | | { |
| | | return rosteringShiftMapper.selectRosteringShiftList(rosteringShift); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertRosteringShift(RosteringShift rosteringShift) |
| | | { |
| | | return rosteringShiftMapper.insertRosteringShift(rosteringShift); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç管ç设置 |
| | | * |
| | | * @param rosteringShift æç管ç设置 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateRosteringShift(RosteringShift rosteringShift) |
| | | { |
| | | rosteringShift.setUpdateTime(DateUtils.getNowDate()); |
| | | return rosteringShiftMapper.updateRosteringShift(rosteringShift); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿ç管ç设置 |
| | | * |
| | | * @param ids éè¦å é¤çæç管ç设置ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringShiftByIds(String[] ids) |
| | | { |
| | | return rosteringShiftMapper.deleteRosteringShiftByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç管çè®¾ç½®ä¿¡æ¯ |
| | | * |
| | | * @param id æç管ç设置ID |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteRosteringShiftById(String id) |
| | | { |
| | | return rosteringShiftMapper.deleteRosteringShiftById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnerclassMapper"> |
| | | |
| | | <resultMap type="SysEnerclass" id="SysEnerclassResult"> |
| | | <result property="enerclassid" column="enerclassid" /> |
| | | <result property="enerclassname" column="enerclassname" /> |
| | | <result property="oprMan" column="opr_man" /> |
| | | <result property="oprTime" column="opr_time" /> |
| | | <result property="modMan" column="mod_man" /> |
| | | <result property="modTime" column="mod_time" /> |
| | | <result property="note" column="note" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysEnerclassVo"> |
| | | select enerclassid, enerclassname, opr_man, opr_time, mod_man, mod_time, note from sys_enerclass |
| | | </sql> |
| | | |
| | | <select id="selectSysEnerclassList" parameterType="SysEnerclass" resultMap="SysEnerclassResult"> |
| | | <include refid="selectSysEnerclassVo"/> |
| | | <where> |
| | | <if test="enerclassname != null and enerclassname != ''"> and enerclassname like concat('%', #{enerclassname}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysEnerclassById" parameterType="Integer" resultMap="SysEnerclassResult"> |
| | | <include refid="selectSysEnerclassVo"/> |
| | | where enerclassid = #{enerclassid} |
| | | </select> |
| | | |
| | | <insert id="insertSysEnerclass" parameterType="SysEnerclass"> |
| | | insert into sys_enerclass |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | mod_time, |
| | | opr_time, |
| | | <if test="note != null and note != ''">note,</if> |
| | | <if test="enerclassid != null ">enerclassid,</if> |
| | | <if test="enerclassname != null and enerclassname != ''">enerclassname,</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | now(), |
| | | now(), |
| | | <if test="note != null and note != ''">#{note},</if> |
| | | <if test="enerclassid != null ">#{enerclassid},</if> |
| | | <if test="enerclassname != null and enerclassname != ''">#{enerclassname},</if> |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysEnerclass" parameterType="SysEnerclass"> |
| | | update sys_enerclass |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | mod_time = now(), |
| | | <if test="enerclassname != null and enerclassname != ''">enerclassname = #{enerclassname},</if> |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | <if test="note != null and note != ''">note = #{note},</if> |
| | | </trim> |
| | | where enerclassid = #{enerclassid} |
| | | </update> |
| | | |
| | | <delete id="deleteSysEnerclassById" parameterType="Integer"> |
| | | delete from sys_enerclass where enerclassid = #{enerclassid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSysEnerclassByIds" parameterType="String"> |
| | | delete from sys_enerclass where enerclassid in |
| | | <foreach item="enerclassid" collection="array" open="(" separator="," close=")"> |
| | | #{enerclassid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectSameEnergyNameNum" parameterType="String" resultType="Integer"> |
| | | select COUNT(enerclassid) from sys_enerclass where enerclassname = #{enerclassname} |
| | | </select> |
| | | |
| | | <select id="selectIdByName" parameterType="String" resultType="Integer"> |
| | | select enerclassid from sys_enerclass where enerclassname = #{enerclassname} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnercoefficientMapper"> |
| | | |
| | | <resultMap type="SysEnercoefficient" id="SysEnercoefficientResult"> |
| | | <result property="ecid" column="ecid" /> |
| | | <result property="enerid" column="enerid" /> |
| | | <result property="coefficient" column="coefficient" /> |
| | | <result property="coefficient2" column="coefficient2" /> |
| | | <result property="execdate" column="execdate" /> |
| | | <result property="oprMan" column="opr_man" /> |
| | | <result property="oprTime" column="opr_time" /> |
| | | <result property="modMan" column="mod_man" /> |
| | | <result property="modTime" column="mod_time" /> |
| | | <result property="note" column="note" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysEnercoefficientVo"> |
| | | select ecid, enerid, coefficient, coefficient2, execdate, opr_man, opr_time, mod_man, mod_time, note from sys_enercoefficient |
| | | </sql> |
| | | |
| | | <select id="selectSysEnercoefficientList" parameterType="SysEnercoefficient" resultMap="SysEnercoefficientResult"> |
| | | select a.ecid, a.enerid, a.coefficient, a.coefficient2, a.execdate, a.opr_man, a.opr_time, a.mod_man, a.mod_time, a.note,b.enername |
| | | from sys_enercoefficient a |
| | | left join sys_energy b on a.enerid = b.enerid |
| | | <where> |
| | | <if test="enername != null and enername != ''"> and enername like concat('%', #{enername}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysEnercoefficientById" parameterType="Integer" resultMap="SysEnercoefficientResult"> |
| | | <include refid="selectSysEnercoefficientVo"/> |
| | | where ecid = #{ecid} |
| | | </select> |
| | | |
| | | <insert id="insertSysEnercoefficient" parameterType="SysEnercoefficient"> |
| | | insert into sys_enercoefficient |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="ecid != null ">ecid,</if> |
| | | <if test="enerid != null ">enerid,</if> |
| | | <if test="coefficient != null and coefficient != ''">coefficient,</if> |
| | | <if test="coefficient2 != null and coefficient2 != ''">coefficient2,</if> |
| | | <if test="execdate != null ">execdate,</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="oprTime != null ">opr_time,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | <if test="modTime != null ">mod_time,</if> |
| | | <if test="note != null and note != ''">note,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ecid != null ">#{ecid},</if> |
| | | <if test="enerid != null ">#{enerid},</if> |
| | | <if test="coefficient != null and coefficient != ''">#{coefficient},</if> |
| | | <if test="coefficient2 != null and coefficient2 != ''">#{coefficient2},</if> |
| | | <if test="execdate != null ">#{execdate},</if> |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="oprTime != null ">#{oprTime},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="modTime != null ">#{modTime},</if> |
| | | <if test="note != null and note != ''">#{note},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysEnercoefficient" parameterType="SysEnercoefficient"> |
| | | update sys_enercoefficient |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="enerid != null ">enerid = #{enerid},</if> |
| | | <if test="coefficient != null and coefficient != ''">coefficient = #{coefficient},</if> |
| | | <if test="coefficient2 != null and coefficient2 != ''">coefficient2 = #{coefficient2},</if> |
| | | <if test="execdate != null ">execdate = #{execdate},</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man = #{oprMan},</if> |
| | | <if test="oprTime != null ">opr_time = #{oprTime},</if> |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | <if test="modTime != null ">mod_time = #{modTime},</if> |
| | | <if test="note != null and note != ''">note = #{note},</if> |
| | | </trim> |
| | | where ecid = #{ecid} |
| | | </update> |
| | | |
| | | <delete id="deleteSysEnercoefficientById" parameterType="Integer"> |
| | | delete from sys_enercoefficient where ecid = #{ecid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSysEnercoefficientByIds" parameterType="String"> |
| | | delete from sys_enercoefficient where ecid in |
| | | <foreach item="ecid" collection="array" open="(" separator="," close=")"> |
| | | #{ecid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysEnergyMapper"> |
| | | |
| | | <resultMap type="SysEnergy" id="SysEnergyResult"> |
| | | <result property="oprMan" column="opr_man" /> |
| | | <result property="oprTime" column="opr_time" /> |
| | | <result property="modMan" column="mod_man" /> |
| | | <result property="modTime" column="mod_time" /> |
| | | <result property="enerid" column="enerid" /> |
| | | <result property="enername" column="enername" /> |
| | | <result property="muid" column="muid" /> |
| | | <result property="enerclassid" column="enerclassid" /> |
| | | <result property="enersno" column="enersno" /> |
| | | <result property="isstorage" column="isstorage" /> |
| | | <result property="note" column="note" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysEnergyVo"> |
| | | select |
| | | a.opr_man, a.opr_time, a.mod_man, a.mod_time, a.enerid, a.enername, |
| | | a.muid as muidString, a.enerclassid, a.enersno, a.isstorage, a.note,enerclassname |
| | | from sys_energy a left join sys_enerclass b on a.enerclassid = b.enerclassid |
| | | </sql> |
| | | |
| | | <select id="getenerclassname" resultType="SysEnerclass"> |
| | | select enerclassid,enerclassname from sys_enerclass |
| | | </select> |
| | | |
| | | <select id="selectSysEnergyList" parameterType="SysEnergy" resultMap="SysEnergyResult"> |
| | | select |
| | | a.opr_man, a.opr_time, a.mod_man, a.mod_time, a.enerid, a.enername, |
| | | a.muid as muidString, a.enerclassid, a.enersno, a.isstorage, a.note,enerclassname, |
| | | c.dict_label as muidName |
| | | from sys_energy a left join sys_enerclass b on a.enerclassid = b.enerclassid |
| | | left join sys_dict_data c on a.muid = c.dict_sort and dict_type = 'sys_unit' |
| | | <where> |
| | | <if test="enername != null and enername != ''"> and enername like concat('%', #{enername}, '%')</if> |
| | | <if test="enerclassname != null and enerclassname != ''"> and enerclassname = #{enerclassname}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysEnergyById" parameterType="Integer" resultMap="SysEnergyResult"> |
| | | select |
| | | a.opr_man, a.opr_time, a.mod_man, a.mod_time, a.enerid, a.enername, |
| | | a.muid as muidString, a.enerclassid, a.enersno, a.isstorage, a.note,enerclassname, |
| | | c.dict_label as muidName,d.coefficient,d.coefficient2,d.execdate as coefficientexecdate,d.note as coefficientnote |
| | | from sys_energy a left join sys_enerclass b on a.enerclassid = b.enerclassid |
| | | left join sys_dict_data c on a.muid = c.dict_sort and dict_type = 'sys_unit' |
| | | left join sys_enercoefficient d on a.enerid = d.enerid |
| | | where a.enerid = #{enerid} |
| | | </select> |
| | | |
| | | <insert id="insertSysEnergy" parameterType="SysEnergy"> |
| | | insert into sys_energy |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | mod_time, |
| | | opr_time, |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | <if test="enerid != null ">enerid,</if> |
| | | <if test="enername != null and enername != ''">enername,</if> |
| | | <if test="muidString != null ">muid,</if> |
| | | <if test="enerclassid != null ">enerclassid,</if> |
| | | <if test="enersno != null and enersno != ''">enersno,</if> |
| | | <if test="isstorage != null ">isstorage,</if> |
| | | <if test="note != null and note != ''">note,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | now(), |
| | | now(), |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="enerid != null ">#{enerid},</if> |
| | | <if test="enername != null and enername != ''">#{enername},</if> |
| | | <if test="muidString != null ">#{muidString},</if> |
| | | <if test="enerclassid != null ">#{enerclassid},</if> |
| | | <if test="enersno != null and enersno != ''">#{enersno},</if> |
| | | <if test="isstorage != null ">#{isstorage},</if> |
| | | <if test="note != null and note != ''">#{note},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysEnergy" parameterType="SysEnergy"> |
| | | update sys_energy |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | mod_time = now(), |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | <if test="enerid != null ">enerid = #{enerid},</if> |
| | | <if test="enername != null and enername != ''">enername = #{enername},</if> |
| | | <if test="muidString != null ">muid = #{muidString},</if> |
| | | <if test="enerclassid != null ">enerclassid = #{enerclassid},</if> |
| | | <if test="enersno != null and enersno != ''">enersno = #{enersno},</if> |
| | | <if test="isstorage != null ">isstorage = #{isstorage},</if> |
| | | <if test="note != null and note != ''">note = #{note},</if> |
| | | </trim> |
| | | where enerid = #{enerid} |
| | | </update> |
| | | |
| | | <delete id="deleteSysEnergyById" parameterType="String"> |
| | | delete from sys_energy where enerid = #{enerid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSysEnergyByIds" parameterType="String"> |
| | | delete from sys_energy where enerid in |
| | | <foreach item="enerid" collection="array" open="(" separator="," close=")"> |
| | | #{enerid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getEnerClassid" parameterType="String" resultType="Integer"> |
| | | select enerclassid from sys_enerclass where enerclassname = #{enerclassname} |
| | | </select> |
| | | |
| | | <select id="selectSameEnergyNameNum" parameterType="String" resultType="Integer"> |
| | | select COUNT(enerid) from sys_energy where enername = #{enername} |
| | | </select> |
| | | |
| | | <select id="selectIdByName" parameterType="String" resultType="Integer"> |
| | | select enerid from sys_energy where enername = #{enername} |
| | | </select> |
| | | |
| | | <select id="getPriceCountByEnerid" parameterType="SysEnergy" resultType="Integer"> |
| | | select COUNT(objectid) from sys_price where objectid = #{enerid} and objecttype = 1 and execdate = #{execdate} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyPrice" parameterType="SysEnergy"> |
| | | insert into sys_price |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | mod_time, |
| | | opr_time, |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | objectid, |
| | | objecttype, |
| | | price, |
| | | execdate, |
| | | <if test="note != null and note != ''">note,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | now(), |
| | | now(), |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="enerid != null ">#{enerid},</if> |
| | | 1, |
| | | #{price}, |
| | | #{execdate}, |
| | | <if test="note != null and note != ''">#{pricenote},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyPrice" parameterType="SysEnergy" > |
| | | update sys_price |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | mod_time = now(), |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | price = #{price}, |
| | | execdate = #{execdate}, |
| | | <if test="note != null and note != ''">note = #{pricenote},</if> |
| | | </trim> |
| | | </update> |
| | | |
| | | <select id="getCoefficientCountByEnerid" parameterType="Integer" resultType="Integer"> |
| | | select COUNT(enerid) from sys_enercoefficient where enerid = #{enerid} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyCoefficient" parameterType="SysEnergy"> |
| | | insert into sys_enercoefficient |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | mod_time, |
| | | opr_time, |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | enerid, |
| | | coefficient, |
| | | coefficient2, |
| | | execdate, |
| | | <if test="note != null and note != ''">note,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | now(), |
| | | now(), |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="enerid != null ">#{enerid},</if> |
| | | #{coefficient}, |
| | | #{coefficient2}, |
| | | #{coefficientexecdate}, |
| | | <if test="note != null and note != ''">#{coefficientnote},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyCoefficient" parameterType="SysEnergy" > |
| | | update sys_enercoefficient |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | mod_time = now(), |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | coefficient = #{coefficient}, |
| | | coefficient2 = #{coefficient2}, |
| | | execdate = #{coefficientexecdate}, |
| | | <if test="note != null and note != ''">note = #{coefficientnote},</if> |
| | | </trim> |
| | | where enerid = #{enerid} |
| | | </update> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysPriceMapper"> |
| | | |
| | | <resultMap type="SysPrice" id="SysPriceResult"> |
| | | <result property="oprTime" column="opr_time" /> |
| | | <result property="modMan" column="mod_man" /> |
| | | <result property="priceid" column="priceid" /> |
| | | <result property="objectid" column="objectid" /> |
| | | <result property="objecttype" column="objecttype" /> |
| | | <result property="price" column="price" /> |
| | | <result property="execdate" column="execdate" /> |
| | | <result property="oprMan" column="opr_man" /> |
| | | <result property="modTime" column="mod_time" /> |
| | | <result property="note" column="note" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysPriceVo"> |
| | | select a.opr_time, a.mod_man, a.priceid, a.objectid, a.objecttype, a.price, a.execdate, a.opr_man, a.mod_time, a.note , b.enername |
| | | from sys_price a |
| | | left join sys_energy b on objectid = enerid and objecttype = 1 |
| | | </sql> |
| | | |
| | | <select id="selectSysPriceList" parameterType="SysPrice" resultMap="SysPriceResult"> |
| | | <include refid="selectSysPriceVo"/> |
| | | <where> |
| | | <if test="enername != null and enername != ''"> and enername like concat('%', #{enername}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysPriceById" parameterType="Date" resultMap="SysPriceResult"> |
| | | <include refid="selectSysPriceVo"/> |
| | | where opr_time = #{oprTime} |
| | | </select> |
| | | |
| | | <insert id="insertSysPrice" parameterType="SysPrice"> |
| | | insert into sys_price |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="oprTime != null ">opr_time,</if> |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | <if test="priceid != null ">priceid,</if> |
| | | <if test="objectid != null ">objectid,</if> |
| | | <if test="objecttype != null ">objecttype,</if> |
| | | <if test="price != null ">price,</if> |
| | | <if test="execdate != null ">execdate,</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | <if test="modTime != null ">mod_time,</if> |
| | | <if test="note != null and note != ''">note,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oprTime != null ">#{oprTime},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="priceid != null ">#{priceid},</if> |
| | | <if test="objectid != null ">#{objectid},</if> |
| | | <if test="objecttype != null ">#{objecttype},</if> |
| | | <if test="price != null ">#{price},</if> |
| | | <if test="execdate != null ">#{execdate},</if> |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modTime != null ">#{modTime},</if> |
| | | <if test="note != null and note != ''">#{note},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysPrice" parameterType="SysPrice"> |
| | | update sys_price |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | <if test="priceid != null ">priceid = #{priceid},</if> |
| | | <if test="objectid != null ">objectid = #{objectid},</if> |
| | | <if test="objecttype != null ">objecttype = #{objecttype},</if> |
| | | <if test="price != null ">price = #{price},</if> |
| | | <if test="execdate != null ">execdate = #{execdate},</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man = #{oprMan},</if> |
| | | <if test="modTime != null ">mod_time = #{modTime},</if> |
| | | <if test="note != null and note != ''">note = #{note},</if> |
| | | </trim> |
| | | where opr_time = #{oprTime} |
| | | </update> |
| | | |
| | | <delete id="deleteSysPriceById" parameterType="Date"> |
| | | delete from sys_price where opr_time = #{oprTime} |
| | | </delete> |
| | | |
| | | <delete id="deleteSysPriceByIds" parameterType="String"> |
| | | delete from sys_price where opr_time in |
| | | <foreach item="oprTime" collection="array" open="(" separator="," close=")"> |
| | | #{oprTime} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.enerInfoManage.mapper.SysProductMapper"> |
| | | |
| | | <resultMap type="SysProduct" id="SysProductResult"> |
| | | <result property="productid" column="productid" /> |
| | | <result property="productname" column="productname" /> |
| | | <result property="productsno" column="productsno" /> |
| | | <result property="muid" column="muid" /> |
| | | <result property="superid" column="superid" /> |
| | | <result property="issub" column="issub" /> |
| | | <result property="procofficient" column="procofficient" /> |
| | | <result property="isshow" column="isshow" /> |
| | | <result property="iscpnyproduct" column="iscpnyproduct" /> |
| | | <result property="oprMan" column="opr_man" /> |
| | | <result property="oprTime" column="opr_time" /> |
| | | <result property="modMan" column="mod_man" /> |
| | | <result property="modTime" column="mod_time" /> |
| | | <result property="note" column="note" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysProductVo"> |
| | | select productid, productname, productsno, muid, |
| | | superid, issub, procofficient, |
| | | isshow, iscpnyproduct, opr_man, opr_time, mod_man, mod_time, note,price from sys_product |
| | | </sql> |
| | | |
| | | <select id="selectSysProductList" parameterType="SysProduct" resultMap="SysProductResult"> |
| | | select a.productid, a.productname, productsno, muid, |
| | | b.productname as superidname, |
| | | issub, procofficient, |
| | | isshow, iscpnyproduct, opr_man, opr_time, mod_man, mod_time, note,price from sys_product a |
| | | left join (select productid,productname from sys_product) as b on a.superid = b.productid |
| | | <where> |
| | | <if test="productname != null and productname != ''"> and a.productname like concat('%', #{productname}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysProductById" parameterType="Integer" resultMap="SysProductResult"> |
| | | <include refid="selectSysProductVo"/> |
| | | where productid = #{productid} |
| | | </select> |
| | | |
| | | <insert id="insertSysProduct" parameterType="SysProduct"> |
| | | insert into sys_product |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | opr_time, |
| | | mod_time, |
| | | <if test="productname != null and productname != ''">productname,</if> |
| | | <if test="productsno != null and productsno != ''">productsno,</if> |
| | | <if test="muid != null ">muid,</if> |
| | | <if test="superid != null ">superid,</if> |
| | | <if test="issub != null ">issub,</if> |
| | | <if test="procofficient != null ">procofficient,</if> |
| | | <if test="isshow != null ">isshow,</if> |
| | | <if test="iscpnyproduct != null ">iscpnyproduct,</if> |
| | | <if test="oprMan != null and oprMan != ''">opr_man,</if> |
| | | |
| | | <if test="modMan != null and modMan != ''">mod_man,</if> |
| | | |
| | | <if test="note != null and note != ''">note,</if> |
| | | <if test="price != null and price != ''">price,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | now(), |
| | | now(), |
| | | <if test="productid != null ">#{productid},</if> |
| | | <if test="productname != null and productname != ''">#{productname},</if> |
| | | <if test="productsno != null and productsno != ''">#{productsno},</if> |
| | | <if test="muid != null ">#{muid},</if> |
| | | <if test="superid != null ">#{superid},</if> |
| | | <if test="issub != null ">#{issub},</if> |
| | | <if test="procofficient != null ">#{procofficient},</if> |
| | | <if test="isshow != null ">#{isshow},</if> |
| | | <if test="iscpnyproduct != null ">#{iscpnyproduct},</if> |
| | | <if test="oprMan != null and oprMan != ''">#{oprMan},</if> |
| | | <if test="modMan != null and modMan != ''">#{modMan},</if> |
| | | <if test="note != null and note != ''">#{note},</if> |
| | | <if test="price != null and price != ''">#{price},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysProduct" parameterType="SysProduct"> |
| | | update sys_product |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | mod_time = now(), |
| | | <if test="productname != null and productname != ''">productname = #{productname},</if> |
| | | <if test="productsno != null and productsno != ''">productsno = #{productsno},</if> |
| | | <if test="muid != null ">muid = #{muid},</if> |
| | | <if test="superid != null ">superid = #{superid},</if> |
| | | <if test="issub != null ">issub = #{issub},</if> |
| | | <if test="procofficient != null ">procofficient = #{procofficient},</if> |
| | | <if test="isshow != null ">isshow = #{isshow},</if> |
| | | <if test="iscpnyproduct != null ">iscpnyproduct = #{iscpnyproduct},</if> |
| | | <if test="modMan != null and modMan != ''">mod_man = #{modMan},</if> |
| | | <if test="note != null and note != ''">note = #{note},</if> |
| | | <if test="price != null and price != ''">price = #{price},</if> |
| | | </trim> |
| | | where productid = #{productid} |
| | | </update> |
| | | |
| | | <delete id="deleteSysProductById" parameterType="Integer"> |
| | | delete from sys_product where productid = #{productid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSysProductByIds" parameterType="String"> |
| | | delete from sys_product where productid in |
| | | <foreach item="productid" collection="array" open="(" separator="," close=")"> |
| | | #{productid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectCountByName" parameterType="SysProduct" resultType="Integer"> |
| | | select count(productid) from sys_product where productname = #{productname} |
| | | </select> |
| | | |
| | | <select id="selectCountByNo" parameterType="SysProduct" resultType="Integer"> |
| | | select count(productid) from sys_product where productsno = #{productsno} |
| | | </select> |
| | | |
| | | <select id="selectIdByName" parameterType="SysProduct" resultType="Integer"> |
| | | select productid from sys_product where productname = #{productname} |
| | | </select> |
| | | |
| | | <select id="selectIdByNo" parameterType="SysProduct" resultType="Integer"> |
| | | select productid from sys_product where productsno = #{productsno} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.energy.mapper.EnergyProjectAnnexMapper"> |
| | | |
| | | <resultMap type="EnergyProjectAnnex" id="EnergyProjectAnnexResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="projectId" column="project_id" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="fileSuffix" column="file_suffix" /> |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createOperator" column="create_operator" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateOperator" column="update_operator" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEnergyProjectAnnexVo"> |
| | | select id, project_id, file_name, file_suffix, file_path, del_flage, create_time, create_operator, update_time, update_operator from energy_project_annex |
| | | </sql> |
| | | |
| | | <select id="selectEnergyProjectAnnexList" parameterType="EnergyProjectAnnex" resultMap="EnergyProjectAnnexResult"> |
| | | <include refid="selectEnergyProjectAnnexVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id=#{projectId}</if> |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''"> and file_suffix like concat('%', #{fileSuffix}, '%')</if> |
| | | <if test="filePath != null and filePath != ''"> and file_path like concat('%', #{filePath}, '%')</if> |
| | | <if test="delFlage != null and delFlage != ''"> and del_flage like concat('%', #{delFlage}, '%')</if> |
| | | <if test="createOperator != null and createOperator != ''"> and create_operator like concat('%', #{createOperator}, '%')</if> |
| | | <if test="updateOperator != null and updateOperator != ''"> and update_operator like concat('%', #{updateOperator}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEnergyProjectAnnexById" parameterType="String" resultMap="EnergyProjectAnnexResult"> |
| | | <include refid="selectEnergyProjectAnnexVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyProjectAnnex" parameterType="EnergyProjectAnnex"> |
| | | insert into energy_project_annex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="projectId != null and projectId != ''">project_id,</if> |
| | | <if test="fileName != null and fileName != ''">file_name,</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix,</if> |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="projectId != null and projectId != ''">#{projectId},</if> |
| | | <if test="fileName != null and fileName != ''">#{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">#{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">#{createOperator},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">#{updateOperator},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyProjectAnnex" parameterType="EnergyProjectAnnex"> |
| | | update energy_project_annex |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="projectId != null and projectId != ''">project_id = #{projectId},</if> |
| | | <if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix = #{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator = #{createOperator},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator = #{updateOperator},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEnergyProjectAnnexById" parameterType="String"> |
| | | delete from energy_project_annex where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEnergyProjectAnnexByIds" parameterType="String"> |
| | | delete from energy_project_annex where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.energy.mapper.EnergyProjectMapper"> |
| | | |
| | | <resultMap type="EnergyProject" id="EnergyProjectResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="name" column="name" /> |
| | | <result property="plan" column="plan" /> |
| | | <result property="target" column="target" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="enddTime" column="endd_time" /> |
| | | <result property="people" column="people" /> |
| | | <result property="setTime" column="set_time" /> |
| | | <result property="createOperator" column="create_operator" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateOperator" column="update_operator" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEnergyProjectVo"> |
| | | select id, name, plan, target, start_time, endd_time, people, set_time, create_operator, create_time, update_operator, update_time from energy_project |
| | | </sql> |
| | | |
| | | <select id="selectEnergyProjectList" parameterType="EnergyProject" resultMap="EnergyProjectResult"> |
| | | <include refid="selectEnergyProjectVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="plan != null and plan != ''"> and plan like concat('%', #{plan}, '%')</if> |
| | | <if test="target != null and target != ''"> and target like concat('%', #{target}, '%')</if> |
| | | <if test="startTime != null "> and start_time like concat('%', #{startTime}, '%')</if> |
| | | <if test="enddTime != null "> and endd_time like concat('%', #{enddTime}, '%')</if> |
| | | <if test="people != null and people != ''"> and people like concat('%', #{people}, '%')</if> |
| | | <if test="setTime != null "> and set_time like concat('%', #{setTime}, '%')</if> |
| | | <if test="createOperator != null and createOperator != ''"> and create_operator like concat('%', #{createOperator}, '%')</if> |
| | | <if test="updateOperator != null and updateOperator != ''"> and update_operator like concat('%', #{updateOperator}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEnergyProjectById" parameterType="String" resultMap="EnergyProjectResult"> |
| | | <include refid="selectEnergyProjectVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyProject" parameterType="EnergyProject"> |
| | | insert into energy_project |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="plan != null and plan != ''">plan,</if> |
| | | <if test="target != null and target != ''">target,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="enddTime != null ">endd_time,</if> |
| | | <if test="people != null and people != ''">people,</if> |
| | | <if test="setTime != null ">set_time,</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="plan != null and plan != ''">#{plan},</if> |
| | | <if test="target != null and target != ''">#{target},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="enddTime != null ">#{enddTime},</if> |
| | | <if test="people != null and people != ''">#{people},</if> |
| | | <if test="setTime != null ">#{setTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">#{createOperator},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">#{updateOperator},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyProject" parameterType="EnergyProject"> |
| | | update energy_project |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="plan != null and plan != ''">plan = #{plan},</if> |
| | | <if test="target != null and target != ''">target = #{target},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="enddTime != null ">endd_time = #{enddTime},</if> |
| | | <if test="people != null and people != ''">people = #{people},</if> |
| | | <if test="setTime != null ">set_time = #{setTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator = #{createOperator},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator = #{updateOperator},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEnergyProjectById" parameterType="String"> |
| | | delete from energy_project where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEnergyProjectByIds" parameterType="String"> |
| | | delete from energy_project where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.energy.mapper.EnergyReportAnnexMapper"> |
| | | |
| | | <resultMap type="EnergyReportAnnex" id="EnergyReportAnnexResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="reportId" column="report_id" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="fileSuffix" column="file_suffix" /> |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEnergyReportAnnexVo"> |
| | | select id, report_id, file_name, file_suffix, file_path, del_flage, create_time, create_by, update_time, update_by from energy_report_annex |
| | | </sql> |
| | | |
| | | <select id="selectEnergyReportAnnexList" parameterType="EnergyReportAnnex" resultMap="EnergyReportAnnexResult"> |
| | | <include refid="selectEnergyReportAnnexVo"/> |
| | | <where> |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''"> and file_suffix like concat('%', #{fileSuffix}, '%')</if> |
| | | <if test="filePath != null and filePath != ''"> and file_path like concat('%', #{filePath}, '%')</if> |
| | | <if test="delFlage != null and delFlage != ''"> and del_flage like concat('%', #{delFlage}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEnergyReportAnnexById" parameterType="String" resultMap="EnergyReportAnnexResult"> |
| | | <include refid="selectEnergyReportAnnexVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyReportAnnex" parameterType="EnergyReportAnnex"> |
| | | insert into energy_report_annex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="reportId != null and reportId != ''">report_id,</if> |
| | | <if test="fileName != null and fileName != ''">file_name,</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix,</if> |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="reportId != null and reportId != ''">#{reportId},</if> |
| | | <if test="fileName != null and fileName != ''">#{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">#{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyReportAnnex" parameterType="EnergyReportAnnex"> |
| | | update energy_report_annex |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="reportId != null and reportId != ''">report_id = #{reportId},</if> |
| | | <if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix = #{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEnergyReportAnnexById" parameterType="String"> |
| | | delete from energy_report_annex where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEnergyReportAnnexByIds" parameterType="String"> |
| | | delete from energy_report_annex where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.energy.mapper.EnergyReportMapper"> |
| | | |
| | | <resultMap type="EnergyReport" id="EnergyReportResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="name" column="name" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="enddTime" column="endd_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="bak" column="bak" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEnergyReportVo"> |
| | | select id, name, to_char(start_time,'YYYY-MM-DD') as start_time, to_char(endd_time,'YYYY-MM-DD') as endd_time, create_by, create_time, update_by, update_time, bak from energy_report |
| | | </sql> |
| | | |
| | | <select id="selectEnergyReportList" parameterType="EnergyReport" resultMap="EnergyReportResult"> |
| | | <include refid="selectEnergyReportVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEnergyReportById" parameterType="String" resultMap="EnergyReportResult"> |
| | | <include refid="selectEnergyReportVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEnergyReport" parameterType="EnergyReport"> |
| | | insert into energy_report |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="enddTime != null ">endd_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="bak != null and bak != ''">bak,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="enddTime != null ">#{enddTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="bak != null and bak != ''">#{bak},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEnergyReport" parameterType="EnergyReport"> |
| | | update energy_report |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="enddTime != null ">endd_time = #{enddTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="bak != null and bak != ''">bak = #{bak},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEnergyReportById" parameterType="String"> |
| | | delete from energy_report where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEnergyReportByIds" parameterType="String"> |
| | | delete from energy_report where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.energyExamine.mapper.AssessmentIndexMapper"> |
| | | |
| | | <resultMap type="AssessmentIndex" id="AssessmentIndexResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="modeNodeId" column="mode_node_id" /> |
| | | <result property="indexId" column="index_id" /> |
| | | <result property="plan" column="plan" /> |
| | | <result property="benchmarking" column="benchmarking" /> |
| | | <result property="benchRange" column="bench_range" /> |
| | | <result property="benchType" column="bench_type" /> |
| | | <result property="dualControl" column="dual_control" /> |
| | | <result property="customStandard" column="custom_standard" /> |
| | | <result property="customVal" column="custom_val" /> |
| | | <result property="modename" column="modename" /> |
| | | <result property="indexname" column="indexname" /> |
| | | <result property="jldw" column="jldw" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectAssessmentIndexVo"> |
| | | select id, mode_node_id, index_id, plan, benchmarking, bench_range, bench_type, dual_control, custom_standard, custom_val from assessment_Index |
| | | </sql> |
| | | |
| | | <select id="selectAssessmentIndexList" parameterType="AssessmentIndex" resultMap="AssessmentIndexResult"> |
| | | <include refid="selectAssessmentIndexVo"/> |
| | | <where> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectAssessmentIndexListByMode" parameterType="AssessmentIndex" resultMap="AssessmentIndexResult"> |
| | | SELECT ID, |
| | | mode_node_id, |
| | | a.index_id, |
| | | plan, |
| | | benchmarking, |
| | | bench_range, |
| | | bench_type, |
| | | dual_control, |
| | | custom_standard, |
| | | custom_val, |
| | | b.name as modename, |
| | | c.name as indexname, |
| | | d.dict_label as jldw |
| | | FROM |
| | | assessment_Index a,model_node b,energy_index c,sys_dict_data d |
| | | WHERE |
| | | a.mode_node_id IN ( SELECT node_id FROM model_node WHERE address LIKE ( SELECT address FROM |
| | | model_node WHERE node_id = #{modeNodeId} ) |
| | | <if test='eierarchyFlag=="ALL"'> |
| | | || '%' |
| | | </if> |
| | | ) |
| | | and a.mode_node_id = b.node_id |
| | | and a.index_id = c.index_id |
| | | and d.dict_type='sys_unit' |
| | | and c.unit_id = d.dict_value |
| | | </select> |
| | | |
| | | <select id="selectAssessmentIndexById" parameterType="String" resultMap="AssessmentIndexResult"> |
| | | SELECT ID, |
| | | mode_node_id, |
| | | a.index_id, |
| | | plan, |
| | | benchmarking, |
| | | bench_range, |
| | | bench_type, |
| | | dual_control, |
| | | custom_standard, |
| | | custom_val, |
| | | b.name as modename, |
| | | c.name as indexname, |
| | | d.dict_label as jldw |
| | | FROM |
| | | assessment_Index a,model_node b,energy_index c,sys_dict_data d |
| | | WHERE |
| | | a.id = #{id} |
| | | and a.mode_node_id = b.node_id |
| | | and a.index_id = c.index_id |
| | | and d.dict_type='sys_unit' |
| | | and c.unit_id = d.dict_value |
| | | </select> |
| | | |
| | | <insert id="insertAssessmentIndex" parameterType="AssessmentIndex"> |
| | | insert into assessmentIndex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="modeNodeId != null and modeNodeId != ''">mode_node_id,</if> |
| | | <if test="indexId != null and indexId != ''">index_id,</if> |
| | | <if test="plan != null and plan != ''">plan,</if> |
| | | <if test="benchmarking != null and benchmarking != ''">benchmarking,</if> |
| | | <if test="benchRange != null ">bench_range,</if> |
| | | <if test="benchType != null ">bench_type,</if> |
| | | <if test="dualControl != null and dualControl != ''">dual_control,</if> |
| | | <if test="customStandard != null and customStandard != ''">custom_standard,</if> |
| | | <if test="customVal != null ">custom_val,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="modeNodeId != null and modeNodeId != ''">#{modeNodeId},</if> |
| | | <if test="indexId != null and indexId != ''">#{indexId},</if> |
| | | <if test="plan != null and plan != ''">#{plan},</if> |
| | | <if test="benchmarking != null and benchmarking != ''">#{benchmarking},</if> |
| | | <if test="benchRange != null ">#{benchRange},</if> |
| | | <if test="benchType != null ">#{benchType},</if> |
| | | <if test="dualControl != null and dualControl != ''">#{dualControl},</if> |
| | | <if test="customStandard != null and customStandard != ''">#{customStandard},</if> |
| | | <if test="customVal != null ">#{customVal},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateAssessmentIndex" parameterType="AssessmentIndex"> |
| | | update assessment_Index |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="modeNodeId != null and modeNodeId != ''">mode_node_id = #{modeNodeId},</if> |
| | | <if test="indexId != null and indexId != ''">index_id = #{indexId},</if> |
| | | <if test="plan != null and plan != ''">plan = #{plan},</if> |
| | | <if test="benchmarking != null and benchmarking != ''">benchmarking = #{benchmarking},</if> |
| | | <if test="benchRange != null ">bench_range = #{benchRange},</if> |
| | | <if test="benchType != null ">bench_type = #{benchType},</if> |
| | | <if test="dualControl != null and dualControl != ''">dual_control = #{dualControl},</if> |
| | | <if test="customStandard != null and customStandard != ''">custom_standard = #{customStandard},</if> |
| | | <if test="customVal != null ">custom_val = #{customVal},</if> |
| | | <if test="plan == null or plan == ''">plan = false,</if> |
| | | <if test="benchmarking == null or benchmarking == ''">benchmarking = false,</if> |
| | | <if test="dualControl == null or dualControl == ''">dual_control = false,</if> |
| | | <if test="customStandard == null or customStandard == ''">custom_standard = false,</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteAssessmentIndexById" parameterType="String"> |
| | | delete from assessment_Index where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteAssessmentIndexByIds" parameterType="String"> |
| | | delete from assessment_Index where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | <insert id="batchAssessIndex"> |
| | | insert into assessment_Index(id, mode_node_id, index_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.id},#{item.modeNodeId},#{item.indexId}) |
| | | </foreach> |
| | | </insert> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.facility.mapper.FacilityAnnexMapper"> |
| | | |
| | | <resultMap type="FacilityAnnex" id="FacilityAnnexResult"> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="id" column="id" /> |
| | | <result property="facilityId" column="facility_id" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="filesuffix" column="file_suffix" /> |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectFacilityAnnexVo"> |
| | | select create_time, create_by, update_time, update_by, id, facility_id, file_name, file_suffix, file_path, del_flage from facility_annex |
| | | </sql> |
| | | |
| | | <select id="selectFacilityAnnexList" parameterType="FacilityAnnex" resultMap="FacilityAnnexResult"> |
| | | <include refid="selectFacilityAnnexVo"/> |
| | | <where> |
| | | del_flage='N' |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="facilityId != null and facilityId != ''"> and facility_id=#{facilityId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectFacilityAnnexById" parameterType="Date" resultMap="FacilityAnnexResult"> |
| | | <include refid="selectFacilityAnnexVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertFacilityAnnex" parameterType="FacilityAnnex"> |
| | | insert into facility_annex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="facilityId != null and facilityId != ''">facility_id,</if> |
| | | <if test="fileName != null and fileName != ''">file_name,</if> |
| | | <if test="filesuffix != null and filesuffix != ''">file_suffix,</if> |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="facilityId != null and facilityId != ''">#{facilityId},</if> |
| | | <if test="fileName != null and fileName != ''">#{fileName},</if> |
| | | <if test="filesuffix != null and filesuffix != ''">#{filesuffix},</if> |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateFacilityAnnex" parameterType="FacilityAnnex"> |
| | | update facility_annex |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="id != null and id != ''">id = #{id},</if> |
| | | <if test="facilityId != null and facilityId != ''">facility_id = #{facilityId},</if> |
| | | <if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
| | | <if test="filesuffix != null and filesuffix != ''">file_suffix = #{filesuffix},</if> |
| | | <if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteFacilityAnnexById" parameterType="Date"> |
| | | <!--delete from facility_annex where create_time = #{createTime}--> |
| | | update facility_annex set del_flage='Y',update_time=now() where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteFacilityAnnexByIds" parameterType="String"> |
| | | <!--delete from facility_annex where create_time in--> |
| | | update facility_annex set del_flage='Y',update_time=now() where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.facility.mapper.FacilityArchivesMapper"> |
| | | |
| | | <resultMap type="FacilityArchives" id="FacilityArchivesResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="facilityName" column="facility_name" /> |
| | | <result property="facilityType" column="facility_type" /> |
| | | <result property="branchFactory" column="branch_factory" /> |
| | | <result property="istallationLocationn" column="installation_location" /> |
| | | <result property="facilityGrade" column="facility_grade" /> |
| | | <result property="ratedPower" column="rated_power" /> |
| | | <result property="productionDate" column="production_date" /> |
| | | <result property="putrunDate" column="putrun_date" /> |
| | | <result property="manufacturer" column="manufacturer" /> |
| | | <result property="personCharge" column="person_charge" /> |
| | | <result property="technicalData" column="technical_data" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="checkCycle" column="check_cycle" /> |
| | | <result property="reminderCycle" column="reminder_cycle" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="txflage" column="txflage" /> |
| | | <result property="pointFlag" column="point_flag" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectFacilityArchivesVo"> |
| | | select id, code, facility_name, facility_type, branch_factory, installation_location, facility_grade, rated_power, production_date, putrun_date, manufacturer, person_charge, technical_data, start_time, check_cycle, reminder_cycle, remark, create_time, create_by, update_time, update_by,point_flag,(start_time+check_cycle-reminder_cycle)<=current_date as txflage from facility_archives |
| | | </sql> |
| | | |
| | | <select id="selectFacilityArchivesList" parameterType="FacilityArchives" resultMap="FacilityArchivesResult"> |
| | | <include refid="selectFacilityArchivesVo"/> |
| | | <where> |
| | | <if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if> |
| | | <if test="facilityName != null and facilityName != ''"> and facility_name like concat('%', #{facilityName}, '%')</if> |
| | | <if test="manufacturer != null and manufacturer != ''"> and manufacturer like concat('%', #{manufacturer}, '%')</if> |
| | | <if test="facilityType != null and facilityType != ''"> and facility_type = #{facilityType}</if> |
| | | <if test="branchFactory != null and branchFactory != ''"> and branch_factory = #{branchFactory}</if> |
| | | <if test="istallationLocationn != null and istallationLocationn != ''"> and installation_location like concat('%', #{istallationLocationn}, '%')</if> |
| | | <if test="facilityGrade != null and facilityGrade != ''"> and facility_grade = #{facilityGrade}</if> |
| | | <if test="ratedPower != null and ratedPower != ''"> and to_number(rated_power,'9999999999') >= to_number(#{ratedPower},'9999999999')</if> |
| | | </where> |
| | | order by code |
| | | </select> |
| | | |
| | | <select id="selectFacilityArchivesById" parameterType="String" resultMap="FacilityArchivesResult"> |
| | | <include refid="selectFacilityArchivesVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertFacilityArchives" parameterType="FacilityArchives"> |
| | | insert into facility_archives |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="facilityName != null and facilityName != ''">facility_name,</if> |
| | | <if test="facilityType != null and facilityType != ''">facility_type,</if> |
| | | <if test="branchFactory != null and branchFactory != ''">branch_factory,</if> |
| | | <if test="istallationLocationn != null and istallationLocationn != ''">installation_location,</if> |
| | | <if test="facilityGrade != null and facilityGrade != ''">facility_grade,</if> |
| | | <if test="ratedPower != null and ratedPower != ''">rated_power,</if> |
| | | <if test="productionDate != null ">production_date,</if> |
| | | <if test="putrunDate != null ">putrun_date,</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer,</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge,</if> |
| | | <if test="technicalData != null and technicalData != ''">technical_data,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="checkCycle != null ">check_cycle,</if> |
| | | <if test="reminderCycle != null ">reminder_cycle,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | <if test="pointFlag != null and pointFlag != ''">point_flag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="facilityName != null and facilityName != ''">#{facilityName},</if> |
| | | <if test="facilityType != null and facilityType != ''">#{facilityType},</if> |
| | | <if test="branchFactory != null and branchFactory != ''">#{branchFactory},</if> |
| | | <if test="istallationLocationn != null and istallationLocationn != ''">#{istallationLocationn},</if> |
| | | <if test="facilityGrade != null and facilityGrade != ''">#{facilityGrade},</if> |
| | | <if test="ratedPower != null and ratedPower != ''">#{ratedPower},</if> |
| | | <if test="productionDate != null ">#{productionDate},</if> |
| | | <if test="putrunDate != null ">#{putrunDate},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">#{personCharge},</if> |
| | | <if test="technicalData != null and technicalData != ''">#{technicalData},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="checkCycle != null ">#{checkCycle},</if> |
| | | <if test="reminderCycle != null ">#{reminderCycle},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | <if test="pointFlag != null and pointFlag != ''">#{pointFlag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateFacilityArchives" parameterType="FacilityArchives"> |
| | | update facility_archives |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="facilityName != null and facilityName != ''">facility_name = #{facilityName},</if> |
| | | <if test="facilityType != null and facilityType != ''">facility_type = #{facilityType},</if> |
| | | <if test="branchFactory != null and branchFactory != ''">branch_factory = #{branchFactory},</if> |
| | | <if test="istallationLocationn != null and istallationLocationn != ''">installation_location = #{istallationLocationn},</if> |
| | | <if test="facilityGrade != null and facilityGrade != ''">facility_grade = #{facilityGrade},</if> |
| | | <if test="ratedPower != null and ratedPower != ''">rated_power = #{ratedPower},</if> |
| | | <if test="productionDate != null ">production_date = #{productionDate},</if> |
| | | <if test="putrunDate != null ">putrun_date = #{putrunDate},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer = #{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge = #{personCharge},</if> |
| | | <if test="technicalData != null and technicalData != ''">technical_data = #{technicalData},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="checkCycle != null ">check_cycle = #{checkCycle},</if> |
| | | <if test="reminderCycle != null ">reminder_cycle = #{reminderCycle},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="pointFlag != null and pointFlag != ''">point_flag = #{pointFlag},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteFacilityArchivesById" parameterType="String"> |
| | | delete from facility_archives where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteFacilityArchivesByIds" parameterType="String"> |
| | | delete from facility_archives where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | <update id="resetFacilityArchivesByIds" parameterType="String" > |
| | | update facility_archives |
| | | set start_time = NOW() |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="selectFacilityArchivesByCode" parameterType="FacilityArchives" resultMap="FacilityArchivesResult"> |
| | | <include refid="selectFacilityArchivesVo"/> |
| | | where code = #{code} |
| | | <if test="id != null and id != ''"> and id != #{id} or id is null</if> |
| | | </select> |
| | | <select id="excelFacilityArchivesList" parameterType="FacilityArchives" resultMap="FacilityArchivesResult"> |
| | | select id, code, facility_name, fun_getDiceData('facility_type',facility_type) as facility_type, |
| | | fun_getDiceData('branch_factory',branch_factory) as branch_factory, installation_location, |
| | | fun_getDiceData('facility_grade',facility_grade) as facility_grade, rated_power, to_char(production_date,'YYYY-MM-DD') as production_date, |
| | | to_char(putrun_date,'YYYY-MM-DD') as putrun_date, manufacturer, person_charge, |
| | | technical_data, start_time, check_cycle, reminder_cycle, remark, create_time, create_by, |
| | | update_time, update_by |
| | | from facility_archives |
| | | <where> |
| | | <if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if> |
| | | <if test="facilityName != null and facilityName != ''"> and facility_name like concat('%', #{facilityName}, '%')</if> |
| | | <if test="manufacturer != null and manufacturer != ''"> and manufacturer like concat('%', #{manufacturer}, '%')</if> |
| | | <if test="facilityType != null and facilityType != ''"> and facility_type = #{facilityType}</if> |
| | | <if test="branchFactory != null and branchFactory != ''"> and branch_factory = #{branchFactory}</if> |
| | | <if test="istallationLocationn != null and istallationLocationn != ''"> and installation_location like concat('%', #{istallationLocationn}, '%')</if> |
| | | <if test="facilityGrade != null and facilityGrade != ''"> and facility_grade = #{facilityGrade}</if> |
| | | <if test="ratedPower != null and ratedPower != ''"> and to_number(rated_power,'9999999999') >= #{ratedPower}</if> |
| | | </where> |
| | | order by code |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.meter.mapper.MeterAnnexMapper"> |
| | | |
| | | <resultMap type="MeterAnnex" id="MeterAnnexResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="implementId" column="implement_id" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="fileSuffix" column="file_suffix" /> |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMeterAnnexVo"> |
| | | select id, implement_id, file_name, file_suffix, file_path, del_flage, create_time, create_by, update_time, update_by from meter_annex |
| | | </sql> |
| | | |
| | | <select id="selectMeterAnnexList" parameterType="MeterAnnex" resultMap="MeterAnnexResult"> |
| | | <include refid="selectMeterAnnexVo"/> |
| | | <where> |
| | | del_flage='N' |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="implementId != null and implementId != ''"> and implement_id=#{implementId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMeterAnnexById" parameterType="String" resultMap="MeterAnnexResult"> |
| | | <include refid="selectMeterAnnexVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertMeterAnnex" parameterType="MeterAnnex"> |
| | | insert into meter_annex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="implementId != null and implementId != ''">implement_id,</if> |
| | | <if test="fileName != null and fileName != ''">file_name,</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix,</if> |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="implementId != null and implementId != ''">#{implementId},</if> |
| | | <if test="fileName != null and fileName != ''">#{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">#{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMeterAnnex" parameterType="MeterAnnex"> |
| | | update meter_annex |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="implementId != null and implementId != ''">implement_id = #{implementId},</if> |
| | | <if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix = #{fileSuffix},</if> |
| | | <if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMeterAnnexById" parameterType="String"> |
| | | <!--delete from meter_annex where id = #{id}--> |
| | | update meter_annex set del_flage='Y' where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMeterAnnexByIds" parameterType="String"> |
| | | <!--delete from meter_annex where id in --> |
| | | update meter_annex set del_flage='Y' where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.meter.mapper.MeterImplementCountMapper"> |
| | | |
| | | <resultMap type="MeterImplementCount" id="MeterImplementCountResult"> |
| | | <result property="code" column="code" /> |
| | | <result property="meterName" column="meter_name" /> |
| | | <result property="meterType" column="meter_type" /> |
| | | <result property="modelNumber" column="model_number" /> |
| | | <result property="measureRange" column="measure_range" /> |
| | | <result property="id" column="id" /> |
| | | <result property="manufacturer" column="manufacturer" /> |
| | | <result property="personCharge" column="person_charge" /> |
| | | <result property="installactionLocation" column="installaction_location" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="checkCycle" column="check_cycle" /> |
| | | <result property="reminderCycle" column="reminder_cycle" /> |
| | | <result property="meterStatus" column="meter_status" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="txflage" column="txflage" /> |
| | | <result property="putrunTime" column="putrun_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMeterImplementCountVo"> |
| | | select id, code, meter_name, meter_type, model_number, measure_range, manufacturer, person_charge, installaction_location, start_time, check_cycle, reminder_cycle, meter_status, del_flage, remark, putrun_time, create_time, create_by, update_time, update_by,(start_time+check_cycle-reminder_cycle)<=current_date as txflage from meter_implement |
| | | </sql> |
| | | |
| | | <select id="selectMeterImplementCountList" parameterType="MeterImplementCount" resultMap="MeterImplementCountResult"> |
| | | <include refid="selectMeterImplementCountVo"/> |
| | | <where> |
| | | <if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if> |
| | | <if test="meterName != null and meterName != ''"> and meter_name like concat('%', #{meterName}, '%')</if> |
| | | <if test="meterType != null and meterType != ''"> and meter_type = #{meterType}</if> |
| | | <if test="measureRange != null and measureRange != ''"> and measure_range like concat('%', #{measureRange}, '%')</if> |
| | | <if test="manufacturer != null and manufacturer != ''"> and manufacturer like concat('%', #{manufacturer}, '%')</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''"> and installaction_location like concat('%', #{installactionLocation}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMeterImplementCountById" parameterType="String" resultMap="MeterImplementCountResult"> |
| | | <include refid="selectMeterImplementCountVo"/> |
| | | where code = #{code} |
| | | </select> |
| | | |
| | | <insert id="insertMeterImplementCount" parameterType="MeterImplementCount"> |
| | | insert into meter_implement |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="meterName != null and meterName != ''">meter_name,</if> |
| | | <if test="meterType != null and meterType != ''">meter_type,</if> |
| | | <if test="modelNumber != null and modelNumber != ''">model_number,</if> |
| | | <if test="measureRange != null and measureRange != ''">measure_range,</if> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer,</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge,</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">installaction_location,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="checkCycle != null ">check_cycle,</if> |
| | | <if test="reminderCycle != null ">reminder_cycle,</if> |
| | | <if test="meterStatus != null and meterStatus != ''">meter_status,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="meterName != null and meterName != ''">#{meterName},</if> |
| | | <if test="meterType != null and meterType != ''">#{meterType},</if> |
| | | <if test="modelNumber != null and modelNumber != ''">#{modelNumber},</if> |
| | | <if test="measureRange != null and measureRange != ''">#{measureRange},</if> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">#{personCharge},</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">#{installactionLocation},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="checkCycle != null ">#{checkCycle},</if> |
| | | <if test="reminderCycle != null ">#{reminderCycle},</if> |
| | | <if test="meterStatus != null and meterStatus != ''">#{meterStatus},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMeterImplementCount" parameterType="MeterImplementCount"> |
| | | update meter_implement |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="meterName != null and meterName != ''">meter_name = #{meterName},</if> |
| | | <if test="meterType != null and meterType != ''">meter_type = #{meterType},</if> |
| | | <if test="modelNumber != null and modelNumber != ''">model_number = #{modelNumber},</if> |
| | | <if test="measureRange != null and measureRange != ''">measure_range = #{measureRange},</if> |
| | | <if test="id != null and id != ''">id = #{id},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer = #{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge = #{personCharge},</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">installaction_location = #{installactionLocation},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="checkCycle != null ">check_cycle = #{checkCycle},</if> |
| | | <if test="reminderCycle != null ">reminder_cycle = #{reminderCycle},</if> |
| | | <if test="meterStatus != null and meterStatus != ''">meter_status = #{meterStatus},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | </trim> |
| | | where code = #{code} |
| | | </update> |
| | | |
| | | <delete id="deleteMeterImplementCountById" parameterType="String"> |
| | | delete from meter_implement where code = #{code} |
| | | </delete> |
| | | |
| | | <!-- <delete id="deleteMeterImplementCountByIds" parameterType="String"> |
| | | delete from meter_implement where code in |
| | | <foreach item="code" collection="array" open="(" separator="," close=")"> |
| | | #{code} |
| | | </foreach> |
| | | </delete>--> |
| | | |
| | | <update id="deleteMeterImplementCountByIds" parameterType="String" > |
| | | update meter_implement |
| | | set start_time = NOW() |
| | | where code in |
| | | <foreach item="code" collection="array" open="(" separator="," close=")"> |
| | | #{code} |
| | | </foreach> |
| | | </update> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.meter.mapper.MeterImplementMapper"> |
| | | |
| | | <resultMap type="MeterImplement" id="MeterImplementResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="meterName" column="meter_name" /> |
| | | <result property="meterType" column="meter_type" /> |
| | | <result property="modelNumber" column="model_number" /> |
| | | <result property="measureRange" column="measure_range" /> |
| | | <result property="manufacturer" column="manufacturer" /> |
| | | <result property="personCharge" column="person_charge" /> |
| | | <result property="installactionLocation" column="installaction_location" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="checkCycle" column="check_cycle" /> |
| | | <result property="reminderCycle" column="reminder_cycle" /> |
| | | <result property="meterStatus" column="meter_status" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="txflage" column="txflage" /> |
| | | <result property="putrunTime" column="putrun_time" /> |
| | | </resultMap> |
| | | <resultMap type="MeterImplementExcel" id="MeterImplementResultExcel"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="meterName" column="meter_name" /> |
| | | <result property="meterType" column="meter_type" /> |
| | | <result property="modelNumber" column="model_number" /> |
| | | <result property="measureRange" column="measure_range" /> |
| | | <result property="manufacturer" column="manufacturer" /> |
| | | <result property="personCharge" column="person_charge" /> |
| | | <result property="installactionLocation" column="installaction_location" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="checkCycle" column="check_cycle" /> |
| | | <result property="reminderCycle" column="reminder_cycle" /> |
| | | <result property="meterStatus" column="meter_status" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | </resultMap> |
| | | <sql id="selectMeterImplementVo"> |
| | | select id, code, meter_name, meter_type, model_number, measure_range, manufacturer, person_charge, installaction_location, start_time, check_cycle, reminder_cycle, meter_status, del_flage, remark, putrun_time,create_time, create_by, update_time, update_by,(start_time+check_cycle-reminder_cycle)<=current_date as txflage from meter_implement |
| | | </sql> |
| | | |
| | | <select id="selectMeterImplementList" parameterType="MeterImplement" resultMap="MeterImplementResult"> |
| | | <include refid="selectMeterImplementVo"/> |
| | | <where> |
| | | del_flage='N' |
| | | <if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if> |
| | | <if test="meterName != null and meterName != ''"> and meter_name like concat('%', #{meterName}, '%')</if> |
| | | <if test="meterType != null and meterType != ''"> and meter_type = #{meterType}</if> |
| | | <if test="measureRange != null and measureRange != ''"> and measure_range like concat('%', #{measureRange}, '%')</if> |
| | | <if test="manufacturer != null and manufacturer != ''"> and manufacturer like concat('%', #{manufacturer}, '%')</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''"> and installaction_location like concat('%', #{installactionLocation}, '%')</if> |
| | | </where> |
| | | order by code |
| | | </select> |
| | | |
| | | <select id="exectMeterImplementList" parameterType="MeterImplement" resultMap="MeterImplementResultExcel"> |
| | | select id, code, meter_name, fun_getDiceData('sys_device_type',meter_status) as meter_type, model_number, measure_range, manufacturer, |
| | | person_charge, installaction_location, to_char(start_time,'YYYY-MM-DD') start_time, check_cycle, reminder_cycle, fun_getDiceData('meter_status',meter_status) as meter_status, |
| | | del_flage, remark, create_time, create_by, update_time, update_by |
| | | from meter_implement |
| | | <where> |
| | | del_flage='N' |
| | | <if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if> |
| | | <if test="meterName != null and meterName != ''"> and meter_name like concat('%', #{meterName}, '%')</if> |
| | | <if test="meterType != null and meterType != ''"> and meter_type = #{meterType}</if> |
| | | <if test="measureRange != null and measureRange != ''"> and measure_range like concat('%', #{measureRange}, '%')</if> |
| | | <if test="manufacturer != null and manufacturer != ''"> and manufacturer like concat('%', #{manufacturer}, '%')</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''"> and installaction_location like concat('%', #{installactionLocation}, '%')</if> |
| | | </where> |
| | | order by code |
| | | </select> |
| | | |
| | | <select id="selectMeterImplementById" parameterType="String" resultMap="MeterImplementResult"> |
| | | <include refid="selectMeterImplementVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectMeterImplementByCode" parameterType="MeterImplement" resultMap="MeterImplementResult"> |
| | | <include refid="selectMeterImplementVo"/> |
| | | where code = #{code} |
| | | <if test="id != null and id != ''"> and id != #{id} or id is null</if> |
| | | </select> |
| | | |
| | | <select id="listMeterImplementByIds" resultMap="MeterImplementResult"> |
| | | SELECT |
| | | "id", |
| | | code, |
| | | meter_name, |
| | | meter_type, |
| | | meter_status, |
| | | installaction_location |
| | | FROM |
| | | "meter_implement" |
| | | WHERE |
| | | id IN |
| | | <foreach collection="meterIdList" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <insert id="insertMeterImplement" parameterType="MeterImplement"> |
| | | insert into meter_implement |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="meterName != null and meterName != ''">meter_name,</if> |
| | | <if test="meterType != null and meterType != ''">meter_type,</if> |
| | | <if test="modelNumber != null and modelNumber != ''">model_number,</if> |
| | | <if test="measureRange != null and measureRange != ''">measure_range,</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer,</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge,</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">installaction_location,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="putrunTime != null ">putrun_time,</if> |
| | | <if test="checkCycle != null ">check_cycle,</if> |
| | | <if test="reminderCycle != null ">reminder_cycle,</if> |
| | | <if test="meterStatus != null and meterStatus != ''">meter_status,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="meterName != null and meterName != ''">#{meterName},</if> |
| | | <if test="meterType != null and meterType != ''">#{meterType},</if> |
| | | <if test="modelNumber != null and modelNumber != ''">#{modelNumber},</if> |
| | | <if test="measureRange != null and measureRange != ''">#{measureRange},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">#{personCharge},</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">#{installactionLocation},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="putrunTime != null ">#{putrunTime},</if> |
| | | <if test="checkCycle != null ">#{checkCycle},</if> |
| | | <if test="reminderCycle != null ">#{reminderCycle},</if> |
| | | <if test="meterStatus != null and meterStatus != ''">#{meterStatus},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMeterImplement" parameterType="MeterImplement"> |
| | | update meter_implement |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="meterName != null and meterName != ''">meter_name = #{meterName},</if> |
| | | <if test="meterType != null and meterType != ''">meter_type = #{meterType},</if> |
| | | <if test="modelNumber != null and modelNumber != ''">model_number = #{modelNumber},</if> |
| | | <if test="measureRange != null and measureRange != ''">measure_range = #{measureRange},</if> |
| | | <if test="manufacturer != null and manufacturer != ''">manufacturer = #{manufacturer},</if> |
| | | <if test="personCharge != null and personCharge != ''">person_charge = #{personCharge},</if> |
| | | <if test="installactionLocation != null and installactionLocation != ''">installaction_location = #{installactionLocation},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="putrunTime != null ">putrun_time = #{putrunTime},</if> |
| | | <if test="checkCycle != null ">check_cycle = #{checkCycle},</if> |
| | | <if test="reminderCycle != null ">reminder_cycle = #{reminderCycle},</if> |
| | | <if test="meterStatus != null and meterStatus != ''">meter_status = #{meterStatus},</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMeterImplementById" parameterType="String"> |
| | | <!--update meter_implement set del_flage='Y' where id = #{id} å
ç¨ç©çå é¤ï¼åææå¿
è¦åæå¼é»è¾å é¤--> |
| | | delete from meter_implement where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMeterImplementByIds" parameterType="String"> |
| | | <!--update meter_implement set del_flage='Y' where id in å
ç¨ç©çå é¤ï¼åææå¿
è¦åæå¼é»è¾å é¤--> |
| | | delete from meter_implement where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.policy.mapper.PolicyAnnexMapper"> |
| | | |
| | | <resultMap type="PolicyAnnex" id="PolicyAnnexResult"> |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="delFlage" column="del_flage" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createOperator" column="create_operator" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateOperator" column="update_operator" /> |
| | | <result property="id" column="id" /> |
| | | <result property="regulationsId" column="regulations_id" /> |
| | | <result property="fileName" column="file_name" /> |
| | | <result property="fileSuffix" column="file_suffix" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPolicyAnnexVo"> |
| | | select file_path, del_flage, create_time, create_operator, update_time, update_operator, id, regulations_id, file_name, file_suffix from policy_annex |
| | | </sql> |
| | | |
| | | <select id="selectPolicyAnnexList" parameterType="PolicyAnnex" resultMap="PolicyAnnexResult"> |
| | | <include refid="selectPolicyAnnexVo"/> |
| | | <where> |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPolicyAnnexById" parameterType="String" resultMap="PolicyAnnexResult"> |
| | | <include refid="selectPolicyAnnexVo"/> |
| | | where file_path = #{filePath} |
| | | </select> |
| | | |
| | | <insert id="insertPolicyAnnex" parameterType="PolicyAnnex"> |
| | | insert into policy_annex |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="delFlage != null and delFlage != ''">del_flage,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator,</if> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="regulationsId != null and regulationsId != ''">regulations_id,</if> |
| | | <if test="fileName != null and fileName != ''">file_name,</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="delFlage != null and delFlage != ''">#{delFlage},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">#{createOperator},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">#{updateOperator},</if> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="regulationsId != null and regulationsId != ''">#{regulationsId},</if> |
| | | <if test="fileName != null and fileName != ''">#{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">#{fileSuffix},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePolicyAnnex" parameterType="PolicyAnnex"> |
| | | update policy_annex |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlage != null and delFlage != ''">del_flage = #{delFlage},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="createOperator != null and createOperator != ''">create_operator = #{createOperator},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="updateOperator != null and updateOperator != ''">update_operator = #{updateOperator},</if> |
| | | <if test="id != null and id != ''">id = #{id},</if> |
| | | <if test="regulationsId != null and regulationsId != ''">regulations_id = #{regulationsId},</if> |
| | | <if test="fileName != null and fileName != ''">file_name = #{fileName},</if> |
| | | <if test="fileSuffix != null and fileSuffix != ''">file_suffix = #{fileSuffix},</if> |
| | | </trim> |
| | | where file_path = #{filePath} |
| | | </update> |
| | | |
| | | <delete id="deletePolicyAnnexById" parameterType="String"> |
| | | delete from policy_annex where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deletePolicyAnnexByIds" parameterType="String"> |
| | | delete from policy_annex where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.policy.mapper.PolicyRegulationsMapper"> |
| | | <resultMap type="PolicyRegulations" id="PolicyRegulationsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="titleName" column="title_name" /> |
| | | <result property="content" column="content" /> |
| | | <result property="sort" column="sort" /> |
| | | <result property="creationTime" column="creation_time" /> |
| | | <result property="operator" column="operator" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPolicyRegulationsVo"> |
| | | select id,title_name,content,fun_getDiceData('policy_sort',sort)as sort,to_char(creation_time,'YYYY-MM-DD') creation_time,operator from policy_regulations |
| | | </sql> |
| | | |
| | | <select id="selectPolicyRegulationsList" parameterType="PolicyRegulations" resultMap="PolicyRegulationsResult"> |
| | | <include refid="selectPolicyRegulationsVo"/> |
| | | <where> |
| | | <if test="titleName != null and titleName != ''"> and title_name like concat('%', #{titleName}, '%')</if> |
| | | <if test="content != null and content != ''"> and content like concat('%', #{content}, '%')</if> |
| | | <if test="sort != null and sort != ''"> and sort like concat('%', #{sort}, '%')</if> |
| | | <if test="creationTime != null "> and creation_time like concat('%', #{creationTime}, '%')</if> |
| | | <if test="operator != null and operator != ''"> and operator like concat('%', #{operator}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPolicyRegulationsById" parameterType="String" resultMap="PolicyRegulationsResult"> |
| | | <include refid="selectPolicyRegulationsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPolicyRegulations" parameterType="PolicyRegulations"> |
| | | insert into policy_regulations |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="titleName != null and titleName != ''">title_name,</if> |
| | | <if test="content != null and content != ''">content,</if> |
| | | <if test="sort != null and sort != ''">sort,</if> |
| | | <if test="creationTime != null ">creation_time,</if> |
| | | <if test="operator != null and operator != ''">operator,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="titleName != null and titleName != ''">#{titleName},</if> |
| | | <if test="content != null and content != ''">#{content},</if> |
| | | <if test="sort != null and sort != ''">#{sort},</if> |
| | | <if test="creationTime != null ">#{creationTime},</if> |
| | | <if test="operator != null and operator != ''">#{operator},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePolicyRegulations" parameterType="PolicyRegulations"> |
| | | update policy_regulations |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="titleName != null and titleName != ''">title_name = #{titleName},</if> |
| | | <if test="content != null and content != ''">content = #{content},</if> |
| | | <if test="sort != null and sort != ''">sort = #{sort},</if> |
| | | <if test="creationTime != null ">creation_time = #{creationTime},</if> |
| | | <if test="operator != null and operator != ''">operator = #{operator},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePolicyRegulationsById" parameterType="String"> |
| | | delete from policy_regulations where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deletePolicyRegulationsByIds" parameterType="String"> |
| | | delete from policy_regulations where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.policy.mapper.PolicyRegulationsTranslateMapper"> |
| | | |
| | | <resultMap type="PolicyRegulationsTranslate" id="PolicyRegulationsTranslateResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="titleName" column="title_name" /> |
| | | <result property="content" column="content" /> |
| | | <result property="sort" column="sort" /> |
| | | <result property="creationTime" column="creation_time" /> |
| | | <result property="operator" column="operator" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPolicyRegulationsTranslateVo"> |
| | | select "id",title_name,"content",fun_getDiceData('policy_sort',sort)as sort,to_char(creation_time,'YYYY-MM-DD') creation_time,"operator" from policy_regulations |
| | | </sql> |
| | | |
| | | <select id="selectPolicyRegulationsTranslateList" parameterType="PolicyRegulationsTranslate" resultMap="PolicyRegulationsTranslateResult"> |
| | | <include refid="selectPolicyRegulationsTranslateVo"/> |
| | | <where> |
| | | <if test="titleName != null and titleName != ''"> and title_name like concat('%', #{titleName}, '%')</if> |
| | | <if test="content != null and content != ''"> and content like concat('%', #{content}, '%')</if> |
| | | <if test="sort != null and sort != ''"> and sort like concat('%', #{sort}, '%')</if> |
| | | <if test="creationTime != null "> and creation_time like concat('%', #{creationTime}, '%')</if> |
| | | <if test="operator != null and operator != ''"> and operator like concat('%', #{operator}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPolicyRegulationsTranslateById" parameterType="String" resultMap="PolicyRegulationsTranslateResult"> |
| | | <include refid="selectPolicyRegulationsTranslateVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPolicyRegulationsTranslate" parameterType="PolicyRegulationsTranslate"> |
| | | insert into policy_regulations |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="titleName != null and titleName != ''">title_name,</if> |
| | | <if test="content != null and content != ''">content,</if> |
| | | <if test="sort != null and sort != ''">sort,</if> |
| | | <if test="creationTime != null ">creation_time,</if> |
| | | <if test="operator != null and operator != ''">operator,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="titleName != null and titleName != ''">#{titleName},</if> |
| | | <if test="content != null and content != ''">#{content},</if> |
| | | <if test="sort != null and sort != ''">#{sort},</if> |
| | | <if test="creationTime != null ">#{creationTime},</if> |
| | | <if test="operator != null and operator != ''">#{operator},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePolicyRegulationsTranslate" parameterType="PolicyRegulationsTranslate"> |
| | | update policy_regulations |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="titleName != null and titleName != ''">title_name = #{titleName},</if> |
| | | <if test="content != null and content != ''">content = #{content},</if> |
| | | <if test="sort != null and sort != ''">sort = #{sort},</if> |
| | | <if test="creationTime != null ">creation_time = #{creationTime},</if> |
| | | <if test="operator != null and operator != ''">operator = #{operator},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePolicyRegulationsTranslateById" parameterType="String"> |
| | | delete from policy_regulations where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deletePolicyRegulationsTranslateByIds" parameterType="String"> |
| | | delete from policy_regulations where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.workforce.mapper.RosteringDutyMapper"> |
| | | |
| | | <resultMap type="RosteringDuty" id="RosteringDutyResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="orderNo" column="order_no" /> |
| | | <result property="description" column="description" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectRosteringDutyVo"> |
| | | select id, code, name, dept_id,(SELECT s.dept_name FROM sys_dept s WHERE s.dept_id = rostering_duty.dept_id ) deptName, order_no, description, create_by, create_time, update_by, update_time from rostering_duty |
| | | </sql> |
| | | |
| | | <select id="selectRosteringDutyList" parameterType="RosteringDuty" resultMap="RosteringDutyResult"> |
| | | <include refid="selectRosteringDutyVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="deptId != null and deptId != ''"> and dept_id like concat('%', #{deptId}, '%')</if> |
| | | <if test="orderNo != null and orderNo != ''"> and order_no like concat('%', #{orderNo}, '%')</if> |
| | | <if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if> |
| | | <if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if> |
| | | <if test="createTime != null "> and create_time like concat('%', #{createTime}, '%')</if> |
| | | <if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if> |
| | | <if test="updateTime != null "> and update_time like concat('%', #{updateTime}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectRosteringDutyById" parameterType="String" resultMap="RosteringDutyResult"> |
| | | <include refid="selectRosteringDutyVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertRosteringDuty" parameterType="RosteringDuty"> |
| | | insert into rostering_duty |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="deptId != null and deptId != ''">dept_id,</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no,</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by,</if> |
| | | <if test="updateTime != null ">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="deptId != null and deptId != ''">#{deptId},</if> |
| | | <if test="orderNo != null and orderNo != ''">#{orderNo},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateRosteringDuty" parameterType="RosteringDuty"> |
| | | update rostering_duty |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="deptId != null and deptId != ''">dept_id = #{deptId},</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteRosteringDutyById" parameterType="String"> |
| | | delete from rostering_duty where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteRosteringDutyByIds" parameterType="String"> |
| | | delete from rostering_duty where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.workforce.mapper.RosteringMapper"> |
| | | |
| | | <resultMap type="Rostering" id="RosteringResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="schemeId" column="scheme_id" /> |
| | | <result property="shiftId" column="shift_id" /> |
| | | <result property="dutyId" column="duty_id" /> |
| | | <result property="description" column="description" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="departMemberId" column="depart_member_id" /> |
| | | <result property="beginTimes" column="begin_times" /> |
| | | <result property="endTimes" column="end_times" /> |
| | | </resultMap> |
| | | <resultMap type="RosteringScheme" id="RosteringSchemeResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="name" column="name" /> |
| | | </resultMap> |
| | | <resultMap type="RosteringCopy" id="RosteringCopyResult"> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="schemeId" column="scheme_id" /> |
| | | <result property="shiftName" column="name" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="enddTime" column="endd_time" /> |
| | | <result property="isCrossDay" column="is_cross_day" /> |
| | | <result property="dutyName" column="name" /> |
| | | <result property="shiftId" column="shift_id" /> |
| | | <result property="dutyId" column="duty_id" /> |
| | | </resultMap> |
| | | <sql id="selectRosteringVo"> |
| | | SELECT r.ID, |
| | | r.code, |
| | | r.NAME, |
| | | r.begin_times, |
| | | r.end_times, |
| | | r.scheme_id, |
| | | (SELECT name from rostering_scheme a where a.id=r.scheme_id) schemeName, |
| | | r.shift_id, |
| | | (SELECT name from rostering_shift d where d.id=r.shift_id) shiftName, |
| | | r.duty_id, |
| | | (SELECT name from rostering_duty d where d.id=r.duty_id) dutyName, |
| | | r.depart_member_id, |
| | | (SELECT s.dept_name FROM sys_dept s WHERE s.dept_id=r.depart_member_id) deptName, |
| | | r.description |
| | | FROM |
| | | rostering r |
| | | |
| | | </sql> |
| | | |
| | | <select id="selectRosteringList" parameterType="Rostering" resultMap="RosteringResult"> |
| | | <include refid="selectRosteringVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="schemeId != null and schemeId != ''"> and scheme_id like concat('%', #{schemeId}, '%')</if> |
| | | <if test="shiftId != null and shiftId != ''"> and shift_id like concat('%', #{shiftId}, '%')</if> |
| | | <if test="dutyId != null and dutyId != ''"> and duty_id like concat('%', #{dutyId}, '%')</if> |
| | | <if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if> |
| | | <if test="departMemberId != null and departMemberId != ''"> and depart_member_id like concat('%', #{departMemberId}, '%')</if> |
| | | </where> |
| | | </select> |
| | | <select id="selectSchemeNameList" parameterType="RosteringScheme" resultMap="RosteringSchemeResult"> |
| | | select id,name from rostering_scheme |
| | | </select> |
| | | |
| | | <select id="selectRosteringById" parameterType="String" resultMap="RosteringResult"> |
| | | <include refid="selectRosteringVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertRostering" parameterType="Rostering"> |
| | | insert into rostering |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="schemeId != null and schemeId != ''">scheme_id,</if> |
| | | <if test="shiftId != null and shiftId != ''">shift_id,</if> |
| | | <if test="dutyId != null and dutyId != ''">duty_id,</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="departMemberId != null and departMemberId != ''">depart_member_id,</if> |
| | | <if test="beginTimes != null">begin_times,</if> |
| | | <if test="endTimes != null">end_times,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="schemeId != null and schemeId != ''">#{schemeId},</if> |
| | | <if test="shiftId != null and shiftId != ''">#{shiftId},</if> |
| | | <if test="dutyId != null and dutyId != ''">#{dutyId},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="departMemberId != null and departMemberId != ''">#{departMemberId},</if> |
| | | <if test="beginTimes != null">#{beginTimes},</if> |
| | | <if test="endTimes != null">#{endTimes},</if> |
| | | </trim> |
| | | </insert> |
| | | <insert id="saveRostering1" parameterType="java.util.List"> |
| | | <foreach item="dataItems" collection="dataItemVlues"> |
| | | <if test="dataItems != null"> |
| | | insert into rostering (id,code,name,scheme_id,shift_id,duty_id,description,create_by,create_time,depart_member_id,begin_times,end_times) |
| | | values (#{dataItems.id},#{dataItems.code},#{dataItems.name},#{dataItems.schemeId},#{dataItems.shiftId},#{dataItems.dutyId},#{dataItems.description},#{dataItems.createBy},#{dataItems.createTime},#{dataItems.departMemberId},#{dataItems.beginTimes},#{dataItems.endTimes}); |
| | | </if> |
| | | </foreach> |
| | | </insert> |
| | | <insert id="saveRostering"> |
| | | insert into rostering (id,code,name,scheme_id,shift_id,duty_id,description,create_by,create_time,depart_member_id,begin_times,end_times) |
| | | values |
| | | <foreach collection="list" item="dataItems" index="index" separator=","> |
| | | (#{dataItems.id},#{dataItems.code},#{dataItems.name},#{dataItems.schemeId},#{dataItems.shiftId},#{dataItems.dutyId},#{dataItems.description},#{dataItems.createBy},#{dataItems.createTime},#{dataItems.departMemberId},#{dataItems.beginTimes},#{dataItems.endTimes}) |
| | | </foreach> |
| | | </insert> |
| | | <update id="updateRostering" parameterType="Rostering"> |
| | | update rostering |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="schemeId != null and schemeId != ''">scheme_id = #{schemeId},</if> |
| | | <if test="shiftId != null and shiftId != ''">shift_id = #{shiftId},</if> |
| | | <if test="dutyId != null and dutyId != ''">duty_id = #{dutyId},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="departMemberId != null and departMemberId != ''">depart_member_id = #{departMemberId},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | <if test="beginTimes != null">begin_times = #{beginTimes},</if> |
| | | <if test="endTimes != null">end_times = #{endTimes},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteRosteringById" parameterType="String"> |
| | | delete from rostering where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteRosteringByIds" parameterType="String"> |
| | | delete from rostering where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectList" parameterType="RosteringCopy" resultMap="RosteringCopyResult"> |
| | | SELECT |
| | | s.code, |
| | | s.name, |
| | | s.scheme_id, |
| | | s.shift_id, |
| | | s.duty_id, |
| | | (rs.name) shiftName, |
| | | rs.start_time, |
| | | rs.endd_time, |
| | | rs.is_cross_day, |
| | | (d.name) dutyName |
| | | FROM |
| | | rostering_scheme_item s |
| | | LEFT JOIN rostering_shift rs ON rs.id = s.shift_id |
| | | LEFT JOIN rostering_duty d ON d.id = s.duty_id |
| | | WHERE |
| | | scheme_id = #{schemeId} |
| | | AND rs.dept_id = #{departMemberId} |
| | | |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.workforce.mapper.RosteringSchemeMapper"> |
| | | |
| | | <resultMap type="RosteringScheme" id="RosteringSchemeResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="departMemberId" column="departMemberId" /> |
| | | <result property="rosteringschemekind" column="rosteringSchemeKind" /> |
| | | <result property="referencedate" column="referenceDate" /> |
| | | <result property="isautorostering" column="isAutoRostering" /> |
| | | <result property="description" column="description" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectRosteringSchemeVo"> |
| | | select ID, code, NAME, "rosteringSchemeKind", "referenceDate", "isAutoRostering", description,(SELECT s.dept_name FROM sys_dept s WHERE s.dept_id = "departMemberId" ) departMember, created_by, created_time, update_by, update_time from rostering_scheme |
| | | </sql> |
| | | |
| | | <select id="selectRosteringSchemeList" parameterType="RosteringScheme" resultMap="RosteringSchemeResult"> |
| | | <include refid="selectRosteringSchemeVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="departMemberId != null and departMemberId != ''"> and "departMemberId" like concat('%', #{departMemberId}, '%')</if> |
| | | <if test="rosteringschemekind != null and rosteringschemekind != ''"> and "rosteringSchemeKind" like concat('%', #{rosteringschemekind}, '%')</if> |
| | | <if test="referencedate != null "> and "referenceDate" like concat('%', #{referencedate}, '%')</if> |
| | | <if test="isautorostering != null "> and "isAutoRostering" like concat('%', #{isautorostering}, '%')</if> |
| | | <if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectRosteringSchemeById" parameterType="String" resultMap="RosteringSchemeResult"> |
| | | <include refid="selectRosteringSchemeVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertRosteringScheme" parameterType="RosteringScheme"> |
| | | insert into rostering_scheme |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="departMemberId != null and departMemberId != ''">"departMemberId",</if> |
| | | <if test="rosteringschemekind != null and rosteringschemekind != ''">"rosteringSchemeKind",</if> |
| | | <if test="referencedate != null ">"referenceDate",</if> |
| | | <if test="isautorostering != null ">"isAutoRostering",</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="createBy != null and createdBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="departMemberId != null and departMemberId != ''">#{departMemberId},</if> |
| | | <if test="rosteringschemekind != null and rosteringschemekind != ''">#{rosteringschemekind},</if> |
| | | <if test="referencedate != null ">#{referencedate},</if> |
| | | <if test="isautorostering != null ">#{isautorostering},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="updateBy != null and updateBy != ''">#{updateBy},</if> |
| | | <if test="updateTime != null ">#{updateTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateRosteringScheme" parameterType="RosteringScheme"> |
| | | update rostering_scheme |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="departMemberId != null and departMemberId != ''">"departMemberId" = #{departMemberId},</if> |
| | | <if test="rosteringschemekind != null and rosteringschemekind != ''">"rosteringSchemeKind" = #{rosteringschemekind},</if> |
| | | <if test="referencedate != null ">"referenceDate" = #{referencedate},</if> |
| | | <if test="isautorostering != null ">"isAutoRostering" = #{isautorostering},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="createdBy != null and createdBy != ''">created_by = #{createdBy},</if> |
| | | <if test="createdTime != null ">created_time = #{createdTime},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteRosteringSchemeById" parameterType="String"> |
| | | delete from rostering_scheme where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteRosteringSchemeByIds" parameterType="String"> |
| | | delete from rostering_scheme where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.workforce.mapper.RosteringSchemeitemMapper"> |
| | | <resultMap type="RosteringSchemeitem" id="RosteringSchemeitemResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="schemeId" column="scheme_id" /> |
| | | <result property="dayofloopdays" column="dayOfLoopDays" /> |
| | | <result property="shiftId" column="shift_id" /> |
| | | <result property="dutyId" column="duty_id" /> |
| | | <result property="description" column="description" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectRosteringSchemeitemVo"> |
| | | select id, code, name, scheme_id,(select name from rostering_scheme where id=scheme_id) schemeName, "dayOfLoopDays", shift_id,(select name from rostering_shift where id=shift_id) shiftName, duty_id,(select name from rostering_duty where id=duty_id) dutyName, description, create_by, create_time, update_by, update_time from rostering_scheme_item |
| | | </sql> |
| | | |
| | | <select id="selectRosteringSchemeitemList" parameterType="RosteringSchemeitem" resultMap="RosteringSchemeitemResult"> |
| | | <include refid="selectRosteringSchemeitemVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="schemeId != null and schemeId != ''"> and scheme_id like concat('%', #{schemeId}, '%')</if> |
| | | <if test="dayofloopdays != null and dayofloopdays != ''"> and dayOfLoopDays like concat('%', #{dayofloopdays}, '%')</if> |
| | | <if test="shiftId != null and shiftId != ''"> and shift_id like concat('%', #{shiftId}, '%')</if> |
| | | <if test="dutyId != null and dutyId != ''"> and duty_id like concat('%', #{dutyId}, '%')</if> |
| | | <if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectRosteringSchemeitemById" parameterType="String" resultMap="RosteringSchemeitemResult"> |
| | | <include refid="selectRosteringSchemeitemVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertRosteringSchemeitem" parameterType="RosteringSchemeitem"> |
| | | insert into rostering_scheme_item |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="schemeId != null and schemeId != ''">scheme_id,</if> |
| | | <if test="dayofloopdays != null and dayofloopdays != ''">"dayOfLoopDays",</if> |
| | | <if test="shiftId != null and shiftId != ''">shift_id,</if> |
| | | <if test="dutyId != null and dutyId != ''">duty_id,</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="schemeId != null and schemeId != ''">#{schemeId},</if> |
| | | <if test="dayofloopdays != null and dayofloopdays != ''">#{dayofloopdays},</if> |
| | | <if test="shiftId != null and shiftId != ''">#{shiftId},</if> |
| | | <if test="dutyId != null and dutyId != ''">#{dutyId},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateRosteringSchemeitem" parameterType="RosteringSchemeitem"> |
| | | update rostering_scheme_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="schemeId != null and schemeId != ''">scheme_id = #{schemeId},</if> |
| | | <if test="dayofloopdays != null and dayofloopdays != ''">"dayOfLoopDays" = #{dayofloopdays},</if> |
| | | <if test="shiftId != null and shiftId != ''">shift_id = #{shiftId},</if> |
| | | <if test="dutyId != null and dutyId != ''">duty_id = #{dutyId},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteRosteringSchemeitemById" parameterType="String"> |
| | | delete from rostering_scheme_item where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteRosteringSchemeitemByIds" parameterType="String"> |
| | | delete from rostering_scheme_item where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dingzhuo.energy.basic.data.workforce.mapper.RosteringShiftMapper"> |
| | | |
| | | <resultMap type="RosteringShift" id="RosteringShiftResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="enddTime" column="endd_time" /> |
| | | <result property="isCrossDay" column="is_cross_day" /> |
| | | <result property="orderNo" column="order_no" /> |
| | | <result property="description" column="description" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | <resultMap type="SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id"/> |
| | | <result property="parentId" column="parent_id"/> |
| | | <result property="deptName" column="dept_name"/> |
| | | </resultMap> |
| | | <sql id="selectRosteringShiftVo"> |
| | | select id, code, name, dept_id, start_time, endd_time, is_cross_day, order_no, description,(SELECT s.dept_name FROM sys_dept s WHERE s.dept_id = rostering_shift.dept_id ) deptName, create_by, create_time, update_by, update_time from rostering_shift |
| | | |
| | | </sql> |
| | | |
| | | <select id="selectRosteringShiftList" parameterType="RosteringShift" resultMap="RosteringShiftResult"> |
| | | <include refid="selectRosteringShiftVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="deptId != null and deptId != ''"> and dept_id like concat('%', #{deptId}, '%')</if> |
| | | <if test="startTime != null "> and start_time like concat('%', #{startTime}, '%')</if> |
| | | <if test="enddTime != null "> and endd_time like concat('%', #{enddTime}, '%')</if> |
| | | <if test="isCrossDay != null and isCrossDay != ''"> and is_cross_day like concat('%', #{isCrossDay}, '%')</if> |
| | | <if test="orderNo != null and orderNo != ''"> and order_no like concat('%', #{orderNo}, '%')</if> |
| | | <if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectRosteringShiftById" parameterType="String" resultMap="RosteringShiftResult"> |
| | | <include refid="selectRosteringShiftVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertRosteringShift" parameterType="RosteringShift"> |
| | | insert into rostering_shift |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="deptId != null and deptId != ''">dept_id,</if> |
| | | <if test="startTime != null ">start_time,</if> |
| | | <if test="enddTime != null ">endd_time,</if> |
| | | <if test="isCrossDay != null and isCrossDay != ''">is_cross_day,</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no,</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="deptId != null and deptId != ''">#{deptId},</if> |
| | | <if test="startTime != null ">#{startTime},</if> |
| | | <if test="enddTime != null ">#{enddTime},</if> |
| | | <if test="isCrossDay != null and isCrossDay != ''">#{isCrossDay},</if> |
| | | <if test="orderNo != null and orderNo != ''">#{orderNo},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateRosteringShift" parameterType="RosteringShift"> |
| | | update rostering_shift |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="deptId != null and deptId != ''">dept_id = #{deptId},</if> |
| | | <if test="startTime != null ">start_time = #{startTime},</if> |
| | | <if test="enddTime != null ">endd_time = #{enddTime},</if> |
| | | <if test="isCrossDay != null and isCrossDay != ''">is_cross_day = #{isCrossDay},</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null ">update_time = #{updateTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteRosteringShiftById" parameterType="String"> |
| | | delete from rostering_shift where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteRosteringShiftByIds" parameterType="String"> |
| | | delete from rostering_shift where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | <select id="treeList" parameterType="SysDept" resultMap="SysDeptResult"> |
| | | SELECT |
| | | dept_id, |
| | | parent_id, |
| | | dept_name |
| | | FROM |
| | | sys_dept |
| | | WHERE |
| | | status = '0' |
| | | AND del_flag = '0' |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>energy-management</artifactId> |
| | | <groupId>com.dingzhuo</groupId> |
| | | <version>1.0.0</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>basic</artifactId> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.dingzhuo</groupId> |
| | | <artifactId>parent</artifactId> |
| | | <version>${project.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.constant; |
| | | |
| | | import io.jsonwebtoken.Claims; |
| | | |
| | | /** |
| | | * éç¨å¸¸éä¿¡æ¯ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class Constants |
| | | { |
| | | /** |
| | | * UTF-8 å符é |
| | | */ |
| | | public static final String UTF8 = "UTF-8"; |
| | | |
| | | /** |
| | | * éç¨æåæ è¯ |
| | | */ |
| | | public static final String SUCCESS = "0"; |
| | | |
| | | /** |
| | | * éç¨å¤±è´¥æ è¯ |
| | | */ |
| | | public static final String FAIL = "1"; |
| | | |
| | | /** |
| | | * ç»å½æå |
| | | */ |
| | | public static final String LOGIN_SUCCESS = "Success"; |
| | | |
| | | /** |
| | | * 注é |
| | | */ |
| | | public static final String LOGOUT = "Logout"; |
| | | |
| | | /** |
| | | * ç»å½å¤±è´¥ |
| | | */ |
| | | public static final String LOGIN_FAIL = "Error"; |
| | | |
| | | /** |
| | | * éªè¯ç redis key |
| | | */ |
| | | public static final String CAPTCHA_CODE_KEY = "captcha_codes:"; |
| | | |
| | | /** |
| | | * ç»å½ç¨æ· redis key |
| | | */ |
| | | public static final String LOGIN_TOKEN_KEY = "login_tokens:"; |
| | | |
| | | /** |
| | | * éªè¯ç æææï¼åéï¼ |
| | | */ |
| | | public static final Integer CAPTCHA_EXPIRATION = 2; |
| | | |
| | | /** |
| | | * 令ç |
| | | */ |
| | | public static final String TOKEN = "token"; |
| | | |
| | | /** |
| | | * 令çåç¼ |
| | | */ |
| | | public static final String TOKEN_PREFIX = "Bearer "; |
| | | |
| | | /** |
| | | * 令çåç¼ |
| | | */ |
| | | public static final String LOGIN_USER_KEY = "login_user_key"; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | public static final String JWT_USERID = "userid"; |
| | | |
| | | /** |
| | | * ç¨æ·åç§° |
| | | */ |
| | | public static final String JWT_USERNAME = Claims.SUBJECT; |
| | | |
| | | /** |
| | | * ç¨æ·å¤´å |
| | | */ |
| | | public static final String JWT_AVATAR = "avatar"; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | public static final String JWT_CREATED = "created"; |
| | | |
| | | /** |
| | | * ç¨æ·æé |
| | | */ |
| | | public static final String JWT_AUTHORITIES = "authorities"; |
| | | |
| | | /** |
| | | * èµæºæ å°è·¯å¾ åç¼ |
| | | */ |
| | | public static final String RESOURCE_PREFIX = "/profile"; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.constant; |
| | | |
| | | /** |
| | | * 代ç çæéç¨å¸¸é |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class GenConstants |
| | | { |
| | | /** å表ï¼å¢å æ¹æ¥ï¼ */ |
| | | public static final String TPL_CRUD = "crud"; |
| | | |
| | | /** æ 表ï¼å¢å æ¹æ¥ï¼ */ |
| | | public static final String TPL_TREE = "tree"; |
| | | |
| | | /** æ ç¼ç åæ®µ */ |
| | | public static final String TREE_CODE = "treeCode"; |
| | | |
| | | /** æ ç¶ç¼ç åæ®µ */ |
| | | public static final String TREE_PARENT_CODE = "treeParentCode"; |
| | | |
| | | /** æ åç§°åæ®µ */ |
| | | public static final String TREE_NAME = "treeName"; |
| | | |
| | | /** æ°æ®åºå符串类å */ |
| | | public static final String[] COLUMNTYPE_STR = { "char", "varchar", "narchar", "varchar2", "tinytext", "text", |
| | | "mediumtext", "longtext" }; |
| | | |
| | | /** æ°æ®åºæ¶é´ç±»å */ |
| | | public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" }; |
| | | |
| | | /** æ°æ®åºæ°åç±»å */ |
| | | public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer", |
| | | "bigint", "float", "float", "double", "decimal" }; |
| | | |
| | | /** 页é¢ä¸éè¦ç¼è¾å段 */ |
| | | public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" }; |
| | | |
| | | /** 页é¢ä¸éè¦æ¾ç¤ºçåè¡¨åæ®µ */ |
| | | public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by", |
| | | "update_time" }; |
| | | |
| | | /** 页é¢ä¸éè¦æ¥è¯¢å段 */ |
| | | public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by", |
| | | "update_time", "remark" }; |
| | | |
| | | /** Entityåºç±»å段 */ |
| | | public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" }; |
| | | |
| | | /** Treeåºç±»å段 */ |
| | | public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors" }; |
| | | |
| | | /** ææ¬æ¡ */ |
| | | public static final String HTML_INPUT = "input"; |
| | | |
| | | /** ææ¬å */ |
| | | public static final String HTML_TEXTAREA = "textarea"; |
| | | |
| | | /** ä¸ææ¡ */ |
| | | public static final String HTML_SELECT = "select"; |
| | | |
| | | /** åéæ¡ */ |
| | | public static final String HTML_RADIO = "radio"; |
| | | |
| | | /** å¤éæ¡ */ |
| | | public static final String HTML_CHECKBOX = "checkbox"; |
| | | |
| | | /** æ¥ææ§ä»¶ */ |
| | | public static final String HTML_DATETIME = "datetime"; |
| | | |
| | | /** å符串类å */ |
| | | public static final String TYPE_STRING = "String"; |
| | | |
| | | /** æ´å */ |
| | | public static final String TYPE_INTEGER = "Integer"; |
| | | |
| | | /** é¿æ´å */ |
| | | public static final String TYPE_LONG = "Long"; |
| | | |
| | | /** æµ®ç¹å */ |
| | | public static final String TYPE_DOUBLE = "Double"; |
| | | |
| | | /** é«ç²¾åº¦è®¡ç®ç±»å */ |
| | | public static final String TYPE_BIGDECIMAL = "BigDecimal"; |
| | | |
| | | /** æ¶é´ç±»å */ |
| | | public static final String TYPE_DATE = "Date"; |
| | | |
| | | /** æ¨¡ç³æ¥è¯¢ */ |
| | | public static final String QUERY_LIKE = "LIKE"; |
| | | |
| | | /** éè¦ */ |
| | | public static final String REQUIRE = "1"; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.constant; |
| | | |
| | | /** |
| | | * è¿åç¶æç |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface HttpStatus |
| | | { |
| | | /** |
| | | * æä½æå |
| | | */ |
| | | int SUCCESS = 200; |
| | | |
| | | /** |
| | | * 对象å建æå |
| | | */ |
| | | int CREATED = 201; |
| | | |
| | | /** |
| | | * 请æ±å·²ç»è¢«æ¥å |
| | | */ |
| | | int ACCEPTED = 202; |
| | | |
| | | /** |
| | | * æä½å·²ç»æ§è¡æåï¼ä½æ¯æ²¡æè¿åæ°æ® |
| | | */ |
| | | int NO_CONTENT = 204; |
| | | |
| | | /** |
| | | * èµæºå·²è¢«ç§»é¤ |
| | | */ |
| | | int MOVED_PERM = 301; |
| | | |
| | | /** |
| | | * éå®å |
| | | */ |
| | | int SEE_OTHER = 303; |
| | | |
| | | /** |
| | | * èµæºæ²¡æè¢«ä¿®æ¹ |
| | | */ |
| | | int NOT_MODIFIED = 304; |
| | | |
| | | /** |
| | | * åæ°å表é误ï¼ç¼ºå°ï¼æ ¼å¼ä¸å¹é
ï¼ |
| | | */ |
| | | int BAD_REQUEST = 400; |
| | | |
| | | /** |
| | | * æªææ |
| | | */ |
| | | int UNAUTHORIZED = 401; |
| | | |
| | | /** |
| | | * 访é®åéï¼ææè¿æ |
| | | */ |
| | | int FORBIDDEN = 403; |
| | | |
| | | /** |
| | | * èµæºï¼æå¡æªæ¾å° |
| | | */ |
| | | int NOT_FOUND = 404; |
| | | |
| | | /** |
| | | * ä¸å
许çhttpæ¹æ³ |
| | | */ |
| | | int BAD_METHOD = 405; |
| | | |
| | | /** |
| | | * èµæºå²çªï¼æè
èµæºè¢«é |
| | | */ |
| | | int CONFLICT = 409; |
| | | |
| | | /** |
| | | * 䏿¯æçæ°æ®ï¼åªä½ç±»å |
| | | */ |
| | | int UNSUPPORTED_TYPE = 415; |
| | | |
| | | /** |
| | | * ç³»ç»å
é¨é误 |
| | | */ |
| | | int ERROR = 500; |
| | | |
| | | /** |
| | | * æ¥å£æªå®ç° |
| | | */ |
| | | int NOT_IMPLEMENTED = 501; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.constant; |
| | | |
| | | /** |
| | | * ç¨æ·å¸¸éä¿¡æ¯ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class UserConstants |
| | | { |
| | | /** |
| | | * å¹³å°å
ç³»ç»ç¨æ·çå¯ä¸æ å¿ |
| | | */ |
| | | public static final String SYS_USER = "SYS_USER"; |
| | | |
| | | /** æ£å¸¸ç¶æ */ |
| | | public static final String NORMAL = "0"; |
| | | |
| | | /** å¼å¸¸ç¶æ */ |
| | | public static final String EXCEPTION = "1"; |
| | | |
| | | /** ç¨æ·å°ç¦ç¶æ */ |
| | | public static final String USER_BLOCKED = "1"; |
| | | |
| | | /** è§è²å°ç¦ç¶æ */ |
| | | public static final String ROLE_BLOCKED = "1"; |
| | | |
| | | /** é¨é¨æ£å¸¸ç¶æ */ |
| | | public static final String DEPT_NORMAL = "0"; |
| | | |
| | | /** åå
¸æ£å¸¸ç¶æ */ |
| | | public static final String DICT_NORMAL = "0"; |
| | | |
| | | /** æ¯å¦ä¸ºç³»ç»é»è®¤ï¼æ¯ï¼ */ |
| | | public static final String YES = "Y"; |
| | | |
| | | /** æ ¡éªè¿åç»æç */ |
| | | public final static String UNIQUE = "0"; |
| | | public final static String NOT_UNIQUE = "1"; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.core.lang; |
| | | |
| | | import java.security.MessageDigest; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.security.SecureRandom; |
| | | import java.util.Random; |
| | | import java.util.concurrent.ThreadLocalRandom; |
| | | |
| | | import com.dingzhuo.energy.common.exception.UtilException; |
| | | import com.dingzhuo.energy.common.exception.UtilException; |
| | | |
| | | /** |
| | | * æä¾éç¨å¯ä¸è¯å«ç ï¼universally unique identifierï¼ï¼UUIDï¼å®ç° |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public final class UUID implements java.io.Serializable, Comparable<UUID> |
| | | { |
| | | private static final long serialVersionUID = -1185015143654744140L; |
| | | |
| | | /** |
| | | * SecureRandom çåä¾ |
| | | * |
| | | */ |
| | | private static class Holder |
| | | { |
| | | static final SecureRandom numberGenerator = getSecureRandom(); |
| | | } |
| | | |
| | | /** æ¤UUIDçæé«64ææä½ */ |
| | | private final long mostSigBits; |
| | | |
| | | /** æ¤UUIDçæä½64ææä½ */ |
| | | private final long leastSigBits; |
| | | |
| | | /** |
| | | * ç§ææé |
| | | * |
| | | * @param data æ°æ® |
| | | */ |
| | | private UUID(byte[] data) |
| | | { |
| | | long msb = 0; |
| | | long lsb = 0; |
| | | assert data.length == 16 : "data must be 16 bytes in length"; |
| | | for (int i = 0; i < 8; i++) |
| | | { |
| | | msb = (msb << 8) | (data[i] & 0xff); |
| | | } |
| | | for (int i = 8; i < 16; i++) |
| | | { |
| | | lsb = (lsb << 8) | (data[i] & 0xff); |
| | | } |
| | | this.mostSigBits = msb; |
| | | this.leastSigBits = lsb; |
| | | } |
| | | |
| | | /** |
| | | * ä½¿ç¨æå®çæ°æ®æé æ°ç UUIDã |
| | | * |
| | | * @param mostSigBits ç¨äº {@code UUID} çæé«ææ 64 ä½ |
| | | * @param leastSigBits ç¨äº {@code UUID} çæä½ææ 64 ä½ |
| | | */ |
| | | public UUID(long mostSigBits, long leastSigBits) |
| | | { |
| | | this.mostSigBits = mostSigBits; |
| | | this.leastSigBits = leastSigBits; |
| | | } |
| | | |
| | | /** |
| | | * è·åç±»å 4ï¼ä¼ªéæºçæçï¼UUID çéæå·¥åã 使ç¨å å¯çæ¬å°çº¿ç¨ä¼ªéæºæ°çæå¨çæè¯¥ UUIDã |
| | | * |
| | | * @return éæºçæç {@code UUID} |
| | | */ |
| | | public static UUID fastUUID() |
| | | { |
| | | return randomUUID(false); |
| | | } |
| | | |
| | | /** |
| | | * è·åç±»å 4ï¼ä¼ªéæºçæçï¼UUID çéæå·¥åã 使ç¨å å¯çå¼ºä¼ªéæºæ°çæå¨çæè¯¥ UUIDã |
| | | * |
| | | * @return éæºçæç {@code UUID} |
| | | */ |
| | | public static UUID randomUUID() |
| | | { |
| | | return randomUUID(true); |
| | | } |
| | | |
| | | /** |
| | | * è·åç±»å 4ï¼ä¼ªéæºçæçï¼UUID çéæå·¥åã 使ç¨å å¯çå¼ºä¼ªéæºæ°çæå¨çæè¯¥ UUIDã |
| | | * |
| | | * @param isSecure æ¯å¦ä½¿ç¨{@link SecureRandom}妿æ¯å¯ä»¥è·å¾æ´å®å
¨çéæºç ï¼å¦åå¯ä»¥å¾å°æ´å¥½çæ§è½ |
| | | * @return éæºçæç {@code UUID} |
| | | */ |
| | | public static UUID randomUUID(boolean isSecure) |
| | | { |
| | | final Random ng = isSecure ? Holder.numberGenerator : getRandom(); |
| | | |
| | | byte[] randomBytes = new byte[16]; |
| | | ng.nextBytes(randomBytes); |
| | | randomBytes[6] &= 0x0f; /* clear version */ |
| | | randomBytes[6] |= 0x40; /* set to version 4 */ |
| | | randomBytes[8] &= 0x3f; /* clear variant */ |
| | | randomBytes[8] |= 0x80; /* set to IETF variant */ |
| | | return new UUID(randomBytes); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æå®çåèæ°ç»è·åç±»å 3ï¼åºäºåç§°çï¼UUID çéæå·¥åã |
| | | * |
| | | * @param name ç¨äºæé UUID çåèæ°ç»ã |
| | | * |
| | | * @return æ ¹æ®æå®æ°ç»çæç {@code UUID} |
| | | */ |
| | | public static UUID nameUUIDFromBytes(byte[] name) |
| | | { |
| | | MessageDigest md; |
| | | try |
| | | { |
| | | md = MessageDigest.getInstance("MD5"); |
| | | } |
| | | catch (NoSuchAlgorithmException nsae) |
| | | { |
| | | throw new InternalError("MD5 not supported"); |
| | | } |
| | | byte[] md5Bytes = md.digest(name); |
| | | md5Bytes[6] &= 0x0f; /* clear version */ |
| | | md5Bytes[6] |= 0x30; /* set to version 3 */ |
| | | md5Bytes[8] &= 0x3f; /* clear variant */ |
| | | md5Bytes[8] |= 0x80; /* set to IETF variant */ |
| | | return new UUID(md5Bytes); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ® {@link #toString()} æ¹æ³ä¸æè¿°çå符串æ å表示形å¼å建{@code UUID}ã |
| | | * |
| | | * @param name æå® {@code UUID} å符串 |
| | | * @return å
·ææå®å¼ç {@code UUID} |
| | | * @throws IllegalArgumentException 妿 name ä¸ {@link #toString} ä¸æè¿°çå符串表示形å¼ä¸ç¬¦æåºæ¤å¼å¸¸ |
| | | * |
| | | */ |
| | | public static UUID fromString(String name) |
| | | { |
| | | String[] components = name.split("-"); |
| | | if (components.length != 5) |
| | | { |
| | | throw new IllegalArgumentException("Invalid UUID string: " + name); |
| | | } |
| | | for (int i = 0; i < 5; i++) |
| | | { |
| | | components[i] = "0x" + components[i]; |
| | | } |
| | | |
| | | long mostSigBits = Long.decode(components[0]).longValue(); |
| | | mostSigBits <<= 16; |
| | | mostSigBits |= Long.decode(components[1]).longValue(); |
| | | mostSigBits <<= 16; |
| | | mostSigBits |= Long.decode(components[2]).longValue(); |
| | | |
| | | long leastSigBits = Long.decode(components[3]).longValue(); |
| | | leastSigBits <<= 48; |
| | | leastSigBits |= Long.decode(components[4]).longValue(); |
| | | |
| | | return new UUID(mostSigBits, leastSigBits); |
| | | } |
| | | |
| | | /** |
| | | * è¿åæ¤ UUID ç 128 ä½å¼ä¸çæä½ææ 64 ä½ã |
| | | * |
| | | * @return æ¤ UUID ç 128 ä½å¼ä¸çæä½ææ 64 ä½ã |
| | | */ |
| | | public long getLeastSignificantBits() |
| | | { |
| | | return leastSigBits; |
| | | } |
| | | |
| | | /** |
| | | * è¿åæ¤ UUID ç 128 ä½å¼ä¸çæé«ææ 64 ä½ã |
| | | * |
| | | * @return æ¤ UUID ç 128 ä½å¼ä¸æé«ææ 64 ä½ã |
| | | */ |
| | | public long getMostSignificantBits() |
| | | { |
| | | return mostSigBits; |
| | | } |
| | | |
| | | /** |
| | | * 䏿¤ {@code UUID} ç¸å
³èççæ¬å·. çæ¬å·æè¿°æ¤ {@code UUID} æ¯å¦ä½çæçã |
| | | * <p> |
| | | * çæ¬å·å
·æä»¥ä¸å«æ: |
| | | * <ul> |
| | | * <li>1 åºäºæ¶é´ç UUID |
| | | * <li>2 DCE å®å
¨ UUID |
| | | * <li>3 åºäºåç§°ç UUID |
| | | * <li>4 éæºçæç UUID |
| | | * </ul> |
| | | * |
| | | * @return æ¤ {@code UUID} ççæ¬å· |
| | | */ |
| | | public int version() |
| | | { |
| | | // Version is bits masked by 0x000000000000F000 in MS long |
| | | return (int) ((mostSigBits >> 12) & 0x0f); |
| | | } |
| | | |
| | | /** |
| | | * 䏿¤ {@code UUID} ç¸å
³èçåä½å·ãåä½å·æè¿° {@code UUID} çå¸å±ã |
| | | * <p> |
| | | * åä½å·å
·æä»¥ä¸å«æï¼ |
| | | * <ul> |
| | | * <li>0 为 NCS ååå
¼å®¹ä¿ç |
| | | * <li>2 <a href="http://www.ietf.org/rfc/rfc4122.txt">IETF RFC 4122</a>(Leach-Salz), ç¨äºæ¤ç±» |
| | | * <li>6 ä¿çï¼å¾®è½¯ååå
¼å®¹ |
| | | * <li>7 ä¿çä¾ä»¥åå®ä¹ä½¿ç¨ |
| | | * </ul> |
| | | * |
| | | * @return æ¤ {@code UUID} ç¸å
³èçåä½å· |
| | | */ |
| | | public int variant() |
| | | { |
| | | // This field is composed of a varying number of bits. |
| | | // 0 - - Reserved for NCS backward compatibility |
| | | // 1 0 - The IETF aka Leach-Salz variant (used by this class) |
| | | // 1 1 0 Reserved, Microsoft backward compatibility |
| | | // 1 1 1 Reserved for future definition. |
| | | return (int) ((leastSigBits >>> (64 - (leastSigBits >>> 62))) & (leastSigBits >> 63)); |
| | | } |
| | | |
| | | /** |
| | | * 䏿¤ UUID ç¸å
³èçæ¶é´æ³å¼ã |
| | | * |
| | | * <p> |
| | | * 60 ä½çæ¶é´æ³å¼æ ¹æ®æ¤ {@code UUID} ç time_lowãtime_mid å time_hi åæ®µæé ã<br> |
| | | * æå¾å°çæ¶é´æ³ä»¥ 100 毫微ç§ä¸ºåä½ï¼ä» UTCï¼éç¨åè°æ¶é´ï¼ 1582 å¹´ 10 æ 15 æ¥é¶æ¶å¼å§ã |
| | | * |
| | | * <p> |
| | | * æ¶é´æ³å¼ä»
å¨å¨åºäºæ¶é´ç UUIDï¼å
¶ version ç±»å为 1ï¼ä¸æææä¹ã<br> |
| | | * å¦ææ¤ {@code UUID} 䏿¯åºäºæ¶é´ç UUIDï¼åæ¤æ¹æ³æåº UnsupportedOperationExceptionã |
| | | * |
| | | * @throws UnsupportedOperationException å¦ææ¤ {@code UUID} 䏿¯ version 为 1 ç UUIDã |
| | | */ |
| | | public long timestamp() throws UnsupportedOperationException |
| | | { |
| | | checkTimeBase(); |
| | | return (mostSigBits & 0x0FFFL) << 48// |
| | | | ((mostSigBits >> 16) & 0x0FFFFL) << 32// |
| | | | mostSigBits >>> 32; |
| | | } |
| | | |
| | | /** |
| | | * 䏿¤ UUID ç¸å
³èçæ¶éåºåå¼ã |
| | | * |
| | | * <p> |
| | | * 14 ä½çæ¶éåºå弿 ¹æ®æ¤ UUID ç clock_seq åæ®µæé ãclock_seq åæ®µç¨äºä¿è¯å¨åºäºæ¶é´ç UUID ä¸çæ¶é´å¯ä¸æ§ã |
| | | * <p> |
| | | * {@code clockSequence} å¼ä»
å¨åºäºæ¶é´ç UUIDï¼å
¶ version ç±»å为 1ï¼ä¸æææä¹ã å¦ææ¤ UUID 䏿¯åºäºæ¶é´ç UUIDï¼åæ¤æ¹æ³æåº |
| | | * UnsupportedOperationExceptionã |
| | | * |
| | | * @return æ¤ {@code UUID} çæ¶éåºå |
| | | * |
| | | * @throws UnsupportedOperationException å¦ææ¤ UUID ç version ä¸ä¸º 1 |
| | | */ |
| | | public int clockSequence() throws UnsupportedOperationException |
| | | { |
| | | checkTimeBase(); |
| | | return (int) ((leastSigBits & 0x3FFF000000000000L) >>> 48); |
| | | } |
| | | |
| | | /** |
| | | * 䏿¤ UUID ç¸å
³çèç¹å¼ã |
| | | * |
| | | * <p> |
| | | * 48 ä½çèç¹å¼æ ¹æ®æ¤ UUID ç node åæ®µæé ãæ¤åæ®µæ¨å¨ç¨äºä¿åæºå¨ç IEEE 802 å°åï¼è¯¥å°åç¨äºçææ¤ UUID 以ä¿è¯ç©ºé´å¯ä¸æ§ã |
| | | * <p> |
| | | * èç¹å¼ä»
å¨åºäºæ¶é´ç UUIDï¼å
¶ version ç±»å为 1ï¼ä¸æææä¹ã<br> |
| | | * å¦ææ¤ UUID 䏿¯åºäºæ¶é´ç UUIDï¼åæ¤æ¹æ³æåº UnsupportedOperationExceptionã |
| | | * |
| | | * @return æ¤ {@code UUID} çèç¹å¼ |
| | | * |
| | | * @throws UnsupportedOperationException å¦ææ¤ UUID ç version ä¸ä¸º 1 |
| | | */ |
| | | public long node() throws UnsupportedOperationException |
| | | { |
| | | checkTimeBase(); |
| | | return leastSigBits & 0x0000FFFFFFFFFFFFL; |
| | | } |
| | | |
| | | /** |
| | | * è¿åæ¤{@code UUID} çå符串表ç°å½¢å¼ã |
| | | * |
| | | * <p> |
| | | * UUID çå符串表示形å¼ç±æ¤ BNF æè¿°ï¼ |
| | | * |
| | | * <pre> |
| | | * {@code |
| | | * UUID = <time_low>-<time_mid>-<time_high_and_version>-<variant_and_sequence>-<node> |
| | | * time_low = 4*<hexOctet> |
| | | * time_mid = 2*<hexOctet> |
| | | * time_high_and_version = 2*<hexOctet> |
| | | * variant_and_sequence = 2*<hexOctet> |
| | | * node = 6*<hexOctet> |
| | | * hexOctet = <hexDigit><hexDigit> |
| | | * hexDigit = [0-9a-fA-F] |
| | | * } |
| | | * </pre> |
| | | * |
| | | * </blockquote> |
| | | * |
| | | * @return æ¤{@code UUID} çå符串表ç°å½¢å¼ |
| | | * @see #toString(boolean) |
| | | */ |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return toString(false); |
| | | } |
| | | |
| | | /** |
| | | * è¿åæ¤{@code UUID} çå符串表ç°å½¢å¼ã |
| | | * |
| | | * <p> |
| | | * UUID çå符串表示形å¼ç±æ¤ BNF æè¿°ï¼ |
| | | * |
| | | * <pre> |
| | | * {@code |
| | | * UUID = <time_low>-<time_mid>-<time_high_and_version>-<variant_and_sequence>-<node> |
| | | * time_low = 4*<hexOctet> |
| | | * time_mid = 2*<hexOctet> |
| | | * time_high_and_version = 2*<hexOctet> |
| | | * variant_and_sequence = 2*<hexOctet> |
| | | * node = 6*<hexOctet> |
| | | * hexOctet = <hexDigit><hexDigit> |
| | | * hexDigit = [0-9a-fA-F] |
| | | * } |
| | | * </pre> |
| | | * |
| | | * </blockquote> |
| | | * |
| | | * @param isSimple æ¯å¦ç®å模å¼ï¼ç®å模å¼ä¸ºä¸å¸¦'-'çUUIDå符串 |
| | | * @return æ¤{@code UUID} çå符串表ç°å½¢å¼ |
| | | */ |
| | | public String toString(boolean isSimple) |
| | | { |
| | | final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36); |
| | | // time_low |
| | | builder.append(digits(mostSigBits >> 32, 8)); |
| | | if (false == isSimple) |
| | | { |
| | | builder.append('-'); |
| | | } |
| | | // time_mid |
| | | builder.append(digits(mostSigBits >> 16, 4)); |
| | | if (false == isSimple) |
| | | { |
| | | builder.append('-'); |
| | | } |
| | | // time_high_and_version |
| | | builder.append(digits(mostSigBits, 4)); |
| | | if (false == isSimple) |
| | | { |
| | | builder.append('-'); |
| | | } |
| | | // variant_and_sequence |
| | | builder.append(digits(leastSigBits >> 48, 4)); |
| | | if (false == isSimple) |
| | | { |
| | | builder.append('-'); |
| | | } |
| | | // node |
| | | builder.append(digits(leastSigBits, 12)); |
| | | |
| | | return builder.toString(); |
| | | } |
| | | |
| | | /** |
| | | * è¿åæ¤ UUID çåå¸ç ã |
| | | * |
| | | * @return UUID çåå¸ç å¼ã |
| | | */ |
| | | public int hashCode() |
| | | { |
| | | long hilo = mostSigBits ^ leastSigBits; |
| | | return ((int) (hilo >> 32)) ^ (int) hilo; |
| | | } |
| | | |
| | | /** |
| | | * å°æ¤å¯¹è±¡ä¸æå®å¯¹è±¡æ¯è¾ã |
| | | * <p> |
| | | * å½ä¸ä»
å½åæ°ä¸ä¸º {@code null}ãèæ¯ä¸ä¸ª UUID 对象ãå
·æä¸æ¤ UUID ç¸åç varriantãå
å«ç¸åçå¼ï¼æ¯ä¸ä½åç¸åï¼æ¶ï¼ç»ææä¸º {@code true}ã |
| | | * |
| | | * @param obj è¦ä¸ä¹æ¯è¾ç对象 |
| | | * |
| | | * @return å¦æå¯¹è±¡ç¸åï¼åè¿å {@code true}ï¼å¦åè¿å {@code false} |
| | | */ |
| | | public boolean equals(Object obj) |
| | | { |
| | | if ((null == obj) || (obj.getClass() != UUID.class)) |
| | | { |
| | | return false; |
| | | } |
| | | UUID id = (UUID) obj; |
| | | return (mostSigBits == id.mostSigBits && leastSigBits == id.leastSigBits); |
| | | } |
| | | |
| | | // Comparison Operations |
| | | |
| | | /** |
| | | * å°æ¤ UUID 䏿å®ç UUID æ¯è¾ã |
| | | * |
| | | * <p> |
| | | * å¦æä¸¤ä¸ª UUID ä¸åï¼ä¸ç¬¬ä¸ä¸ª UUID çæé«ææå段大äºç¬¬äºä¸ª UUID ç对åºå段ï¼å第ä¸ä¸ª UUID 大äºç¬¬äºä¸ª UUIDã |
| | | * |
| | | * @param val 䏿¤ UUID æ¯è¾ç UUID |
| | | * |
| | | * @return 卿¤ UUID å°äºãçäºæå¤§äº val æ¶ï¼åå«è¿å -1ã0 æ 1ã |
| | | * |
| | | */ |
| | | public int compareTo(UUID val) |
| | | { |
| | | // The ordering is intentionally set up so that the UUIDs |
| | | // can simply be numerically compared as two numbers |
| | | return (this.mostSigBits < val.mostSigBits ? -1 : // |
| | | (this.mostSigBits > val.mostSigBits ? 1 : // |
| | | (this.leastSigBits < val.leastSigBits ? -1 : // |
| | | (this.leastSigBits > val.leastSigBits ? 1 : // |
| | | 0)))); |
| | | } |
| | | |
| | | // ------------------------------------------------------------------------------------------------------------------- |
| | | // Private method start |
| | | /** |
| | | * è¿åæå®æ°å对åºçhexå¼ |
| | | * |
| | | * @param val å¼ |
| | | * @param digits ä½ |
| | | * @return å¼ |
| | | */ |
| | | private static String digits(long val, int digits) |
| | | { |
| | | long hi = 1L << (digits * 4); |
| | | return Long.toHexString(hi | (val & (hi - 1))).substring(1); |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥æ¯å¦ä¸ºtime-basedçæ¬UUID |
| | | */ |
| | | private void checkTimeBase() |
| | | { |
| | | if (version() != 1) |
| | | { |
| | | throw new UnsupportedOperationException("Not a time-based UUID"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·å{@link SecureRandom}ï¼ç±»æä¾å å¯çå¼ºéæºæ°çæå¨ (RNG) |
| | | * |
| | | * @return {@link SecureRandom} |
| | | */ |
| | | public static SecureRandom getSecureRandom() |
| | | { |
| | | try |
| | | { |
| | | return SecureRandom.getInstance("SHA1PRNG"); |
| | | } |
| | | catch (NoSuchAlgorithmException e) |
| | | { |
| | | throw new UtilException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åéæºæ°çæå¨å¯¹è±¡<br> |
| | | * ThreadLocalRandomæ¯JDK 7ä¹åæä¾å¹¶å产çéæºæ°ï¼è½å¤è§£å³å¤ä¸ªçº¿ç¨åççç«äºäºå¤ºã |
| | | * |
| | | * @return {@link ThreadLocalRandom} |
| | | */ |
| | | public static ThreadLocalRandom getRandom() |
| | | { |
| | | return ThreadLocalRandom.current(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.core.text; |
| | | |
| | | import java.nio.charset.Charset; |
| | | import java.nio.charset.StandardCharsets; |
| | | |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * å符éå·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class CharsetKit |
| | | { |
| | | /** ISO-8859-1 */ |
| | | public static final String ISO_8859_1 = "ISO-8859-1"; |
| | | /** UTF-8 */ |
| | | public static final String UTF_8 = "UTF-8"; |
| | | /** GBK */ |
| | | public static final String GBK = "GBK"; |
| | | |
| | | /** ISO-8859-1 */ |
| | | public static final Charset CHARSET_ISO_8859_1 = StandardCharsets.ISO_8859_1; |
| | | /** UTF-8 */ |
| | | public static final Charset CHARSET_UTF_8 = StandardCharsets.UTF_8; |
| | | /** GBK */ |
| | | public static final Charset CHARSET_GBK = Charset.forName(GBK); |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºCharset对象 |
| | | * |
| | | * @param charset å符éï¼ä¸ºç©ºåè¿åé»è®¤å符é |
| | | * @return Charset |
| | | */ |
| | | public static Charset charset(String charset) |
| | | { |
| | | return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢å符串çå符éç¼ç |
| | | * |
| | | * @param source å符串 |
| | | * @param srcCharset æºå符éï¼é»è®¤ISO-8859-1 |
| | | * @param destCharset ç®æ å符éï¼é»è®¤UTF-8 |
| | | * @return 转æ¢åçå符é |
| | | */ |
| | | public static String convert(String source, String srcCharset, String destCharset) |
| | | { |
| | | return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset)); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢å符串çå符éç¼ç |
| | | * |
| | | * @param source å符串 |
| | | * @param srcCharset æºå符éï¼é»è®¤ISO-8859-1 |
| | | * @param destCharset ç®æ å符éï¼é»è®¤UTF-8 |
| | | * @return 转æ¢åçå符é |
| | | */ |
| | | public static String convert(String source, Charset srcCharset, Charset destCharset) |
| | | { |
| | | if (null == srcCharset) |
| | | { |
| | | srcCharset = StandardCharsets.ISO_8859_1; |
| | | } |
| | | |
| | | if (null == destCharset) |
| | | { |
| | | srcCharset = StandardCharsets.UTF_8; |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) |
| | | { |
| | | return source; |
| | | } |
| | | return new String(source.getBytes(srcCharset), destCharset); |
| | | } |
| | | |
| | | /** |
| | | * @return ç³»ç»å符éç¼ç |
| | | */ |
| | | public static String systemCharset() |
| | | { |
| | | return Charset.defaultCharset().name(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.core.text; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | | import java.nio.ByteBuffer; |
| | | import java.nio.charset.Charset; |
| | | import java.text.NumberFormat; |
| | | import java.util.Set; |
| | | |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * ç±»å转æ¢å¨ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class Convert |
| | | { |
| | | /** |
| | | * 转æ¢ä¸ºå符串<br> |
| | | * 妿ç»å®çå¼ä¸ºnullï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static String toStr(Object value, String defaultValue) |
| | | { |
| | | if (null == value) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof String) |
| | | { |
| | | return (String) value; |
| | | } |
| | | return value.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºå符串<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static String toStr(Object value) |
| | | { |
| | | return toStr(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºå符<br> |
| | | * 妿ç»å®çå¼ä¸ºnullï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Character toChar(Object value, Character defaultValue) |
| | | { |
| | | if (null == value) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Character) |
| | | { |
| | | return (Character) value; |
| | | } |
| | | |
| | | final String valueStr = toStr(value, null); |
| | | return StringUtils.isEmpty(valueStr) ? defaultValue : valueStr.charAt(0); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºå符<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Character toChar(Object value) |
| | | { |
| | | return toChar(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºbyte<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Byte toByte(Object value, Byte defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Byte) |
| | | { |
| | | return (Byte) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).byteValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return Byte.parseByte(valueStr); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºbyte<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Byte toByte(Object value) |
| | | { |
| | | return toByte(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºShort<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Short toShort(Object value, Short defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Short) |
| | | { |
| | | return (Short) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).shortValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return Short.parseShort(valueStr.trim()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºShort<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Short toShort(Object value) |
| | | { |
| | | return toShort(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºNumber<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Number toNumber(Object value, Number defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return (Number) value; |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return NumberFormat.getInstance().parse(valueStr); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºNumber<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Number toNumber(Object value) |
| | | { |
| | | return toNumber(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºint<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Integer toInt(Object value, Integer defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Integer) |
| | | { |
| | | return (Integer) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).intValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return Integer.parseInt(valueStr.trim()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºint<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Integer toInt(Object value) |
| | | { |
| | | return toInt(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºIntegeræ°ç»<br> |
| | | * |
| | | * @param str 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Integer[] toIntArray(String str) |
| | | { |
| | | return toIntArray(",", str); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºLongæ°ç»<br> |
| | | * |
| | | * @param str 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Long[] toLongArray(String str) |
| | | { |
| | | return toLongArray(",", str); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºIntegeræ°ç»<br> |
| | | * |
| | | * @param split åé符 |
| | | * @param split 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Integer[] toIntArray(String split, String str) |
| | | { |
| | | if (StringUtils.isEmpty(str)) |
| | | { |
| | | return new Integer[] {}; |
| | | } |
| | | String[] arr = str.split(split); |
| | | final Integer[] ints = new Integer[arr.length]; |
| | | for (int i = 0; i < arr.length; i++) |
| | | { |
| | | final Integer v = toInt(arr[i], 0); |
| | | ints[i] = v; |
| | | } |
| | | return ints; |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºLongæ°ç»<br> |
| | | * |
| | | * @param split åé符 |
| | | * @param str 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Long[] toLongArray(String split, String str) |
| | | { |
| | | if (StringUtils.isEmpty(str)) |
| | | { |
| | | return new Long[] {}; |
| | | } |
| | | String[] arr = str.split(split); |
| | | final Long[] longs = new Long[arr.length]; |
| | | for (int i = 0; i < arr.length; i++) |
| | | { |
| | | final Long v = toLong(arr[i], null); |
| | | longs[i] = v; |
| | | } |
| | | return longs; |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºStringæ°ç»<br> |
| | | * |
| | | * @param str 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static String[] toStrArray(String str) |
| | | { |
| | | return toStrArray(",", str); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºStringæ°ç»<br> |
| | | * |
| | | * @param split åé符 |
| | | * @param split 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static String[] toStrArray(String split, String str) |
| | | { |
| | | return str.split(split); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºlong<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Long toLong(Object value, Long defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Long) |
| | | { |
| | | return (Long) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).longValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | // æ¯æç§å¦è®¡æ°æ³ |
| | | return new BigDecimal(valueStr.trim()).longValue(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºlong<br> |
| | | * 妿ç»å®çå¼ä¸º<code>null</code>ï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Long toLong(Object value) |
| | | { |
| | | return toLong(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºdouble<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Double toDouble(Object value, Double defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Double) |
| | | { |
| | | return (Double) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).doubleValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | // æ¯æç§å¦è®¡æ°æ³ |
| | | return new BigDecimal(valueStr.trim()).doubleValue(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºdouble<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Double toDouble(Object value) |
| | | { |
| | | return toDouble(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºFloat<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Float toFloat(Object value, Float defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Float) |
| | | { |
| | | return (Float) value; |
| | | } |
| | | if (value instanceof Number) |
| | | { |
| | | return ((Number) value).floatValue(); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return Float.parseFloat(valueStr.trim()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºFloat<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Float toFloat(Object value) |
| | | { |
| | | return toFloat(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºboolean<br> |
| | | * Stringæ¯æçå¼ä¸ºï¼trueãfalseãyesãokãnoï¼1,0 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Boolean toBool(Object value, Boolean defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof Boolean) |
| | | { |
| | | return (Boolean) value; |
| | | } |
| | | String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | valueStr = valueStr.trim().toLowerCase(); |
| | | switch (valueStr) |
| | | { |
| | | case "true": |
| | | return true; |
| | | case "false": |
| | | return false; |
| | | case "yes": |
| | | return true; |
| | | case "ok": |
| | | return true; |
| | | case "no": |
| | | return false; |
| | | case "1": |
| | | return true; |
| | | case "0": |
| | | return false; |
| | | default: |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºboolean<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static Boolean toBool(Object value) |
| | | { |
| | | return toBool(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºEnum对象<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * |
| | | * @param clazz EnumçClass |
| | | * @param value å¼ |
| | | * @param defaultValue é»è®¤å¼ |
| | | * @return Enum |
| | | */ |
| | | public static <E extends Enum<E>> E toEnum(Class<E> clazz, Object value, E defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (clazz.isAssignableFrom(value.getClass())) |
| | | { |
| | | @SuppressWarnings("unchecked") |
| | | E myE = (E) value; |
| | | return myE; |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return Enum.valueOf(clazz, valueStr); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºEnum对象<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * |
| | | * @param clazz EnumçClass |
| | | * @param value å¼ |
| | | * @return Enum |
| | | */ |
| | | public static <E extends Enum<E>> E toEnum(Class<E> clazz, Object value) |
| | | { |
| | | return toEnum(clazz, value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºBigInteger<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static BigInteger toBigInteger(Object value, BigInteger defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof BigInteger) |
| | | { |
| | | return (BigInteger) value; |
| | | } |
| | | if (value instanceof Long) |
| | | { |
| | | return BigInteger.valueOf((Long) value); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return new BigInteger(valueStr); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºBigInteger<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<code>null</code><br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static BigInteger toBigInteger(Object value) |
| | | { |
| | | return toBigInteger(value, null); |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºBigDecimal<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @param defaultValue 转æ¢é误æ¶çé»è®¤å¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) |
| | | { |
| | | if (value == null) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | if (value instanceof BigDecimal) |
| | | { |
| | | return (BigDecimal) value; |
| | | } |
| | | if (value instanceof Long) |
| | | { |
| | | return new BigDecimal((Long) value); |
| | | } |
| | | if (value instanceof Double) |
| | | { |
| | | return new BigDecimal((Double) value); |
| | | } |
| | | if (value instanceof Integer) |
| | | { |
| | | return new BigDecimal((Integer) value); |
| | | } |
| | | final String valueStr = toStr(value, null); |
| | | if (StringUtils.isEmpty(valueStr)) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | try |
| | | { |
| | | return new BigDecimal(valueStr); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return defaultValue; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 转æ¢ä¸ºBigDecimal<br> |
| | | * 妿ç»å®çå¼ä¸ºç©ºï¼æè
转æ¢å¤±è´¥ï¼è¿åé»è®¤å¼<br> |
| | | * 转æ¢å¤±è´¥ä¸ä¼æ¥é |
| | | * |
| | | * @param value 被转æ¢çå¼ |
| | | * @return ç»æ |
| | | */ |
| | | public static BigDecimal toBigDecimal(Object value) |
| | | { |
| | | return toBigDecimal(value, null); |
| | | } |
| | | |
| | | /** |
| | | * å°å¯¹è±¡è½¬ä¸ºå符串<br> |
| | | * 1ãByteæ°ç»åByteBufferä¼è¢«è½¬æ¢ä¸ºå¯¹åºåç¬¦ä¸²çæ°ç» 2ã对象æ°ç»ä¼è°ç¨Arrays.toStringæ¹æ³ |
| | | * |
| | | * @param obj 对象 |
| | | * @return å符串 |
| | | */ |
| | | public static String utf8Str(Object obj) |
| | | { |
| | | return str(obj, CharsetKit.CHARSET_UTF_8); |
| | | } |
| | | |
| | | /** |
| | | * å°å¯¹è±¡è½¬ä¸ºå符串<br> |
| | | * 1ãByteæ°ç»åByteBufferä¼è¢«è½¬æ¢ä¸ºå¯¹åºåç¬¦ä¸²çæ°ç» 2ã对象æ°ç»ä¼è°ç¨Arrays.toStringæ¹æ³ |
| | | * |
| | | * @param obj 对象 |
| | | * @param charsetName å符é |
| | | * @return å符串 |
| | | */ |
| | | public static String str(Object obj, String charsetName) |
| | | { |
| | | return str(obj, Charset.forName(charsetName)); |
| | | } |
| | | |
| | | /** |
| | | * å°å¯¹è±¡è½¬ä¸ºå符串<br> |
| | | * 1ãByteæ°ç»åByteBufferä¼è¢«è½¬æ¢ä¸ºå¯¹åºåç¬¦ä¸²çæ°ç» 2ã对象æ°ç»ä¼è°ç¨Arrays.toStringæ¹æ³ |
| | | * |
| | | * @param obj 对象 |
| | | * @param charset å符é |
| | | * @return å符串 |
| | | */ |
| | | public static String str(Object obj, Charset charset) |
| | | { |
| | | if (null == obj) |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | if (obj instanceof String) |
| | | { |
| | | return (String) obj; |
| | | } |
| | | else if (obj instanceof byte[] || obj instanceof Byte[]) |
| | | { |
| | | return str(obj, charset); |
| | | } |
| | | else if (obj instanceof ByteBuffer) |
| | | { |
| | | return str((ByteBuffer) obj, charset); |
| | | } |
| | | return obj.toString(); |
| | | } |
| | | |
| | | /** |
| | | * å°byteæ°ç»è½¬ä¸ºå符串 |
| | | * |
| | | * @param bytes byteæ°ç» |
| | | * @param charset å符é |
| | | * @return å符串 |
| | | */ |
| | | public static String str(byte[] bytes, String charset) |
| | | { |
| | | return str(bytes, StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset)); |
| | | } |
| | | |
| | | /** |
| | | * è§£ç åèç |
| | | * |
| | | * @param data å符串 |
| | | * @param charset å符éï¼å¦ææ¤å段为空ï¼åè§£ç çç»æåå³äºå¹³å° |
| | | * @return è§£ç åçå符串 |
| | | */ |
| | | public static String str(byte[] data, Charset charset) |
| | | { |
| | | if (data == null) |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | if (null == charset) |
| | | { |
| | | return new String(data); |
| | | } |
| | | return new String(data, charset); |
| | | } |
| | | |
| | | /** |
| | | * å°ç¼ç çbyteBufferæ°æ®è½¬æ¢ä¸ºå符串 |
| | | * |
| | | * @param data æ°æ® |
| | | * @param charset å符éï¼å¦æä¸ºç©ºä½¿ç¨å½åç³»ç»å符é |
| | | * @return å符串 |
| | | */ |
| | | public static String str(ByteBuffer data, String charset) |
| | | { |
| | | if (data == null) |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | return str(data, Charset.forName(charset)); |
| | | } |
| | | |
| | | /** |
| | | * å°ç¼ç çbyteBufferæ°æ®è½¬æ¢ä¸ºå符串 |
| | | * |
| | | * @param data æ°æ® |
| | | * @param charset å符éï¼å¦æä¸ºç©ºä½¿ç¨å½åç³»ç»å符é |
| | | * @return å符串 |
| | | */ |
| | | public static String str(ByteBuffer data, Charset charset) |
| | | { |
| | | if (null == charset) |
| | | { |
| | | charset = Charset.defaultCharset(); |
| | | } |
| | | return charset.decode(data).toString(); |
| | | } |
| | | |
| | | // ----------------------------------------------------------------------- å
¨è§åè§è½¬æ¢ |
| | | /** |
| | | * åè§è½¬å
¨è§ |
| | | * |
| | | * @param input String. |
| | | * @return å
¨è§å符串. |
| | | */ |
| | | public static String toSBC(String input) |
| | | { |
| | | return toSBC(input, null); |
| | | } |
| | | |
| | | /** |
| | | * åè§è½¬å
¨è§ |
| | | * |
| | | * @param input String |
| | | * @param notConvertSet 䏿¿æ¢çå符éå |
| | | * @return å
¨è§å符串. |
| | | */ |
| | | public static String toSBC(String input, Set<Character> notConvertSet) |
| | | { |
| | | char[] c = input.toCharArray(); |
| | | for (int i = 0; i < c.length; i++) |
| | | { |
| | | if (null != notConvertSet && notConvertSet.contains(c[i])) |
| | | { |
| | | // è·³è¿ä¸æ¿æ¢çå符 |
| | | continue; |
| | | } |
| | | |
| | | if (c[i] == ' ') |
| | | { |
| | | c[i] = '\u3000'; |
| | | } |
| | | else if (c[i] < '\177') |
| | | { |
| | | c[i] = (char) (c[i] + 65248); |
| | | |
| | | } |
| | | } |
| | | return new String(c); |
| | | } |
| | | |
| | | /** |
| | | * å
¨è§è½¬åè§ |
| | | * |
| | | * @param input String. |
| | | * @return åè§å符串 |
| | | */ |
| | | public static String toDBC(String input) |
| | | { |
| | | return toDBC(input, null); |
| | | } |
| | | |
| | | /** |
| | | * æ¿æ¢å
¨è§ä¸ºåè§ |
| | | * |
| | | * @param text ææ¬ |
| | | * @param notConvertSet 䏿¿æ¢çå符éå |
| | | * @return æ¿æ¢åçå符 |
| | | */ |
| | | public static String toDBC(String text, Set<Character> notConvertSet) |
| | | { |
| | | char[] c = text.toCharArray(); |
| | | for (int i = 0; i < c.length; i++) |
| | | { |
| | | if (null != notConvertSet && notConvertSet.contains(c[i])) |
| | | { |
| | | // è·³è¿ä¸æ¿æ¢çå符 |
| | | continue; |
| | | } |
| | | |
| | | if (c[i] == '\u3000') |
| | | { |
| | | c[i] = ' '; |
| | | } |
| | | else if (c[i] > '\uFF00' && c[i] < '\uFF5F') |
| | | { |
| | | c[i] = (char) (c[i] - 65248); |
| | | } |
| | | } |
| | | String returnString = new String(c); |
| | | |
| | | return returnString; |
| | | } |
| | | |
| | | /** |
| | | * æ°åéé¢å¤§åè½¬æ¢ å
åä¸ªå®æ´çç¶åå°å¦é¶æ¾æ¿æ¢æé¶ |
| | | * |
| | | * @param n æ°å |
| | | * @return 䏿大忰å |
| | | */ |
| | | public static String digitUppercase(double n) |
| | | { |
| | | String[] fraction = { "è§", "å" }; |
| | | String[] digit = { "é¶", "壹", "è´°", "å", "è", "ä¼", "é", "æ", "æ", "ç" }; |
| | | String[][] unit = { { "å
", "ä¸", "亿" }, { "", "æ¾", "ä½°", "ä»" } }; |
| | | |
| | | String head = n < 0 ? "è´" : ""; |
| | | n = Math.abs(n); |
| | | |
| | | String s = ""; |
| | | for (int i = 0; i < fraction.length; i++) |
| | | { |
| | | s += (digit[(int) (Math.floor(n * 10 * Math.pow(10, i)) % 10)] + fraction[i]).replaceAll("(é¶.)+", ""); |
| | | } |
| | | if (s.length() < 1) |
| | | { |
| | | s = "æ´"; |
| | | } |
| | | int integerPart = (int) Math.floor(n); |
| | | |
| | | for (int i = 0; i < unit[0].length && integerPart > 0; i++) |
| | | { |
| | | String p = ""; |
| | | for (int j = 0; j < unit[1].length && n > 0; j++) |
| | | { |
| | | p = digit[integerPart % 10] + unit[1][j] + p; |
| | | integerPart = integerPart / 10; |
| | | } |
| | | s = p.replaceAll("(é¶.)*é¶$", "").replaceAll("^$", "é¶") + unit[0][i] + s; |
| | | } |
| | | return head + s.replaceAll("(é¶.)*é¶å
", "å
").replaceFirst("(é¶.)+", "").replaceAll("(é¶.)+", "é¶").replaceAll("^æ´$", "é¶å
æ´"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.core.text; |
| | | |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * åç¬¦ä¸²æ ¼å¼å |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class StrFormatter |
| | | { |
| | | public static final String EMPTY_JSON = "{}"; |
| | | public static final char C_BACKSLASH = '\\'; |
| | | public static final char C_DELIM_START = '{'; |
| | | public static final char C_DELIM_END = '}'; |
| | | |
| | | /** |
| | | * æ ¼å¼åå符串<br> |
| | | * æ¤æ¹æ³åªæ¯ç®åå°å ä½ç¬¦ {} æç
§é¡ºåºæ¿æ¢ä¸ºåæ°<br> |
| | | * 妿æ³è¾åº {} ä½¿ç¨ \\è½¬ä¹ { å³å¯ï¼å¦ææ³è¾åº {} ä¹åç \ 使ç¨å转ä¹ç¬¦ \\\\ å³å¯<br> |
| | | * ä¾ï¼<br> |
| | | * é常使ç¨ï¼format("this is {} for {}", "a", "b") -> this is a for b<br> |
| | | * 转ä¹{}ï¼ format("this is \\{} for {}", "a", "b") -> this is \{} for a<br> |
| | | * 转ä¹\ï¼ format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br> |
| | | * |
| | | * @param strPattern åç¬¦ä¸²æ¨¡æ¿ |
| | | * @param argArray åæ°å表 |
| | | * @return ç»æ |
| | | */ |
| | | public static String format(final String strPattern, final Object... argArray) |
| | | { |
| | | if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray)) |
| | | { |
| | | return strPattern; |
| | | } |
| | | final int strPatternLength = strPattern.length(); |
| | | |
| | | // åå§åå®ä¹å¥½çé¿åº¦ä»¥è·å¾æ´å¥½çæ§è½ |
| | | StringBuilder sbuf = new StringBuilder(strPatternLength + 50); |
| | | |
| | | int handledPosition = 0; |
| | | int delimIndex;// å ä½ç¬¦æå¨ä½ç½® |
| | | for (int argIndex = 0; argIndex < argArray.length; argIndex++) |
| | | { |
| | | delimIndex = strPattern.indexOf(EMPTY_JSON, handledPosition); |
| | | if (delimIndex == -1) |
| | | { |
| | | if (handledPosition == 0) |
| | | { |
| | | return strPattern; |
| | | } |
| | | else |
| | | { // å符串模æ¿å©ä½é¨åä¸åå
å«å ä½ç¬¦ï¼å å
¥å©ä½é¨ååè¿åç»æ |
| | | sbuf.append(strPattern, handledPosition, strPatternLength); |
| | | return sbuf.toString(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == C_BACKSLASH) |
| | | { |
| | | if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == C_BACKSLASH) |
| | | { |
| | | // 转ä¹ç¬¦ä¹åè¿æä¸ä¸ªè½¬ä¹ç¬¦ï¼å ä½ç¬¦ä¾æ§ææ |
| | | sbuf.append(strPattern, handledPosition, delimIndex - 1); |
| | | sbuf.append(Convert.utf8Str(argArray[argIndex])); |
| | | handledPosition = delimIndex + 2; |
| | | } |
| | | else |
| | | { |
| | | // å ä½ç¬¦è¢«è½¬ä¹ |
| | | argIndex--; |
| | | sbuf.append(strPattern, handledPosition, delimIndex - 1); |
| | | sbuf.append(C_DELIM_START); |
| | | handledPosition = delimIndex + 1; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // æ£å¸¸å ä½ç¬¦ |
| | | sbuf.append(strPattern, handledPosition, delimIndex); |
| | | sbuf.append(Convert.utf8Str(argArray[argIndex])); |
| | | handledPosition = delimIndex + 2; |
| | | } |
| | | } |
| | | } |
| | | // å å
¥æåä¸ä¸ªå ä½ç¬¦åææçå符 |
| | | sbuf.append(strPattern, handledPosition, strPattern.length()); |
| | | |
| | | return sbuf.toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.enums; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import org.springframework.lang.Nullable; |
| | | |
| | | /** |
| | | * è¯·æ±æ¹å¼ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public enum HttpMethod |
| | | { |
| | | GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE; |
| | | |
| | | private static final Map<String, HttpMethod> mappings = new HashMap<>(16); |
| | | |
| | | static |
| | | { |
| | | for (HttpMethod httpMethod : values()) |
| | | { |
| | | mappings.put(httpMethod.name(), httpMethod); |
| | | } |
| | | } |
| | | |
| | | @Nullable |
| | | public static HttpMethod resolve(@Nullable String method) |
| | | { |
| | | return (method != null ? mappings.get(method) : null); |
| | | } |
| | | |
| | | public boolean matches(String method) |
| | | { |
| | | return (this == resolve(method)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.enums; |
| | | |
| | | /** |
| | | * ç¨æ·ç¶æ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public enum UserStatus |
| | | { |
| | | OK("0", "æ£å¸¸"), DISABLE("1", "åç¨"), DELETED("2", "å é¤"); |
| | | |
| | | private final String code; |
| | | private final String info; |
| | | |
| | | UserStatus(String code, String info) |
| | | { |
| | | this.code = code; |
| | | this.info = info; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public String getInfo() |
| | | { |
| | | return info; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception; |
| | | |
| | | import com.dingzhuo.energy.common.utils.MessageUtils; |
| | | import com.dingzhuo.energy.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * åºç¡å¼å¸¸ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class BaseException extends RuntimeException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * æå±æ¨¡å |
| | | */ |
| | | private String module; |
| | | |
| | | /** |
| | | * é误ç |
| | | */ |
| | | private String code; |
| | | |
| | | /** |
| | | * é误ç 对åºçåæ° |
| | | */ |
| | | private Object[] args; |
| | | |
| | | /** |
| | | * éè¯¯æ¶æ¯ |
| | | */ |
| | | private String defaultMessage; |
| | | |
| | | public BaseException(String module, String code, Object[] args, String defaultMessage) |
| | | { |
| | | this.module = module; |
| | | this.code = code; |
| | | this.args = args; |
| | | this.defaultMessage = defaultMessage; |
| | | } |
| | | |
| | | public BaseException(String module, String code, Object[] args) |
| | | { |
| | | this(module, code, args, null); |
| | | } |
| | | |
| | | public BaseException(String module, String defaultMessage) |
| | | { |
| | | this(module, null, null, defaultMessage); |
| | | } |
| | | |
| | | public BaseException(String code, Object[] args) |
| | | { |
| | | this(null, code, args, null); |
| | | } |
| | | |
| | | public BaseException(String defaultMessage) |
| | | { |
| | | this(null, null, null, defaultMessage); |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() |
| | | { |
| | | String message = null; |
| | | if (!StringUtils.isEmpty(code)) |
| | | { |
| | | message = MessageUtils.message(code, args); |
| | | } |
| | | if (message == null) |
| | | { |
| | | message = defaultMessage; |
| | | } |
| | | return message; |
| | | } |
| | | |
| | | public String getModule() |
| | | { |
| | | return module; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | |
| | | public Object[] getArgs() |
| | | { |
| | | return args; |
| | | } |
| | | |
| | | public String getDefaultMessage() |
| | | { |
| | | return defaultMessage; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception; |
| | | |
| | | /** |
| | | * èªå®ä¹å¼å¸¸ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class CustomException extends RuntimeException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private Integer code; |
| | | |
| | | private String message; |
| | | |
| | | public CustomException(String message) |
| | | { |
| | | this.message = message; |
| | | } |
| | | |
| | | public CustomException(String message, Integer code) |
| | | { |
| | | this.message = message; |
| | | this.code = code; |
| | | } |
| | | |
| | | public CustomException(String message, Throwable e) |
| | | { |
| | | super(message, e); |
| | | this.message = message; |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() |
| | | { |
| | | return message; |
| | | } |
| | | |
| | | public Integer getCode() |
| | | { |
| | | return code; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception; |
| | | |
| | | /** |
| | | * æ¼ç¤ºæ¨¡å¼å¼å¸¸ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class DemoModeException extends RuntimeException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public DemoModeException() |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception; |
| | | |
| | | /** |
| | | * å·¥å
·ç±»å¼å¸¸ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class UtilException extends RuntimeException |
| | | { |
| | | private static final long serialVersionUID = 8247610319171014183L; |
| | | |
| | | public UtilException(Throwable e) |
| | | { |
| | | super(e.getMessage(), e); |
| | | } |
| | | |
| | | public UtilException(String message) |
| | | { |
| | | super(message); |
| | | } |
| | | |
| | | public UtilException(String message, Throwable throwable) |
| | | { |
| | | super(message, throwable); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.file; |
| | | |
| | | import com.dingzhuo.energy.common.exception.BaseException; |
| | | |
| | | /** |
| | | * æä»¶ä¿¡æ¯å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class FileException extends BaseException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public FileException(String code, Object[] args) |
| | | { |
| | | super("file", code, args, null); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.file; |
| | | |
| | | /** |
| | | * æä»¶åç§°è¶
é¿éå¶å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class FileNameLengthLimitExceededException extends FileException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public FileNameLengthLimitExceededException(int defaultFileNameLength) |
| | | { |
| | | super("upload.filename.exceed.length", new Object[] { defaultFileNameLength }); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.file; |
| | | |
| | | /** |
| | | * æä»¶å大å°éå¶å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class FileSizeLimitExceededException extends FileException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public FileSizeLimitExceededException(long defaultMaxSize) |
| | | { |
| | | super("upload.exceed.maxSize", new Object[] { defaultMaxSize }); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.file; |
| | | |
| | | import java.util.Arrays; |
| | | import org.apache.commons.fileupload.FileUploadException; |
| | | |
| | | /** |
| | | * æä»¶ä¸ä¼ 误å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class InvalidExtensionException extends FileUploadException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private String[] allowedExtension; |
| | | private String extension; |
| | | private String filename; |
| | | |
| | | public InvalidExtensionException(String[] allowedExtension, String extension, String filename) |
| | | { |
| | | super("filename : [" + filename + "], extension : [" + extension + "], allowed extension : [" + Arrays.toString(allowedExtension) + "]"); |
| | | this.allowedExtension = allowedExtension; |
| | | this.extension = extension; |
| | | this.filename = filename; |
| | | } |
| | | |
| | | public String[] getAllowedExtension() |
| | | { |
| | | return allowedExtension; |
| | | } |
| | | |
| | | public String getExtension() |
| | | { |
| | | return extension; |
| | | } |
| | | |
| | | public String getFilename() |
| | | { |
| | | return filename; |
| | | } |
| | | |
| | | public static class InvalidImageExtensionException extends InvalidExtensionException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public InvalidImageExtensionException(String[] allowedExtension, String extension, String filename) |
| | | { |
| | | super(allowedExtension, extension, filename); |
| | | } |
| | | } |
| | | |
| | | public static class InvalidFlashExtensionException extends InvalidExtensionException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public InvalidFlashExtensionException(String[] allowedExtension, String extension, String filename) |
| | | { |
| | | super(allowedExtension, extension, filename); |
| | | } |
| | | } |
| | | |
| | | public static class InvalidMediaExtensionException extends InvalidExtensionException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public InvalidMediaExtensionException(String[] allowedExtension, String extension, String filename) |
| | | { |
| | | super(allowedExtension, extension, filename); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.user; |
| | | |
| | | /** |
| | | * éªè¯ç é误å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class CaptchaException extends UserException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public CaptchaException() |
| | | { |
| | | super("user.jcaptcha.error", null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.user; |
| | | |
| | | /** |
| | | * éªè¯ç 失æå¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class CaptchaExpireException extends UserException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public CaptchaExpireException() |
| | | { |
| | | super("user.jcaptcha.expire", null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.user; |
| | | |
| | | import com.dingzhuo.energy.common.exception.BaseException; |
| | | |
| | | /** |
| | | * ç¨æ·ä¿¡æ¯å¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class UserException extends BaseException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public UserException(String code, Object[] args) |
| | | { |
| | | super("user", code, args, null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.exception.user; |
| | | |
| | | /** |
| | | * ç¨æ·å¯ç 䏿£ç¡®æä¸ç¬¦åè§èå¼å¸¸ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class UserPasswordNotMatchException extends UserException |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public UserPasswordNotMatchException() |
| | | { |
| | | super("user.password.not.match", null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | |
| | | /** |
| | | * ç²¾ç¡®çæµ®ç¹æ°è¿ç® |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class Arith |
| | | { |
| | | |
| | | /** é»è®¤é¤æ³è¿ç®ç²¾åº¦ */ |
| | | private static final int DEF_DIV_SCALE = 10; |
| | | |
| | | /** è¿ä¸ªç±»ä¸è½å®ä¾å */ |
| | | private Arith() |
| | | { |
| | | } |
| | | |
| | | /** |
| | | * æä¾ç²¾ç¡®çå æ³è¿ç®ã |
| | | * @param v1 è¢«å æ° |
| | | * @param v2 å æ° |
| | | * @return ä¸¤ä¸ªåæ°çå |
| | | */ |
| | | public static double add(double v1, double v2) |
| | | { |
| | | BigDecimal b1 = new BigDecimal(Double.toString(v1)); |
| | | BigDecimal b2 = new BigDecimal(Double.toString(v2)); |
| | | return b1.add(b2).doubleValue(); |
| | | } |
| | | |
| | | /** |
| | | * æä¾ç²¾ç¡®çåæ³è¿ç®ã |
| | | * @param v1 è¢«åæ° |
| | | * @param v2 åæ° |
| | | * @return ä¸¤ä¸ªåæ°çå·® |
| | | */ |
| | | public static double sub(double v1, double v2) |
| | | { |
| | | BigDecimal b1 = new BigDecimal(Double.toString(v1)); |
| | | BigDecimal b2 = new BigDecimal(Double.toString(v2)); |
| | | return b1.subtract(b2).doubleValue(); |
| | | } |
| | | |
| | | /** |
| | | * æä¾ç²¾ç¡®ç乿³è¿ç®ã |
| | | * @param v1 è¢«ä¹æ° |
| | | * @param v2 乿° |
| | | * @return ä¸¤ä¸ªåæ°ç积 |
| | | */ |
| | | public static double mul(double v1, double v2) |
| | | { |
| | | BigDecimal b1 = new BigDecimal(Double.toString(v1)); |
| | | BigDecimal b2 = new BigDecimal(Double.toString(v2)); |
| | | return b1.multiply(b2).doubleValue(); |
| | | } |
| | | |
| | | /** |
| | | * æä¾ï¼ç¸å¯¹ï¼ç²¾ç¡®ç餿³è¿ç®ï¼å½åçé¤ä¸å°½çæ
嵿¶ï¼ç²¾ç¡®å° |
| | | * å°æ°ç¹ä»¥å10ä½ï¼ä»¥åçæ°ååèäºå
¥ã |
| | | * @param v1 è¢«é¤æ° |
| | | * @param v2 餿° |
| | | * @return ä¸¤ä¸ªåæ°çå |
| | | */ |
| | | public static double div(double v1, double v2) |
| | | { |
| | | return div(v1, v2, DEF_DIV_SCALE); |
| | | } |
| | | |
| | | /** |
| | | * æä¾ï¼ç¸å¯¹ï¼ç²¾ç¡®ç餿³è¿ç®ãå½åçé¤ä¸å°½çæ
嵿¶ï¼ç±scaleåæ°æ |
| | | * å®ç²¾åº¦ï¼ä»¥åçæ°ååèäºå
¥ã |
| | | * @param v1 è¢«é¤æ° |
| | | * @param v2 餿° |
| | | * @param scale 表示表示éè¦ç²¾ç¡®å°å°æ°ç¹ä»¥åå ä½ã |
| | | * @return ä¸¤ä¸ªåæ°çå |
| | | */ |
| | | public static double div(double v1, double v2, int scale) |
| | | { |
| | | if (scale < 0) |
| | | { |
| | | throw new IllegalArgumentException( |
| | | "The scale must be a positive integer or zero"); |
| | | } |
| | | BigDecimal b1 = new BigDecimal(Double.toString(v1)); |
| | | BigDecimal b2 = new BigDecimal(Double.toString(v2)); |
| | | if (b1.compareTo(BigDecimal.ZERO) == 0) |
| | | { |
| | | return BigDecimal.ZERO.doubleValue(); |
| | | } |
| | | return b1.divide(b2, scale, RoundingMode.HALF_UP).doubleValue(); |
| | | } |
| | | |
| | | /** |
| | | * æä¾ç²¾ç¡®çå°æ°ä½åèäºå
¥å¤çã |
| | | * @param v éè¦åèäºå
¥çæ°å |
| | | * @param scale å°æ°ç¹åä¿çå ä½ |
| | | * @return åèäºå
¥åçç»æ |
| | | */ |
| | | public static double round(double v, int scale) |
| | | { |
| | | if (scale < 0) |
| | | { |
| | | throw new IllegalArgumentException( |
| | | "The scale must be a positive integer or zero"); |
| | | } |
| | | BigDecimal b = new BigDecimal(Double.toString(v)); |
| | | BigDecimal one = new BigDecimal("1"); |
| | | return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.lang.management.ManagementFactory; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | |
| | | /** |
| | | * æ¶é´å·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class DateUtils extends org.apache.commons.lang3.time.DateUtils |
| | | { |
| | | public static String YYYY = "yyyy"; |
| | | |
| | | public static String YYYY_MM = "yyyy-MM"; |
| | | |
| | | public static String YYYY_MM_DD = "yyyy-MM-dd"; |
| | | |
| | | public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; |
| | | |
| | | public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; |
| | | |
| | | private static String[] parsePatterns = { |
| | | "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", |
| | | "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", |
| | | "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; |
| | | |
| | | /** |
| | | * è·åå½åDate忥æ |
| | | * |
| | | * @return Date() å½åæ¥æ |
| | | */ |
| | | public static Date getNowDate() |
| | | { |
| | | return new Date(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå½åæ¥æ, é»è®¤æ ¼å¼ä¸ºyyyy-MM-dd |
| | | * |
| | | * @return String |
| | | */ |
| | | public static String getDate() |
| | | { |
| | | return dateTimeNow(YYYY_MM_DD); |
| | | } |
| | | |
| | | public static final String getTime() |
| | | { |
| | | return dateTimeNow(YYYY_MM_DD_HH_MM_SS); |
| | | } |
| | | |
| | | public static final String dateTimeNow() |
| | | { |
| | | return dateTimeNow(YYYYMMDDHHMMSS); |
| | | } |
| | | |
| | | public static final String dateTimeNow(final String format) |
| | | { |
| | | return parseDateToStr(format, new Date()); |
| | | } |
| | | |
| | | public static final String dateTime(final Date date) |
| | | { |
| | | return parseDateToStr(YYYY_MM_DD, date); |
| | | } |
| | | |
| | | public static final String parseDateToStr(final String format, final Date date) |
| | | { |
| | | return new SimpleDateFormat(format).format(date); |
| | | } |
| | | |
| | | public static final Date dateTime(final String format, final String ts) |
| | | { |
| | | try |
| | | { |
| | | return new SimpleDateFormat(format).parse(ts); |
| | | } |
| | | catch (ParseException e) |
| | | { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¥æè·¯å¾ å³å¹´/æ/æ¥ å¦2018/08/08 |
| | | */ |
| | | public static final String datePath() |
| | | { |
| | | Date now = new Date(); |
| | | return DateFormatUtils.format(now, "yyyy/MM/dd"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥æè·¯å¾ å³å¹´/æ/æ¥ å¦20180808 |
| | | */ |
| | | public static final String dateTime() |
| | | { |
| | | Date now = new Date(); |
| | | return DateFormatUtils.format(now, "yyyyMMdd"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥æåå符串转åä¸ºæ¥æ æ ¼å¼ |
| | | */ |
| | | public static Date parseDate(Object str) |
| | | { |
| | | if (str == null) |
| | | { |
| | | return null; |
| | | } |
| | | try |
| | | { |
| | | return parseDate(str.toString(), parsePatterns); |
| | | } |
| | | catch (ParseException e) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åæå¡å¨å¯å¨æ¶é´ |
| | | */ |
| | | public static Date getServerStartDate() |
| | | { |
| | | long time = ManagementFactory.getRuntimeMXBean().getStartTime(); |
| | | return new Date(time); |
| | | } |
| | | |
| | | /** |
| | | * 计ç®ä¸¤ä¸ªæ¶é´å·® |
| | | */ |
| | | public static String getDatePoor(Date endDate, Date nowDate) |
| | | { |
| | | long nd = 1000 * 24 * 60 * 60; |
| | | long nh = 1000 * 60 * 60; |
| | | long nm = 1000 * 60; |
| | | // long ns = 1000; |
| | | // è·å¾ä¸¤ä¸ªæ¶é´çæ¯«ç§æ¶é´å·®å¼ |
| | | long diff = endDate.getTime() - nowDate.getTime(); |
| | | // 计ç®å·®å¤å°å¤© |
| | | long day = diff / nd; |
| | | // 计ç®å·®å¤å°å°æ¶ |
| | | long hour = diff % nd / nh; |
| | | // 计ç®å·®å¤å°åé |
| | | long min = diff % nd % nh / nm; |
| | | // 计ç®å·®å¤å°ç§//è¾åºç»æ |
| | | // long sec = diff % nd % nh % nm / ns; |
| | | return day + "天" + hour + "å°æ¶" + min + "åé"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import com.dingzhuo.energy.common.core.lang.UUID; |
| | | |
| | | /** |
| | | * IDçæå¨å·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class IdUtils |
| | | { |
| | | /** |
| | | * è·åéæºUUID |
| | | * |
| | | * @return éæºUUID |
| | | */ |
| | | public static String randomUUID() |
| | | { |
| | | return UUID.randomUUID().toString(); |
| | | } |
| | | |
| | | /** |
| | | * ç®åçUUIDï¼å»æäºæ¨ªçº¿ |
| | | * |
| | | * @return ç®åçUUIDï¼å»æäºæ¨ªçº¿ |
| | | */ |
| | | public static String simpleUUID() |
| | | { |
| | | return UUID.randomUUID().toString(true); |
| | | } |
| | | |
| | | /** |
| | | * è·åéæºUUIDï¼ä½¿ç¨æ§è½æ´å¥½çThreadLocalRandomçæUUID |
| | | * |
| | | * @return éæºUUID |
| | | */ |
| | | public static String fastUUID() |
| | | { |
| | | return UUID.fastUUID().toString(); |
| | | } |
| | | |
| | | /** |
| | | * ç®åçUUIDï¼å»æäºæ¨ªçº¿ï¼ä½¿ç¨æ§è½æ´å¥½çThreadLocalRandomçæUUID |
| | | * |
| | | * @return ç®åçUUIDï¼å»æäºæ¨ªçº¿ |
| | | */ |
| | | public static String fastSimpleUUID() |
| | | { |
| | | return UUID.fastUUID().toString(true); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | /** |
| | | * å¤çå¹¶è®°å½æ¥å¿æä»¶ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class LogUtils |
| | | { |
| | | public static String getBlock(Object msg) |
| | | { |
| | | if (msg == null) |
| | | { |
| | | msg = ""; |
| | | } |
| | | return "[" + msg.toString() + "]"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import com.dingzhuo.energy.common.utils.spring.SpringUtils; |
| | | import org.springframework.context.MessageSource; |
| | | import org.springframework.context.i18n.LocaleContextHolder; |
| | | import com.dingzhuo.energy.common.utils.spring.SpringUtils; |
| | | |
| | | /** |
| | | * è·åi18nèµæºæä»¶ |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class MessageUtils |
| | | { |
| | | /** |
| | | * æ ¹æ®æ¶æ¯é®ååæ° è·åæ¶æ¯ å§æç»spring messageSource |
| | | * |
| | | * @param code æ¶æ¯é® |
| | | * @param args åæ° |
| | | * @return è·åå½é
åç¿»è¯å¼ |
| | | */ |
| | | public static String message(String code, Object... args) |
| | | { |
| | | MessageSource messageSource = SpringUtils.getBean(MessageSource.class); |
| | | return messageSource.getMessage(code, args, LocaleContextHolder.getLocale()); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import com.dingzhuo.energy.common.constant.HttpStatus; |
| | | import com.dingzhuo.energy.common.exception.CustomException; |
| | | import com.dingzhuo.energy.framework.security.LoginUser; |
| | | import org.springframework.security.core.Authentication; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | | |
| | | /** |
| | | * å®å
¨æå¡å·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SecurityUtils { |
| | | |
| | | /** |
| | | * è·åç¨æ·è´¦æ· |
| | | **/ |
| | | public static String getUsername() { |
| | | try { |
| | | return getLoginUser().getUsername(); |
| | | } catch (Exception e) { |
| | | throw new CustomException("è·åç¨æ·è´¦æ·å¼å¸¸", HttpStatus.UNAUTHORIZED); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨æ· |
| | | **/ |
| | | public static Long getUserId() { |
| | | try { |
| | | return getLoginUser().getUser().getUserId(); |
| | | } catch (Exception e) { |
| | | throw new CustomException("è·åç¨æ·ä¿¡æ¯å¼å¸¸", HttpStatus.UNAUTHORIZED); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨æ· |
| | | **/ |
| | | public static LoginUser getLoginUser() { |
| | | try { |
| | | return (LoginUser) getAuthentication().getPrincipal(); |
| | | } catch (Exception e) { |
| | | throw new CustomException("è·åç¨æ·ä¿¡æ¯å¼å¸¸", HttpStatus.UNAUTHORIZED); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åAuthentication |
| | | */ |
| | | public static Authentication getAuthentication() { |
| | | return SecurityContextHolder.getContext().getAuthentication(); |
| | | } |
| | | |
| | | /** |
| | | * çæBCryptPasswordEncoderå¯ç |
| | | * |
| | | * @param password å¯ç |
| | | * @return å å¯å符串 |
| | | */ |
| | | public static String encryptPassword(String password) { |
| | | BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); |
| | | return passwordEncoder.encode(password); |
| | | } |
| | | |
| | | /** |
| | | * 夿å¯ç æ¯å¦ç¸å |
| | | * |
| | | * @param rawPassword çå®å¯ç |
| | | * @param encodedPassword å å¯åå符 |
| | | * @return ç»æ |
| | | */ |
| | | public static boolean matchesPassword(String rawPassword, String encodedPassword) { |
| | | BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); |
| | | return passwordEncoder.matches(rawPassword, encodedPassword); |
| | | } |
| | | |
| | | /** |
| | | * æ¯å¦ä¸ºç®¡çå |
| | | * |
| | | * @param userId ç¨æ·ID |
| | | * @return ç»æ |
| | | */ |
| | | public static boolean isAdmin(Long userId) { |
| | | return userId != null && 1L == userId; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | import org.springframework.web.context.request.RequestAttributes; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | import com.dingzhuo.energy.common.core.text.Convert; |
| | | |
| | | /** |
| | | * 客æ·ç«¯å·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class ServletUtils |
| | | { |
| | | /** |
| | | * è·åStringåæ° |
| | | */ |
| | | public static String getParameter(String name) |
| | | { |
| | | return getRequest().getParameter(name); |
| | | } |
| | | |
| | | /** |
| | | * è·åStringåæ° |
| | | */ |
| | | public static String getParameter(String name, String defaultValue) |
| | | { |
| | | return Convert.toStr(getRequest().getParameter(name), defaultValue); |
| | | } |
| | | |
| | | /** |
| | | * è·åIntegeråæ° |
| | | */ |
| | | public static Integer getParameterToInt(String name) |
| | | { |
| | | return Convert.toInt(getRequest().getParameter(name)); |
| | | } |
| | | |
| | | /** |
| | | * è·åIntegeråæ° |
| | | */ |
| | | public static Integer getParameterToInt(String name, Integer defaultValue) |
| | | { |
| | | return Convert.toInt(getRequest().getParameter(name), defaultValue); |
| | | } |
| | | |
| | | /** |
| | | * è·årequest |
| | | */ |
| | | public static HttpServletRequest getRequest() |
| | | { |
| | | return getRequestAttributes().getRequest(); |
| | | } |
| | | |
| | | /** |
| | | * è·åresponse |
| | | */ |
| | | public static HttpServletResponse getResponse() |
| | | { |
| | | return getRequestAttributes().getResponse(); |
| | | } |
| | | |
| | | /** |
| | | * è·åsession |
| | | */ |
| | | public static HttpSession getSession() |
| | | { |
| | | return getRequest().getSession(); |
| | | } |
| | | |
| | | public static ServletRequestAttributes getRequestAttributes() |
| | | { |
| | | RequestAttributes attributes = RequestContextHolder.getRequestAttributes(); |
| | | return (ServletRequestAttributes) attributes; |
| | | } |
| | | |
| | | /** |
| | | * å°å符串渲æå°å®¢æ·ç«¯ |
| | | * |
| | | * @param response 渲æå¯¹è±¡ |
| | | * @param string å¾
渲æçå符串 |
| | | * @return null |
| | | */ |
| | | public static String renderString(HttpServletResponse response, String string) |
| | | { |
| | | try |
| | | { |
| | | response.setStatus(200); |
| | | response.setContentType("application/json"); |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.getWriter().print(string); |
| | | } |
| | | catch (IOException e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ¯å¦æ¯Ajax弿¥è¯·æ± |
| | | * |
| | | * @param request |
| | | */ |
| | | public static boolean isAjaxRequest(HttpServletRequest request) |
| | | { |
| | | String accept = request.getHeader("accept"); |
| | | if (accept != null && accept.indexOf("application/json") != -1) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | String xRequestedWith = request.getHeader("X-Requested-With"); |
| | | if (xRequestedWith != null && xRequestedWith.indexOf("XMLHttpRequest") != -1) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | String uri = request.getRequestURI(); |
| | | if (StringUtils.inStringIgnoreCase(uri, ".json", ".xml")) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | String ajax = request.getParameter("__ajax"); |
| | | return StringUtils.inStringIgnoreCase(ajax, "json" , "xml"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | import com.dingzhuo.energy.common.core.text.StrFormatter; |
| | | |
| | | /** |
| | | * å符串工å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class StringUtils extends org.apache.commons.lang3.StringUtils |
| | | { |
| | | /** 空å符串 */ |
| | | private static final String NULLSTR = ""; |
| | | |
| | | /** ä¸å线 */ |
| | | private static final char SEPARATOR = '_'; |
| | | |
| | | /** |
| | | * è·ååæ°ä¸ä¸ºç©ºå¼ |
| | | * |
| | | * @param value defaultValue è¦å¤æçvalue |
| | | * @return value è¿åå¼ |
| | | */ |
| | | public static <T> T nvl(T value, T defaultValue) |
| | | { |
| | | return value != null ? value : defaultValue; |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªCollectionæ¯å¦ä¸ºç©ºï¼ å
å«Listï¼Setï¼Queue |
| | | * |
| | | * @param coll è¦å¤æçCollection |
| | | * @return trueï¼ä¸ºç©º falseï¼é空 |
| | | */ |
| | | public static boolean isEmpty(Collection<?> coll) |
| | | { |
| | | return isNull(coll) || coll.isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªCollectionæ¯å¦é空ï¼å
å«Listï¼Setï¼Queue |
| | | * |
| | | * @param coll è¦å¤æçCollection |
| | | * @return trueï¼é空 falseï¼ç©º |
| | | */ |
| | | public static boolean isNotEmpty(Collection<?> coll) |
| | | { |
| | | return !isEmpty(coll); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå¯¹è±¡æ°ç»æ¯å¦ä¸ºç©º |
| | | * |
| | | * @param objects è¦å¤æç对象æ°ç» |
| | | ** @return trueï¼ä¸ºç©º falseï¼é空 |
| | | */ |
| | | public static boolean isEmpty(Object[] objects) |
| | | { |
| | | return isNull(objects) || (objects.length == 0); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå¯¹è±¡æ°ç»æ¯å¦é空 |
| | | * |
| | | * @param objects è¦å¤æç对象æ°ç» |
| | | * @return trueï¼é空 falseï¼ç©º |
| | | */ |
| | | public static boolean isNotEmpty(Object[] objects) |
| | | { |
| | | return !isEmpty(objects); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªMapæ¯å¦ä¸ºç©º |
| | | * |
| | | * @param map è¦å¤æçMap |
| | | * @return trueï¼ä¸ºç©º falseï¼é空 |
| | | */ |
| | | public static boolean isEmpty(Map<?, ?> map) |
| | | { |
| | | return isNull(map) || map.isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªMapæ¯å¦ä¸ºç©º |
| | | * |
| | | * @param map è¦å¤æçMap |
| | | * @return trueï¼é空 falseï¼ç©º |
| | | */ |
| | | public static boolean isNotEmpty(Map<?, ?> map) |
| | | { |
| | | return !isEmpty(map); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå符串æ¯å¦ä¸ºç©ºä¸² |
| | | * |
| | | * @param str String |
| | | * @return trueï¼ä¸ºç©º falseï¼é空 |
| | | */ |
| | | public static boolean isEmpty(String str) |
| | | { |
| | | return isNull(str) || NULLSTR.equals(str.trim()); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå符串æ¯å¦ä¸ºé空串 |
| | | * |
| | | * @param str String |
| | | * @return trueï¼é空串 falseï¼ç©ºä¸² |
| | | */ |
| | | public static boolean isNotEmpty(String str) |
| | | { |
| | | return !isEmpty(str); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå¯¹è±¡æ¯å¦ä¸ºç©º |
| | | * |
| | | * @param object Object |
| | | * @return trueï¼ä¸ºç©º falseï¼é空 |
| | | */ |
| | | public static boolean isNull(Object object) |
| | | { |
| | | return object == null; |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå¯¹è±¡æ¯å¦é空 |
| | | * |
| | | * @param object Object |
| | | * @return trueï¼é空 falseï¼ç©º |
| | | */ |
| | | public static boolean isNotNull(Object object) |
| | | { |
| | | return !isNull(object); |
| | | } |
| | | |
| | | /** |
| | | * * 夿ä¸ä¸ªå¯¹è±¡æ¯å¦æ¯æ°ç»ç±»åï¼Javaåºæ¬åå«çæ°ç»ï¼ |
| | | * |
| | | * @param object 对象 |
| | | * @return trueï¼æ¯æ°ç» falseï¼ä¸æ¯æ°ç» |
| | | */ |
| | | public static boolean isArray(Object object) |
| | | { |
| | | return isNotNull(object) && object.getClass().isArray(); |
| | | } |
| | | |
| | | /** |
| | | * å»ç©ºæ ¼ |
| | | */ |
| | | public static String trim(String str) |
| | | { |
| | | return (str == null ? "" : str.trim()); |
| | | } |
| | | |
| | | /** |
| | | * æªåå符串 |
| | | * |
| | | * @param str å符串 |
| | | * @param start å¼å§ |
| | | * @return ç»æ |
| | | */ |
| | | public static String substring(final String str, int start) |
| | | { |
| | | if (str == null) |
| | | { |
| | | return NULLSTR; |
| | | } |
| | | |
| | | if (start < 0) |
| | | { |
| | | start = str.length() + start; |
| | | } |
| | | |
| | | if (start < 0) |
| | | { |
| | | start = 0; |
| | | } |
| | | if (start > str.length()) |
| | | { |
| | | return NULLSTR; |
| | | } |
| | | |
| | | return str.substring(start); |
| | | } |
| | | |
| | | /** |
| | | * æªåå符串 |
| | | * |
| | | * @param str å符串 |
| | | * @param start å¼å§ |
| | | * @param end ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public static String substring(final String str, int start, int end) |
| | | { |
| | | if (str == null) |
| | | { |
| | | return NULLSTR; |
| | | } |
| | | |
| | | if (end < 0) |
| | | { |
| | | end = str.length() + end; |
| | | } |
| | | if (start < 0) |
| | | { |
| | | start = str.length() + start; |
| | | } |
| | | |
| | | if (end > str.length()) |
| | | { |
| | | end = str.length(); |
| | | } |
| | | |
| | | if (start > end) |
| | | { |
| | | return NULLSTR; |
| | | } |
| | | |
| | | if (start < 0) |
| | | { |
| | | start = 0; |
| | | } |
| | | if (end < 0) |
| | | { |
| | | end = 0; |
| | | } |
| | | |
| | | return str.substring(start, end); |
| | | } |
| | | |
| | | /** |
| | | * æ ¼å¼åææ¬, {} 表示å ä½ç¬¦<br> |
| | | * æ¤æ¹æ³åªæ¯ç®åå°å ä½ç¬¦ {} æç
§é¡ºåºæ¿æ¢ä¸ºåæ°<br> |
| | | * 妿æ³è¾åº {} ä½¿ç¨ \\è½¬ä¹ { å³å¯ï¼å¦ææ³è¾åº {} ä¹åç \ 使ç¨å转ä¹ç¬¦ \\\\ å³å¯<br> |
| | | * ä¾ï¼<br> |
| | | * é常使ç¨ï¼format("this is {} for {}", "a", "b") -> this is a for b<br> |
| | | * 转ä¹{}ï¼ format("this is \\{} for {}", "a", "b") -> this is \{} for a<br> |
| | | * 转ä¹\ï¼ format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br> |
| | | * |
| | | * @param template ææ¬æ¨¡æ¿ï¼è¢«æ¿æ¢çé¨åç¨ {} 表示 |
| | | * @param params åæ°å¼ |
| | | * @return æ ¼å¼ååçææ¬ |
| | | */ |
| | | public static String format(String template, Object... params) |
| | | { |
| | | if (isEmpty(params) || isEmpty(template)) |
| | | { |
| | | return template; |
| | | } |
| | | return StrFormatter.format(template, params); |
| | | } |
| | | |
| | | /** |
| | | * å符串转set |
| | | * |
| | | * @param str å符串 |
| | | * @param sep åé符 |
| | | * @return setéå |
| | | */ |
| | | public static final Set<String> str2Set(String str, String sep) |
| | | { |
| | | return new HashSet<String>(str2List(str, sep, true, false)); |
| | | } |
| | | |
| | | /** |
| | | * å符串转list |
| | | * |
| | | * @param str å符串 |
| | | * @param sep åé符 |
| | | * @param filterBlank è¿æ»¤çº¯ç©ºç½ |
| | | * @param trim 廿é¦å°¾ç©ºç½ |
| | | * @return listéå |
| | | */ |
| | | public static final List<String> str2List(String str, String sep, boolean filterBlank, boolean trim) |
| | | { |
| | | List<String> list = new ArrayList<String>(); |
| | | if (StringUtils.isEmpty(str)) |
| | | { |
| | | return list; |
| | | } |
| | | |
| | | // è¿æ»¤ç©ºç½å符串 |
| | | if (filterBlank && StringUtils.isBlank(str)) |
| | | { |
| | | return list; |
| | | } |
| | | String[] split = str.split(sep); |
| | | for (String string : split) |
| | | { |
| | | if (filterBlank && StringUtils.isBlank(string)) |
| | | { |
| | | continue; |
| | | } |
| | | if (trim) |
| | | { |
| | | string = string.trim(); |
| | | } |
| | | list.add(string); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * ä¸å线转驼峰å½å |
| | | */ |
| | | public static String toUnderScoreCase(String str) |
| | | { |
| | | if (str == null) |
| | | { |
| | | return null; |
| | | } |
| | | StringBuilder sb = new StringBuilder(); |
| | | // åç½®å符æ¯å¦å¤§å |
| | | boolean preCharIsUpperCase = true; |
| | | // å½åå符æ¯å¦å¤§å |
| | | boolean curreCharIsUpperCase = true; |
| | | // ä¸ä¸å符æ¯å¦å¤§å |
| | | boolean nexteCharIsUpperCase = true; |
| | | for (int i = 0; i < str.length(); i++) |
| | | { |
| | | char c = str.charAt(i); |
| | | if (i > 0) |
| | | { |
| | | preCharIsUpperCase = Character.isUpperCase(str.charAt(i - 1)); |
| | | } |
| | | else |
| | | { |
| | | preCharIsUpperCase = false; |
| | | } |
| | | |
| | | curreCharIsUpperCase = Character.isUpperCase(c); |
| | | |
| | | if (i < (str.length() - 1)) |
| | | { |
| | | nexteCharIsUpperCase = Character.isUpperCase(str.charAt(i + 1)); |
| | | } |
| | | |
| | | if (preCharIsUpperCase && curreCharIsUpperCase && !nexteCharIsUpperCase) |
| | | { |
| | | sb.append(SEPARATOR); |
| | | } |
| | | else if ((i != 0 && !preCharIsUpperCase) && curreCharIsUpperCase) |
| | | { |
| | | sb.append(SEPARATOR); |
| | | } |
| | | sb.append(Character.toLowerCase(c)); |
| | | } |
| | | |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * æ¯å¦å
å«å符串 |
| | | * |
| | | * @param str éªè¯å符串 |
| | | * @param strs åç¬¦ä¸²ç» |
| | | * @return å
å«è¿åtrue |
| | | */ |
| | | public static boolean inStringIgnoreCase(String str, String... strs) |
| | | { |
| | | if (str != null && strs != null) |
| | | { |
| | | for (String s : strs) |
| | | { |
| | | if (str.equalsIgnoreCase(trim(s))) |
| | | { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * å°ä¸åçº¿å¤§åæ¹å¼å½åçå符串转æ¢ä¸ºé©¼å³°å¼ãå¦æè½¬æ¢åçä¸åçº¿å¤§åæ¹å¼å½åçå符串为空ï¼åè¿å空å符串ã ä¾å¦ï¼HELLO_WORLD->HelloWorld |
| | | * |
| | | * @param name 转æ¢åçä¸åçº¿å¤§åæ¹å¼å½åçå符串 |
| | | * @return 转æ¢åç驼峰å¼å½åçå符串 |
| | | */ |
| | | public static String convertToCamelCase(String name) |
| | | { |
| | | StringBuilder result = new StringBuilder(); |
| | | // å¿«éæ£æ¥ |
| | | if (name == null || name.isEmpty()) |
| | | { |
| | | // 没å¿
è¦è½¬æ¢ |
| | | return ""; |
| | | } |
| | | else if (!name.contains("_")) |
| | | { |
| | | // ä¸å«ä¸å线ï¼ä»
å°é¦åæ¯å¤§å |
| | | return name.substring(0, 1).toUpperCase() + name.substring(1); |
| | | } |
| | | // ç¨ä¸å线å°åå§å符串åå² |
| | | String[] camels = name.split("_"); |
| | | for (String camel : camels) |
| | | { |
| | | // è·³è¿åå§å符串ä¸å¼å¤´ãç»å°¾ç䏿¢çº¿æåéä¸å线 |
| | | if (camel.isEmpty()) |
| | | { |
| | | continue; |
| | | } |
| | | // é¦åæ¯å¤§å |
| | | result.append(camel.substring(0, 1).toUpperCase()); |
| | | result.append(camel.substring(1).toLowerCase()); |
| | | } |
| | | return result.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 驼峰å¼å½åæ³ ä¾å¦ï¼user_name->userName |
| | | */ |
| | | public static String toCamelCase(String s) |
| | | { |
| | | if (s == null) |
| | | { |
| | | return null; |
| | | } |
| | | s = s.toLowerCase(); |
| | | StringBuilder sb = new StringBuilder(s.length()); |
| | | boolean upperCase = false; |
| | | for (int i = 0; i < s.length(); i++) |
| | | { |
| | | char c = s.charAt(i); |
| | | |
| | | if (c == SEPARATOR) |
| | | { |
| | | upperCase = true; |
| | | } |
| | | else if (upperCase) |
| | | { |
| | | sb.append(Character.toUpperCase(c)); |
| | | upperCase = false; |
| | | } |
| | | else |
| | | { |
| | | sb.append(c); |
| | | } |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.util.concurrent.CancellationException; |
| | | import java.util.concurrent.ExecutionException; |
| | | import java.util.concurrent.ExecutorService; |
| | | import java.util.concurrent.Future; |
| | | import java.util.concurrent.TimeUnit; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | /** |
| | | * 线ç¨ç¸å
³å·¥å
·ç±». |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class Threads |
| | | { |
| | | private static final Logger logger = LoggerFactory.getLogger(Threads.class); |
| | | |
| | | /** |
| | | * sleepçå¾
,åä½ä¸ºæ¯«ç§ |
| | | */ |
| | | public static void sleep(long milliseconds) |
| | | { |
| | | try |
| | | { |
| | | Thread.sleep(milliseconds); |
| | | } |
| | | catch (InterruptedException e) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åæ¢çº¿ç¨æ± |
| | | * å
使ç¨shutdown, åæ¢æ¥æ¶æ°ä»»å¡å¹¶å°è¯å®æææå·²åå¨ä»»å¡. |
| | | * 妿è¶
æ¶, åè°ç¨shutdownNow, åæ¶å¨workQueueä¸Pendingçä»»å¡,并䏿ææé»å¡å½æ°. |
| | | * 妿ä»äººè¶
æï¼åå¼·å¶éåº. |
| | | * å¦å¯¹å¨shutdownæ¶çº¿ç¨æ¬èº«è¢«è°ç¨ä¸æåäºå¤ç. |
| | | */ |
| | | public static void shutdownAndAwaitTermination(ExecutorService pool) |
| | | { |
| | | if (pool != null && !pool.isShutdown()) |
| | | { |
| | | pool.shutdown(); |
| | | try |
| | | { |
| | | if (!pool.awaitTermination(120, TimeUnit.SECONDS)) |
| | | { |
| | | pool.shutdownNow(); |
| | | if (!pool.awaitTermination(120, TimeUnit.SECONDS)) |
| | | { |
| | | logger.info("Pool did not terminate"); |
| | | } |
| | | } |
| | | } |
| | | catch (InterruptedException ie) |
| | | { |
| | | pool.shutdownNow(); |
| | | Thread.currentThread().interrupt(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æå°çº¿ç¨å¼å¸¸ä¿¡æ¯ |
| | | */ |
| | | public static void printException(Runnable r, Throwable t) |
| | | { |
| | | if (t == null && r instanceof Future<?>) |
| | | { |
| | | try |
| | | { |
| | | Future<?> future = (Future<?>) r; |
| | | if (future.isDone()) |
| | | { |
| | | future.get(); |
| | | } |
| | | } |
| | | catch (CancellationException ce) |
| | | { |
| | | t = ce; |
| | | } |
| | | catch (ExecutionException ee) |
| | | { |
| | | t = ee.getCause(); |
| | | } |
| | | catch (InterruptedException ie) |
| | | { |
| | | Thread.currentThread().interrupt(); |
| | | } |
| | | } |
| | | if (t != null) |
| | | { |
| | | logger.error(t.getMessage(), t); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.dingzhuo.energy.common.utils; |
| | | |
| | | import java.awt.Color; |
| | | import java.awt.Font; |
| | | import java.awt.Graphics; |
| | | import java.awt.Graphics2D; |
| | | import java.awt.RenderingHints; |
| | | import java.awt.geom.AffineTransform; |
| | | import java.awt.image.BufferedImage; |
| | | import java.io.IOException; |
| | | import java.io.OutputStream; |
| | | import java.security.SecureRandom; |
| | | import java.util.Arrays; |
| | | import java.util.Random; |
| | | import javax.imageio.ImageIO; |
| | | |
| | | /** |
| | | * éªè¯ç å·¥å
·ç±» |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class VerifyCodeUtils |
| | | { |
| | | // 使ç¨å°Algerianåä½ï¼ç³»ç»é没æçè¯éè¦å®è£
åä½ï¼åä½åªæ¾ç¤ºå¤§åï¼å»æäº1,0,i,oå ä¸ªå®¹ææ··æ·çå符 |
| | | public static final String VERIFY_CODES = "123456789ABCDEFGHJKLMNPQRSTUVWXYZ"; |
| | | |
| | | private static Random random = new SecureRandom(); |
| | | |
| | | /** |
| | | * 使ç¨ç³»ç»é»è®¤å符æºçæéªè¯ç |
| | | * |
| | | * @param verifySize éªè¯ç é¿åº¦ |
| | | * @return |
| | | */ |
| | | public static String generateVerifyCode(int verifySize) |
| | | { |
| | | return generateVerifyCode(verifySize, VERIFY_CODES); |
| | | } |
| | | |
| | | /** |
| | | * ä½¿ç¨æå®æºçæéªè¯ç |
| | | * |
| | | * @param verifySize éªè¯ç é¿åº¦ |
| | | * @param sources éªè¯ç åç¬¦æº |
| | | * @return |
| | | */ |
| | | public static String generateVerifyCode(int verifySize, String sources) |
| | | { |
| | | if (sources == null || sources.length() == 0) |
| | | { |
| | | sources = VERIFY_CODES; |
| | | } |
| | | int codesLen = sources.length(); |
| | | Random rand = new Random(System.currentTimeMillis()); |
| | | StringBuilder verifyCode = new StringBuilder(verifySize); |
| | | for (int i = 0; i < verifySize; i++) |
| | | { |
| | | verifyCode.append(sources.charAt(rand.nextInt(codesLen - 1))); |
| | | } |
| | | return verifyCode.toString(); |
| | | } |
| | | |
| | | /** |
| | | * è¾åºæå®éªè¯ç å¾çæµ |
| | | * |
| | | * @param w |
| | | * @param h |
| | | * @param os |
| | | * @param code |
| | | * @throws IOException |
| | | */ |
| | | public static void outputImage(int w, int h, OutputStream os, String code) throws IOException |
| | | { |
| | | int verifySize = code.length(); |
| | | BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); |
| | | Random rand = new Random(); |
| | | Graphics2D g2 = image.createGraphics(); |
| | | g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); |
| | | Color[] colors = new Color[5]; |
| | | Color[] colorSpaces = new Color[] { Color.WHITE, Color.CYAN, Color.GRAY, Color.LIGHT_GRAY, Color.MAGENTA, |
| | | Color.ORANGE, Color.PINK, Color.YELLOW }; |
| | | float[] fractions = new float[colors.length]; |
| | | for (int i = 0; i < colors.length; i++) |
| | | { |
| | | colors[i] = colorSpaces[rand.nextInt(colorSpaces.length)]; |
| | | fractions[i] = rand.nextFloat(); |
| | | } |
| | | Arrays.sort(fractions); |
| | | |
| | | g2.setColor(Color.GRAY);// 设置边æ¡è² |
| | | g2.fillRect(0, 0, w, h); |
| | | |
| | | Color c = getRandColor(200, 250); |
| | | g2.setColor(c);// è®¾ç½®èæ¯è² |
| | | g2.fillRect(0, 2, w, h - 4); |
| | | |
| | | // ç»å¶å¹²æ°çº¿ |
| | | Random random = new Random(); |
| | | g2.setColor(getRandColor(160, 200));// 设置线æ¡çé¢è² |
| | | for (int i = 0; i < 20; i++) |
| | | { |
| | | int x = random.nextInt(w - 1); |
| | | int y = random.nextInt(h - 1); |
| | | int xl = random.nextInt(6) + 1; |
| | | int yl = random.nextInt(12) + 1; |
| | | g2.drawLine(x, y, x + xl + 40, y + yl + 20); |
| | | } |
| | | |
| | | // æ·»å åªç¹ |
| | | float yawpRate = 0.05f;// åªå£°ç |
| | | int area = (int) (yawpRate * w * h); |
| | | for (int i = 0; i < area; i++) |
| | | { |
| | | int x = random.nextInt(w); |
| | | int y = random.nextInt(h); |
| | | int rgb = getRandomIntColor(); |
| | | image.setRGB(x, y, rgb); |
| | | } |
| | | |
| | | shear(g2, w, h, c);// 使å¾çææ² |
| | | |
| | | g2.setColor(getRandColor(100, 160)); |
| | | int fontSize = h - 4; |
| | | Font font = new Font("Algerian", Font.ITALIC, fontSize); |
| | | g2.setFont(font); |
| | | char[] chars = code.toCharArray(); |
| | | for (int i = 0; i < verifySize; i++) |
| | | { |
| | | AffineTransform affine = new AffineTransform(); |
| | | affine.setToRotation(Math.PI / 4 * rand.nextDouble() * (rand.nextBoolean() ? 1 : -1), |
| | | (w / verifySize) * i + fontSize / 2, h / 2); |
| | | g2.setTransform(affine); |
| | | g2.drawChars(chars, i, 1, ((w - 10) / verifySize) * i + 5, h / 2 + fontSize / 2 - 10); |
| | | } |
| | | |
| | | g2.dispose(); |
| | | ImageIO.write(image, "jpg", os); |
| | | } |
| | | |
| | | private static Color getRandColor(int fc, int bc) |
| | | { |
| | | if (fc > 255) |
| | | fc = 255; |
| | | if (bc > 255) |
| | | bc = 255; |
| | | int r = fc + random.nextInt(bc - fc); |
| | | int g = fc + random.nextInt(bc - fc); |
| | | int b = fc + random.nextInt(bc - fc); |
| | | return new Color(r, g, b); |
| | | } |
| | | |
| | | private static int getRandomIntColor() |
| | | { |
| | | int[] rgb = getRandomRgb(); |
| | | int color = 0; |
| | | for (int c : rgb) |
| | | { |
| | | color = color << 8; |
| | | color = color | c; |
| | | } |
| | | return color; |
| | | } |
| | | |
| | | private static int[] getRandomRgb() |
| | | { |
| | | int[] rgb = new int[3]; |
| | | for (int i = 0; i < 3; i++) |
| | | { |
| | | rgb[i] = random.nextInt(255); |
| | | } |
| | | return rgb; |
| | | } |
| | | |
| | | private static void shear(Graphics g, int w1, int h1, Color color) |
| | | { |
| | | shearX(g, w1, h1, color); |
| | | shearY(g, w1, h1, color); |
| | | } |
| | | |
| | | private static void shearX(Graphics g, int w1, int h1, Color color) |
| | | { |
| | | |
| | | int period = random.nextInt(2); |
| | | |
| | | boolean borderGap = true; |
| | | int frames = 1; |
| | | int phase = random.nextInt(2); |
| | | |
| | | for (int i = 0; i < h1; i++) |
| | | { |
| | | double d = (double) (period >> 1) |
| | | * Math.sin((double) i / (double) period + (6.2831853071795862D * (double) phase) / (double) frames); |
| | | g.copyArea(0, i, w1, 1, (int) d, 0); |
| | | if (borderGap) |
| | | { |
| | | g.setColor(color); |
| | | g.drawLine((int) d, i, 0, i); |
| | | g.drawLine((int) d + w1, i, w1, i); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | private static void shearY(Graphics g, int w1, int h1, Color color) |
| | | { |
| | | |
| | | int period = random.nextInt(40) + 10; // 50; |
| | | |
| | | boolean borderGap = true; |
| | | int frames = 20; |
| | | int phase = 7; |
| | | for (int i = 0; i < w1; i++) |
| | | { |
| | | double d = (double) (period >> 1) |
| | | * Math.sin((double) i / (double) period + (6.2831853071795862D * (double) phase) / (double) frames); |
| | | g.copyArea(i, 0, 1, h1, 0, (int) d); |
| | | if (borderGap) |
| | | { |
| | | g.setColor(color); |
| | | g.drawLine(i, (int) d, i, 0); |
| | | g.drawLine(i, (int) d + h1, i, h1); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
basic/src/main/java/com/dingzhuo/energy/common/utils/file/FileUploadUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/file/FileUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/file/MimeTypeUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/html/EscapeUtil.java
basic/src/main/java/com/dingzhuo/energy/common/utils/html/HTMLFilter.java
basic/src/main/java/com/dingzhuo/energy/common/utils/http/HttpUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/ip/AddressUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/ip/IpUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/poi/Comprehensive.java
basic/src/main/java/com/dingzhuo/energy/common/utils/poi/ExcelUtil.java
basic/src/main/java/com/dingzhuo/energy/common/utils/reflect/ReflectUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/security/Md5Utils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/sign/Base64.java
basic/src/main/java/com/dingzhuo/energy/common/utils/spring/SpringUtils.java
basic/src/main/java/com/dingzhuo/energy/common/utils/sql/SqlUtil.java
basic/src/main/java/com/dingzhuo/energy/common/utils/text/CharsetKit.java
basic/src/main/java/com/dingzhuo/energy/common/utils/text/Convert.java
basic/src/main/java/com/dingzhuo/energy/common/utils/text/StrFormatter.java
basic/src/main/java/com/dingzhuo/energy/common/utils/time/TimeManager.java
basic/src/main/java/com/dingzhuo/energy/common/utils/time/TimeType.java
basic/src/main/java/com/dingzhuo/energy/common/xss/XssFilter.java
basic/src/main/java/com/dingzhuo/energy/common/xss/XssHttpServletRequestWrapper.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/DataScopeAspect.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/DataSourceAspect.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/LogAspect.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/annotation/DataScope.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/annotation/DataSource.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/annotation/Excel.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/annotation/Excels.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/annotation/Log.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/enums/BusinessStatus.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/enums/BusinessType.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/enums/DataSourceType.java
basic/src/main/java/com/dingzhuo/energy/framework/aspectj/lang/enums/OperatorType.java
basic/src/main/java/com/dingzhuo/energy/framework/config/ApplicationConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/DruidConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/FastJson2JsonRedisSerializer.java
basic/src/main/java/com/dingzhuo/energy/framework/config/FilterConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/GenConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/MyBatisConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/RedisConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/ResourcesConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/RtdbConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/RuoYiConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/SecurityConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/ServerConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/SwaggerConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/SystemConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/ThreadPoolConfig.java
basic/src/main/java/com/dingzhuo/energy/framework/config/properties/DruidProperties.java
basic/src/main/java/com/dingzhuo/energy/framework/datasource/DynamicDataSource.java
basic/src/main/java/com/dingzhuo/energy/framework/datasource/DynamicDataSourceContextHolder.java
basic/src/main/java/com/dingzhuo/energy/framework/interceptor/RepeatSubmitInterceptor.java
basic/src/main/java/com/dingzhuo/energy/framework/interceptor/annotation/RepeatSubmit.java
basic/src/main/java/com/dingzhuo/energy/framework/interceptor/impl/SameUrlDataInterceptor.java
basic/src/main/java/com/dingzhuo/energy/framework/manager/AsyncManager.java
basic/src/main/java/com/dingzhuo/energy/framework/manager/ShutdownManager.java
basic/src/main/java/com/dingzhuo/energy/framework/manager/factory/AsyncFactory.java
basic/src/main/java/com/dingzhuo/energy/framework/redis/RedisCache.java
basic/src/main/java/com/dingzhuo/energy/framework/security/LoginUser.java
basic/src/main/java/com/dingzhuo/energy/framework/security/filter/JwtAuthenticationTokenFilter.java
basic/src/main/java/com/dingzhuo/energy/framework/security/handle/AuthenticationEntryPointImpl.java
basic/src/main/java/com/dingzhuo/energy/framework/security/handle/LogoutSuccessHandlerImpl.java
basic/src/main/java/com/dingzhuo/energy/framework/security/service/PermissionService.java
basic/src/main/java/com/dingzhuo/energy/framework/security/service/SysLoginService.java
basic/src/main/java/com/dingzhuo/energy/framework/security/service/SysPermissionService.java
basic/src/main/java/com/dingzhuo/energy/framework/security/service/TokenService.java
basic/src/main/java/com/dingzhuo/energy/framework/security/service/UserDetailsServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/framework/web/controller/BaseController.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/AjaxResult.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/BaseEntity.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/Server.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/TreeSelect.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/server/Cpu.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/server/Jvm.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/server/Mem.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/server/Sys.java
basic/src/main/java/com/dingzhuo/energy/framework/web/domain/server/SysFile.java
basic/src/main/java/com/dingzhuo/energy/framework/web/exception/GlobalExceptionHandler.java
basic/src/main/java/com/dingzhuo/energy/framework/web/page/PageDomain.java
basic/src/main/java/com/dingzhuo/energy/framework/web/page/TableDataInfo.java
basic/src/main/java/com/dingzhuo/energy/framework/web/page/TableSupport.java
basic/src/main/java/com/dingzhuo/energy/project/common/CaptchaController.java
basic/src/main/java/com/dingzhuo/energy/project/common/CommonController.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/controller/ServerController.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/controller/SysLogininforController.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/controller/SysOperlogController.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/controller/SysUserOnlineController.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/domain/SysLogininfor.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/domain/SysOperLog.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/domain/SysUserOnline.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/mapper/SysLogininforMapper.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/mapper/SysOperLogMapper.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/service/ISysLogininforService.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/service/ISysOperLogService.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/service/impl/SysLogininforServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/monitor/service/impl/SysOperLogServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysConfigController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysDeptController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysDictDataController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysDictTypeController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysLoginController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysMenuController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysNoticeController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysPostController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysProfileController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysRoleController.java
basic/src/main/java/com/dingzhuo/energy/project/system/controller/SysUserController.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysConfig.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysDept.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysDictData.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysDictType.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysMenu.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysNotice.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysPost.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysRole.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysRoleDept.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysRoleMenu.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysUser.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysUserPost.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/SysUserRole.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/vo/MetaVo.java
basic/src/main/java/com/dingzhuo/energy/project/system/domain/vo/RouterVo.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysConfigMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysDeptMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysDictDataMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysDictTypeMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysMenuMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysNoticeMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysPostMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysRoleDeptMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysRoleMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysRoleMenuMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysUserMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysUserPostMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/mapper/SysUserRoleMapper.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysConfigService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysDeptService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysDictDataService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysDictTypeService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysMenuService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysNoticeService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysPostService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysRoleService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysUserOnlineService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/ISysUserService.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysConfigServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysDeptServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysDictDataServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysDictTypeServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysMenuServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysNoticeServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysPostServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysRoleServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysUserOnlineServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/system/service/impl/SysUserServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/controller/GenController.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/domain/GenTable.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/domain/GenTableColumn.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/mapper/GenTableColumnMapper.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/mapper/GenTableMapper.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/service/GenTableColumnServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/service/GenTableServiceImpl.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/service/IGenTableColumnService.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/service/IGenTableService.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/util/GenUtils.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/util/VelocityInitializer.java
basic/src/main/java/com/dingzhuo/energy/project/tool/gen/util/VelocityUtils.java
basic/src/main/java/com/dingzhuo/energy/project/tool/swagger/TestController.java
basic/src/main/resources/mybatis/monitor/SysLogininforMapper.xml
basic/src/main/resources/mybatis/monitor/SysOperLogMapper.xml
basic/src/main/resources/mybatis/system/SysConfigMapper.xml
basic/src/main/resources/mybatis/system/SysDeptMapper.xml
basic/src/main/resources/mybatis/system/SysDictDataMapper.xml
basic/src/main/resources/mybatis/system/SysDictTypeMapper.xml
basic/src/main/resources/mybatis/system/SysMenuMapper.xml
basic/src/main/resources/mybatis/system/SysNoticeMapper.xml
basic/src/main/resources/mybatis/system/SysPostMapper.xml
basic/src/main/resources/mybatis/system/SysRoleDeptMapper.xml
basic/src/main/resources/mybatis/system/SysRoleMapper.xml
basic/src/main/resources/mybatis/system/SysRoleMenuMapper.xml
basic/src/main/resources/mybatis/system/SysUserMapper.xml
basic/src/main/resources/mybatis/system/SysUserPostMapper.xml
basic/src/main/resources/mybatis/system/SysUserRoleMapper.xml
basic/src/main/resources/mybatis/tool/GenTableColumnMapper.xml
basic/src/main/resources/mybatis/tool/GenTableMapper.xml
compute-engine/.gitignore
compute-engine/.mvn/wrapper/MavenWrapperDownloader.java
compute-engine/.mvn/wrapper/maven-wrapper.jar
compute-engine/.mvn/wrapper/maven-wrapper.properties
compute-engine/mvnw
compute-engine/mvnw.cmd
compute-engine/pom.xml
compute-engine/src/main/java/com/dingzhuo/compute/engine/ApplicationConfiguration.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/ComputeEngineApplication.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/ComputeEngineRunner.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/AlarmTimerActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/BaseAlarmActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/LoadAlarmActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/PeriodAlarmActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/RealtimeAlarmActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/alarm/SaveAlarmActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/device/DeviceStatusActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/device/DeviceStatusTimerActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/device/LoadDeviceStatusActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/indexcalc/CalculationIndexActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/indexcalc/LoadIndexActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/indexcalc/SavePeriodActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/indexcalc/TimerActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/actor/monitor/RecastDataActor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/config/CalcMessageExtractor.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/config/CalculationConfig.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/config/EngineArgOption.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/config/ExecutePrioMailBox.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/controller/CalculationController.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/controller/Recalc.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/function/CustomFunction.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/function/FunctionEngine.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/BaseActorMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/ExecuteType.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/AlarmJudgeMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/AlarmRegisterMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/AlarmSaveMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/AlarmStatus.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/AlarmType.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/LoadAlarmMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/alarm/UnloadAlarmMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/calculation/CalculateMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/calculation/LinkMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/calculation/LoadCalcIndexMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/calculation/UnlinkMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/calculation/UnloadCalcIndexMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/device/DeviceStatus.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/device/DeviceStatusJudgeMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/device/LoadDeviceStatusMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/device/UnloadDeviceStatusMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/save/SaveMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/timer/RegisterTimeMessage.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/message/timer/RegisterType.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/utils/ActorUtil.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/utils/CacheService.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/utils/ServiceProvicer.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/utils/SpringActorProducer.java
compute-engine/src/main/java/com/dingzhuo/compute/engine/utils/SpringAkkaExtension.java
compute-engine/src/main/resources/akka.conf
compute-engine/src/main/resources/application-prod.yml
compute-engine/src/main/resources/application.yml
compute-engine/src/main/resources/logback.xml
data-model/pom.xml
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/CalcFunctionController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/DaqTemplateController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/DataAuthController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/EnergyIndexController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/IndexStorageController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/LimitTypeController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/ModelInfoController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/ModelNodeController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/controller/StateTypeController.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/AuthType.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/CalcFunction.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/CalcPeriod.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/CalcType.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/DaqTemplate.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/EnergyIndex.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/EnergyIndexQuery.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/IndexFormula.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/IndexFormulaParam.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/IndexStorage.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/IndexStorageParam.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/IndexType.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/LimitType.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/ModelInfo.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/ModelNode.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/StateType.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/TreeObject.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/dto/EnergyIndexMonitorDTO.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/vo/ModelNodeIndexInfor.java
data-model/src/main/java/com/dingzhuo/energy/data/model/domain/vo/PointDataVO.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/CalcFunctionMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/DaqTemplateMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/DataAuthMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/EnergyIndexMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/IndexFormulaMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/IndexStorageMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/LimitTypeMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/ModelInfoMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/ModelNodeMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/mapper/StateTypeMapper.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/DataAuthService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/ICalcFunctionService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IDaqTemplateService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IEnergyIndexService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IIndexStorageService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/ILimitTypeService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IModelInfoService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IModelNodeService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IStateTypeService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/IndexFormulaService.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/CalcFunctionServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/DaqTemplateServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/DataAuthServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/EnergyIndexServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/IndexFormulaServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/IndexStorageServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/LimitTypeServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/ModelInfoServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/ModelNodeServiceImpl.java
data-model/src/main/java/com/dingzhuo/energy/data/model/service/impl/StateTypeServiceImpl.java
data-model/src/main/resources/mybatis/basicsetting/CalcFunctionMapper.xml
data-model/src/main/resources/mybatis/basicsetting/DaqTemplateMapper.xml
data-model/src/main/resources/mybatis/basicsetting/IndexFormulaMapper.xml
data-model/src/main/resources/mybatis/basicsetting/IndexStorageMapper.xml
data-model/src/main/resources/mybatis/basicsetting/LimitTypeMapper.xml
data-model/src/main/resources/mybatis/basicsetting/ModelInfoMapper.xml
data-model/src/main/resources/mybatis/basicsetting/ModelNodeMapper.xml
data-model/src/main/resources/mybatis/basicsetting/StateTypeMapper.xml
data-model/src/main/resources/mybatis/dataAuth/DataAuthMapper.xml
data-model/src/main/resources/mybatis/energyindex/EnergyIndexMapper.xml
data-monitoring/pom.xml
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/controller/AlarmItemController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/controller/HistoryAlarmController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/controller/RealTimeAlarmController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/AlarmItem.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/AlarmJudgeDirection.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/HistoryAlarm.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/HistoryTable.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/JkHistoryAlarm.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/JkRealTimeAlarmList.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/domain/RealTimeAlarm.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/mapper/AlarmItemMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/mapper/HistoryAlarmMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/mapper/RealtimeAlarmMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/IAlarmItemService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/IHistoryAlarmService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/IRealtimeAlarmService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/impl/AlarmItemServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/impl/HistoryAlarmServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/alarm/service/impl/RealtimeAlarmServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/controller/DeviceStatusHistoryController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/controller/DeviceStatusLiveController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/controller/DeviceStorageController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/DeviceFormula.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/DeviceFormulaParam.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/DeviceStatusHistory.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/DeviceStatusLive.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/EquipmentMeasuringPointParameters.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/HistoryDeviceStatus.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/RealtimeDeviceStatus.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/vo/EquipmentPointParametersExcel.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/domain/vo/EquipmentPointParametersVO.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/mapper/DeviceFormulaMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/mapper/DeviceFormulaParamMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/mapper/DeviceStatusHistoryMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/mapper/DeviceStatusLiveMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IDeviceFormulaParamService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IDeviceFormulaService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IDeviceStatusHistoryService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IDeviceStatusLiveService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IHistoryDeviceStatus.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/IRealtimeDeviceStatus.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/DeviceFormulaParamServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/DeviceFormulaServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/DeviceStatusHistoryServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/DeviceStatusLiveServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/HistoryDeviceStatusImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/device/service/impl/RealtimeDeviceStatusImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/historical/controller/HistoryDataController.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/historical/service/IHistoryDataService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/historical/service/impl/HistoryDataServiceImpl.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/history/controller/HistoryDataTrend.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/history/domain/dto/HistoricalDataDTO.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/history/domain/vo/HistoricalDataExcel.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/history/domain/vo/HistoricalDataVO.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/realtime/controller/RealTimeTrend.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/realtime/domain/CollectHistory.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/realtime/domain/RealTimeTrend.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/svg/controller/SvgTrendView.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/svg/mapper/SvgTrendMapper.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/svg/service/ISvgTrendService.java
data-monitoring/src/main/java/com/dingzhuo/energy/data/monitoring/trend/svg/service/impl/SvgTrendServicelmpl.java
data-monitoring/src/main/resources/mybatis/alarm/AlarmItemMapper.xml
data-monitoring/src/main/resources/mybatis/alarm/HistoryAlarmMapper.xml
data-monitoring/src/main/resources/mybatis/alarm/RealtimeAlarmMapper.xml
data-monitoring/src/main/resources/mybatis/device/DeviceFormulaMapper.xml
data-monitoring/src/main/resources/mybatis/device/DeviceFormulaParamMapper.xml
data-monitoring/src/main/resources/mybatis/device/DeviceStatusHistoryMapper.xml
data-monitoring/src/main/resources/mybatis/device/DeviceStatusLiveMapper.xml
data-monitoring/src/main/resources/mybatis/trend/SvgTrendMapper.xml
data-service/pom.xml
data-service/src/main/java/com/dingzhuo/energy/dataservice/controller/PeriodDataController.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/controller/RealtimeDataController.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/InfluxDb.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/RealtimeDatabaseManager.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/VirtualRtdb.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/influxdb/DecodeInstant.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/influxdb/FastDB.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/influxdb/QueryType.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/data/influxdb/RtdbResult.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/CollectionModes.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/DataItem.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/Quality.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/RetrievalModes.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/StatisticResult.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/StatisticType.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/TagValue.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/domain/TagValueResult.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/mapper/PeriodDataMapper.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/service/PeriodDataService.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/service/RealtimeDatabase.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/service/RealtimeDatabaseService.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/service/impl/PeriodDataServiceImpl.java
data-service/src/main/java/com/dingzhuo/energy/dataservice/service/impl/RealtimeDatabaseServiceImpl.java
data-service/src/main/resources/mybatis/dataService/PeriodDataMapper.xml
db/2022-03-17.sql
db/2022-04-15.sql
energy_management_server/.gitignore
energy_management_server/pom.xml
energy_management_server/ry.sh
energy_management_server/src/main/java/com/dingzhuo/energy/EnergyManagementApplication.java
energy_management_server/src/main/java/com/dingzhuo/energy/EnergyManagementServletInitializer.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/EnergyBenchmarking/controller/EnergyBenchmarkingController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/EnergyBenchmarking/domain/EnergyBenchmarking.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/EnergyBenchmarking/mapper/EnergyBenchmarkingMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/EnergyBenchmarking/service/IEnergyBenchmarkingService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/EnergyBenchmarking/service/impl/EnergyBenchmarkingServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/controller/HomePageIndexController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/controller/SysEquipmentfileController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/controller/SysStandardCategoryController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/controller/SysStandardParametersController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/domain/SysEquipmentfile.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/domain/SysStandardCategory.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/domain/SysStandardParameters.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/domain/SysSvgInfo.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/mapper/SysEquipmentfileMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/mapper/SysStandardCategoryMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/mapper/SysStandardParametersMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/ISysEquipmentfileService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/ISysStandardCategoryService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/ISysStandardParametersService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/impl/SysEquipmentfileServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/impl/SysStandardCategoryServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/basicSetup/service/impl/SysStandardParametersServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/controller/BenchmarkingManagementController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/controller/PhaseBenchmarkingController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/domain/BenchmarkingManagement.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/domain/PhaseBenchmarking.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/mapper/BenchmarkingManagementMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/mapper/PhaseBenchmarkingMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/service/IBenchmarkingManagementService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/service/IPhaseBenchmarkingService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/service/impl/BenchmarkingManagementServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/benchmarking/service/impl/PhaseBenchmarkingServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/CommonConst.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/DateTimeUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/DoubleUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/HttpClientUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/HttpGetWithEntity.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/IntegerUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/StringUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/common/TimeTypeConst.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/controller/comprehensiveStatisticsController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/controller/dailycomprehensiveController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/controller/monthlycomprehensiveController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/controller/processEnergyConsumptionController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/controller/yearComprehensiveController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/domain/comprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/domain/comprehensiveStatistics.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/domain/dailyComprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/domain/monthlyComprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/domain/yearComperhensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/mapper/comprehensiveStatisticsMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/mapper/dailyComprehensiveMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/mapper/monthlyComprehensiveMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/mapper/processEnergyConsumptionMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/mapper/yearComprehensiveMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/IComprehensiveStatisticsService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/IdailyComprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/ImonthlyComprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/IyearComprehensive.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/impl/comprehensiveStatisticsImp.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/impl/dailyComprehensiveServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/impl/monthlyComprehensiveServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/impl/processEnergyConsumptionImp.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/impl/yearComprehensiveServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/comprehensiveStatistics/service/processEnergyConsumptionService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/ConglomeratePushTask.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/HttpUtil.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/domain/ConglomeratePushLog.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/mapper/ConglomeratePushLogMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/mqtt/InitCallback.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/mqtt/MQTTConnect.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/mqtt/MQTTListener.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/service/IConglomeratePushLogService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/conglomeratepush/service/impl/ConglomeratePushLogServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/controller/DataItemController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/domain/dataEntry.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/domain/stagseDataEntry.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/mapper/DataItemMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/service/IDataItemService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/dataEntry/service/impl/DataItemServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/controller/ElectricityPriceController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/controller/TimePeriodPriceController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/controller/statisticsController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/ElectricityPrice.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/TimePeriodPrice.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/electricitTable.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/electricity.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/electricityDataItem.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/domain/statistics.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/mapper/ElectricityPriceMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/mapper/TimePeriodPriceMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/mapper/statisticsMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/IElectricityPriceService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/ITimePeriodPriceService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/IstatisticsService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/impl/ElectricityPriceServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/impl/TimePeriodPriceServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/electricity/service/impl/statisticsServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/controller/energyBalanceController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/domain/EnergyPic.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/mapper/EnergyPicMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/mapper/energybalanceMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/service/IEnergyBalanceService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/service/IEnergyPicService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/service/impl/EnergyPicServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyBalance/service/impl/energyBalanceServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/controller/EnergyMonthConsumeInputController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/controller/energyDayConsumeInputController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/controller/energyYearConsumeInputController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/domain/EnergyConsumeInput.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/domain/ReCalcParamsModel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/domain/ReCalcRespModel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/domain/SaveEnergyConsumeInputEntity.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/domain/SaveEnergyConsumeInputModel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/mapper/EnergyConsumeInputMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/service/IEnergyConsumeInputService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyConsumeInput/service/impl/EnergyConsumeInputServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyShareAnalysis/controller/EnergyShareAnalysisController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyShareAnalysis/domain/dto/EnergyAnalysisDTO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyShareAnalysis/domain/vo/EnergyAnalysisVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyShareAnalysis/service/IEnergyShareAnalysisService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyShareAnalysis/service/impl/EnergyShareAnalysisServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/controller/energyAnalysisController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/controller/energyStatisticsController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/controller/energyStatisticsCurveController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/domain/EnergyConsumption.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/domain/dataTimeSVG.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/domain/energyAnalysis.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/domain/energyTable.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/mapper/energyStatisticsMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/service/IEnergyStatisticsService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/energyStatistics/service/impl/energyStatisticsServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/controller/GatewayHbtLogController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/controller/GatewaySettingController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/domain/GatewayHbtLog.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/domain/GatewaySetting.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/mapper/GatewayHbtLogMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/mapper/GatewaySettingMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/service/IGatewayHbtLogService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/service/IGatewaySettingService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/service/impl/GatewayHbtLogServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/gateway/service/impl/GatewaySettingServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/GovReportsTask.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/controller/DataItemPubController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/domain/DataItemPub.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/domain/DataItemPubVo.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/mapper/DataItemPubMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/service/IDataItemPubService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/govReports/service/impl/DataItemPubServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/controller/HomeController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyConsumptionRatioVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyCostRatioVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyDetectionChart.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyMonitoringHistogramVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyStatisticsVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyTypeVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeEnergyUnitConsumptionChartVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/domain/vo/HomeOutdoorTemperatureVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/service/IHomeService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/home/service/impl/HomeServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/controller/dailyKeyEquipmenteController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/controller/monthlyKeyEquipmentController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/controller/yearKeyEquipmentController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/domain/dailyKeyEquipment.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/domain/monthlyKeyEquipment.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/domain/yearKeyEquipment.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/mapper/dailyKeyEquipmentMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/mapper/monthlyKeyEquipmentMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/mapper/yearKeyEquipmentMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/IdailyKeyEquipmentService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/ImonthlyKeyEquipmentService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/IyearKeyEquipmentService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/impl/dailyKeyEquipmentServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/impl/monthlyKeyEquipmentServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/keyEquipment/service/impl/yearKeyEquipmentServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/controller/PlanEnergyController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/controller/PlannedOutputController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/controller/energyMonitoringController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/domain/PlanEnergy.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/domain/PlannedOutput.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/domain/energyMonitoring.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/mapper/PlanEnergyMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/mapper/PlannedOutputMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/mapper/energyMonitoringMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/IPlanEnergyService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/IPlannedOutputService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/energyMonitoringService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/impl/PlanEnergyServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/impl/PlannedOutputServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/plannedOutput/service/impl/energyMonitoringServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/ComprehensiveReportsController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/ReportSetController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/annualReportController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/consolidatedStatementsController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/dailyReportController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/monthlyReportController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/controller/reportFormController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/JtZhnhExcel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/annualReport.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/consolidatedStatements.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/dailyReport.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/dto/ComprehensiveReportsDTO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/monthlyReport.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/reportForm.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/reportSet.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/reportSetDataModel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/reportSetRequestModel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/vo/ComprehensiveConsumptionRatioVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/vo/ComprehensiveReportsItem.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/vo/ComprehensiveReportsVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/domain/vo/ComprehensiveUnitConsumptionChartVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/annualReportMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/consolidatedStatementsMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/dailyReportMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/monthlyReportMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/reportFormMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/mapper/reportSetMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IComprehensiveReportsService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IannualReportService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IconsolidatedStatementsService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IdailyReportService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/ImonthlyReportService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IreportFormService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/IreportSetService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/AnnualReportFormServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/ComprehensiveReportsServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/consolidatedStatementsServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/dailyReportServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/monthlyReportServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/reportFormServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/reportForm/service/impl/reportSetServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/controller/StatisticalAnalysisController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/domain/dto/DataAnalysisMoMDTO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/domain/vo/DataAnalysisMoMExcel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/domain/vo/DataAnalysisMoMVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/domain/vo/DataAnalysisYoYExcel.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/domain/vo/DataAnalysisYoYVO.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/service/IStatisticalAnalysisService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalAnalysis/service/impl/StatisticalAnalysisServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/controller/GxdhCountController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/domain/GxdhCount.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/domain/GxdhCountIndex.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/mapper/GxdhCountMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/service/IGxdhCountService.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/statisticalData/service/impl/GxdhCountServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/controller/dailyWorkingProcedureController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/controller/monthlyWorkingProcedureController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/controller/yearWorkingProcedureController.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/domain/dailyWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/domain/monthlyWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/domain/yearWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/mapper/dailyWorkingProcedureMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/mapper/monthlyWorkingProcedureMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/mapper/yearWorkingProcedureMapper.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/IdailyWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/ImonthlyWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/IyearWorkingProcedure.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/impl/dailyWorkingProcedureServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/impl/monthlyWorkingProcedureServiceImpl.java
energy_management_server/src/main/java/com/dingzhuo/energy/project/workingProcedure/service/impl/yearWorkingProcedureServiceImpl.java
energy_management_server/src/main/resources/application-prod.yml
energy_management_server/src/main/resources/application.yml
energy_management_server/src/main/resources/banner.txt
energy_management_server/src/main/resources/i18n/messages.properties
energy_management_server/src/main/resources/logback.xml
energy_management_server/src/main/resources/mybatis/EnergyConsumeInput/EnergyConsumeInputMapper.xml
energy_management_server/src/main/resources/mybatis/basicSetup/SysEquipmentfileMapper.xml
energy_management_server/src/main/resources/mybatis/basicSetup/SysStandardCategoryMapper.xml
energy_management_server/src/main/resources/mybatis/basicSetup/SysStandardParametersMapper.xml
energy_management_server/src/main/resources/mybatis/benchmarking/BenchmarkingManagementMapper.xml
energy_management_server/src/main/resources/mybatis/benchmarking/PhaseBenchmarkingMapper.xml
energy_management_server/src/main/resources/mybatis/comprehensiveStatistics/comprehensiveStatisticsMapper.xml
energy_management_server/src/main/resources/mybatis/comprehensiveStatistics/dailyComprehensiveMapper.xml
energy_management_server/src/main/resources/mybatis/comprehensiveStatistics/monthlyComprehensiveMapper.xml
energy_management_server/src/main/resources/mybatis/comprehensiveStatistics/yearComprehensiveMapper.xml
energy_management_server/src/main/resources/mybatis/conglomeratepush/ConglomeratePushLogMapper.xml
energy_management_server/src/main/resources/mybatis/dataEntry/DataItemMapper.xml
energy_management_server/src/main/resources/mybatis/electricityPrice/ElectricityPriceMapper.xml
energy_management_server/src/main/resources/mybatis/electricityPrice/TimePeriodPriceMapper.xml
energy_management_server/src/main/resources/mybatis/electricityPrice/statisticsMapper.xml
energy_management_server/src/main/resources/mybatis/energyBalance/EnergyPicMapper.xml
energy_management_server/src/main/resources/mybatis/energyBalance/energyBalanceMapper.xml
energy_management_server/src/main/resources/mybatis/energyEenchmarking/EnergyBenchmarkingMapper.xml
energy_management_server/src/main/resources/mybatis/energyStatistics/energyStatisticsMapper.xml
energy_management_server/src/main/resources/mybatis/gateway/GatewayHbtLogMapper.xml
energy_management_server/src/main/resources/mybatis/gateway/GatewaySettingMapper.xml
energy_management_server/src/main/resources/mybatis/govReports/DataItemPubMapper.xml
energy_management_server/src/main/resources/mybatis/keyEquipment/dailyKeyEquipmentMapper.xml
energy_management_server/src/main/resources/mybatis/keyEquipment/monthlyKeyEquipmentMapper.xml
energy_management_server/src/main/resources/mybatis/keyEquipment/yearKeyEquipmentMapper.xml
energy_management_server/src/main/resources/mybatis/mybatis-config.xml
energy_management_server/src/main/resources/mybatis/plannedOutput/PlanEnergyMapper.xml
energy_management_server/src/main/resources/mybatis/plannedOutput/PlannedOutputMapper.xml
energy_management_server/src/main/resources/mybatis/plannedOutput/energyMonitoringMapper.xml
energy_management_server/src/main/resources/mybatis/processEnergyConsumption/processEnergyConsumptionMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/annualReportMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/consolidatedStatementsMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/dailyReportMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/monthlyReportMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/reportFromMapper.xml
energy_management_server/src/main/resources/mybatis/reportForm/reportSetMapper.xml
energy_management_server/src/main/resources/mybatis/statisticalData/GxdhCountMapper.xml
energy_management_server/src/main/resources/mybatis/workingProcedure/dailyWorkingProcedureMapper.xml
energy_management_server/src/main/resources/mybatis/workingProcedure/monthlyWorkingProcedureMapper.xml
energy_management_server/src/main/resources/mybatis/workingProcedure/yearWorkingProcedureMapper.xml
energy_management_server/src/main/resources/vm/java/controller.java.vm
energy_management_server/src/main/resources/vm/java/domain.java.vm
energy_management_server/src/main/resources/vm/java/mapper.java.vm
energy_management_server/src/main/resources/vm/java/service.java.vm
energy_management_server/src/main/resources/vm/java/serviceImpl.java.vm
energy_management_server/src/main/resources/vm/js/api.js.vm
energy_management_server/src/main/resources/vm/sql/sql.vm
energy_management_server/src/main/resources/vm/vue/index.vue.vm
energy_management_server/src/main/resources/vm/xml/mapper.xml.vm
energy_management_ui/.editorconfig
energy_management_ui/.env.development
energy_management_ui/.env.production
energy_management_ui/.env.staging
energy_management_ui/.eslintignore
energy_management_ui/.eslintrc.js
energy_management_ui/.gitignore
energy_management_ui/README.md
energy_management_ui/babel.config.js
energy_management_ui/build/index.js
energy_management_ui/package.json
energy_management_ui/public/favicon.ico
energy_management_ui/public/index.html
energy_management_ui/public/toray_group_icon.png
energy_management_ui/src/App.vue
energy_management_ui/src/api/alarmItem/alarmItem.js
energy_management_ui/src/api/basicSetup/category.js
energy_management_ui/src/api/basicSetup/equipmentfile.js
energy_management_ui/src/api/basicSetup/parameters.js
energy_management_ui/src/api/basicsetting/alarm.js
energy_management_ui/src/api/basicsetting/deviceStorage.js
energy_management_ui/src/api/basicsetting/energyindex.js
energy_management_ui/src/api/basicsetting/function.js
energy_management_ui/src/api/basicsetting/historyAlarm.js
energy_management_ui/src/api/basicsetting/indexStorage.js
energy_management_ui/src/api/basicsetting/limitType.js
energy_management_ui/src/api/basicsetting/model.js
energy_management_ui/src/api/basicsetting/modelNode.js
energy_management_ui/src/api/basicsetting/state.js
energy_management_ui/src/api/basicsetting/statetype.js
energy_management_ui/src/api/basicsetting/template.js
energy_management_ui/src/api/benchmarking/BenchmarkingManagement.js
energy_management_ui/src/api/benchmarking/phaseBenchmarking.js
energy_management_ui/src/api/comprehensiveStatistics/comprehensive.js
energy_management_ui/src/api/comprehensiveStatistics/dailyComprehensive/dailyComprehensive.js
energy_management_ui/src/api/comprehensiveStatistics/monthlyComprehensive/monthlyComprehensive.js
energy_management_ui/src/api/comprehensiveStatistics/processEnergyConsumption.js
energy_management_ui/src/api/comprehensiveStatistics/yearComprehensive/yearComprehensive.js
energy_management_ui/src/api/dataAuth/authSetting.js
energy_management_ui/src/api/dataEntry/stagseDataEntry.js
energy_management_ui/src/api/dataMonitoring/energyPercent/index.js
energy_management_ui/src/api/dataMonitoring/historyDataTrend/historyDataTrend.js
energy_management_ui/src/api/dataMonitoring/realTimeTrend/realTimeTrend.js
energy_management_ui/src/api/dataMonitoring/svgTrend/svgTrendView.js
energy_management_ui/src/api/demo/demo.js
energy_management_ui/src/api/electricityPrice/electricity.js
energy_management_ui/src/api/electricityPrice/price.js
energy_management_ui/src/api/electricityPrice/statistics.js
energy_management_ui/src/api/enerInfoManage/enerclass.js
energy_management_ui/src/api/enerInfoManage/enercoefficient.js
energy_management_ui/src/api/enerInfoManage/energy.js
energy_management_ui/src/api/enerInfoManage/price.js
energy_management_ui/src/api/enerInfoManage/product.js
energy_management_ui/src/api/energy/energyAnnex.js
energy_management_ui/src/api/energy/energyProject.js
energy_management_ui/src/api/energy/report.js
energy_management_ui/src/api/energy/reportAnnex.js
energy_management_ui/src/api/energyAlarm/realTimeAlarm/liveHistoryAssembly.js
energy_management_ui/src/api/energyAlarm/realTimeAlarm/realTimeAlarm.js
energy_management_ui/src/api/energyAssistInput/energyDayConsumeInput.js
energy_management_ui/src/api/energyAssistInput/energyMonthConsumeInput.js
energy_management_ui/src/api/energyAssistInput/energyYearConsumeInput.js
energy_management_ui/src/api/energyBalance/energyBalance.js
energy_management_ui/src/api/energyBalance/energyPic.js
energy_management_ui/src/api/energyEenchmarking/energyEenchmarking.js
energy_management_ui/src/api/energyExamine/addIndex.js
energy_management_ui/src/api/energyExamine/assessmentIndex.js
energy_management_ui/src/api/energyStatistics/statistics.js
energy_management_ui/src/api/equipmentMonitor/historyMonitoring/historyMonitoring.js
energy_management_ui/src/api/equipmentMonitor/realTimeMonitoring/realTimeMonitoring.js
energy_management_ui/src/api/facility/annex.js
energy_management_ui/src/api/facility/archives.js
energy_management_ui/src/api/home/home.js
energy_management_ui/src/api/index.js
energy_management_ui/src/api/keyEquipment/dailykeyEquipment/dailykeyEquipment.js
energy_management_ui/src/api/keyEquipment/monthlykeyEquipment/monthlykeyEquipment.js
energy_management_ui/src/api/keyEquipment/yearkeyEquipment/yearkeyEquipment.js
energy_management_ui/src/api/login.js
energy_management_ui/src/api/menu.js
energy_management_ui/src/api/meter/annex.js
energy_management_ui/src/api/meter/implement.js
energy_management_ui/src/api/meter/implementCount.js
energy_management_ui/src/api/meter/index.js
energy_management_ui/src/api/monitor/logininfor.js
energy_management_ui/src/api/monitor/online.js
energy_management_ui/src/api/monitor/operlog.js
energy_management_ui/src/api/monitor/server.js
energy_management_ui/src/api/onlineMonitoring/index.js
energy_management_ui/src/api/plannedOutput/energyMonitoring.js
energy_management_ui/src/api/plannedOutput/planEnergy.js
energy_management_ui/src/api/plannedOutput/plannedOutput.js
energy_management_ui/src/api/policy/annex.js
energy_management_ui/src/api/policy/policyInsert.js
energy_management_ui/src/api/policy/policySelete.js
energy_management_ui/src/api/powerAnalyse/index.js
energy_management_ui/src/api/reportForm/annualReport/annualReport.js
energy_management_ui/src/api/reportForm/consolidatedStatements.js
energy_management_ui/src/api/reportForm/dailyReport/dailyReport.js
energy_management_ui/src/api/reportForm/monthlyReport/monthlyReport.js
energy_management_ui/src/api/reportForm/reportForm.js
energy_management_ui/src/api/reportInfo/index.js
energy_management_ui/src/api/reportSet/index.js
energy_management_ui/src/api/statement/index.js
energy_management_ui/src/api/statisticalData/gxdhcount.js
energy_management_ui/src/api/system/config.js
energy_management_ui/src/api/system/dept.js
energy_management_ui/src/api/system/dict/data.js
energy_management_ui/src/api/system/dict/type.js
energy_management_ui/src/api/system/menu.js
energy_management_ui/src/api/system/notice.js
energy_management_ui/src/api/system/post.js
energy_management_ui/src/api/system/role.js
energy_management_ui/src/api/system/user.js
energy_management_ui/src/api/tool/gen.js
energy_management_ui/src/api/workforce/duty_management.js
energy_management_ui/src/api/workforce/management.js
energy_management_ui/src/api/workforce/rosteringManagement.js
energy_management_ui/src/api/workforce/scheme.js
energy_management_ui/src/api/workforce/schemeItem.js
energy_management_ui/src/api/workingProcedure/dailyComprehensive/dailyComprehensive.js
energy_management_ui/src/api/workingProcedure/monthlyComprehensive/monthlyComprehensive.js
energy_management_ui/src/api/workingProcedure/yearComprehensive/yearComprehensive.js
energy_management_ui/src/assets/401_images/401.gif
energy_management_ui/src/assets/404_images/404.png
energy_management_ui/src/assets/404_images/404_cloud.png
energy_management_ui/src/assets/home/cost.png
energy_management_ui/src/assets/home/count.png
energy_management_ui/src/assets/home/electric01.png
energy_management_ui/src/assets/home/electric02.png
energy_management_ui/src/assets/home/electric03.png
energy_management_ui/src/assets/home/electric04.png
energy_management_ui/src/assets/home/electric05.png
energy_management_ui/src/assets/home/electric06.png
energy_management_ui/src/assets/home/haodian.svg
energy_management_ui/src/assets/home/haoqi.svg
energy_management_ui/src/assets/home/haoshui.svg
energy_management_ui/src/assets/home/haozhengqi.svg
energy_management_ui/src/assets/home/shi.png
energy_management_ui/src/assets/home/statistic.png
energy_management_ui/src/assets/home/tan.svg
energy_management_ui/src/assets/home/wen.png
energy_management_ui/src/assets/home/zonghe.svg
energy_management_ui/src/assets/icons/index.js
energy_management_ui/src/assets/icons/svg/2020-03-23-a204691ac2cdafde1a9a405f9b5cf8ca.svg
energy_management_ui/src/assets/icons/svg/404.svg
energy_management_ui/src/assets/icons/svg/bug.svg
energy_management_ui/src/assets/icons/svg/build.svg
energy_management_ui/src/assets/icons/svg/chart.svg
energy_management_ui/src/assets/icons/svg/clipboard.svg
energy_management_ui/src/assets/icons/svg/code.svg
energy_management_ui/src/assets/icons/svg/component.svg
energy_management_ui/src/assets/icons/svg/dashboard.svg
energy_management_ui/src/assets/icons/svg/date.svg
energy_management_ui/src/assets/icons/svg/dian.svg
energy_management_ui/src/assets/icons/svg/dict.svg
energy_management_ui/src/assets/icons/svg/documentation.svg
energy_management_ui/src/assets/icons/svg/download.svg
energy_management_ui/src/assets/icons/svg/drag.svg
energy_management_ui/src/assets/icons/svg/druid.svg
energy_management_ui/src/assets/icons/svg/edit.svg
energy_management_ui/src/assets/icons/svg/education.svg
energy_management_ui/src/assets/icons/svg/email.svg
energy_management_ui/src/assets/icons/svg/example.svg
energy_management_ui/src/assets/icons/svg/excel.svg
energy_management_ui/src/assets/icons/svg/exit-fullscreen.svg
energy_management_ui/src/assets/icons/svg/eye-open.svg
energy_management_ui/src/assets/icons/svg/eye.svg
energy_management_ui/src/assets/icons/svg/form.svg
energy_management_ui/src/assets/icons/svg/fullscreen.svg
energy_management_ui/src/assets/icons/svg/guide.svg
energy_management_ui/src/assets/icons/svg/icon.svg
energy_management_ui/src/assets/icons/svg/international.svg
energy_management_ui/src/assets/icons/svg/job.svg
energy_management_ui/src/assets/icons/svg/language.svg
energy_management_ui/src/assets/icons/svg/link.svg
energy_management_ui/src/assets/icons/svg/list.svg
energy_management_ui/src/assets/icons/svg/lock.svg
energy_management_ui/src/assets/icons/svg/log.svg
energy_management_ui/src/assets/icons/svg/logininfor.svg
energy_management_ui/src/assets/icons/svg/message.svg
energy_management_ui/src/assets/icons/svg/money.svg
energy_management_ui/src/assets/icons/svg/monitor.svg
energy_management_ui/src/assets/icons/svg/nested.svg
energy_management_ui/src/assets/icons/svg/online.svg
energy_management_ui/src/assets/icons/svg/password.svg
energy_management_ui/src/assets/icons/svg/pdf.svg
energy_management_ui/src/assets/icons/svg/people.svg
energy_management_ui/src/assets/icons/svg/peoples.svg
energy_management_ui/src/assets/icons/svg/phone.svg
energy_management_ui/src/assets/icons/svg/post.svg
energy_management_ui/src/assets/icons/svg/qq.svg
energy_management_ui/src/assets/icons/svg/search.svg
energy_management_ui/src/assets/icons/svg/server.svg
energy_management_ui/src/assets/icons/svg/shopping.svg
energy_management_ui/src/assets/icons/svg/size.svg
energy_management_ui/src/assets/icons/svg/skill.svg
energy_management_ui/src/assets/icons/svg/star.svg
energy_management_ui/src/assets/icons/svg/swagger.svg
energy_management_ui/src/assets/icons/svg/system.svg
energy_management_ui/src/assets/icons/svg/tab.svg
energy_management_ui/src/assets/icons/svg/table.svg
energy_management_ui/src/assets/icons/svg/theme.svg
energy_management_ui/src/assets/icons/svg/tool.svg
energy_management_ui/src/assets/icons/svg/tree-table.svg
energy_management_ui/src/assets/icons/svg/tree.svg
energy_management_ui/src/assets/icons/svg/user.svg
energy_management_ui/src/assets/icons/svg/validCode.svg
energy_management_ui/src/assets/icons/svg/wechat.svg
energy_management_ui/src/assets/icons/svg/zip.svg
energy_management_ui/src/assets/icons/svgo.yml
energy_management_ui/src/assets/image/configureChart.png
energy_management_ui/src/assets/image/login-background.png
energy_management_ui/src/assets/image/login-background1.png
energy_management_ui/src/assets/image/navbar/exit.png
energy_management_ui/src/assets/image/navbar/xiala.png
energy_management_ui/src/assets/image/rectangle.png
energy_management_ui/src/assets/image/touxiang.png
energy_management_ui/src/assets/logo/logo-page-left.png
energy_management_ui/src/assets/logo/logo2.png
energy_management_ui/src/assets/logo/toray_group_icon.png
energy_management_ui/src/assets/styles/btn.scss
energy_management_ui/src/assets/styles/common-table-form.scss
energy_management_ui/src/assets/styles/element-ui.scss
energy_management_ui/src/assets/styles/element-variables.scss
energy_management_ui/src/assets/styles/index.scss
energy_management_ui/src/assets/styles/left-right-layout.scss
energy_management_ui/src/assets/styles/mixin.scss
energy_management_ui/src/assets/styles/ruoyi.scss
energy_management_ui/src/assets/styles/sidebar.scss
energy_management_ui/src/assets/styles/transition.scss
energy_management_ui/src/assets/styles/variables.scss
energy_management_ui/src/components/Breadcrumb/index.vue
energy_management_ui/src/components/Editor/index.vue
energy_management_ui/src/components/Hamburger/index.vue
energy_management_ui/src/components/HeaderSearch/index.vue
energy_management_ui/src/components/IconSelect/index.vue
energy_management_ui/src/components/IconSelect/requireIcons.js
energy_management_ui/src/components/Pagination/index.vue
energy_management_ui/src/components/PanThumb/index.vue
energy_management_ui/src/components/RightPanel/index.vue
energy_management_ui/src/components/RuoYi/index.vue
energy_management_ui/src/components/Screenfull/index.vue
energy_management_ui/src/components/SizeSelect/index.vue
energy_management_ui/src/components/SvgIcon/index.vue
energy_management_ui/src/components/ThemePicker/index.vue
energy_management_ui/src/components/common/basic-container.vue
energy_management_ui/src/components/shrink/index.vue
energy_management_ui/src/directive/permission/hasPermi.js
energy_management_ui/src/directive/permission/hasRole.js
energy_management_ui/src/directive/permission/index.js
energy_management_ui/src/layout/RouteView.vue
energy_management_ui/src/layout/components/AppMain.vue
energy_management_ui/src/layout/components/Navbar.vue
energy_management_ui/src/layout/components/Sidebar/FixiOSBug.js
energy_management_ui/src/layout/components/Sidebar/Item.vue
energy_management_ui/src/layout/components/Sidebar/Link.vue
energy_management_ui/src/layout/components/Sidebar/Logo.vue
energy_management_ui/src/layout/components/Sidebar/SidebarItem.vue
energy_management_ui/src/layout/components/Sidebar/index.vue
energy_management_ui/src/layout/components/index.js
energy_management_ui/src/layout/index.vue
energy_management_ui/src/layout/mixin/ResizeHandler.js
energy_management_ui/src/layout/mixin/getHeight.js
energy_management_ui/src/main.js
energy_management_ui/src/permission.js
energy_management_ui/src/router/index.js
energy_management_ui/src/settings.js
energy_management_ui/src/store/getters.js
energy_management_ui/src/store/index.js
energy_management_ui/src/store/modules/app.js
energy_management_ui/src/store/modules/permission.js
energy_management_ui/src/store/modules/settings.js
energy_management_ui/src/store/modules/tagsView.js
energy_management_ui/src/store/modules/user.js
energy_management_ui/src/utils/auth.js
energy_management_ui/src/utils/index.js
energy_management_ui/src/utils/jsencrypt.js
energy_management_ui/src/utils/permission.js
energy_management_ui/src/utils/request.js
energy_management_ui/src/utils/ruoyi.js
energy_management_ui/src/utils/scroll-to.js
energy_management_ui/src/utils/validate.js
energy_management_ui/src/utils/vueToPdf/htmlToPdf.js
energy_management_ui/src/utils/zipdownload.js
energy_management_ui/src/views/alarm/LiChart.vue
energy_management_ui/src/views/alarm/collectionIndex.vue
energy_management_ui/src/views/alarm/index.vue
energy_management_ui/src/views/alarm/indexCollectionSetting.vue
energy_management_ui/src/views/alarmItem/cjdIndex.vue
energy_management_ui/src/views/alarmItem/index.vue
energy_management_ui/src/views/alarmItem/modelWarnSetting.vue
energy_management_ui/src/views/alarmItem/zbIndex.vue
energy_management_ui/src/views/basicSetup/equipmentfile/configure.vue
energy_management_ui/src/views/basicSetup/equipmentfile/configureChart.vue
energy_management_ui/src/views/basicSetup/equipmentfile/dataList.vue
energy_management_ui/src/views/basicSetup/equipmentfile/index.vue
energy_management_ui/src/views/basicSetup/equipmentfile/tableDialog.vue
energy_management_ui/src/views/basicSetup/equipmentfile/trendLineChart.vue
energy_management_ui/src/views/basicSetup/equipmentfile/view.vue
energy_management_ui/src/views/basicSetup/parameters/basicIndex.vue
energy_management_ui/src/views/basicSetup/parameters/index.vue
energy_management_ui/src/views/basicSetup/parameters/index1.vue
energy_management_ui/src/views/basicSetup/parameters/standard.vue
energy_management_ui/src/views/basicSetup/parameters/standard_statistic.vue
energy_management_ui/src/views/basicsetting/dataAuthSetting/dataAuthModelNode.vue
energy_management_ui/src/views/basicsetting/dataAuthSetting/index.vue
energy_management_ui/src/views/basicsetting/dataAuthSetting/roleSelect.vue
energy_management_ui/src/views/basicsetting/dataAuthSetting/userSelect.vue
energy_management_ui/src/views/basicsetting/device/deviceStorage.vue
energy_management_ui/src/views/basicsetting/device/deviceTabSetting.vue
energy_management_ui/src/views/basicsetting/device/devicestartstop.vue
energy_management_ui/src/views/basicsetting/device/index.vue
energy_management_ui/src/views/basicsetting/energyIndex/energyIndex.vue
energy_management_ui/src/views/basicsetting/energyIndex/index.vue
energy_management_ui/src/views/basicsetting/energyIndex/indexNodeSetting.vue
energy_management_ui/src/views/basicsetting/energyIndex/indexStorage.vue
energy_management_ui/src/views/basicsetting/function/index.vue
energy_management_ui/src/views/basicsetting/limitType/index.vue
energy_management_ui/src/views/basicsetting/model/index.vue
energy_management_ui/src/views/basicsetting/modelNode/index.vue
energy_management_ui/src/views/basicsetting/modelNode/modelNode.vue
energy_management_ui/src/views/basicsetting/modelNode/modelNodeSetting.vue
energy_management_ui/src/views/basicsetting/nodeSetting/collectIndexSetting.vue
energy_management_ui/src/views/basicsetting/nodeSetting/deviceSetting.vue
energy_management_ui/src/views/basicsetting/nodeSetting/energySetting.vue
energy_management_ui/src/views/basicsetting/nodeSetting/productSetting.vue
energy_management_ui/src/views/basicsetting/nodeSetting/statisticIndexSetting.vue
energy_management_ui/src/views/basicsetting/stateIndex/index.vue
energy_management_ui/src/views/basicsetting/stateIndex/indexStateSetting.vue
energy_management_ui/src/views/basicsetting/stateIndex/stateIndex.vue
energy_management_ui/src/views/basicsetting/statetype/index.vue
energy_management_ui/src/views/basicsetting/template/index.vue
energy_management_ui/src/views/benchmarking/BenchmarkingManagement/benchmarking.vue
energy_management_ui/src/views/benchmarking/BenchmarkingManagement/index.vue
energy_management_ui/src/views/benchmarking/phaseBenchmarking/LineChart.vue
energy_management_ui/src/views/benchmarking/phaseBenchmarking/index.vue
energy_management_ui/src/views/benchmarking/phaseBenchmarking/phaseBenchmarking.vue
energy_management_ui/src/views/benchmarking/realTimeBenchmarking/LineChart.vue
energy_management_ui/src/views/benchmarking/realTimeBenchmarking/index.vue
energy_management_ui/src/views/benchmarking/realTimeBenchmarking/realTimeBenchmarking.vue
energy_management_ui/src/views/components/icons/element-icons.js
energy_management_ui/src/views/components/icons/index.vue
energy_management_ui/src/views/components/icons/svg-icons.js
energy_management_ui/src/views/comprehensiveStatistics/comprehensiveStatistics/BarChart.vue
energy_management_ui/src/views/comprehensiveStatistics/comprehensiveStatistics/LineChart.vue
energy_management_ui/src/views/comprehensiveStatistics/comprehensiveStatistics/comprehensive.vue
energy_management_ui/src/views/comprehensiveStatistics/comprehensiveStatistics/index.vue
energy_management_ui/src/views/comprehensiveStatistics/comprehensiveStatistics/workshop.vue
energy_management_ui/src/views/comprehensiveStatistics/dailyComprehensive/BarChart.vue
energy_management_ui/src/views/comprehensiveStatistics/dailyComprehensive/LineChart.vue
energy_management_ui/src/views/comprehensiveStatistics/dailyComprehensive/index.vue
energy_management_ui/src/views/comprehensiveStatistics/monthlyComprehensive/BarChart.vue
energy_management_ui/src/views/comprehensiveStatistics/monthlyComprehensive/LineChart.vue
energy_management_ui/src/views/comprehensiveStatistics/monthlyComprehensive/index.vue
energy_management_ui/src/views/comprehensiveStatistics/processEnergy/index.vue
energy_management_ui/src/views/comprehensiveStatistics/processEnergy/processEnergy.vue
energy_management_ui/src/views/comprehensiveStatistics/yearComprehensive/BarChart.vue
energy_management_ui/src/views/comprehensiveStatistics/yearComprehensive/LineChart.vue
energy_management_ui/src/views/comprehensiveStatistics/yearComprehensive/index.vue
energy_management_ui/src/views/comreport/frreport/reportiframe.vue
energy_management_ui/src/views/costaccounting/frreport/reportiframe.vue
energy_management_ui/src/views/dashboard/BarChart.vue
energy_management_ui/src/views/dashboard/LineChart.vue
energy_management_ui/src/views/dashboard/PanelGroup.vue
energy_management_ui/src/views/dashboard/PieChart.vue
energy_management_ui/src/views/dashboard/RaddarChart.vue
energy_management_ui/src/views/dashboard/mixins/resize.js
energy_management_ui/src/views/dataEntry/stagseDataEntry/index.vue
energy_management_ui/src/views/dataEntry/stagseDataEntry/stagseDataEdit.vue
energy_management_ui/src/views/dataEntry/stagseDataEntry/stagseDataEntry.vue
energy_management_ui/src/views/dataEntry/stagseDataEntryEdit/index.vue
energy_management_ui/src/views/dataEntry/stagseDataEntryEdit/stagseDataEntryEdit.vue
energy_management_ui/src/views/dataMonitoring/energyPercent/energyPercent.vue
energy_management_ui/src/views/dataMonitoring/energyPercent/waterPercent.vue
energy_management_ui/src/views/dataMonitoring/historyDataTrend/historyMonitoringSetting.vue
energy_management_ui/src/views/dataMonitoring/historyDataTrend/index.vue
energy_management_ui/src/views/dataMonitoring/realTimeTrend/LineChart copy.vue
energy_management_ui/src/views/dataMonitoring/realTimeTrend/LineChart.vue
energy_management_ui/src/views/dataMonitoring/realTimeTrend/index.vue
energy_management_ui/src/views/dataMonitoring/realTimeTrend/trendSetting.vue
energy_management_ui/src/views/demo/index.vue
energy_management_ui/src/views/electricityPrice/electricity/history.vue
energy_management_ui/src/views/electricityPrice/electricity/index.vue
energy_management_ui/src/views/electricityPrice/statistics/electricityIndex.vue
energy_management_ui/src/views/electricityPrice/statistics/index.vue
energy_management_ui/src/views/electricityPrice/statistics/mixins/resize.js
energy_management_ui/src/views/electricityPrice/statistics/pieChart.vue
energy_management_ui/src/views/enerInfoManage/enerclass/index.vue
energy_management_ui/src/views/enerInfoManage/enercoefficient/index.vue
energy_management_ui/src/views/enerInfoManage/energy/index.vue
energy_management_ui/src/views/enerInfoManage/price/index.vue
energy_management_ui/src/views/enerInfoManage/product/index.vue
energy_management_ui/src/views/energyAlarm/historicalAlarm/LChart.vue
energy_management_ui/src/views/energyAlarm/historicalAlarm/historyAlarmNote.vue
energy_management_ui/src/views/energyAlarm/historicalAlarm/index.vue
energy_management_ui/src/views/energyAlarm/historicalAlarm/realIndex.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/LineChart.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/historyAlarmTable.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/historyAlarmView.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/index.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/liveAlarmView.vue
energy_management_ui/src/views/energyAlarm/realTimeAlarm/modelRealTimeAlarmSetting.vue
energy_management_ui/src/views/energyAssistInput/energyDayConsumeInput/energyDayConsumeInput.vue
energy_management_ui/src/views/energyAssistInput/energyDayConsumeInput/index.vue
energy_management_ui/src/views/energyAssistInput/energyMonthConsumeInput/energyMonthConsumeInput.vue
energy_management_ui/src/views/energyAssistInput/energyMonthConsumeInput/index.vue
energy_management_ui/src/views/energyAssistInput/energyYearConsumeInput/energyYearConsumeInput.vue
energy_management_ui/src/views/energyAssistInput/energyYearConsumeInput/index.vue
energy_management_ui/src/views/energyBalance/energyBalance/LineChart.vue
energy_management_ui/src/views/energyBalance/energyBalance/PieChart.vue
energy_management_ui/src/views/energyBalance/energyBalance/energyBalance.vue
energy_management_ui/src/views/energyBalance/energyBalance/index.vue
energy_management_ui/src/views/energyBalance/energyBalance/pie_chart.vue
energy_management_ui/src/views/energyBalance/energyLoss/PieChart.vue
energy_management_ui/src/views/energyBalance/energyLoss/energyLoss.vue
energy_management_ui/src/views/energyBalance/energyLoss/index.vue
energy_management_ui/src/views/energyBalance/energyPic/energyPic.vue
energy_management_ui/src/views/energyBalance/energyPic/index.vue
energy_management_ui/src/views/energyConsumptionAlarm/monitorAlarm/index.vue
energy_management_ui/src/views/energyConsumptionAlarm/monitorAlarm/monitorAlarmSetting.vue
energy_management_ui/src/views/energyEenchmarking/benchmarkingMonitoring/benchmarkingMonitoring.vue
energy_management_ui/src/views/energyEenchmarking/benchmarkingMonitoring/index.vue
energy_management_ui/src/views/energyEenchmarking/energyEenchmarking/enchmarking.vue
energy_management_ui/src/views/energyEenchmarking/energyEenchmarking/index.vue
energy_management_ui/src/views/energyExamine/assessmentIndex/addIndexTable.vue
energy_management_ui/src/views/energyExamine/assessmentIndex/assessmentIndex.vue
energy_management_ui/src/views/energyExamine/assessmentIndex/create_index.vue
energy_management_ui/src/views/energyExamine/assessmentIndex/index.vue
energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue
energy_management_ui/src/views/energyExamine/assessmentResults/index.vue
energy_management_ui/src/views/energyMonitoring/e-gasMonitoring/index.vue
energy_management_ui/src/views/energyMonitoring/eMonitoring/svgView/index.vue
energy_management_ui/src/views/energyMonitoring/waterMonitoring/svgView/index.vue
energy_management_ui/src/views/energyPlan/actualOutput/EnergyActual.vue
energy_management_ui/src/views/energyPlan/actualOutput/index.vue
energy_management_ui/src/views/energyPlan/energyEstablishment/energyEstablishment.vue
energy_management_ui/src/views/energyPlan/energyEstablishment/index.vue
energy_management_ui/src/views/energyPlan/energyForecast/LineChart.vue
energy_management_ui/src/views/energyPlan/energyForecast/energyForecast.vue
energy_management_ui/src/views/energyPlan/energyForecast/index.vue
energy_management_ui/src/views/energyPlan/energyMonitoring/LineChart.vue
energy_management_ui/src/views/energyPlan/energyMonitoring/energyMonitoring.vue
energy_management_ui/src/views/energyPlan/energyMonitoring/index.vue
energy_management_ui/src/views/energyPlan/plannedOutput/EnergyPlan.vue
energy_management_ui/src/views/energyPlan/plannedOutput/index.vue
energy_management_ui/src/views/energySaving/emissionReduction/emissionReduction.vue
energy_management_ui/src/views/energySaving/emissionReduction/index.vue
energy_management_ui/src/views/energySaving/energyAnnex/energyAnnex.vue
energy_management_ui/src/views/energySaving/energyProject/energyAnnex.vue
energy_management_ui/src/views/energySaving/energyProject/index.vue
energy_management_ui/src/views/energySaving/policiesRegulations/index.vue
energy_management_ui/src/views/energySaving/projectManagement/index.vue
energy_management_ui/src/views/energySaving/report/importReportFile.vue
energy_management_ui/src/views/energySaving/report/index.vue
energy_management_ui/src/views/energyStatistics/energyAnalysis/energyAnalysis.vue
energy_management_ui/src/views/energyStatistics/energyAnalysis/index.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/BarChart.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/BarCharts.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/PieChart.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/consumption.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/consumptionCost.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/index.vue
energy_management_ui/src/views/energyStatistics/energyConsumption/pieChartCost.vue
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/EnergyIndex.vue
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/index.vue
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/lineChart.vue
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/mixins/resize.js
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/realTimeIndex.vue
energy_management_ui/src/views/energyStatistics/energyStatisticsTrend/reportForm.vue
energy_management_ui/src/views/energyStatistics/energyStructure/EnergyIndex.vue
energy_management_ui/src/views/energyStatistics/energyStructure/index.vue
energy_management_ui/src/views/energyStatistics/energyStructure/lineChart.vue
energy_management_ui/src/views/energyStatistics/mixins/resize.js
energy_management_ui/src/views/equipmentMonitor/energyConsumption/curve.vue
energy_management_ui/src/views/equipmentMonitor/energyConsumption/index.vue
energy_management_ui/src/views/equipmentMonitor/energyConsumption/lineChart.vue
energy_management_ui/src/views/equipmentMonitor/history/historyIndex.vue
energy_management_ui/src/views/equipmentMonitor/history/index.vue
energy_management_ui/src/views/equipmentMonitor/keyEquipment/LineChart.vue
energy_management_ui/src/views/equipmentMonitor/keyEquipment/equipmentView.vue
energy_management_ui/src/views/equipmentMonitor/keyEquipment/index.vue
energy_management_ui/src/views/equipmentMonitor/keyEquipment/pieChart.vue
energy_management_ui/src/views/equipmentMonitor/parameters/index.vue
energy_management_ui/src/views/equipmentMonitor/parameters/modelMonitorSetting.vue
energy_management_ui/src/views/equipmentMonitor/realTimeMonitoring/index.vue
energy_management_ui/src/views/equipmentMonitor/realTimeMonitoring/parametersTable.vue
energy_management_ui/src/views/equipmentMonitor/realTimeMonitoring/stateTable.vue
energy_management_ui/src/views/error/401.vue
energy_management_ui/src/views/error/404.vue
energy_management_ui/src/views/facility/archives/importAnnexTable.vue
energy_management_ui/src/views/facility/archives/index.vue
energy_management_ui/src/views/facility/querycount/importAnnexTable.vue
energy_management_ui/src/views/facility/querycount/index.vue
energy_management_ui/src/views/history/query/historyIndex.vue
energy_management_ui/src/views/history/query/index.vue
energy_management_ui/src/views/index copy.vue
energy_management_ui/src/views/index.vue
energy_management_ui/src/views/indexInfo.vue
energy_management_ui/src/views/index_bak.vue
energy_management_ui/src/views/index_dev.vue
energy_management_ui/src/views/keyEquipment/dailykeyEquipment/BarChart.vue
energy_management_ui/src/views/keyEquipment/dailykeyEquipment/LineChart.vue
energy_management_ui/src/views/keyEquipment/dailykeyEquipment/index.vue
energy_management_ui/src/views/keyEquipment/monthlykeyEquipment/BarChart.vue
energy_management_ui/src/views/keyEquipment/monthlykeyEquipment/LineChart.vue
energy_management_ui/src/views/keyEquipment/monthlykeyEquipment/index.vue
energy_management_ui/src/views/keyEquipment/yearkeyEquipment/BarChart.vue
energy_management_ui/src/views/keyEquipment/yearkeyEquipment/LineChart.vue
energy_management_ui/src/views/keyEquipment/yearkeyEquipment/index.vue
energy_management_ui/src/views/login.vue
energy_management_ui/src/views/login/auth-redirect.vue
energy_management_ui/src/views/login/components/SocialSignin.vue
energy_management_ui/src/views/meter/implement/importFileTable.vue
energy_management_ui/src/views/meter/implement/importIndexTable.vue
energy_management_ui/src/views/meter/implement/index.vue
energy_management_ui/src/views/meter/implementCount/importFileTable.vue
energy_management_ui/src/views/meter/implementCount/importIndexTable.vue
energy_management_ui/src/views/meter/implementCount/index.vue
energy_management_ui/src/views/monitor/druid/index.vue
energy_management_ui/src/views/monitor/job/index.vue
energy_management_ui/src/views/monitor/logininfor/index.vue
energy_management_ui/src/views/monitor/online/index.vue
energy_management_ui/src/views/monitor/operlog/index.vue
energy_management_ui/src/views/monitor/server/index.vue
energy_management_ui/src/views/onlineMonitoring/gatewayAdministration/importAnnexTable.vue
energy_management_ui/src/views/onlineMonitoring/gatewayAdministration/index.vue
energy_management_ui/src/views/onlineMonitoring/gatewayMonitoring/importAnnexTable.vue
energy_management_ui/src/views/onlineMonitoring/gatewayMonitoring/index.vue
energy_management_ui/src/views/policy/policyInsert/importFileTable.vue
energy_management_ui/src/views/policy/policyInsert/index.vue
energy_management_ui/src/views/policy/policySelete/importFileTable.vue
energy_management_ui/src/views/policy/policySelete/index.vue
energy_management_ui/src/views/power-statistics-analyse/func/columns.js
energy_management_ui/src/views/power-statistics-analyse/func/merge-object.js
energy_management_ui/src/views/power-statistics-analyse/pari-passu/BarChart.vue
energy_management_ui/src/views/power-statistics-analyse/pari-passu/LineChart.vue
energy_management_ui/src/views/power-statistics-analyse/pari-passu/index.vue
energy_management_ui/src/views/power-statistics-analyse/per-passu/index.vue
energy_management_ui/src/views/redirect.vue
energy_management_ui/src/views/reportForm/annualReport/index.vue
energy_management_ui/src/views/reportForm/consolidatedStatements/index.vue
energy_management_ui/src/views/reportForm/dailyReport/index.vue
energy_management_ui/src/views/reportForm/index.vue
energy_management_ui/src/views/reportForm/monthlyReport/index.vue
energy_management_ui/src/views/reportForm/statements/BarChart.vue
energy_management_ui/src/views/reportForm/statements/index.vue
energy_management_ui/src/views/reportInfo/index.vue
energy_management_ui/src/views/reportSet/cjdIndex.vue
energy_management_ui/src/views/reportSet/index.vue
energy_management_ui/src/views/reportSet/modelWarnSetting.vue
energy_management_ui/src/views/reportSet/zbIndex.vue
energy_management_ui/src/views/stage/alarm/LinChart.vue
energy_management_ui/src/views/stage/alarm/alarmIndex.vue
energy_management_ui/src/views/stage/alarm/index.vue
energy_management_ui/src/views/statisticalData/gxdhcount/gxdhcountindex.vue
energy_management_ui/src/views/statisticalData/gxdhcount/index.vue
energy_management_ui/src/views/system/config/index.vue
energy_management_ui/src/views/system/dept/index.vue
energy_management_ui/src/views/system/dict/data.vue
energy_management_ui/src/views/system/dict/index.vue
energy_management_ui/src/views/system/log/index.vue
energy_management_ui/src/views/system/menu/index.vue
energy_management_ui/src/views/system/notice/index.vue
energy_management_ui/src/views/system/post/index.vue
energy_management_ui/src/views/system/role/index.vue
energy_management_ui/src/views/system/user/index.vue
energy_management_ui/src/views/system/user/profile/index.vue
energy_management_ui/src/views/system/user/profile/resetPwd.vue
energy_management_ui/src/views/system/user/profile/userAvatar.vue
energy_management_ui/src/views/system/user/profile/userInfo.vue
energy_management_ui/src/views/tool/build/index.vue
energy_management_ui/src/views/tool/gen/basicInfoForm.vue
energy_management_ui/src/views/tool/gen/editTable.vue
energy_management_ui/src/views/tool/gen/genInfoForm.vue
energy_management_ui/src/views/tool/gen/importTable.vue
energy_management_ui/src/views/tool/gen/index.vue
energy_management_ui/src/views/tool/swagger/index.vue
energy_management_ui/src/views/workforce/dutyManagement/rostering_duty.vue
energy_management_ui/src/views/workforce/management/scheme.vue
energy_management_ui/src/views/workforce/management/schemeItem.vue
energy_management_ui/src/views/workforce/rosteringManagement/index.vue
energy_management_ui/src/views/workforce/rosteringManagement/scheduling_basis.vue
energy_management_ui/src/views/workforce/shiftManagement/index.vue
energy_management_ui/src/views/workforce/shiftManagement/rostering_shift.vue
energy_management_ui/src/views/workingProcedure/dailyWorkingProcedure/BarChart.vue
energy_management_ui/src/views/workingProcedure/dailyWorkingProcedure/LineChart.vue
energy_management_ui/src/views/workingProcedure/dailyWorkingProcedure/index.vue
energy_management_ui/src/views/workingProcedure/monthlyWorkingProcedure/BarChart.vue
energy_management_ui/src/views/workingProcedure/monthlyWorkingProcedure/LineChart.vue
energy_management_ui/src/views/workingProcedure/monthlyWorkingProcedure/index.vue
energy_management_ui/src/views/workingProcedure/yearWorkingProcedure/BarChart.vue
energy_management_ui/src/views/workingProcedure/yearWorkingProcedure/LineChart.vue
energy_management_ui/src/views/workingProcedure/yearWorkingProcedure/index.vue
energy_management_ui/upload/政策法规行政附件.doc
energy_management_ui/vue.config.js
package-lock.json
parent/pom.xml
pom.xml |