| | |
| | | .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
| | | .antMatchers("/bs/technologyRouteChild/ttest").permitAll() |
| | | .antMatchers("/bs/orderScheduling/engine-report").permitAll() |
| | | .antMatchers("/da/tightenCollection/**").permitAll() |
| | | .antMatchers("/websocket/**").anonymous() |
| | | // é¤ä¸é¢å¤çææè¯·æ±å
¨é¨éè¦é´æè®¤è¯ |
| | | .anyRequest().authenticated() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.cameraResults.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | import com.jcdm.main.da.cameraResults.service.IDaCameraResultsService; |
| | | 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.jcdm.common.annotation.Log; |
| | | import com.jcdm.common.core.controller.BaseController; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.enums.BusinessType; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ç¸æºç»æController |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/da/cameraResults") |
| | | public class DaCameraResultsController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDaCameraResultsService daCameraResultsService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DaCameraResults daCameraResults) |
| | | { |
| | | startPage(); |
| | | List<DaCameraResults> list = daCameraResultsService.selectDaCameraResultsList(daCameraResults); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç¸æºç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:export')") |
| | | @Log(title = "ç¸æºç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DaCameraResults daCameraResults) |
| | | { |
| | | List<DaCameraResults> list = daCameraResultsService.selectDaCameraResultsList(daCameraResults); |
| | | ExcelUtil<DaCameraResults> util = new ExcelUtil<DaCameraResults>(DaCameraResults.class); |
| | | util.exportExcel(response, list, "ç¸æºç»ææ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¸æºç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(daCameraResultsService.selectDaCameraResultsById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¸æºç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:add')") |
| | | @Log(title = "ç¸æºç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DaCameraResults daCameraResults) |
| | | { |
| | | return toAjax(daCameraResultsService.insertDaCameraResults(daCameraResults)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¸æºç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:edit')") |
| | | @Log(title = "ç¸æºç»æ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DaCameraResults daCameraResults) |
| | | { |
| | | return toAjax(daCameraResultsService.updateDaCameraResults(daCameraResults)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¸æºç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:cameraResults:remove')") |
| | | @Log(title = "ç¸æºç»æ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(daCameraResultsService.deleteDaCameraResultsByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.cameraResults.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.jcdm.common.annotation.Excel; |
| | | import com.jcdm.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ç¸æºç»æå¯¹è±¡ da_camera_results |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public class DaCameraResults |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** æ»æåºåå· */ |
| | | @Excel(name = "æ»æåºåå·") |
| | | private String sfcCode; |
| | | |
| | | /** å·¥ä½ç¼ç */ |
| | | @Excel(name = "å·¥ä½ç¼ç ") |
| | | private String locationCode; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String describe; |
| | | |
| | | /** ç¸æº1ç»æ */ |
| | | @Excel(name = "ç¸æº1ç»æ") |
| | | private String ResultData0; |
| | | |
| | | /** ç¸æº2ç»æ */ |
| | | @Excel(name = "ç¸æº2ç»æ") |
| | | private String ResultData1; |
| | | |
| | | /** ç¸æº3ç»æ */ |
| | | @Excel(name = "ç¸æº3ç»æ") |
| | | private String ResultData2; |
| | | |
| | | /** ç¸æº4ç»æ */ |
| | | @Excel(name = "ç¸æº4ç»æ") |
| | | private String ResultData3; |
| | | |
| | | /** ç¸æº5ç»æ */ |
| | | @Excel(name = "ç¸æº5ç»æ") |
| | | private String ResultData4; |
| | | |
| | | /** ééæ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ééæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date collectTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setSfcCode(String sfcCode) |
| | | { |
| | | this.sfcCode = sfcCode; |
| | | } |
| | | |
| | | public String getSfcCode() |
| | | { |
| | | return sfcCode; |
| | | } |
| | | public void setLocationCode(String locationCode) |
| | | { |
| | | this.locationCode = locationCode; |
| | | } |
| | | |
| | | public String getLocationCode() |
| | | { |
| | | return locationCode; |
| | | } |
| | | public void setDescribe(String describe) |
| | | { |
| | | this.describe = describe; |
| | | } |
| | | |
| | | public String getDescribe() |
| | | { |
| | | return describe; |
| | | } |
| | | public void setResultData0(String ResultData0) |
| | | { |
| | | this.ResultData0 = ResultData0; |
| | | } |
| | | |
| | | public String getResultData0() |
| | | { |
| | | return ResultData0; |
| | | } |
| | | public void setResultData1(String ResultData1) |
| | | { |
| | | this.ResultData1 = ResultData1; |
| | | } |
| | | |
| | | public String getResultData1() |
| | | { |
| | | return ResultData1; |
| | | } |
| | | public void setResultData2(String ResultData2) |
| | | { |
| | | this.ResultData2 = ResultData2; |
| | | } |
| | | |
| | | public String getResultData2() |
| | | { |
| | | return ResultData2; |
| | | } |
| | | public void setResultData3(String ResultData3) |
| | | { |
| | | this.ResultData3 = ResultData3; |
| | | } |
| | | |
| | | public String getResultData3() |
| | | { |
| | | return ResultData3; |
| | | } |
| | | public void setResultData4(String ResultData4) |
| | | { |
| | | this.ResultData4 = ResultData4; |
| | | } |
| | | |
| | | public String getResultData4() |
| | | { |
| | | return ResultData4; |
| | | } |
| | | public void setCollectTime(Date collectTime) |
| | | { |
| | | this.collectTime = collectTime; |
| | | } |
| | | |
| | | public Date getCollectTime() |
| | | { |
| | | return collectTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("sfcCode", getSfcCode()) |
| | | .append("locationCode", getLocationCode()) |
| | | .append("describe", getDescribe()) |
| | | .append("ResultData0", getResultData0()) |
| | | .append("ResultData1", getResultData1()) |
| | | .append("ResultData2", getResultData2()) |
| | | .append("ResultData3", getResultData3()) |
| | | .append("ResultData4", getResultData4()) |
| | | .append("collectTime", getCollectTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.cameraResults.mapper; |
| | | |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¸æºç»æMapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface DaCameraResultsMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç¸æºç»æ |
| | | */ |
| | | public DaCameraResults selectDaCameraResultsById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æå表 |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç¸æºç»æéå |
| | | */ |
| | | public List<DaCameraResults> selectDaCameraResultsList(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * æ°å¢ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaCameraResults(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaCameraResults(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * å é¤ç¸æºç»æ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCameraResultsById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¸æºç»æ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCameraResultsByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.cameraResults.service; |
| | | |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¸æºç»æServiceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface IDaCameraResultsService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç¸æºç»æ |
| | | */ |
| | | public DaCameraResults selectDaCameraResultsById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æå表 |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç¸æºç»æéå |
| | | */ |
| | | public List<DaCameraResults> selectDaCameraResultsList(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * æ°å¢ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaCameraResults(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaCameraResults(DaCameraResults daCameraResults); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¸æºç»æ |
| | | * |
| | | * @param ids éè¦å é¤çç¸æºç»æä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCameraResultsByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ç¸æºç»æä¿¡æ¯ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaCameraResultsById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.cameraResults.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | import com.jcdm.main.da.cameraResults.mapper.DaCameraResultsMapper; |
| | | import com.jcdm.main.da.cameraResults.service.IDaCameraResultsService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * ç¸æºç»æServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @Service |
| | | public class DaCameraResultsServiceImpl implements IDaCameraResultsService |
| | | { |
| | | @Autowired |
| | | private DaCameraResultsMapper daCameraResultsMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç¸æºç»æ |
| | | */ |
| | | @Override |
| | | public DaCameraResults selectDaCameraResultsById(Long id) |
| | | { |
| | | return daCameraResultsMapper.selectDaCameraResultsById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¸æºç»æå表 |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç¸æºç»æ |
| | | */ |
| | | @Override |
| | | public List<DaCameraResults> selectDaCameraResultsList(DaCameraResults daCameraResults) |
| | | { |
| | | return daCameraResultsMapper.selectDaCameraResultsList(daCameraResults); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertDaCameraResults(DaCameraResults daCameraResults) |
| | | { |
| | | return daCameraResultsMapper.insertDaCameraResults(daCameraResults); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¸æºç»æ |
| | | * |
| | | * @param daCameraResults ç¸æºç»æ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateDaCameraResults(DaCameraResults daCameraResults) |
| | | { |
| | | return daCameraResultsMapper.updateDaCameraResults(daCameraResults); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¸æºç»æ |
| | | * |
| | | * @param ids éè¦å é¤çç¸æºç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaCameraResultsByIds(Long[] ids) |
| | | { |
| | | return daCameraResultsMapper.deleteDaCameraResultsByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¸æºç»æä¿¡æ¯ |
| | | * |
| | | * @param id ç¸æºç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaCameraResultsById(Long id) |
| | | { |
| | | return daCameraResultsMapper.deleteDaCameraResultsById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.leakageDetection.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | import com.jcdm.main.da.leakageDetection.service.IDaLeakageDetectionService; |
| | | 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.jcdm.common.annotation.Log; |
| | | import com.jcdm.common.core.controller.BaseController; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.enums.BusinessType; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 夿¼æ£æµController |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/da/leakageDetection") |
| | | public class DaLeakageDetectionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDaLeakageDetectionService daLeakageDetectionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DaLeakageDetection daLeakageDetection) |
| | | { |
| | | startPage(); |
| | | List<DaLeakageDetection> list = daLeakageDetectionService.selectDaLeakageDetectionList(daLeakageDetection); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå¤æ¼æ£æµå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:export')") |
| | | @Log(title = "夿¼æ£æµ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DaLeakageDetection daLeakageDetection) |
| | | { |
| | | List<DaLeakageDetection> list = daLeakageDetectionService.selectDaLeakageDetectionList(daLeakageDetection); |
| | | ExcelUtil<DaLeakageDetection> util = new ExcelUtil<DaLeakageDetection>(DaLeakageDetection.class); |
| | | util.exportExcel(response, list, "夿¼æ£æµæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·å夿¼æ£æµè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(daLeakageDetectionService.selectDaLeakageDetectionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å¤æ¼æ£æµ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:add')") |
| | | @Log(title = "夿¼æ£æµ", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DaLeakageDetection daLeakageDetection) |
| | | { |
| | | return toAjax(daLeakageDetectionService.insertDaLeakageDetection(daLeakageDetection)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å¤æ¼æ£æµ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:edit')") |
| | | @Log(title = "夿¼æ£æµ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DaLeakageDetection daLeakageDetection) |
| | | { |
| | | return toAjax(daLeakageDetectionService.updateDaLeakageDetection(daLeakageDetection)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å¤æ¼æ£æµ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:leakageDetection:remove')") |
| | | @Log(title = "夿¼æ£æµ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(daLeakageDetectionService.deleteDaLeakageDetectionByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.leakageDetection.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.jcdm.common.annotation.Excel; |
| | | import com.jcdm.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 夿¼æ£æµå¯¹è±¡ da_leakage_detection |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public class DaLeakageDetection |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** æ»æåºåå· */ |
| | | @Excel(name = "æ»æåºåå·") |
| | | private String sfcCode; |
| | | |
| | | /** å·¥ä½ç¼ç */ |
| | | @Excel(name = "å·¥ä½ç¼ç ") |
| | | private String locationCode; |
| | | |
| | | /** åæ°éç¼ç */ |
| | | @Excel(name = "åæ°éç¼ç ") |
| | | private String paramSetCode; |
| | | |
| | | /** åæ°éåç§° */ |
| | | @Excel(name = "åæ°éåç§°") |
| | | private String paramSetName; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String describe; |
| | | |
| | | /** ååå¼ */ |
| | | @Excel(name = "ååå¼") |
| | | private String pressureValue; |
| | | |
| | | /** æ³é²ç */ |
| | | @Excel(name = "æ³é²ç") |
| | | private String leakageRate; |
| | | |
| | | /** ç»æ */ |
| | | @Excel(name = "ç»æ") |
| | | private String result; |
| | | |
| | | /** æ°´éäºæ¼æ³æ¼é */ |
| | | @Excel(name = "æ°´éäºæ¼æ³æ¼é") |
| | | private String Leakrate1; |
| | | |
| | | /** æ°´é夿¼æ³æ¼é */ |
| | | @Excel(name = "æ°´é夿¼æ³æ¼é") |
| | | private String Leakrate2; |
| | | |
| | | /** é½¿è½®ç®±å¤æ¼æ³æ¼é */ |
| | | @Excel(name = "é½¿è½®ç®±å¤æ¼æ³æ¼é") |
| | | private String Leakrate3; |
| | | |
| | | /** æ²¹é夿¼æ³æ¼é */ |
| | | @Excel(name = "æ²¹é夿¼æ³æ¼é") |
| | | private String Leakrate4; |
| | | |
| | | /** æ°´éäºæ¼åå */ |
| | | @Excel(name = "æ°´éäºæ¼åå") |
| | | private String Press1; |
| | | |
| | | /** æ°´é夿¼åå */ |
| | | @Excel(name = "æ°´é夿¼åå") |
| | | private String Press2; |
| | | |
| | | /** é½¿è½®ç®±å¤æ¼åå */ |
| | | @Excel(name = "é½¿è½®ç®±å¤æ¼åå") |
| | | private String Press3; |
| | | |
| | | /** æ²¹é夿¼åå */ |
| | | @Excel(name = "æ²¹é夿¼åå") |
| | | private String Press4; |
| | | |
| | | /** æ°´éäºæ¼ç»æç¶æ:1OK 2NG */ |
| | | @Excel(name = "æ°´éäºæ¼ç»æç¶æ:1OK 2NG") |
| | | private String Status1; |
| | | |
| | | /** æ°´é夿¼ç»æç¶æ:1OK 2NG */ |
| | | @Excel(name = "æ°´é夿¼ç»æç¶æ:1OK 2NG") |
| | | private String Status2; |
| | | |
| | | /** é½¿è½®ç®±å¤æ¼ç»æç¶æ:1OK 2NG */ |
| | | @Excel(name = "é½¿è½®ç®±å¤æ¼ç»æç¶æ:1OK 2NG") |
| | | private String Status3; |
| | | |
| | | /** æ²¹é夿¼ç»æç¶æ:1OK 2NG */ |
| | | @Excel(name = "æ²¹é夿¼ç»æç¶æ:1OK 2NG") |
| | | private String Status4; |
| | | |
| | | /** ééæ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ééæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date collectTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setSfcCode(String sfcCode) |
| | | { |
| | | this.sfcCode = sfcCode; |
| | | } |
| | | |
| | | public String getSfcCode() |
| | | { |
| | | return sfcCode; |
| | | } |
| | | public void setLocationCode(String locationCode) |
| | | { |
| | | this.locationCode = locationCode; |
| | | } |
| | | |
| | | public String getLocationCode() |
| | | { |
| | | return locationCode; |
| | | } |
| | | public void setParamSetCode(String paramSetCode) |
| | | { |
| | | this.paramSetCode = paramSetCode; |
| | | } |
| | | |
| | | public String getParamSetCode() |
| | | { |
| | | return paramSetCode; |
| | | } |
| | | public void setParamSetName(String paramSetName) |
| | | { |
| | | this.paramSetName = paramSetName; |
| | | } |
| | | |
| | | public String getParamSetName() |
| | | { |
| | | return paramSetName; |
| | | } |
| | | public void setDescribe(String describe) |
| | | { |
| | | this.describe = describe; |
| | | } |
| | | |
| | | public String getDescribe() |
| | | { |
| | | return describe; |
| | | } |
| | | public void setPressureValue(String pressureValue) |
| | | { |
| | | this.pressureValue = pressureValue; |
| | | } |
| | | |
| | | public String getPressureValue() |
| | | { |
| | | return pressureValue; |
| | | } |
| | | public void setLeakageRate(String leakageRate) |
| | | { |
| | | this.leakageRate = leakageRate; |
| | | } |
| | | |
| | | public String getLeakageRate() |
| | | { |
| | | return leakageRate; |
| | | } |
| | | public void setResult(String result) |
| | | { |
| | | this.result = result; |
| | | } |
| | | |
| | | public String getResult() |
| | | { |
| | | return result; |
| | | } |
| | | public void setLeakrate1(String Leakrate1) |
| | | { |
| | | this.Leakrate1 = Leakrate1; |
| | | } |
| | | |
| | | public String getLeakrate1() |
| | | { |
| | | return Leakrate1; |
| | | } |
| | | public void setLeakrate2(String Leakrate2) |
| | | { |
| | | this.Leakrate2 = Leakrate2; |
| | | } |
| | | |
| | | public String getLeakrate2() |
| | | { |
| | | return Leakrate2; |
| | | } |
| | | public void setLeakrate3(String Leakrate3) |
| | | { |
| | | this.Leakrate3 = Leakrate3; |
| | | } |
| | | |
| | | public String getLeakrate3() |
| | | { |
| | | return Leakrate3; |
| | | } |
| | | public void setLeakrate4(String Leakrate4) |
| | | { |
| | | this.Leakrate4 = Leakrate4; |
| | | } |
| | | |
| | | public String getLeakrate4() |
| | | { |
| | | return Leakrate4; |
| | | } |
| | | public void setPress1(String Press1) |
| | | { |
| | | this.Press1 = Press1; |
| | | } |
| | | |
| | | public String getPress1() |
| | | { |
| | | return Press1; |
| | | } |
| | | public void setPress2(String Press2) |
| | | { |
| | | this.Press2 = Press2; |
| | | } |
| | | |
| | | public String getPress2() |
| | | { |
| | | return Press2; |
| | | } |
| | | public void setPress3(String Press3) |
| | | { |
| | | this.Press3 = Press3; |
| | | } |
| | | |
| | | public String getPress3() |
| | | { |
| | | return Press3; |
| | | } |
| | | public void setPress4(String Press4) |
| | | { |
| | | this.Press4 = Press4; |
| | | } |
| | | |
| | | public String getPress4() |
| | | { |
| | | return Press4; |
| | | } |
| | | public void setStatus1(String Status1) |
| | | { |
| | | this.Status1 = Status1; |
| | | } |
| | | |
| | | public String getStatus1() |
| | | { |
| | | return Status1; |
| | | } |
| | | public void setStatus2(String Status2) |
| | | { |
| | | this.Status2 = Status2; |
| | | } |
| | | |
| | | public String getStatus2() |
| | | { |
| | | return Status2; |
| | | } |
| | | public void setStatus3(String Status3) |
| | | { |
| | | this.Status3 = Status3; |
| | | } |
| | | |
| | | public String getStatus3() |
| | | { |
| | | return Status3; |
| | | } |
| | | public void setStatus4(String Status4) |
| | | { |
| | | this.Status4 = Status4; |
| | | } |
| | | |
| | | public String getStatus4() |
| | | { |
| | | return Status4; |
| | | } |
| | | public void setCollectTime(Date collectTime) |
| | | { |
| | | this.collectTime = collectTime; |
| | | } |
| | | |
| | | public Date getCollectTime() |
| | | { |
| | | return collectTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("sfcCode", getSfcCode()) |
| | | .append("locationCode", getLocationCode()) |
| | | .append("paramSetCode", getParamSetCode()) |
| | | .append("paramSetName", getParamSetName()) |
| | | .append("describe", getDescribe()) |
| | | .append("pressureValue", getPressureValue()) |
| | | .append("leakageRate", getLeakageRate()) |
| | | .append("result", getResult()) |
| | | .append("Leakrate1", getLeakrate1()) |
| | | .append("Leakrate2", getLeakrate2()) |
| | | .append("Leakrate3", getLeakrate3()) |
| | | .append("Leakrate4", getLeakrate4()) |
| | | .append("Press1", getPress1()) |
| | | .append("Press2", getPress2()) |
| | | .append("Press3", getPress3()) |
| | | .append("Press4", getPress4()) |
| | | .append("Status1", getStatus1()) |
| | | .append("Status2", getStatus2()) |
| | | .append("Status3", getStatus3()) |
| | | .append("Status4", getStatus4()) |
| | | .append("collectTime", getCollectTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.leakageDetection.mapper; |
| | | |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 夿¼æ£æµMapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface DaLeakageDetectionMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return 夿¼æ£æµ |
| | | */ |
| | | public DaLeakageDetection selectDaLeakageDetectionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµå表 |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return 夿¼æ£æµéå |
| | | */ |
| | | public List<DaLeakageDetection> selectDaLeakageDetectionList(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * æ°å¢å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaLeakageDetection(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * ä¿®æ¹å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaLeakageDetection(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * å é¤å¤æ¼æ£æµ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaLeakageDetectionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤å¤æ¼æ£æµ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaLeakageDetectionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.leakageDetection.service; |
| | | |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 夿¼æ£æµServiceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface IDaLeakageDetectionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return 夿¼æ£æµ |
| | | */ |
| | | public DaLeakageDetection selectDaLeakageDetectionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµå表 |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return 夿¼æ£æµéå |
| | | */ |
| | | public List<DaLeakageDetection> selectDaLeakageDetectionList(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * æ°å¢å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaLeakageDetection(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * ä¿®æ¹å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaLeakageDetection(DaLeakageDetection daLeakageDetection); |
| | | |
| | | /** |
| | | * æ¹éå é¤å¤æ¼æ£æµ |
| | | * |
| | | * @param ids éè¦å é¤ç夿¼æ£æµä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaLeakageDetectionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤å¤æ¼æ£æµä¿¡æ¯ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaLeakageDetectionById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.leakageDetection.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | import com.jcdm.main.da.leakageDetection.mapper.DaLeakageDetectionMapper; |
| | | import com.jcdm.main.da.leakageDetection.service.IDaLeakageDetectionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 夿¼æ£æµServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @Service |
| | | public class DaLeakageDetectionServiceImpl implements IDaLeakageDetectionService |
| | | { |
| | | @Autowired |
| | | private DaLeakageDetectionMapper daLeakageDetectionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return 夿¼æ£æµ |
| | | */ |
| | | @Override |
| | | public DaLeakageDetection selectDaLeakageDetectionById(Long id) |
| | | { |
| | | return daLeakageDetectionMapper.selectDaLeakageDetectionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¼æ£æµå表 |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return 夿¼æ£æµ |
| | | */ |
| | | @Override |
| | | public List<DaLeakageDetection> selectDaLeakageDetectionList(DaLeakageDetection daLeakageDetection) |
| | | { |
| | | return daLeakageDetectionMapper.selectDaLeakageDetectionList(daLeakageDetection); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertDaLeakageDetection(DaLeakageDetection daLeakageDetection) |
| | | { |
| | | return daLeakageDetectionMapper.insertDaLeakageDetection(daLeakageDetection); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å¤æ¼æ£æµ |
| | | * |
| | | * @param daLeakageDetection 夿¼æ£æµ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateDaLeakageDetection(DaLeakageDetection daLeakageDetection) |
| | | { |
| | | return daLeakageDetectionMapper.updateDaLeakageDetection(daLeakageDetection); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å¤æ¼æ£æµ |
| | | * |
| | | * @param ids éè¦å é¤ç夿¼æ£æµä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaLeakageDetectionByIds(Long[] ids) |
| | | { |
| | | return daLeakageDetectionMapper.deleteDaLeakageDetectionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å¤æ¼æ£æµä¿¡æ¯ |
| | | * |
| | | * @param id 夿¼æ£æµä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaLeakageDetectionById(Long id) |
| | | { |
| | | return daLeakageDetectionMapper.deleteDaLeakageDetectionById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.oilFilling.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | import com.jcdm.main.da.oilFilling.service.IDaOilFillingService; |
| | | 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.jcdm.common.annotation.Log; |
| | | import com.jcdm.common.core.controller.BaseController; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.enums.BusinessType; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * æºæ²¹å 注Controller |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/da/oilFilling") |
| | | public class DaOilFillingController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDaOilFillingService daOilFillingService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DaOilFilling daOilFilling) |
| | | { |
| | | startPage(); |
| | | List<DaOilFilling> list = daOilFillingService.selectDaOilFillingList(daOilFilling); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæºæ²¹å 注å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:export')") |
| | | @Log(title = "æºæ²¹å 注", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DaOilFilling daOilFilling) |
| | | { |
| | | List<DaOilFilling> list = daOilFillingService.selectDaOilFillingList(daOilFilling); |
| | | ExcelUtil<DaOilFilling> util = new ExcelUtil<DaOilFilling>(DaOilFilling.class); |
| | | util.exportExcel(response, list, "æºæ²¹å æ³¨æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæºæ²¹å 注详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(daOilFillingService.selectDaOilFillingById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æºæ²¹å 注 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:add')") |
| | | @Log(title = "æºæ²¹å 注", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DaOilFilling daOilFilling) |
| | | { |
| | | return toAjax(daOilFillingService.insertDaOilFilling(daOilFilling)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æºæ²¹å 注 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:edit')") |
| | | @Log(title = "æºæ²¹å 注", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DaOilFilling daOilFilling) |
| | | { |
| | | return toAjax(daOilFillingService.updateDaOilFilling(daOilFilling)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ºæ²¹å 注 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:oilFilling:remove')") |
| | | @Log(title = "æºæ²¹å 注", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(daOilFillingService.deleteDaOilFillingByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.oilFilling.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.jcdm.common.annotation.Excel; |
| | | import com.jcdm.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æºæ²¹å 注对象 da_oil_filling |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public class DaOilFilling |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** æ»æåºåå· */ |
| | | @Excel(name = "æ»æåºåå·") |
| | | private String sfcCode; |
| | | |
| | | /** å·¥ä½ç¼ç */ |
| | | @Excel(name = "å·¥ä½ç¼ç ") |
| | | private String locationCode; |
| | | |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String describe; |
| | | |
| | | /** 设å®å æ²¹é */ |
| | | @Excel(name = "设å®å æ²¹é") |
| | | private String setFuelVolume; |
| | | |
| | | /** å®é
å æ²¹é */ |
| | | @Excel(name = "å®é
å æ²¹é") |
| | | private String actualFuelConsumption; |
| | | |
| | | /** å æ²¹èæ¶ */ |
| | | @Excel(name = "å æ²¹èæ¶") |
| | | private String refuelingTime; |
| | | |
| | | /** å æ²¹ç¶æ */ |
| | | @Excel(name = "å æ²¹ç¶æ") |
| | | private String result; |
| | | |
| | | /** ä¸å·æªå®é
å æ²¹é(L) */ |
| | | @Excel(name = "ä¸å·æªå®é
å æ²¹é(L)") |
| | | private String actualOilvolume1; |
| | | |
| | | /** äºå·æªå®é
å æ²¹é(L) */ |
| | | @Excel(name = "äºå·æªå®é
å æ²¹é(L)") |
| | | private String actualOilvolume2; |
| | | |
| | | /** ä¸å·æªå®é
å æ²¹é(L) */ |
| | | @Excel(name = "ä¸å·æªå®é
å æ²¹é(L)") |
| | | private String actualOilvolume3; |
| | | |
| | | /** ä¸å·æªå 油类å */ |
| | | @Excel(name = "ä¸å·æªå 油类å") |
| | | private String OilModel1; |
| | | |
| | | /** äºå·æªå 油类å */ |
| | | @Excel(name = "äºå·æªå 油类å") |
| | | private String OilModel2; |
| | | |
| | | /** ä¸å·æªå 油类å */ |
| | | @Excel(name = "ä¸å·æªå 油类å") |
| | | private String OilModel3; |
| | | |
| | | /** ä¸å·æªé¢è®¡å æ²¹é(L) */ |
| | | @Excel(name = "ä¸å·æªé¢è®¡å æ²¹é(L)") |
| | | private String setOilvolume1; |
| | | |
| | | /** äºå·æªé¢è®¡å æ²¹é(L) */ |
| | | @Excel(name = "äºå·æªé¢è®¡å æ²¹é(L)") |
| | | private String setOilvolume2; |
| | | |
| | | /** ä¸å·æªé¢è®¡å æ²¹é(L) */ |
| | | @Excel(name = "ä¸å·æªé¢è®¡å æ²¹é(L)") |
| | | private String setOilvolume3; |
| | | |
| | | /** ä¸å·æªå æ²¹ç¶æ1OKï¼2NG */ |
| | | @Excel(name = "ä¸å·æªå æ²¹ç¶æ1OKï¼2NG") |
| | | private String Status1; |
| | | |
| | | /** äºå·æªå æ²¹ç¶æ1OKï¼2NG */ |
| | | @Excel(name = "äºå·æªå æ²¹ç¶æ1OKï¼2NG") |
| | | private String Status2; |
| | | |
| | | /** ä¸å·æªå æ²¹ç¶æ1OKï¼2NG */ |
| | | @Excel(name = "ä¸å·æªå æ²¹ç¶æ1OKï¼2NG") |
| | | private String Status3; |
| | | |
| | | /** ä¸å·æªå æ²¹æ¶é´ï¼Sï¼ */ |
| | | @Excel(name = "ä¸å·æªå æ²¹æ¶é´", readConverterExp = "S=") |
| | | private String Time1; |
| | | |
| | | /** äºå·æªå æ²¹æ¶é´ï¼Sï¼ */ |
| | | @Excel(name = "äºå·æªå æ²¹æ¶é´", readConverterExp = "S=") |
| | | private String Time2; |
| | | |
| | | /** ä¸å·æªå æ²¹æ¶é´ï¼Sï¼ */ |
| | | @Excel(name = "ä¸å·æªå æ²¹æ¶é´", readConverterExp = "S=") |
| | | private String Time3; |
| | | |
| | | /** ééæ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ééæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date collectTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setSfcCode(String sfcCode) |
| | | { |
| | | this.sfcCode = sfcCode; |
| | | } |
| | | |
| | | public String getSfcCode() |
| | | { |
| | | return sfcCode; |
| | | } |
| | | public void setLocationCode(String locationCode) |
| | | { |
| | | this.locationCode = locationCode; |
| | | } |
| | | |
| | | public String getLocationCode() |
| | | { |
| | | return locationCode; |
| | | } |
| | | public void setDescribe(String describe) |
| | | { |
| | | this.describe = describe; |
| | | } |
| | | |
| | | public String getDescribe() |
| | | { |
| | | return describe; |
| | | } |
| | | public void setSetFuelVolume(String setFuelVolume) |
| | | { |
| | | this.setFuelVolume = setFuelVolume; |
| | | } |
| | | |
| | | public String getSetFuelVolume() |
| | | { |
| | | return setFuelVolume; |
| | | } |
| | | public void setActualFuelConsumption(String actualFuelConsumption) |
| | | { |
| | | this.actualFuelConsumption = actualFuelConsumption; |
| | | } |
| | | |
| | | public String getActualFuelConsumption() |
| | | { |
| | | return actualFuelConsumption; |
| | | } |
| | | public void setRefuelingTime(String refuelingTime) |
| | | { |
| | | this.refuelingTime = refuelingTime; |
| | | } |
| | | |
| | | public String getRefuelingTime() |
| | | { |
| | | return refuelingTime; |
| | | } |
| | | public void setResult(String result) |
| | | { |
| | | this.result = result; |
| | | } |
| | | |
| | | public String getResult() |
| | | { |
| | | return result; |
| | | } |
| | | public void setActualOilvolume1(String actualOilvolume1) |
| | | { |
| | | this.actualOilvolume1 = actualOilvolume1; |
| | | } |
| | | |
| | | public String getActualOilvolume1() |
| | | { |
| | | return actualOilvolume1; |
| | | } |
| | | public void setActualOilvolume2(String actualOilvolume2) |
| | | { |
| | | this.actualOilvolume2 = actualOilvolume2; |
| | | } |
| | | |
| | | public String getActualOilvolume2() |
| | | { |
| | | return actualOilvolume2; |
| | | } |
| | | public void setActualOilvolume3(String actualOilvolume3) |
| | | { |
| | | this.actualOilvolume3 = actualOilvolume3; |
| | | } |
| | | |
| | | public String getActualOilvolume3() |
| | | { |
| | | return actualOilvolume3; |
| | | } |
| | | public void setOilModel1(String OilModel1) |
| | | { |
| | | this.OilModel1 = OilModel1; |
| | | } |
| | | |
| | | public String getOilModel1() |
| | | { |
| | | return OilModel1; |
| | | } |
| | | public void setOilModel2(String OilModel2) |
| | | { |
| | | this.OilModel2 = OilModel2; |
| | | } |
| | | |
| | | public String getOilModel2() |
| | | { |
| | | return OilModel2; |
| | | } |
| | | public void setOilModel3(String OilModel3) |
| | | { |
| | | this.OilModel3 = OilModel3; |
| | | } |
| | | |
| | | public String getOilModel3() |
| | | { |
| | | return OilModel3; |
| | | } |
| | | public void setSetOilvolume1(String setOilvolume1) |
| | | { |
| | | this.setOilvolume1 = setOilvolume1; |
| | | } |
| | | |
| | | public String getSetOilvolume1() |
| | | { |
| | | return setOilvolume1; |
| | | } |
| | | public void setSetOilvolume2(String setOilvolume2) |
| | | { |
| | | this.setOilvolume2 = setOilvolume2; |
| | | } |
| | | |
| | | public String getSetOilvolume2() |
| | | { |
| | | return setOilvolume2; |
| | | } |
| | | public void setSetOilvolume3(String setOilvolume3) |
| | | { |
| | | this.setOilvolume3 = setOilvolume3; |
| | | } |
| | | |
| | | public String getSetOilvolume3() |
| | | { |
| | | return setOilvolume3; |
| | | } |
| | | public void setStatus1(String Status1) |
| | | { |
| | | this.Status1 = Status1; |
| | | } |
| | | |
| | | public String getStatus1() |
| | | { |
| | | return Status1; |
| | | } |
| | | public void setStatus2(String Status2) |
| | | { |
| | | this.Status2 = Status2; |
| | | } |
| | | |
| | | public String getStatus2() |
| | | { |
| | | return Status2; |
| | | } |
| | | public void setStatus3(String Status3) |
| | | { |
| | | this.Status3 = Status3; |
| | | } |
| | | |
| | | public String getStatus3() |
| | | { |
| | | return Status3; |
| | | } |
| | | public void setTime1(String Time1) |
| | | { |
| | | this.Time1 = Time1; |
| | | } |
| | | |
| | | public String getTime1() |
| | | { |
| | | return Time1; |
| | | } |
| | | public void setTime2(String Time2) |
| | | { |
| | | this.Time2 = Time2; |
| | | } |
| | | |
| | | public String getTime2() |
| | | { |
| | | return Time2; |
| | | } |
| | | public void setTime3(String Time3) |
| | | { |
| | | this.Time3 = Time3; |
| | | } |
| | | |
| | | public String getTime3() |
| | | { |
| | | return Time3; |
| | | } |
| | | public void setCollectTime(Date collectTime) |
| | | { |
| | | this.collectTime = collectTime; |
| | | } |
| | | |
| | | public Date getCollectTime() |
| | | { |
| | | return collectTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("sfcCode", getSfcCode()) |
| | | .append("locationCode", getLocationCode()) |
| | | .append("describe", getDescribe()) |
| | | .append("setFuelVolume", getSetFuelVolume()) |
| | | .append("actualFuelConsumption", getActualFuelConsumption()) |
| | | .append("refuelingTime", getRefuelingTime()) |
| | | .append("result", getResult()) |
| | | .append("actualOilvolume1", getActualOilvolume1()) |
| | | .append("actualOilvolume2", getActualOilvolume2()) |
| | | .append("actualOilvolume3", getActualOilvolume3()) |
| | | .append("OilModel1", getOilModel1()) |
| | | .append("OilModel2", getOilModel2()) |
| | | .append("OilModel3", getOilModel3()) |
| | | .append("setOilvolume1", getSetOilvolume1()) |
| | | .append("setOilvolume2", getSetOilvolume2()) |
| | | .append("setOilvolume3", getSetOilvolume3()) |
| | | .append("Status1", getStatus1()) |
| | | .append("Status2", getStatus2()) |
| | | .append("Status3", getStatus3()) |
| | | .append("Time1", getTime1()) |
| | | .append("Time2", getTime2()) |
| | | .append("Time3", getTime3()) |
| | | .append("collectTime", getCollectTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.oilFilling.mapper; |
| | | |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æºæ²¹å 注Mapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface DaOilFillingMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注 |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return æºæ²¹å 注 |
| | | */ |
| | | public DaOilFilling selectDaOilFillingById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注å表 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return æºæ²¹å 注éå |
| | | */ |
| | | public List<DaOilFilling> selectDaOilFillingList(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * æ°å¢æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaOilFilling(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * ä¿®æ¹æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaOilFilling(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * å 餿ºæ²¹å 注 |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaOilFillingById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿ºæ²¹å 注 |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaOilFillingByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.oilFilling.service; |
| | | |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æºæ²¹å 注Serviceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | public interface IDaOilFillingService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注 |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return æºæ²¹å 注 |
| | | */ |
| | | public DaOilFilling selectDaOilFillingById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注å表 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return æºæ²¹å 注éå |
| | | */ |
| | | public List<DaOilFilling> selectDaOilFillingList(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * æ°å¢æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaOilFilling(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * ä¿®æ¹æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaOilFilling(DaOilFilling daOilFilling); |
| | | |
| | | /** |
| | | * æ¹éå 餿ºæ²¹å 注 |
| | | * |
| | | * @param ids éè¦å é¤çæºæ²¹å 注主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaOilFillingByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿ºæ²¹å æ³¨ä¿¡æ¯ |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaOilFillingById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.oilFilling.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | import com.jcdm.main.da.oilFilling.mapper.DaOilFillingMapper; |
| | | import com.jcdm.main.da.oilFilling.service.IDaOilFillingService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * æºæ²¹å 注Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-07 |
| | | */ |
| | | @Service |
| | | public class DaOilFillingServiceImpl implements IDaOilFillingService |
| | | { |
| | | @Autowired |
| | | private DaOilFillingMapper daOilFillingMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注 |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return æºæ²¹å 注 |
| | | */ |
| | | @Override |
| | | public DaOilFilling selectDaOilFillingById(Long id) |
| | | { |
| | | return daOilFillingMapper.selectDaOilFillingById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æºæ²¹å 注å表 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return æºæ²¹å 注 |
| | | */ |
| | | @Override |
| | | public List<DaOilFilling> selectDaOilFillingList(DaOilFilling daOilFilling) |
| | | { |
| | | return daOilFillingMapper.selectDaOilFillingList(daOilFilling); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertDaOilFilling(DaOilFilling daOilFilling) |
| | | { |
| | | return daOilFillingMapper.insertDaOilFilling(daOilFilling); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æºæ²¹å 注 |
| | | * |
| | | * @param daOilFilling æºæ²¹å 注 |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateDaOilFilling(DaOilFilling daOilFilling) |
| | | { |
| | | return daOilFillingMapper.updateDaOilFilling(daOilFilling); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿ºæ²¹å 注 |
| | | * |
| | | * @param ids éè¦å é¤çæºæ²¹å æ³¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaOilFillingByIds(Long[] ids) |
| | | { |
| | | return daOilFillingMapper.deleteDaOilFillingByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ºæ²¹å æ³¨ä¿¡æ¯ |
| | | * |
| | | * @param id æºæ²¹å æ³¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaOilFillingById(Long id) |
| | | { |
| | | return daOilFillingMapper.deleteDaOilFillingById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.tightenCollection.controller; |
| | | |
| | | import java.util.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | import com.jcdm.main.da.cameraResults.service.IDaCameraResultsService; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | import com.jcdm.main.da.leakageDetection.service.IDaLeakageDetectionService; |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | import com.jcdm.main.da.oilFilling.service.IDaOilFillingService; |
| | | import com.jcdm.main.da.tightenCollection.domain.DaTightenCollection; |
| | | import com.jcdm.main.da.tightenCollection.service.IDaTightenCollectionService; |
| | | 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.jcdm.common.annotation.Log; |
| | | import com.jcdm.common.core.controller.BaseController; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.enums.BusinessType; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * æ§ç´§ééController |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/da/tightenCollection") |
| | | public class DaTightenCollectionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDaTightenCollectionService daTightenCollectionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ§ç´§ééå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DaTightenCollection daTightenCollection) |
| | | { |
| | | startPage(); |
| | | List<DaTightenCollection> list = daTightenCollectionService.selectDaTightenCollectionList(daTightenCollection); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ§ç´§ééå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:export')") |
| | | @Log(title = "æ§ç´§éé", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DaTightenCollection daTightenCollection) |
| | | { |
| | | List<DaTightenCollection> list = daTightenCollectionService.selectDaTightenCollectionList(daTightenCollection); |
| | | ExcelUtil<DaTightenCollection> util = new ExcelUtil<DaTightenCollection>(DaTightenCollection.class); |
| | | util.exportExcel(response, list, "æ§ç´§ééæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ§ç´§éé详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(daTightenCollectionService.selectDaTightenCollectionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ§ç´§éé |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:add')") |
| | | @Log(title = "æ§ç´§éé", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DaTightenCollection daTightenCollection) |
| | | { |
| | | return toAjax(daTightenCollectionService.insertDaTightenCollection(daTightenCollection)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ§ç´§éé |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:edit')") |
| | | @Log(title = "æ§ç´§éé", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DaTightenCollection daTightenCollection) |
| | | { |
| | | return toAjax(daTightenCollectionService.updateDaTightenCollection(daTightenCollection)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿§ç´§éé |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('da:tightenCollection:remove')") |
| | | @Log(title = "æ§ç´§éé", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(daTightenCollectionService.deleteDaTightenCollectionByIds(ids)); |
| | | } |
| | | |
| | | @Autowired |
| | | private IDaCollectionParamConfService collectionParamConfService; |
| | | |
| | | @PostMapping("/test") |
| | | public AjaxResult test() |
| | | { |
| | | List<DaCollectionParamConf> list = new ArrayList<>(); |
| | | DaCollectionParamConf daCollectionParamConf = new DaCollectionParamConf(); |
| | | daCollectionParamConf.setGatherAddress("CFL4ZZ.OP240"); |
| | | daCollectionParamConf.setRemarks("1"); |
| | | list = collectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | |
| | | List readWriteEntityList = new ArrayList<>(); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("32"); |
| | | readWriteEntityList.add("23.4"); |
| | | readWriteEntityList.add("2"); |
| | | readWriteEntityList.add("78"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("11"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("40"); |
| | | readWriteEntityList.add("87.4"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("33"); |
| | | readWriteEntityList.add("11.4"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("0.0"); |
| | | readWriteEntityList.add("0.0"); |
| | | readWriteEntityList.add("0.0"); |
| | | |
| | | |
| | | LinkedHashMap<String, Map<String, Object>> groupMap = new LinkedHashMap<>(); |
| | | for (int i = 0; i < list.size(); i += 3) { |
| | | String groupKey = String.valueOf(i/3); |
| | | String paramSetName = list.get(i).getParameterSetName(); |
| | | int secondSlash = paramSetName.indexOf("/", paramSetName.indexOf("/") + 1); |
| | | paramSetName = secondSlash > 0 ? paramSetName.substring(0, secondSlash) : paramSetName; |
| | | |
| | | Map<String, Object> paramMap = new HashMap<>(); |
| | | |
| | | // è·åæç©å¼ |
| | | Object torqueObj = readWriteEntityList.get(i); |
| | | String torqueValue = torqueObj == null ? null : torqueObj.toString(); |
| | | if (torqueValue != null && !"0.0".equals(torqueValue)) { |
| | | paramMap.put("torque", Double.parseDouble(torqueValue)); |
| | | } |
| | | |
| | | // è·åè§åº¦å¼ |
| | | Object angleObj = readWriteEntityList.get(i + 1); |
| | | String angleValue = angleObj == null ? null : angleObj.toString(); |
| | | if (angleValue != null && !"0.0".equals(angleValue)) { |
| | | paramMap.put("angle", Double.parseDouble(angleValue)); |
| | | } |
| | | |
| | | // è·åç¶æå¼ |
| | | Object statusObj = readWriteEntityList.get(i + 2); |
| | | String statusValue = statusObj == null ? null : statusObj.toString(); |
| | | if (statusValue != null && !"0.0".equals(statusValue)) { |
| | | paramMap.put("angleStatus", statusValue); |
| | | paramMap.put("paramSetName", paramSetName); |
| | | groupMap.put(groupKey, paramMap); |
| | | } |
| | | |
| | | } |
| | | |
| | | List<DaTightenCollection> tightenList = new ArrayList<>(); |
| | | for (Map<String, Object> paramMap : groupMap.values()) { |
| | | DaTightenCollection tighten = new DaTightenCollection(); |
| | | tighten.setSfcCode("1234"); |
| | | tighten.setLocationCode("OP070"); |
| | | tighten.setParamSetName((String) paramMap.get("paramSetName")); |
| | | tighten.setTorque(paramMap.get("torque") != null ? paramMap.get("torque").toString() : null); |
| | | tighten.setAngle(paramMap.get("angle") != null ? paramMap.get("angle").toString() : null); |
| | | tighten.setAngleStatus((String) paramMap.get("angleStatus")); |
| | | tighten.setCollectTime(new Date()); |
| | | tightenList.add(tighten); |
| | | } |
| | | daTightenCollectionService.saveBeachDaTightenCollection(tightenList); |
| | | return AjaxResult.success(tightenList); |
| | | } |
| | | |
| | | @Autowired |
| | | private IDaCameraResultsService cameraResultsService; |
| | | |
| | | @PostMapping("/testCameraResults") |
| | | public AjaxResult testCameraResults() |
| | | { |
| | | List<DaCollectionParamConf> list = new ArrayList<>(); |
| | | DaCollectionParamConf daCollectionParamConf = new DaCollectionParamConf(); |
| | | daCollectionParamConf.setGatherAddress("CFL4ZZ.OP230"); |
| | | daCollectionParamConf.setRemarks("1"); |
| | | list = collectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | |
| | | List readWriteEntityList = new ArrayList<>(); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("333"); |
| | | readWriteEntityList.add("4444"); |
| | | readWriteEntityList.add("55555"); |
| | | |
| | | DaCameraResults cameraResults = new DaCameraResults(); |
| | | cameraResults.setSfcCode("1234"); |
| | | cameraResults.setLocationCode("OP070"); |
| | | cameraResults.setCollectTime(new Date()); |
| | | |
| | | for (int i = 0; i < list.size(); i++) { |
| | | String paramCode = list.get(i).getParameterSetCode(); |
| | | String value = readWriteEntityList.get(i).toString(); |
| | | |
| | | switch (paramCode) { |
| | | case "ResultData0": |
| | | cameraResults.setResultData0(value); |
| | | break; |
| | | case "ResultData1": |
| | | cameraResults.setResultData1(value); |
| | | break; |
| | | case "ResultData2": |
| | | cameraResults.setResultData2(value); |
| | | break; |
| | | case "ResultData3": |
| | | cameraResults.setResultData3(value); |
| | | break; |
| | | case "ResultData4": |
| | | cameraResults.setResultData4(value); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | cameraResultsService.insertDaCameraResults(cameraResults); |
| | | |
| | | return AjaxResult.success(cameraResults); |
| | | } |
| | | |
| | | @Autowired |
| | | private IDaLeakageDetectionService leakageDetectionService; |
| | | |
| | | // 夿¼æ£æµæµè¯ |
| | | @PostMapping("/testLeakageDetection") |
| | | public AjaxResult testLeakageDetection() |
| | | { |
| | | List<DaCollectionParamConf> list = new ArrayList<>(); |
| | | DaCollectionParamConf daCollectionParamConf = new DaCollectionParamConf(); |
| | | daCollectionParamConf.setGatherAddress("CFL4ZZ.OP670"); |
| | | daCollectionParamConf.setRemarks("1"); |
| | | list = collectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | |
| | | List readWriteEntityList = new ArrayList<>(); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("333"); |
| | | readWriteEntityList.add("4444"); |
| | | readWriteEntityList.add("55555"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("333"); |
| | | readWriteEntityList.add("4444"); |
| | | readWriteEntityList.add("55555"); |
| | | readWriteEntityList.add("89"); |
| | | readWriteEntityList.add("23"); |
| | | |
| | | |
| | | DaLeakageDetection leakageDetection = new DaLeakageDetection(); |
| | | leakageDetection.setSfcCode("1234"); |
| | | leakageDetection.setLocationCode("OP070"); |
| | | leakageDetection.setCollectTime(new Date()); |
| | | |
| | | for (int i = 0; i < list.size(); i++) { |
| | | String paramCode = list.get(i).getParameterSetCode(); |
| | | String value = readWriteEntityList.get(i).toString(); |
| | | |
| | | switch (paramCode) { |
| | | case "Leakrate1": |
| | | leakageDetection.setLeakrate1(value); |
| | | break; |
| | | case "Leakrate2": |
| | | leakageDetection.setLeakrate2(value); |
| | | break; |
| | | case "Leakrate3": |
| | | leakageDetection.setLeakrate3(value); |
| | | break; |
| | | case "Leakrate4": |
| | | leakageDetection.setLeakrate4(value); |
| | | break; |
| | | case "Press1": |
| | | leakageDetection.setPress1(value); |
| | | break; |
| | | case "Press2": |
| | | leakageDetection.setPress2(value); |
| | | break; |
| | | case "Press3": |
| | | leakageDetection.setPress3(value); |
| | | break; |
| | | case "Press4": |
| | | leakageDetection.setPress4(value); |
| | | break; |
| | | case "Status1": |
| | | leakageDetection.setStatus1(value); |
| | | break; |
| | | case "Status2": |
| | | leakageDetection.setStatus2(value); |
| | | break; |
| | | case "Status3": |
| | | leakageDetection.setStatus3(value); |
| | | break; |
| | | case "Status4": |
| | | leakageDetection.setStatus4(value); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | leakageDetectionService.insertDaLeakageDetection(leakageDetection); |
| | | |
| | | return AjaxResult.success(leakageDetection); |
| | | } |
| | | |
| | | @Autowired |
| | | private IDaOilFillingService oilFillingService; |
| | | |
| | | // æºæ²¹å 注 |
| | | @PostMapping("/testOilFilling") |
| | | public AjaxResult testOilFilling() |
| | | { |
| | | List<DaCollectionParamConf> list = new ArrayList<>(); |
| | | DaCollectionParamConf daCollectionParamConf = new DaCollectionParamConf(); |
| | | daCollectionParamConf.setGatherAddress("CFL4ZZ.OP730"); |
| | | daCollectionParamConf.setRemarks("1"); |
| | | list = collectionParamConfService.selectDaCollectionParamConfList(daCollectionParamConf); |
| | | |
| | | List readWriteEntityList = new ArrayList<>(); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("333"); |
| | | readWriteEntityList.add("4444"); |
| | | readWriteEntityList.add("55555"); |
| | | readWriteEntityList.add("1"); |
| | | readWriteEntityList.add("22"); |
| | | readWriteEntityList.add("333"); |
| | | readWriteEntityList.add("4444"); |
| | | readWriteEntityList.add("55555"); |
| | | readWriteEntityList.add("89"); |
| | | readWriteEntityList.add("23"); |
| | | readWriteEntityList.add("55555"); |
| | | readWriteEntityList.add("89"); |
| | | readWriteEntityList.add("23"); |
| | | |
| | | |
| | | DaOilFilling oilFilling = new DaOilFilling(); |
| | | oilFilling.setSfcCode("1234"); |
| | | oilFilling.setLocationCode("OP730"); |
| | | oilFilling.setCollectTime(new Date()); |
| | | |
| | | for (int i = 0; i < list.size(); i++) { |
| | | String paramCode = list.get(i).getParameterSetCode(); |
| | | String value = readWriteEntityList.get(i).toString(); |
| | | |
| | | switch (paramCode) { |
| | | case "Actual_OilVolume1": |
| | | oilFilling.setActualOilvolume1(value); |
| | | break; |
| | | case "Actual_OilVolume2": |
| | | oilFilling.setActualOilvolume2(value); |
| | | break; |
| | | case "Actual_OilVolume3": |
| | | oilFilling.setActualOilvolume3(value); |
| | | break; |
| | | case "OilModel1": |
| | | oilFilling.setOilModel1(value); |
| | | break; |
| | | case "OilModel2": |
| | | oilFilling.setOilModel2(value); |
| | | break; |
| | | case "OilModel3": |
| | | oilFilling.setOilModel3(value); |
| | | break; |
| | | case "Set_OilVolume1": |
| | | oilFilling.setSetOilvolume1(value); |
| | | break; |
| | | case "Set_OilVolume2": |
| | | oilFilling.setSetOilvolume2(value); |
| | | break; |
| | | case "Set_OilVolume3": |
| | | oilFilling.setSetOilvolume3(value); |
| | | break; |
| | | case "Status1": |
| | | oilFilling.setStatus1(value); |
| | | break; |
| | | case "Status2": |
| | | oilFilling.setStatus2(value); |
| | | break; |
| | | case "Status3": |
| | | oilFilling.setStatus3(value); |
| | | break; |
| | | case "Time1": |
| | | oilFilling.setTime1(value); |
| | | break; |
| | | case "Time2": |
| | | oilFilling.setTime2(value); |
| | | break; |
| | | case "Time3": |
| | | oilFilling.setTime3(value); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | oilFillingService.insertDaOilFilling(oilFilling); |
| | | |
| | | return AjaxResult.success(oilFilling); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.tightenCollection.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.jcdm.common.annotation.Excel; |
| | | import com.jcdm.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ§ç´§éé对象 da_tighten_collection |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-06 |
| | | */ |
| | | public class DaTightenCollection |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** æ»æåºåå· */ |
| | | @Excel(name = "æ»æåºåå·") |
| | | private String sfcCode; |
| | | |
| | | /** å·¥ä½ç¼ç */ |
| | | @Excel(name = "å·¥ä½ç¼ç ") |
| | | private String locationCode; |
| | | |
| | | /** åæ°éç¼ç */ |
| | | @Excel(name = "åæ°éç¼ç ") |
| | | private String paramSetCode; |
| | | |
| | | /** åæ°éåç§° */ |
| | | @Excel(name = "åæ°éåç§°") |
| | | private String paramSetName; |
| | | |
| | | /** æç©å¼ */ |
| | | @Excel(name = "æç©å¼") |
| | | private String torque; |
| | | |
| | | /** æç©ç¶æ */ |
| | | @Excel(name = "æç©ç¶æ") |
| | | private String torqueStatus; |
| | | |
| | | /** è§åº¦å¼ */ |
| | | @Excel(name = "è§åº¦å¼") |
| | | private String angle; |
| | | |
| | | /** è§åº¦ç¶æ */ |
| | | @Excel(name = "è§åº¦ç¶æ") |
| | | private String angleStatus; |
| | | |
| | | /** ééæ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ééæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date collectTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setSfcCode(String sfcCode) |
| | | { |
| | | this.sfcCode = sfcCode; |
| | | } |
| | | |
| | | public String getSfcCode() |
| | | { |
| | | return sfcCode; |
| | | } |
| | | public void setLocationCode(String locationCode) |
| | | { |
| | | this.locationCode = locationCode; |
| | | } |
| | | |
| | | public String getLocationCode() |
| | | { |
| | | return locationCode; |
| | | } |
| | | public void setParamSetCode(String paramSetCode) |
| | | { |
| | | this.paramSetCode = paramSetCode; |
| | | } |
| | | |
| | | public String getParamSetCode() |
| | | { |
| | | return paramSetCode; |
| | | } |
| | | public void setParamSetName(String paramSetName) |
| | | { |
| | | this.paramSetName = paramSetName; |
| | | } |
| | | |
| | | public String getParamSetName() |
| | | { |
| | | return paramSetName; |
| | | } |
| | | public void setTorque(String torque) |
| | | { |
| | | this.torque = torque; |
| | | } |
| | | |
| | | public String getTorque() |
| | | { |
| | | return torque; |
| | | } |
| | | public void setTorqueStatus(String torqueStatus) |
| | | { |
| | | this.torqueStatus = torqueStatus; |
| | | } |
| | | |
| | | public String getTorqueStatus() |
| | | { |
| | | return torqueStatus; |
| | | } |
| | | public void setAngle(String angle) |
| | | { |
| | | this.angle = angle; |
| | | } |
| | | |
| | | public String getAngle() |
| | | { |
| | | return angle; |
| | | } |
| | | public void setAngleStatus(String angleStatus) |
| | | { |
| | | this.angleStatus = angleStatus; |
| | | } |
| | | |
| | | public String getAngleStatus() |
| | | { |
| | | return angleStatus; |
| | | } |
| | | |
| | | public Date getCollectTime() { |
| | | return collectTime; |
| | | } |
| | | |
| | | public void setCollectTime(Date collectTime) { |
| | | this.collectTime = collectTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("sfcCode", getSfcCode()) |
| | | .append("locationCode", getLocationCode()) |
| | | .append("paramSetCode", getParamSetCode()) |
| | | .append("paramSetName", getParamSetName()) |
| | | .append("torque", getTorque()) |
| | | .append("torqueStatus", getTorqueStatus()) |
| | | .append("angle", getAngle()) |
| | | .append("angleStatus", getAngleStatus()) |
| | | .append("collectTime", getCollectTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.tightenCollection.mapper; |
| | | |
| | | import com.jcdm.main.da.tightenCollection.domain.DaTightenCollection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ§ç´§ééMapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface DaTightenCollectionMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ§ç´§éé |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return æ§ç´§éé |
| | | */ |
| | | public DaTightenCollection selectDaTightenCollectionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ§ç´§ééå表 |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return æ§ç´§éééå |
| | | */ |
| | | public List<DaTightenCollection> selectDaTightenCollectionList(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * æ°å¢æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaTightenCollection(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaTightenCollection(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * å 餿§ç´§éé |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaTightenCollectionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿§ç´§éé |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaTightenCollectionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.tightenCollection.service; |
| | | |
| | | import com.jcdm.main.da.paramCollection.domain.DaParamCollection; |
| | | import com.jcdm.main.da.tightenCollection.domain.DaTightenCollection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ§ç´§ééServiceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-06 |
| | | */ |
| | | public interface IDaTightenCollectionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ§ç´§éé |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return æ§ç´§éé |
| | | */ |
| | | public DaTightenCollection selectDaTightenCollectionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ§ç´§ééå表 |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return æ§ç´§éééå |
| | | */ |
| | | public List<DaTightenCollection> selectDaTightenCollectionList(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * æ°å¢æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDaTightenCollection(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDaTightenCollection(DaTightenCollection daTightenCollection); |
| | | |
| | | /** |
| | | * æ¹éå 餿§ç´§éé |
| | | * |
| | | * @param ids éè¦å é¤çæ§ç´§éé主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaTightenCollectionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿§ç´§ééä¿¡æ¯ |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDaTightenCollectionById(Long id); |
| | | |
| | | void saveBeachDaTightenCollection(List<DaTightenCollection> list); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.da.tightenCollection.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.jcdm.main.da.paramCollection.mapper.DaParamCollectionMapper; |
| | | import com.jcdm.main.da.tightenCollection.domain.DaTightenCollection; |
| | | import com.jcdm.main.da.tightenCollection.mapper.DaTightenCollectionMapper; |
| | | import com.jcdm.main.da.tightenCollection.service.IDaTightenCollectionService; |
| | | import org.apache.ibatis.session.ExecutorType; |
| | | import org.apache.ibatis.session.SqlSession; |
| | | import org.apache.ibatis.session.SqlSessionFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * æ§ç´§ééServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2025-05-06 |
| | | */ |
| | | @Service |
| | | public class DaTightenCollectionServiceImpl implements IDaTightenCollectionService |
| | | { |
| | | private static final Logger logger = LoggerFactory.getLogger(DaTightenCollectionServiceImpl.class); |
| | | |
| | | @Resource |
| | | private SqlSessionFactory sqlSessionFactory; |
| | | @Autowired |
| | | private DaTightenCollectionMapper daTightenCollectionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ§ç´§éé |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return æ§ç´§éé |
| | | */ |
| | | @Override |
| | | public DaTightenCollection selectDaTightenCollectionById(Long id) |
| | | { |
| | | return daTightenCollectionMapper.selectDaTightenCollectionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ§ç´§ééå表 |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return æ§ç´§éé |
| | | */ |
| | | @Override |
| | | public List<DaTightenCollection> selectDaTightenCollectionList(DaTightenCollection daTightenCollection) |
| | | { |
| | | return daTightenCollectionMapper.selectDaTightenCollectionList(daTightenCollection); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertDaTightenCollection(DaTightenCollection daTightenCollection) |
| | | { |
| | | return daTightenCollectionMapper.insertDaTightenCollection(daTightenCollection); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ§ç´§éé |
| | | * |
| | | * @param daTightenCollection æ§ç´§éé |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateDaTightenCollection(DaTightenCollection daTightenCollection) |
| | | { |
| | | return daTightenCollectionMapper.updateDaTightenCollection(daTightenCollection); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿§ç´§éé |
| | | * |
| | | * @param ids éè¦å é¤çæ§ç´§ééä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaTightenCollectionByIds(Long[] ids) |
| | | { |
| | | return daTightenCollectionMapper.deleteDaTightenCollectionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿§ç´§ééä¿¡æ¯ |
| | | * |
| | | * @param id æ§ç´§ééä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteDaTightenCollectionById(Long id) |
| | | { |
| | | return daTightenCollectionMapper.deleteDaTightenCollectionById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void saveBeachDaTightenCollection(List<DaTightenCollection> list) { |
| | | SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false); |
| | | try { |
| | | DaTightenCollectionMapper userMapper = sqlSession.getMapper(DaTightenCollectionMapper.class); |
| | | list.stream().forEach(DaTightenCollection -> userMapper.insertDaTightenCollection(DaTightenCollection)); |
| | | // æäº¤æ°æ® |
| | | sqlSession.commit(); |
| | | } catch (Exception e) { |
| | | logger.error("æ¹éä¿åæ§ç´§ééæ°æ®å¤±è´¥", e); |
| | | sqlSession.rollback(); |
| | | } finally { |
| | | sqlSession.close(); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService; |
| | | import com.jcdm.main.bs.technologyRouteChild.service.IBsTechnologyRouteChildInfoService; |
| | | import com.jcdm.main.da.cameraResults.service.IDaCameraResultsService; |
| | | import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; |
| | | import com.jcdm.main.da.leakageDetection.service.IDaLeakageDetectionService; |
| | | import com.jcdm.main.da.oilFilling.service.IDaOilFillingService; |
| | | import com.jcdm.main.da.opcuaconfig.domain.DaOpcuaConfig; |
| | | import com.jcdm.main.da.opcuaconfig.service.IDaOpcuaConfigService; |
| | | import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService; |
| | | import com.jcdm.main.da.passingStationCollection.service.ProductNewPassStationService; |
| | | import com.jcdm.main.da.passingStationCollection.service.impl.DaPassingStationCollectionServiceImpl; |
| | | import com.jcdm.main.da.tightenCollection.service.IDaTightenCollectionService; |
| | | import com.jcdm.main.plcserver.sub.OPCUaSubscription; |
| | | import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService; |
| | | import com.kangaroohy.milo.service.MiloService; |
| | |
| | | @Resource |
| | | private ProductNewPassStationService productNewPassStationService; |
| | | |
| | | @Resource |
| | | private IDaCameraResultsService daCameraResultsService; |
| | | |
| | | @Resource |
| | | private IDaLeakageDetectionService daLeakageDetectionService; |
| | | |
| | | @Resource |
| | | private IDaOilFillingService daOilFillingService; |
| | | |
| | | @Resource |
| | | private IDaTightenCollectionService daTightenCollectionService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | |
| | |
| | | lists, |
| | | rmRepairRecordService, |
| | | bsTechnologyRouteChildInfoService, |
| | | productNewPassStationService); |
| | | productNewPassStationService, |
| | | daCameraResultsService, |
| | | daLeakageDetectionService, |
| | | daOilFillingService, |
| | | daTightenCollectionService |
| | | ); |
| | | miloService.subscriptionFromOpcUa(collect,100,opcUaSubscription); |
| | | } |
| | | |
| | |
| | | package com.jcdm.main.plcserver.conf; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName: OPCElement |
| | |
| | | public static final String OP001_SAVE_REQUEST = "CFL4HX.OP001.SaveRequest"; |
| | | public static final String OP002_SAVE_REQUEST = "CFL4HX.OP002.SaveRequest"; |
| | | |
| | | public static final List CAMERA_RESULTS_LIST = Arrays.asList("OP230","OP490"); //ç¸æºç»æ |
| | | public static final List LEAKAGEDETECTION_LIST = Arrays.asList("OP660","OP670"); //夿¼æ£æµ |
| | | public static final List OIL_FILLING_LIST = Arrays.asList("OP730"); //æºæ²¹å æ³¨æ°æ® |
| | | public static final List TIGHTENCOLLECTION_LIST = Arrays.asList( |
| | | "HOP110", |
| | | "OP060", |
| | | "OP070", |
| | | "OP080", |
| | | "OP090", |
| | | "OP110", |
| | | "OP120", |
| | | "OP140", |
| | | "OP160", |
| | | "OP170", |
| | | "OP180", |
| | | "OP240", |
| | | "OP270", |
| | | "OP280", |
| | | "OP330", |
| | | "OP350", |
| | | "OP390", |
| | | "OP430", |
| | | "OP450", |
| | | "OP460", |
| | | "OP520", |
| | | "OP590", |
| | | "OP600", |
| | | "OP620", |
| | | "OP710", |
| | | "OP760", |
| | | "OP770" |
| | | ); //æ§ç´§æ°æ® |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.jcdm.main.bs.orderScheduling.domain.BsOrderScheduling; |
| | | import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService; |
| | | import com.jcdm.main.bs.technologyRouteChild.service.IBsTechnologyRouteChildInfoService; |
| | | import com.jcdm.main.da.cameraResults.domain.DaCameraResults; |
| | | import com.jcdm.main.da.cameraResults.service.IDaCameraResultsService; |
| | | import com.jcdm.main.da.collectionParamConf.domain.DaCollectionParamConf; |
| | | import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; |
| | | import com.jcdm.main.da.leakageDetection.domain.DaLeakageDetection; |
| | | import com.jcdm.main.da.leakageDetection.service.IDaLeakageDetectionService; |
| | | import com.jcdm.main.da.oilFilling.domain.DaOilFilling; |
| | | import com.jcdm.main.da.oilFilling.service.IDaOilFillingService; |
| | | import com.jcdm.main.da.opcuaconfig.domain.DaOpcuaConfig; |
| | | import com.jcdm.main.da.paramCollection.domain.DaParamCollection; |
| | | import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService; |
| | |
| | | import com.jcdm.main.da.passingStationCollection.domain.ProductNewPassStation; |
| | | import com.jcdm.main.da.passingStationCollection.service.ProductNewPassStationService; |
| | | import com.jcdm.main.da.passingStationCollection.service.impl.DaPassingStationCollectionServiceImpl; |
| | | import com.jcdm.main.da.tightenCollection.domain.DaTightenCollection; |
| | | import com.jcdm.main.da.tightenCollection.service.IDaTightenCollectionService; |
| | | import com.jcdm.main.plcserver.conf.OPCElement; |
| | | import com.jcdm.main.rm.repairRecord.domain.RmRepairRecord; |
| | | import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService; |
| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.sql.Time; |
| | | import java.time.LocalDateTime; |
| | |
| | | |
| | | public HashMap<String,List<DaCollectionParamConf>> allCollectParamList = new HashMap<>(); |
| | | |
| | | private IDaCameraResultsService daCameraResultsService; |
| | | |
| | | private IDaLeakageDetectionService daLeakageDetectionService; |
| | | |
| | | private IDaOilFillingService daOilFillingService; |
| | | |
| | | private IDaTightenCollectionService daTightenCollectionService; |
| | | |
| | | public OPCUaSubscription(MiloService miloService, |
| | | IDaCollectionParamConfService collectionParamConfService, |
| | | IDaParamCollectionService daParamCollectionService, |
| | |
| | | List<DaOpcuaConfig> lists, |
| | | IRmRepairRecordService rmRepairRecordService, |
| | | IBsTechnologyRouteChildInfoService bsTechnologyRouteChildInfoService, |
| | | ProductNewPassStationService productNewPassStationService) { |
| | | ProductNewPassStationService productNewPassStationService, |
| | | IDaCameraResultsService daCameraResultsService, |
| | | IDaLeakageDetectionService daLeakageDetectionService, |
| | | IDaOilFillingService daOilFillingService, |
| | | IDaTightenCollectionService daTightenCollectionService) { |
| | | OPCUaSubscription.miloService = miloService; |
| | | this.collectionParamConfService = collectionParamConfService; |
| | | this.daParamCollectionService = daParamCollectionService; |
| | |
| | | this.rmRepairRecordService = rmRepairRecordService; |
| | | this.bsTechnologyRouteChildInfoService = bsTechnologyRouteChildInfoService; |
| | | this.productNewPassStationService = productNewPassStationService; |
| | | this.daCameraResultsService = daCameraResultsService; |
| | | this.daLeakageDetectionService = daLeakageDetectionService; |
| | | this.daOilFillingService = daOilFillingService; |
| | | this.daTightenCollectionService = daTightenCollectionService; |
| | | |
| | | |
| | | } |
| | |
| | | BsOrderScheduling bsOrderScheduling=bsOrderSchedulingService.selectBsOrderSchedulingSNCode(SNCode); |
| | | |
| | | List<DaParamCollection> daParamCollectionlist = new ArrayList<>(); |
| | | // if (CollUtil.isNotEmpty(nodeIdList)){ |
| | | // for(int i=0;i<nodeIdList.size();i++){ |
| | | // if(ObjectUtil.isNotEmpty(readWriteEntityList.get(i).getValue()) && !readWriteEntityList.get(i).getValue().toString().equals("0.0")){ |
| | | // DaParamCollection ParamCollection = new DaParamCollection(); |
| | | // ParamCollection.setParamCode(readWriteEntityList.get(i).getIdentifier().toString().split("[.]")[2]); |
| | | // ParamCollection.setLocationCode(parts[1]); |
| | | // if (readWriteEntityList.get(i) == null){ |
| | | // ParamCollection.setParamValue("0"); |
| | | // }else { |
| | | // ParamCollection.setParamValue(readWriteEntityList.get(i).getValue().toString()); |
| | | // } |
| | | // ParamCollection.setSfcCode(SNCode); |
| | | // ParamCollection.setParamName(list.get(i).getParameterSetName()); |
| | | // ParamCollection.setParamUpper(list.get(i).getParamUpper()); |
| | | // ParamCollection.setParamLower(list.get(i).getParamLower()); |
| | | // ParamCollection.setUnit(list.get(i).getCollectParameterUnit()); |
| | | // ParamCollection.setState("åæ ¼"); |
| | | // ParamCollection.setType(list.get(i).getCollectParameterType()); |
| | | // ParamCollection.setCollectionTime(new Date()); |
| | | // ParamCollection.setWorkOrderNo(bsOrderScheduling.getOrderNo()); |
| | | // daParamCollectionlist.add(ParamCollection); |
| | | // } |
| | | // } |
| | | // daParamCollectionService.saveBeachDaParamCollection(daParamCollectionlist); |
| | | // logger.info("{}å卿ºï¼{}ï¼ééæ°æ®ä¿å宿",SNCode,Node); |
| | | // } |
| | | |
| | | //æ°å ç å¼å§ |
| | | String locationCode = parts[1]; |
| | | if(OPCElement.CAMERA_RESULTS_LIST.contains(locationCode)){ |
| | | //åç¸æºæ°æ® |
| | | try { |
| | | if (CollUtil.isNotEmpty(nodeIdList)){ |
| | | for(int i=0;i<nodeIdList.size();i++){ |
| | | try { |
| | | if(ObjectUtil.isNotEmpty(readWriteEntityList.get(i).getValue()) && !readWriteEntityList.get(i).getValue().toString().equals("0.0")){ |
| | | DaParamCollection ParamCollection = new DaParamCollection(); |
| | | ParamCollection.setParamCode(readWriteEntityList.get(i).getIdentifier().toString().split("[.]")[2]); |
| | | ParamCollection.setLocationCode(parts[1]); |
| | | DaCameraResults cameraResults = new DaCameraResults(); |
| | | cameraResults.setSfcCode(SNCode); |
| | | cameraResults.setLocationCode(locationCode); |
| | | cameraResults.setCollectTime(new Date()); |
| | | if (readWriteEntityList.get(i) == null){ |
| | | ParamCollection.setParamValue("0"); |
| | | cameraResults.setResultData0("0"); |
| | | }else { |
| | | ParamCollection.setParamValue(readWriteEntityList.get(i).getValue().toString()); |
| | | cameraResults.setResultData0(readWriteEntityList.get(i).getValue().toString()); |
| | | } |
| | | ParamCollection.setSfcCode(SNCode); |
| | | ParamCollection.setParamName(list.get(i).getParameterSetName()); |
| | | ParamCollection.setParamUpper(list.get(i).getParamUpper()); |
| | | ParamCollection.setParamLower(list.get(i).getParamLower()); |
| | | ParamCollection.setUnit(list.get(i).getCollectParameterUnit()); |
| | | ParamCollection.setState("åæ ¼"); |
| | | ParamCollection.setType(list.get(i).getCollectParameterType()); |
| | | ParamCollection.setCollectionTime(new Date()); |
| | | ParamCollection.setWorkOrderNo(bsOrderScheduling.getOrderNo()); |
| | | daParamCollectionlist.add(ParamCollection); |
| | | daCameraResultsService.insertDaCameraResults(cameraResults); |
| | | logger.info("{}å卿ºï¼{}ï¼ééç¸æºæ°æ®ä¿å宿",SNCode,Node); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼ééç¸æºæ°æ®ç¬¬{}æ¡ä¿å失败: {}", SNCode, Node, i, e.getMessage()); |
| | | } |
| | | } |
| | | daParamCollectionService.saveBeachDaParamCollection(daParamCollectionlist); |
| | | logger.info("{}å卿ºï¼{}ï¼ééæ°æ®ä¿å宿",SNCode,Node); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼ééç¸æºæ°æ®å¤çå¼å¸¸: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | if(OPCElement.LEAKAGEDETECTION_LIST.contains(locationCode)){ |
| | | //å夿¼æ£æµæ°æ® |
| | | try { |
| | | if (CollUtil.isNotEmpty(nodeIdList)){ |
| | | DaLeakageDetection leakageDetection = new DaLeakageDetection(); |
| | | for(int i=0;i<nodeIdList.size();i++){ |
| | | try { |
| | | if(ObjectUtil.isNotEmpty(readWriteEntityList.get(i).getValue()) && !readWriteEntityList.get(i).getValue().toString().equals("0.0")){ |
| | | leakageDetection.setSfcCode(SNCode); |
| | | leakageDetection.setLocationCode(locationCode); |
| | | leakageDetection.setCollectTime(new Date()); |
| | | String paramCode = list.get(i).getParameterSetCode(); |
| | | String value = "0"; |
| | | if (readWriteEntityList.get(i) != null){ |
| | | value = readWriteEntityList.get(i).getValue().toString(); |
| | | } |
| | | |
| | | switch (paramCode) { |
| | | case "Leakrate1": |
| | | leakageDetection.setLeakrate1(value); |
| | | break; |
| | | case "Leakrate2": |
| | | leakageDetection.setLeakrate2(value); |
| | | break; |
| | | case "Leakrate3": |
| | | leakageDetection.setLeakrate3(value); |
| | | break; |
| | | case "Leakrate4": |
| | | leakageDetection.setLeakrate4(value); |
| | | break; |
| | | case "Press1": |
| | | leakageDetection.setPress1(value); |
| | | break; |
| | | case "Press2": |
| | | leakageDetection.setPress2(value); |
| | | break; |
| | | case "Press3": |
| | | leakageDetection.setPress3(value); |
| | | break; |
| | | case "Press4": |
| | | leakageDetection.setPress4(value); |
| | | break; |
| | | case "Status1": |
| | | leakageDetection.setStatus1(value); |
| | | break; |
| | | case "Status2": |
| | | leakageDetection.setStatus2(value); |
| | | break; |
| | | case "Status3": |
| | | leakageDetection.setStatus3(value); |
| | | break; |
| | | case "Status4": |
| | | leakageDetection.setStatus4(value); |
| | | break; |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼å¤æ¼æ£æµæ°æ®ç¬¬{}æ¡å¤ç失败: {}", SNCode, Node, i, e.getMessage()); |
| | | } |
| | | } |
| | | try { |
| | | daLeakageDetectionService.insertDaLeakageDetection(leakageDetection); |
| | | logger.info("{}å卿ºï¼{}ï¼å夿¼æ£æµæ°æ®ä¿å宿",SNCode,Node); |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼å¤æ¼æ£æµæ°æ®ä¿å失败: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼å¤æ¼æ£æµæ°æ®å¤çå¼å¸¸: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | if(OPCElement.OIL_FILLING_LIST.contains(locationCode)){ |
| | | //åæºæ²¹å æ³¨æ°æ® |
| | | try { |
| | | if (CollUtil.isNotEmpty(nodeIdList)){ |
| | | DaOilFilling oilFilling = new DaOilFilling(); |
| | | for(int i=0;i<nodeIdList.size();i++){ |
| | | try { |
| | | if(ObjectUtil.isNotEmpty(readWriteEntityList.get(i).getValue()) && !readWriteEntityList.get(i).getValue().toString().equals("0.0")){ |
| | | oilFilling.setSfcCode(SNCode); |
| | | oilFilling.setLocationCode(locationCode); |
| | | oilFilling.setCollectTime(new Date()); |
| | | String paramCode = list.get(i).getParameterSetCode(); |
| | | String value = "0"; |
| | | if (readWriteEntityList.get(i).getValue() != null){ |
| | | value = readWriteEntityList.get(i).getValue().toString(); |
| | | } |
| | | |
| | | switch (paramCode) { |
| | | case "Actual_OilVolume1": |
| | | oilFilling.setActualOilvolume1(value); |
| | | break; |
| | | case "Actual_OilVolume2": |
| | | oilFilling.setActualOilvolume2(value); |
| | | break; |
| | | case "Actual_OilVolume3": |
| | | oilFilling.setActualOilvolume3(value); |
| | | break; |
| | | case "OilModel1": |
| | | oilFilling.setOilModel1(value); |
| | | break; |
| | | case "OilModel2": |
| | | oilFilling.setOilModel2(value); |
| | | break; |
| | | case "OilModel3": |
| | | oilFilling.setOilModel3(value); |
| | | break; |
| | | case "Set_OilVolume1": |
| | | oilFilling.setSetOilvolume1(value); |
| | | break; |
| | | case "Set_OilVolume2": |
| | | oilFilling.setSetOilvolume2(value); |
| | | break; |
| | | case "Set_OilVolume3": |
| | | oilFilling.setSetOilvolume3(value); |
| | | break; |
| | | case "Status1": |
| | | oilFilling.setStatus1(value); |
| | | break; |
| | | case "Status2": |
| | | oilFilling.setStatus2(value); |
| | | break; |
| | | case "Status3": |
| | | oilFilling.setStatus3(value); |
| | | break; |
| | | case "Time1": |
| | | oilFilling.setTime1(value); |
| | | break; |
| | | case "Time2": |
| | | oilFilling.setTime2(value); |
| | | break; |
| | | case "Time3": |
| | | oilFilling.setTime3(value); |
| | | break; |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æºæ²¹å æ³¨æ°æ®ç¬¬{}æ¡å¤ç失败: {}", SNCode, Node, i, e.getMessage()); |
| | | } |
| | | } |
| | | try { |
| | | daOilFillingService.insertDaOilFilling(oilFilling); |
| | | logger.info("{}å卿ºï¼{}ï¼åæºæ²¹å æ³¨æ°æ®ä¿å宿",SNCode,Node); |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æºæ²¹å æ³¨æ°æ®ä¿å失败: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æºæ²¹å æ³¨æ°æ®å¤çå¼å¸¸: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | if(OPCElement.TIGHTENCOLLECTION_LIST.contains(locationCode)){ |
| | | //åæ§ç´§æ°æ® |
| | | try { |
| | | LinkedHashMap<String, Map<String, Object>> groupMap = new LinkedHashMap<>(); |
| | | for (int i = 0; i < list.size(); i += 3) { |
| | | try { |
| | | String groupKey = String.valueOf(i/3); |
| | | String paramSetName = list.get(i).getParameterSetName(); |
| | | int secondSlash = paramSetName.indexOf("/", paramSetName.indexOf("/") + 1); |
| | | paramSetName = secondSlash > 0 ? paramSetName.substring(0, secondSlash) : paramSetName; |
| | | |
| | | Map<String, Object> paramMap = new HashMap<>(); |
| | | |
| | | // è·åæç©å¼ |
| | | Object torqueObj = readWriteEntityList.get(i).getValue(); |
| | | String torqueValue = torqueObj == null ? null : torqueObj.toString(); |
| | | if (torqueValue != null && !"0.0".equals(torqueValue)) { |
| | | paramMap.put("torque", Double.parseDouble(torqueValue)); |
| | | } |
| | | |
| | | // è·åè§åº¦å¼ |
| | | Object angleObj = readWriteEntityList.get(i + 1).getValue(); |
| | | String angleValue = angleObj == null ? null : angleObj.toString(); |
| | | if (angleValue != null && !"0.0".equals(angleValue)) { |
| | | paramMap.put("angle", Double.parseDouble(angleValue)); |
| | | } |
| | | |
| | | // è·åç¶æå¼ |
| | | Object statusObj = readWriteEntityList.get(i + 2).getValue(); |
| | | String statusValue = statusObj == null ? null : statusObj.toString(); |
| | | if (statusValue != null && !"0.0".equals(statusValue)) { |
| | | paramMap.put("angleStatus", statusValue); |
| | | paramMap.put("paramSetName", paramSetName); |
| | | groupMap.put(groupKey, paramMap); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æ§ç´§æ°æ®ç¬¬{}ç»å¤ç失败: {}", SNCode, Node, i/3, e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | List<DaTightenCollection> tightenList = new ArrayList<>(); |
| | | for (Map<String, Object> paramMap : groupMap.values()) { |
| | | try { |
| | | DaTightenCollection tighten = new DaTightenCollection(); |
| | | tighten.setSfcCode(SNCode); |
| | | tighten.setLocationCode(locationCode); |
| | | tighten.setParamSetName((String) paramMap.get("paramSetName")); |
| | | tighten.setTorque(paramMap.get("torque") != null ? paramMap.get("torque").toString() : null); |
| | | tighten.setAngle(paramMap.get("angle") != null ? paramMap.get("angle").toString() : null); |
| | | tighten.setAngleStatus((String) paramMap.get("angleStatus")); |
| | | tighten.setCollectTime(new Date()); |
| | | tightenList.add(tighten); |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æ§ç´§æ°æ®å¯¹è±¡è½¬æ¢å¤±è´¥: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | if(tightenList.size()>0){ |
| | | try { |
| | | daTightenCollectionService.saveBeachDaTightenCollection(tightenList); |
| | | logger.info("{}å卿ºï¼{}ï¼åæ§ç´§æ°æ®ä¿å宿",SNCode,Node); |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æ§ç´§æ°æ®æ¹éä¿å失败: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("{}å卿ºï¼{}ï¼æ§ç´§æ°æ®å¤çå¼å¸¸: {}", SNCode, Node, e.getMessage()); |
| | | } |
| | | } |
| | | //æ°å ç ç»æ |
| | | |
| | | Object ProductStatus = miloService.readFromOpcUa(parts[0] + "." + parts[1] + ".ProductStatus").getValue(); |
| | | String str1="åæ ¼" ; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.jcdm.main.da.cameraResults.mapper.DaCameraResultsMapper"> |
| | | |
| | | <resultMap type="DaCameraResults" id="DaCameraResultsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="sfcCode" column="sfc_code" /> |
| | | <result property="locationCode" column="location_code" /> |
| | | <result property="describe" column="describe" /> |
| | | <result property="ResultData0" column="ResultData0" /> |
| | | <result property="ResultData1" column="ResultData1" /> |
| | | <result property="ResultData2" column="ResultData2" /> |
| | | <result property="ResultData3" column="ResultData3" /> |
| | | <result property="ResultData4" column="ResultData4" /> |
| | | <result property="collectTime" column="collect_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaCameraResultsVo"> |
| | | select id, sfc_code, location_code, describe, ResultData0, ResultData1, ResultData2, ResultData3, ResultData4, collect_time from da_camera_results |
| | | </sql> |
| | | |
| | | <select id="selectDaCameraResultsList" parameterType="DaCameraResults" resultMap="DaCameraResultsResult"> |
| | | <include refid="selectDaCameraResultsVo"/> |
| | | <where> |
| | | <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> |
| | | <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDaCameraResultsById" parameterType="Long" resultMap="DaCameraResultsResult"> |
| | | <include refid="selectDaCameraResultsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDaCameraResults" parameterType="DaCameraResults"> |
| | | insert into da_camera_results |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="sfcCode != null">sfc_code,</if> |
| | | <if test="locationCode != null">location_code,</if> |
| | | <if test="describe != null">describe,</if> |
| | | <if test="ResultData0 != null">ResultData0,</if> |
| | | <if test="ResultData1 != null">ResultData1,</if> |
| | | <if test="ResultData2 != null">ResultData2,</if> |
| | | <if test="ResultData3 != null">ResultData3,</if> |
| | | <if test="ResultData4 != null">ResultData4,</if> |
| | | <if test="collectTime != null">collect_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="sfcCode != null">#{sfcCode},</if> |
| | | <if test="locationCode != null">#{locationCode},</if> |
| | | <if test="describe != null">#{describe},</if> |
| | | <if test="ResultData0 != null">#{ResultData0},</if> |
| | | <if test="ResultData1 != null">#{ResultData1},</if> |
| | | <if test="ResultData2 != null">#{ResultData2},</if> |
| | | <if test="ResultData3 != null">#{ResultData3},</if> |
| | | <if test="ResultData4 != null">#{ResultData4},</if> |
| | | <if test="collectTime != null">#{collectTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDaCameraResults" parameterType="DaCameraResults"> |
| | | update da_camera_results |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sfcCode != null">sfc_code = #{sfcCode},</if> |
| | | <if test="locationCode != null">location_code = #{locationCode},</if> |
| | | <if test="describe != null">describe = #{describe},</if> |
| | | <if test="ResultData0 != null">ResultData0 = #{ResultData0},</if> |
| | | <if test="ResultData1 != null">ResultData1 = #{ResultData1},</if> |
| | | <if test="ResultData2 != null">ResultData2 = #{ResultData2},</if> |
| | | <if test="ResultData3 != null">ResultData3 = #{ResultData3},</if> |
| | | <if test="ResultData4 != null">ResultData4 = #{ResultData4},</if> |
| | | <if test="collectTime != null">collect_time = #{collectTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDaCameraResultsById" parameterType="Long"> |
| | | delete from da_camera_results where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDaCameraResultsByIds" parameterType="String"> |
| | | delete from da_camera_results 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.jcdm.main.da.leakageDetection.mapper.DaLeakageDetectionMapper"> |
| | | |
| | | <resultMap type="DaLeakageDetection" id="DaLeakageDetectionResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="sfcCode" column="sfc_code" /> |
| | | <result property="locationCode" column="location_code" /> |
| | | <result property="paramSetCode" column="param_set_code" /> |
| | | <result property="paramSetName" column="param_set_name" /> |
| | | <result property="describe" column="describe" /> |
| | | <result property="pressureValue" column="pressure_value" /> |
| | | <result property="leakageRate" column="leakage_rate" /> |
| | | <result property="result" column="result" /> |
| | | <result property="Leakrate1" column="Leakrate1" /> |
| | | <result property="Leakrate2" column="Leakrate2" /> |
| | | <result property="Leakrate3" column="Leakrate3" /> |
| | | <result property="Leakrate4" column="Leakrate4" /> |
| | | <result property="Press1" column="Press1" /> |
| | | <result property="Press2" column="Press2" /> |
| | | <result property="Press3" column="Press3" /> |
| | | <result property="Press4" column="Press4" /> |
| | | <result property="Status1" column="Status1" /> |
| | | <result property="Status2" column="Status2" /> |
| | | <result property="Status3" column="Status3" /> |
| | | <result property="Status4" column="Status4" /> |
| | | <result property="collectTime" column="collect_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaLeakageDetectionVo"> |
| | | select id, sfc_code, location_code, param_set_code, param_set_name, describe, pressure_value, leakage_rate, result, Leakrate1, Leakrate2, Leakrate3, Leakrate4, Press1, Press2, Press3, Press4, Status1, Status2, Status3, Status4, collect_time from da_leakage_detection |
| | | </sql> |
| | | |
| | | <select id="selectDaLeakageDetectionList" parameterType="DaLeakageDetection" resultMap="DaLeakageDetectionResult"> |
| | | <include refid="selectDaLeakageDetectionVo"/> |
| | | <where> |
| | | <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> |
| | | <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> |
| | | <if test="paramSetCode != null and paramSetCode != ''"> and param_set_code = #{paramSetCode}</if> |
| | | <if test="paramSetName != null and paramSetName != ''"> and param_set_name like concat('%', #{paramSetName}, '%')</if> |
| | | <if test="result != null and result != ''"> and result = #{result}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDaLeakageDetectionById" parameterType="Long" resultMap="DaLeakageDetectionResult"> |
| | | <include refid="selectDaLeakageDetectionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDaLeakageDetection" parameterType="DaLeakageDetection"> |
| | | insert into da_leakage_detection |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="sfcCode != null">sfc_code,</if> |
| | | <if test="locationCode != null">location_code,</if> |
| | | <if test="paramSetCode != null">param_set_code,</if> |
| | | <if test="paramSetName != null">param_set_name,</if> |
| | | <if test="describe != null">describe,</if> |
| | | <if test="pressureValue != null">pressure_value,</if> |
| | | <if test="leakageRate != null">leakage_rate,</if> |
| | | <if test="result != null">result,</if> |
| | | <if test="Leakrate1 != null">Leakrate1,</if> |
| | | <if test="Leakrate2 != null">Leakrate2,</if> |
| | | <if test="Leakrate3 != null">Leakrate3,</if> |
| | | <if test="Leakrate4 != null">Leakrate4,</if> |
| | | <if test="Press1 != null">Press1,</if> |
| | | <if test="Press2 != null">Press2,</if> |
| | | <if test="Press3 != null">Press3,</if> |
| | | <if test="Press4 != null">Press4,</if> |
| | | <if test="Status1 != null">Status1,</if> |
| | | <if test="Status2 != null">Status2,</if> |
| | | <if test="Status3 != null">Status3,</if> |
| | | <if test="Status4 != null">Status4,</if> |
| | | <if test="collectTime != null">collect_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="sfcCode != null">#{sfcCode},</if> |
| | | <if test="locationCode != null">#{locationCode},</if> |
| | | <if test="paramSetCode != null">#{paramSetCode},</if> |
| | | <if test="paramSetName != null">#{paramSetName},</if> |
| | | <if test="describe != null">#{describe},</if> |
| | | <if test="pressureValue != null">#{pressureValue},</if> |
| | | <if test="leakageRate != null">#{leakageRate},</if> |
| | | <if test="result != null">#{result},</if> |
| | | <if test="Leakrate1 != null">#{Leakrate1},</if> |
| | | <if test="Leakrate2 != null">#{Leakrate2},</if> |
| | | <if test="Leakrate3 != null">#{Leakrate3},</if> |
| | | <if test="Leakrate4 != null">#{Leakrate4},</if> |
| | | <if test="Press1 != null">#{Press1},</if> |
| | | <if test="Press2 != null">#{Press2},</if> |
| | | <if test="Press3 != null">#{Press3},</if> |
| | | <if test="Press4 != null">#{Press4},</if> |
| | | <if test="Status1 != null">#{Status1},</if> |
| | | <if test="Status2 != null">#{Status2},</if> |
| | | <if test="Status3 != null">#{Status3},</if> |
| | | <if test="Status4 != null">#{Status4},</if> |
| | | <if test="collectTime != null">#{collectTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDaLeakageDetection" parameterType="DaLeakageDetection"> |
| | | update da_leakage_detection |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sfcCode != null">sfc_code = #{sfcCode},</if> |
| | | <if test="locationCode != null">location_code = #{locationCode},</if> |
| | | <if test="paramSetCode != null">param_set_code = #{paramSetCode},</if> |
| | | <if test="paramSetName != null">param_set_name = #{paramSetName},</if> |
| | | <if test="describe != null">describe = #{describe},</if> |
| | | <if test="pressureValue != null">pressure_value = #{pressureValue},</if> |
| | | <if test="leakageRate != null">leakage_rate = #{leakageRate},</if> |
| | | <if test="result != null">result = #{result},</if> |
| | | <if test="Leakrate1 != null">Leakrate1 = #{Leakrate1},</if> |
| | | <if test="Leakrate2 != null">Leakrate2 = #{Leakrate2},</if> |
| | | <if test="Leakrate3 != null">Leakrate3 = #{Leakrate3},</if> |
| | | <if test="Leakrate4 != null">Leakrate4 = #{Leakrate4},</if> |
| | | <if test="Press1 != null">Press1 = #{Press1},</if> |
| | | <if test="Press2 != null">Press2 = #{Press2},</if> |
| | | <if test="Press3 != null">Press3 = #{Press3},</if> |
| | | <if test="Press4 != null">Press4 = #{Press4},</if> |
| | | <if test="Status1 != null">Status1 = #{Status1},</if> |
| | | <if test="Status2 != null">Status2 = #{Status2},</if> |
| | | <if test="Status3 != null">Status3 = #{Status3},</if> |
| | | <if test="Status4 != null">Status4 = #{Status4},</if> |
| | | <if test="collectTime != null">collect_time = #{collectTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDaLeakageDetectionById" parameterType="Long"> |
| | | delete from da_leakage_detection where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDaLeakageDetectionByIds" parameterType="String"> |
| | | delete from da_leakage_detection 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.jcdm.main.da.oilFilling.mapper.DaOilFillingMapper"> |
| | | |
| | | <resultMap type="DaOilFilling" id="DaOilFillingResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="sfcCode" column="sfc_code" /> |
| | | <result property="locationCode" column="location_code" /> |
| | | <result property="describe" column="describe" /> |
| | | <result property="setFuelVolume" column="set_fuel_volume" /> |
| | | <result property="actualFuelConsumption" column="actual_fuel_consumption" /> |
| | | <result property="refuelingTime" column="refueling_time" /> |
| | | <result property="result" column="result" /> |
| | | <result property="actualOilvolume1" column="Actual_OilVolume1" /> |
| | | <result property="actualOilvolume2" column="Actual_OilVolume2" /> |
| | | <result property="actualOilvolume3" column="Actual_OilVolume3" /> |
| | | <result property="OilModel1" column="OilModel1" /> |
| | | <result property="OilModel2" column="OilModel2" /> |
| | | <result property="OilModel3" column="OilModel3" /> |
| | | <result property="setOilvolume1" column="Set_OilVolume1" /> |
| | | <result property="setOilvolume2" column="Set_OilVolume2" /> |
| | | <result property="setOilvolume3" column="Set_OilVolume3" /> |
| | | <result property="Status1" column="Status1" /> |
| | | <result property="Status2" column="Status2" /> |
| | | <result property="Status3" column="Status3" /> |
| | | <result property="Time1" column="Time1" /> |
| | | <result property="Time2" column="Time2" /> |
| | | <result property="Time3" column="Time3" /> |
| | | <result property="collectTime" column="collect_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaOilFillingVo"> |
| | | select id, sfc_code, location_code, set_fuel_volume, actual_fuel_consumption, refueling_time, Actual_OilVolume1, Actual_OilVolume2, Actual_OilVolume3, OilModel1, OilModel2, OilModel3, Set_OilVolume1, Set_OilVolume2, Set_OilVolume3, Status1, Status2, Status3, Time1, Time2, Time3, collect_time from da_oil_filling |
| | | </sql> |
| | | |
| | | <select id="selectDaOilFillingList" parameterType="DaOilFilling" resultMap="DaOilFillingResult"> |
| | | <include refid="selectDaOilFillingVo"/> |
| | | <where> |
| | | <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> |
| | | <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDaOilFillingById" parameterType="Long" resultMap="DaOilFillingResult"> |
| | | <include refid="selectDaOilFillingVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDaOilFilling" parameterType="DaOilFilling"> |
| | | insert into da_oil_filling |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="sfcCode != null">sfc_code,</if> |
| | | <if test="locationCode != null">location_code,</if> |
| | | <if test="describe != null">describe,</if> |
| | | <if test="setFuelVolume != null">set_fuel_volume,</if> |
| | | <if test="actualFuelConsumption != null">actual_fuel_consumption,</if> |
| | | <if test="refuelingTime != null">refueling_time,</if> |
| | | <if test="result != null">result,</if> |
| | | <if test="actualOilvolume1 != null">Actual_OilVolume1,</if> |
| | | <if test="actualOilvolume2 != null">Actual_OilVolume2,</if> |
| | | <if test="actualOilvolume3 != null">Actual_OilVolume3,</if> |
| | | <if test="OilModel1 != null">OilModel1,</if> |
| | | <if test="OilModel2 != null">OilModel2,</if> |
| | | <if test="OilModel3 != null">OilModel3,</if> |
| | | <if test="setOilvolume1 != null">Set_OilVolume1,</if> |
| | | <if test="setOilvolume2 != null">Set_OilVolume2,</if> |
| | | <if test="setOilvolume3 != null">Set_OilVolume3,</if> |
| | | <if test="Status1 != null">Status1,</if> |
| | | <if test="Status2 != null">Status2,</if> |
| | | <if test="Status3 != null">Status3,</if> |
| | | <if test="Time1 != null">Time1,</if> |
| | | <if test="Time2 != null">Time2,</if> |
| | | <if test="Time3 != null">Time3,</if> |
| | | <if test="collectTime != null">collect_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="sfcCode != null">#{sfcCode},</if> |
| | | <if test="locationCode != null">#{locationCode},</if> |
| | | <if test="describe != null">#{describe},</if> |
| | | <if test="setFuelVolume != null">#{setFuelVolume},</if> |
| | | <if test="actualFuelConsumption != null">#{actualFuelConsumption},</if> |
| | | <if test="refuelingTime != null">#{refuelingTime},</if> |
| | | <if test="result != null">#{result},</if> |
| | | <if test="actualOilvolume1 != null">#{actualOilvolume1},</if> |
| | | <if test="actualOilvolume2 != null">#{actualOilvolume2},</if> |
| | | <if test="actualOilvolume3 != null">#{actualOilvolume3},</if> |
| | | <if test="OilModel1 != null">#{OilModel1},</if> |
| | | <if test="OilModel2 != null">#{OilModel2},</if> |
| | | <if test="OilModel3 != null">#{OilModel3},</if> |
| | | <if test="setOilvolume1 != null">#{setOilvolume1},</if> |
| | | <if test="setOilvolume2 != null">#{setOilvolume2},</if> |
| | | <if test="setOilvolume3 != null">#{setOilvolume3},</if> |
| | | <if test="Status1 != null">#{Status1},</if> |
| | | <if test="Status2 != null">#{Status2},</if> |
| | | <if test="Status3 != null">#{Status3},</if> |
| | | <if test="Time1 != null">#{Time1},</if> |
| | | <if test="Time2 != null">#{Time2},</if> |
| | | <if test="Time3 != null">#{Time3},</if> |
| | | <if test="collectTime != null">#{collectTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDaOilFilling" parameterType="DaOilFilling"> |
| | | update da_oil_filling |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sfcCode != null">sfc_code = #{sfcCode},</if> |
| | | <if test="locationCode != null">location_code = #{locationCode},</if> |
| | | <if test="describe != null">describe = #{describe},</if> |
| | | <if test="setFuelVolume != null">set_fuel_volume = #{setFuelVolume},</if> |
| | | <if test="actualFuelConsumption != null">actual_fuel_consumption = #{actualFuelConsumption},</if> |
| | | <if test="refuelingTime != null">refueling_time = #{refuelingTime},</if> |
| | | <if test="result != null">result = #{result},</if> |
| | | <if test="actualOilvolume1 != null">Actual_OilVolume1 = #{actualOilvolume1},</if> |
| | | <if test="actualOilvolume2 != null">Actual_OilVolume2 = #{actualOilvolume2},</if> |
| | | <if test="actualOilvolume3 != null">Actual_OilVolume3 = #{actualOilvolume3},</if> |
| | | <if test="OilModel1 != null">OilModel1 = #{OilModel1},</if> |
| | | <if test="OilModel2 != null">OilModel2 = #{OilModel2},</if> |
| | | <if test="OilModel3 != null">OilModel3 = #{OilModel3},</if> |
| | | <if test="setOilvolume1 != null">Set_OilVolume1 = #{setOilvolume1},</if> |
| | | <if test="setOilvolume2 != null">Set_OilVolume2 = #{setOilvolume2},</if> |
| | | <if test="setOilvolume3 != null">Set_OilVolume3 = #{setOilvolume3},</if> |
| | | <if test="Status1 != null">Status1 = #{Status1},</if> |
| | | <if test="Status2 != null">Status2 = #{Status2},</if> |
| | | <if test="Status3 != null">Status3 = #{Status3},</if> |
| | | <if test="Time1 != null">Time1 = #{Time1},</if> |
| | | <if test="Time2 != null">Time2 = #{Time2},</if> |
| | | <if test="Time3 != null">Time3 = #{Time3},</if> |
| | | <if test="collectTime != null">collect_time = #{collectTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDaOilFillingById" parameterType="Long"> |
| | | delete from da_oil_filling where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDaOilFillingByIds" parameterType="String"> |
| | | delete from da_oil_filling 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.jcdm.main.da.tightenCollection.mapper.DaTightenCollectionMapper"> |
| | | |
| | | <resultMap type="DaTightenCollection" id="DaTightenCollectionResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="sfcCode" column="sfc_code" /> |
| | | <result property="locationCode" column="location_code" /> |
| | | <result property="paramSetName" column="param_set_name" /> |
| | | <result property="torque" column="torque" /> |
| | | <result property="angle" column="angle" /> |
| | | <result property="angleStatus" column="angle_status" /> |
| | | <result property="collectTime" column="collect_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaTightenCollectionVo"> |
| | | select id, sfc_code, location_code, param_set_name, torque, angle, angle_status, collect_time from da_tighten_collection |
| | | </sql> |
| | | |
| | | <select id="selectDaTightenCollectionList" parameterType="DaTightenCollection" resultMap="DaTightenCollectionResult"> |
| | | <include refid="selectDaTightenCollectionVo"/> |
| | | <where> |
| | | <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> |
| | | <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> |
| | | <if test="paramSetName != null and paramSetName != ''"> and param_set_name like concat('%', #{paramSetName}, '%')</if> |
| | | <if test="angleStatus != null and angleStatus != ''"> and angle_status = #{angleStatus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDaTightenCollectionById" parameterType="Long" resultMap="DaTightenCollectionResult"> |
| | | <include refid="selectDaTightenCollectionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDaTightenCollection" parameterType="DaTightenCollection"> |
| | | insert into da_tighten_collection |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="sfcCode != null">sfc_code,</if> |
| | | <if test="locationCode != null">location_code,</if> |
| | | <if test="paramSetName != null">param_set_name,</if> |
| | | <if test="torque != null">torque,</if> |
| | | <if test="angle != null">angle,</if> |
| | | <if test="angleStatus != null">angle_status,</if> |
| | | <if test="collectTime != null">collect_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="sfcCode != null">#{sfcCode},</if> |
| | | <if test="locationCode != null">#{locationCode},</if> |
| | | <if test="paramSetName != null">#{paramSetName},</if> |
| | | <if test="torque != null">#{torque},</if> |
| | | <if test="angle != null">#{angle},</if> |
| | | <if test="angleStatus != null">#{angleStatus},</if> |
| | | <if test="collectTime != null">#{collectTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDaTightenCollection" parameterType="DaTightenCollection"> |
| | | update da_tighten_collection |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sfcCode != null">sfc_code = #{sfcCode},</if> |
| | | <if test="locationCode != null">location_code = #{locationCode},</if> |
| | | <if test="paramSetName != null">param_set_name = #{paramSetName},</if> |
| | | <if test="torque != null">torque = #{torque},</if> |
| | | <if test="angle != null">angle = #{angle},</if> |
| | | <if test="angleStatus != null">angle_status = #{angleStatus},</if> |
| | | <if test="collectTime != null">collect_time = #{collectTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDaTightenCollectionById" parameterType="Long"> |
| | | delete from da_tighten_collection where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDaTightenCollectionByIds" parameterType="String"> |
| | | delete from da_tighten_collection where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ç¸æºç»æå表 |
| | | export function listCameraResults(query) { |
| | | return request({ |
| | | url: '/da/cameraResults/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢ç¸æºç»æè¯¦ç» |
| | | export function getCameraResults(id) { |
| | | return request({ |
| | | url: '/da/cameraResults/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢ç¸æºç»æ |
| | | export function addCameraResults(data) { |
| | | return request({ |
| | | url: '/da/cameraResults', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹ç¸æºç»æ |
| | | export function updateCameraResults(data) { |
| | | return request({ |
| | | url: '/da/cameraResults', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤ç¸æºç»æ |
| | | export function delCameraResults(id) { |
| | | return request({ |
| | | url: '/da/cameraResults/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢å¤æ¼æ£æµå表 |
| | | export function listLeakageDetection(query) { |
| | | return request({ |
| | | url: '/da/leakageDetection/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢å¤æ¼æ£æµè¯¦ç» |
| | | export function getLeakageDetection(id) { |
| | | return request({ |
| | | url: '/da/leakageDetection/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢å¤æ¼æ£æµ |
| | | export function addLeakageDetection(data) { |
| | | return request({ |
| | | url: '/da/leakageDetection', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹å¤æ¼æ£æµ |
| | | export function updateLeakageDetection(data) { |
| | | return request({ |
| | | url: '/da/leakageDetection', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤å¤æ¼æ£æµ |
| | | export function delLeakageDetection(id) { |
| | | return request({ |
| | | url: '/da/leakageDetection/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢æºæ²¹å 注å表 |
| | | export function listOilFilling(query) { |
| | | return request({ |
| | | url: '/da/oilFilling/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢æºæ²¹å æ³¨è¯¦ç» |
| | | export function getOilFilling(id) { |
| | | return request({ |
| | | url: '/da/oilFilling/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢æºæ²¹å 注 |
| | | export function addOilFilling(data) { |
| | | return request({ |
| | | url: '/da/oilFilling', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹æºæ²¹å 注 |
| | | export function updateOilFilling(data) { |
| | | return request({ |
| | | url: '/da/oilFilling', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å 餿ºæ²¹å 注 |
| | | export function delOilFilling(id) { |
| | | return request({ |
| | | url: '/da/oilFilling/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢æ§ç´§ééå表 |
| | | export function listTightenCollection(query) { |
| | | return request({ |
| | | url: '/da/tightenCollection/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢æ§ç´§ééè¯¦ç» |
| | | export function getTightenCollection(id) { |
| | | return request({ |
| | | url: '/da/tightenCollection/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢æ§ç´§éé |
| | | export function addTightenCollection(data) { |
| | | return request({ |
| | | url: '/da/tightenCollection', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹æ§ç´§éé |
| | | export function updateTightenCollection(data) { |
| | | return request({ |
| | | url: '/da/tightenCollection', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å 餿§ç´§éé |
| | | export function delTightenCollection(id) { |
| | | return request({ |
| | | url: '/da/tightenCollection/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="scan-container"> |
| | | <div class="input-group"> |
| | | <label class="input-label">å卿ºç ï¼</label> |
| | | <input |
| | | type="text" |
| | | v-model="engineCode" |
| | | class="engine-input" |
| | | @keyup.enter="handleScan" |
| | | placeholder="è¯·æ«æå卿ºç " |
| | | /> |
| | | </div> |
| | | <div class="result-display" v-if="fuelAmount" :class="{ 'highlight': isHighlighted }"> |
| | | <div class="result-title">å æ²¹é</div> |
| | | <div class="result-value">{{ fuelAmount }}å</div> |
| | | <div class="scan-time">{{ lastScanTime }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | engineCode: '', |
| | | fuelAmount: null, |
| | | isHighlighted: false, |
| | | lastScanTime: '' |
| | | } |
| | | }, |
| | | mounted() { |
| | | }, |
| | | methods: { |
| | | handleScan() { |
| | | if (this.engineCode) { |
| | | const prefix = this.engineCode.substring(0, 4); |
| | | if (prefix === '380Y') { |
| | | this.fuelAmount = 380; |
| | | } else if (prefix === '280Y') { |
| | | this.fuelAmount = 280; |
| | | } else { |
| | | this.fuelAmount = null; |
| | | } |
| | | |
| | | // æ·»å é«äº®ææ |
| | | this.isHighlighted = true; |
| | | setTimeout(() => { |
| | | this.isHighlighted = false; |
| | | }, 1000); |
| | | |
| | | // æ´æ°æ¶é´ |
| | | const now = new Date(); |
| | | this.lastScanTime = `æ«ææ¶é´ï¼${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}`; |
| | | |
| | | // æ¸
空è¾å
¥æ¡ï¼åå¤ä¸ä¸æ¬¡æ«æ |
| | | this.engineCode = ''; |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .scan-container { |
| | | padding: 60px; |
| | | background: #fff; |
| | | border-radius: 8px; |
| | | box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1); |
| | | margin: 40px; |
| | | min-height: 400px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | } |
| | | |
| | | .input-group { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 40px; |
| | | width: 100%; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .input-label { |
| | | font-size: 24px; |
| | | font-weight: bold; |
| | | margin-right: 20px; |
| | | min-width: 120px; |
| | | } |
| | | |
| | | .engine-input { |
| | | width: 300px; |
| | | height: 50px; |
| | | font-size: 24px; |
| | | padding: 0 15px; |
| | | border: 2px solid #409EFF; |
| | | border-radius: 4px; |
| | | outline: none; |
| | | } |
| | | |
| | | .engine-input:focus { |
| | | border-color: #66b1ff; |
| | | } |
| | | |
| | | .result-display { |
| | | font-size: 48px; |
| | | color: #409EFF; |
| | | font-weight: bold; |
| | | margin-top: 50px; |
| | | padding: 40px; |
| | | background: #f5f7fa; |
| | | border-radius: 8px; |
| | | text-align: center; |
| | | border: 3px solid #409EFF; |
| | | box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2); |
| | | width: 80%; |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | transition: all 0.3s ease; |
| | | } |
| | | |
| | | .result-display.highlight { |
| | | transform: scale(1.05); |
| | | background: #ecf5ff; |
| | | border-color: #66b1ff; |
| | | box-shadow: 0 0 20px rgba(64, 158, 255, 0.4); |
| | | } |
| | | |
| | | .result-title { |
| | | font-size: 32px; |
| | | margin-bottom: 20px; |
| | | color: #606266; |
| | | } |
| | | |
| | | .result-value { |
| | | font-size: 72px; |
| | | color: #409EFF; |
| | | margin: 20px 0; |
| | | text-shadow: 2px 2px 4px rgba(0,0,0,0.1); |
| | | } |
| | | |
| | | .scan-time { |
| | | font-size: 24px; |
| | | color: #909399; |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | @keyframes highlight { |
| | | 0% { |
| | | transform: scale(1); |
| | | } |
| | | 50% { |
| | | transform: scale(1.05); |
| | | } |
| | | 100% { |
| | | transform: scale(1); |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input |
| | | v-model="queryParams.sfcCode" |
| | | placeholder="请è¾å
¥æ»æåºåå·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input |
| | | v-model="queryParams.locationCode" |
| | | placeholder="请è¾å
¥å·¥ä½ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | |
| | | <el-card style="margin-top: 10px" class="box-card"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['da:cameraResults:add']" |
| | | >æ°å¢</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['da:cameraResults:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['da:cameraResults:remove']" |
| | | >å é¤</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['da:cameraResults:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="cameraResultsList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主é®id" align="center" prop="id" /> |
| | | <el-table-column label="æ»æåºåå·" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥ä½ç¼ç " align="center" prop="locationCode"> |
| | | </el-table-column> |
| | | <el-table-column label="æè¿°" align="center" prop="describe"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¸æº1ç»æ" align="center" prop="ResultData0"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¸æº2ç»æ" align="center" prop="ResultData1"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¸æº3ç»æ" align="center" prop="ResultData2"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¸æº4ç»æ" align="center" prop="ResultData3"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¸æº5ç»æ" align="center" prop="ResultData4"> |
| | | </el-table-column> |
| | | <el-table-column label="ééæ¶é´" align="center" prop="collectTime"> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" width="200" label="æä½" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="success" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['da:cameraResults:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['da:cameraResults:remove']" |
| | | >å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹ç¸æºç»æå¯¹è¯æ¡ --> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input v-model="form.sfcCode" placeholder="请è¾å
¥æ»æåºåå·" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input v-model="form.locationCode" placeholder="请è¾å
¥å·¥ä½ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" prop="describe"> |
| | | <el-input v-model="form.describe" placeholder="请è¾å
¥æè¿°" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç¸æº1ç»æ" prop="ResultData0"> |
| | | <el-input v-model="form.ResultData0" placeholder="请è¾å
¥ç¸æº1ç»æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç¸æº2ç»æ" prop="ResultData1"> |
| | | <el-input v-model="form.ResultData1" placeholder="请è¾å
¥ç¸æº2ç»æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç¸æº3ç»æ" prop="ResultData2"> |
| | | <el-input v-model="form.ResultData2" placeholder="请è¾å
¥ç¸æº3ç»æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç¸æº4ç»æ" prop="ResultData3"> |
| | | <el-input v-model="form.ResultData3" placeholder="请è¾å
¥ç¸æº4ç»æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç¸æº5ç»æ" prop="ResultData4"> |
| | | <el-input v-model="form.ResultData4" placeholder="请è¾å
¥ç¸æº5ç»æ" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">ç¡® å®</el-button> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCameraResults, getCameraResults, delCameraResults, addCameraResults, updateCameraResults } from "@/api/main/da/cameraResults/cameraResults"; |
| | | |
| | | export default { |
| | | name: "CameraResults", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // ç¸æºç»æè¡¨æ ¼æ°æ® |
| | | cameraResultsList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // è¡¨åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢ç¸æºç»æå表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listCameraResults(this.queryParams).then(response => { |
| | | this.cameraResultsList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | describe: null, |
| | | ResultData0: null, |
| | | ResultData1: null, |
| | | ResultData2: null, |
| | | ResultData3: null, |
| | | ResultData4: null, |
| | | collectTime: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** éç½®æé®æä½ */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.titleName = "æ·»å ç¸æºç»æ"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getCameraResults(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.titleName = "ä¿®æ¹ç¸æºç»æ"; |
| | | }); |
| | | }, |
| | | /** æäº¤æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateCameraResults(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addCameraResults(this.form).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å é¤ç¸æºç»æç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delCameraResults(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** å¯¼åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('da/cameraResults/export', { |
| | | ...this.queryParams |
| | | }, `cameraResults_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input |
| | | v-model="queryParams.sfcCode" |
| | | placeholder="请è¾å
¥æ»æåºåå·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input |
| | | v-model="queryParams.locationCode" |
| | | placeholder="请è¾å
¥å·¥ä½ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éç¼ç " prop="paramSetCode"> |
| | | <el-input |
| | | v-model="queryParams.paramSetCode" |
| | | placeholder="请è¾å
¥åæ°éç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éåç§°" prop="paramSetName"> |
| | | <el-input |
| | | v-model="queryParams.paramSetName" |
| | | placeholder="请è¾å
¥åæ°éåç§°" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | |
| | | <el-card style="margin-top: 10px" class="box-card"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="primary"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-plus"--> |
| | | <!-- size="mini"--> |
| | | <!-- @click="handleAdd"--> |
| | | <!-- v-hasPermi="['da:leakageDetection:add']"--> |
| | | <!-- >æ°å¢</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="single"--> |
| | | <!-- @click="handleUpdate"--> |
| | | <!-- v-hasPermi="['da:leakageDetection:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="multiple"--> |
| | | <!-- @click="handleDelete"--> |
| | | <!-- v-hasPermi="['da:leakageDetection:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['da:leakageDetection:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="leakageDetectionList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主é®id" align="center" prop="id" /> |
| | | <el-table-column label="æ»æåºåå·" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥ä½ç¼ç " align="center" prop="locationCode"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="åæ°éç¼ç " align="center" prop="paramSetCode">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="åæ°éåç§°" align="center" prop="paramSetName">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="æè¿°" align="center" prop="describe">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="ååå¼" align="center" prop="pressureValue">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="æ³é²ç" align="center" prop="leakageRate">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="ç»æ" align="center" prop="result">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="æ°´éäºæ¼æ³æ¼é" align="center" prop="leakrate1"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°´é夿¼æ³æ¼é" align="center" prop="leakrate2"> |
| | | </el-table-column> |
| | | <el-table-column label="é½¿è½®ç®±å¤æ¼æ³æ¼é" align="center" prop="leakrate3"> |
| | | </el-table-column> |
| | | <el-table-column label="æ²¹é夿¼æ³æ¼é" align="center" prop="leakrate4"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°´éäºæ¼åå" align="center" prop="press1"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°´é夿¼åå" align="center" prop="press2"> |
| | | </el-table-column> |
| | | <el-table-column label="é½¿è½®ç®±å¤æ¼åå" align="center" prop="press3"> |
| | | </el-table-column> |
| | | <el-table-column label="æ²¹é夿¼åå" align="center" prop="press4"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°´éäºæ¼ç»æç¶æ:1OK 2NG" align="center" prop="status1"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°´é夿¼ç»æç¶æ:1OK 2NG" align="center" prop="status2"> |
| | | </el-table-column> |
| | | <el-table-column label="é½¿è½®ç®±å¤æ¼ç»æç¶æ:1OK 2NG" align="center" prop="status3"> |
| | | </el-table-column> |
| | | <el-table-column label="æ²¹é夿¼ç»æç¶æ:1OK 2NG" align="center" prop="status4"> |
| | | </el-table-column> |
| | | <el-table-column label="ééæ¶é´" align="center" prop="collectTime"> |
| | | </el-table-column> |
| | | <!-- <el-table-column fixed="right" width="200" label="æä½" align="center" class-name="small-padding fixed-width">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- @click="handleUpdate(scope.row)"--> |
| | | <!-- v-hasPermi="['da:leakageDetection:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- @click="handleDelete(scope.row)"--> |
| | | <!-- v-hasPermi="['da:leakageDetection:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </el-card> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹å¤æ¼æ£æµå¯¹è¯æ¡ --> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input v-model="form.sfcCode" placeholder="请è¾å
¥æ»æåºåå·" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input v-model="form.locationCode" placeholder="请è¾å
¥å·¥ä½ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éç¼ç " prop="paramSetCode"> |
| | | <el-input v-model="form.paramSetCode" placeholder="请è¾å
¥åæ°éç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éåç§°" prop="paramSetName"> |
| | | <el-input v-model="form.paramSetName" placeholder="请è¾å
¥åæ°éåç§°" /> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" prop="describe"> |
| | | <el-input v-model="form.describe" placeholder="请è¾å
¥æè¿°" /> |
| | | </el-form-item> |
| | | <el-form-item label="ååå¼" prop="pressureValue"> |
| | | <el-input v-model="form.pressureValue" placeholder="请è¾å
¥ååå¼" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ³é²ç" prop="leakageRate"> |
| | | <el-input v-model="form.leakageRate" placeholder="请è¾å
¥æ³é²ç" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´éäºæ¼æ³æ¼é" prop="Leakrate1"> |
| | | <el-input v-model="form.Leakrate1" placeholder="请è¾å
¥æ°´éäºæ¼æ³æ¼é" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´é夿¼æ³æ¼é" prop="Leakrate2"> |
| | | <el-input v-model="form.Leakrate2" placeholder="请è¾å
¥æ°´é夿¼æ³æ¼é" /> |
| | | </el-form-item> |
| | | <el-form-item label="é½¿è½®ç®±å¤æ¼æ³æ¼é" prop="Leakrate3"> |
| | | <el-input v-model="form.Leakrate3" placeholder="请è¾å
¥é½¿è½®ç®±å¤æ¼æ³æ¼é" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ²¹é夿¼æ³æ¼é" prop="Leakrate4"> |
| | | <el-input v-model="form.Leakrate4" placeholder="请è¾å
¥æ²¹é夿¼æ³æ¼é" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´éäºæ¼åå" prop="Press1"> |
| | | <el-input v-model="form.Press1" placeholder="请è¾å
¥æ°´éäºæ¼åå" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´é夿¼åå" prop="Press2"> |
| | | <el-input v-model="form.Press2" placeholder="请è¾å
¥æ°´é夿¼åå" /> |
| | | </el-form-item> |
| | | <el-form-item label="é½¿è½®ç®±å¤æ¼åå" prop="Press3"> |
| | | <el-input v-model="form.Press3" placeholder="请è¾å
¥é½¿è½®ç®±å¤æ¼åå" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ²¹é夿¼åå" prop="Press4"> |
| | | <el-input v-model="form.Press4" placeholder="请è¾å
¥æ²¹é夿¼åå" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´éäºæ¼ç»æç¶æ:1OK 2NG" prop="Status1"> |
| | | <el-input v-model="form.Status1" placeholder="请è¾å
¥æ°´éäºæ¼ç»æç¶æ:1OK 2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ°´é夿¼ç»æç¶æ:1OK 2NG" prop="Status2"> |
| | | <el-input v-model="form.Status2" placeholder="请è¾å
¥æ°´é夿¼ç»æç¶æ:1OK 2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="é½¿è½®ç®±å¤æ¼ç»æç¶æ:1OK 2NG" prop="Status3"> |
| | | <el-input v-model="form.Status3" placeholder="请è¾å
¥é½¿è½®ç®±å¤æ¼ç»æç¶æ:1OK 2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ²¹é夿¼ç»æç¶æ:1OK 2NG" prop="Status4"> |
| | | <el-input v-model="form.Status4" placeholder="请è¾å
¥æ²¹é夿¼ç»æç¶æ:1OK 2NG" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">ç¡® å®</el-button> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listLeakageDetection, getLeakageDetection, delLeakageDetection, addLeakageDetection, updateLeakageDetection } from "@/api/main/da/leakageDetection/leakageDetection"; |
| | | |
| | | export default { |
| | | name: "LeakageDetection", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // 夿¼æ£æµè¡¨æ ¼æ°æ® |
| | | leakageDetectionList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | paramSetCode: null, |
| | | paramSetName: null, |
| | | result: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // è¡¨åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢å¤æ¼æ£æµå表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listLeakageDetection(this.queryParams).then(response => { |
| | | this.leakageDetectionList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | paramSetCode: null, |
| | | paramSetName: null, |
| | | describe: null, |
| | | pressureValue: null, |
| | | leakageRate: null, |
| | | result: null, |
| | | Leakrate1: null, |
| | | Leakrate2: null, |
| | | Leakrate3: null, |
| | | Leakrate4: null, |
| | | Press1: null, |
| | | Press2: null, |
| | | Press3: null, |
| | | Press4: null, |
| | | Status1: null, |
| | | Status2: null, |
| | | Status3: null, |
| | | Status4: null, |
| | | collectTime: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** éç½®æé®æä½ */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.titleName = "æ·»å 夿¼æ£æµ"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getLeakageDetection(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.titleName = "ä¿®æ¹å¤æ¼æ£æµ"; |
| | | }); |
| | | }, |
| | | /** æäº¤æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateLeakageDetection(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addLeakageDetection(this.form).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å é¤å¤æ¼æ£æµç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delLeakageDetection(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** å¯¼åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('da/leakageDetection/export', { |
| | | ...this.queryParams |
| | | }, `leakageDetection_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input |
| | | v-model="queryParams.sfcCode" |
| | | placeholder="请è¾å
¥æ»æåºåå·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input |
| | | v-model="queryParams.locationCode" |
| | | placeholder="请è¾å
¥å·¥ä½ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | |
| | | <el-card style="margin-top: 10px" class="box-card"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="primary"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-plus"--> |
| | | <!-- size="mini"--> |
| | | <!-- @click="handleAdd"--> |
| | | <!-- v-hasPermi="['da:oilFilling:add']"--> |
| | | <!-- >æ°å¢</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="single"--> |
| | | <!-- @click="handleUpdate"--> |
| | | <!-- v-hasPermi="['da:oilFilling:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="multiple"--> |
| | | <!-- @click="handleDelete"--> |
| | | <!-- v-hasPermi="['da:oilFilling:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['da:oilFilling:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="oilFillingList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主é®id" align="center" prop="id" /> |
| | | <el-table-column label="æ»æåºåå·" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥ä½ç¼ç " align="center" prop="locationCode"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå®é
å æ²¹é(L)" align="center" prop="actualOilvolume1"> |
| | | </el-table-column> |
| | | <el-table-column label="äºå·æªå®é
å æ²¹é(L)" align="center" prop="actualOilvolume2"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå®é
å æ²¹é(L)" align="center" prop="actualOilvolume3"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå 油类å" align="center" prop="oilModel1"> |
| | | </el-table-column> |
| | | <el-table-column label="äºå·æªå 油类å" align="center" prop="oilModel2"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå 油类å" align="center" prop="oilModel3"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªé¢è®¡å æ²¹é(L)" align="center" prop="setOilvolume1"> |
| | | </el-table-column> |
| | | <el-table-column label="äºå·æªé¢è®¡å æ²¹é(L)" align="center" prop="setOilvolume2"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªé¢è®¡å æ²¹é(L)" align="center" prop="setOilvolume3"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" align="center" prop="status1"> |
| | | </el-table-column> |
| | | <el-table-column label="äºå·æªå æ²¹ç¶æ1OKï¼2NG" align="center" prop="status2"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" align="center" prop="status3"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå æ²¹æ¶é´" align="center" prop="time1"> |
| | | </el-table-column> |
| | | <el-table-column label="äºå·æªå æ²¹æ¶é´" align="center" prop="time2"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸å·æªå æ²¹æ¶é´" align="center" prop="time3"> |
| | | </el-table-column> |
| | | <el-table-column label="ééæ¶é´" align="center" prop="collectTime"> |
| | | </el-table-column> |
| | | <!-- <el-table-column fixed="right" width="200" label="æä½" align="center" class-name="small-padding fixed-width">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- @click="handleUpdate(scope.row)"--> |
| | | <!-- v-hasPermi="['da:oilFilling:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- @click="handleDelete(scope.row)"--> |
| | | <!-- v-hasPermi="['da:oilFilling:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </el-card> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹æºæ²¹å æ³¨å¯¹è¯æ¡ --> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input v-model="form.sfcCode" placeholder="请è¾å
¥æ»æåºåå·" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input v-model="form.locationCode" placeholder="请è¾å
¥å·¥ä½ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°" prop="describe"> |
| | | <el-input v-model="form.describe" placeholder="请è¾å
¥æè¿°" /> |
| | | </el-form-item> |
| | | <el-form-item label="设å®å æ²¹é" prop="setFuelVolume"> |
| | | <el-input v-model="form.setFuelVolume" placeholder="请è¾å
¥è®¾å®å æ²¹é" /> |
| | | </el-form-item> |
| | | <el-form-item label="å®é
å æ²¹é" prop="actualFuelConsumption"> |
| | | <el-input v-model="form.actualFuelConsumption" placeholder="请è¾å
¥å®é
å æ²¹é" /> |
| | | </el-form-item> |
| | | <el-form-item label="å æ²¹èæ¶" prop="refuelingTime"> |
| | | <el-input v-model="form.refuelingTime" placeholder="请è¾å
¥å æ²¹èæ¶" /> |
| | | </el-form-item> |
| | | <el-form-item label="å æ²¹ç¶æ" prop="result"> |
| | | <el-input v-model="form.result" placeholder="请è¾å
¥å æ²¹ç¶æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå®é
å æ²¹é(L)" prop="actualOilvolume1"> |
| | | <el-input v-model="form.actualOilvolume1" placeholder="请è¾å
¥ä¸å·æªå®é
å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="äºå·æªå®é
å æ²¹é(L)" prop="actualOilvolume2"> |
| | | <el-input v-model="form.actualOilvolume2" placeholder="请è¾å
¥äºå·æªå®é
å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå®é
å æ²¹é(L)" prop="actualOilvolume3"> |
| | | <el-input v-model="form.actualOilvolume3" placeholder="请è¾å
¥ä¸å·æªå®é
å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå 油类å" prop="OilModel1"> |
| | | <el-input v-model="form.OilModel1" placeholder="请è¾å
¥ä¸å·æªå 油类å" /> |
| | | </el-form-item> |
| | | <el-form-item label="äºå·æªå 油类å" prop="OilModel2"> |
| | | <el-input v-model="form.OilModel2" placeholder="请è¾å
¥äºå·æªå 油类å" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå 油类å" prop="OilModel3"> |
| | | <el-input v-model="form.OilModel3" placeholder="请è¾å
¥ä¸å·æªå 油类å" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªé¢è®¡å æ²¹é(L)" prop="setOilvolume1"> |
| | | <el-input v-model="form.setOilvolume1" placeholder="请è¾å
¥ä¸å·æªé¢è®¡å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="äºå·æªé¢è®¡å æ²¹é(L)" prop="setOilvolume2"> |
| | | <el-input v-model="form.setOilvolume2" placeholder="请è¾å
¥äºå·æªé¢è®¡å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªé¢è®¡å æ²¹é(L)" prop="setOilvolume3"> |
| | | <el-input v-model="form.setOilvolume3" placeholder="请è¾å
¥ä¸å·æªé¢è®¡å æ²¹é(L)" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" prop="Status1"> |
| | | <el-input v-model="form.Status1" placeholder="请è¾å
¥ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="äºå·æªå æ²¹ç¶æ1OKï¼2NG" prop="Status2"> |
| | | <el-input v-model="form.Status2" placeholder="请è¾å
¥äºå·æªå æ²¹ç¶æ1OKï¼2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" prop="Status3"> |
| | | <el-input v-model="form.Status3" placeholder="请è¾å
¥ä¸å·æªå æ²¹ç¶æ1OKï¼2NG" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå æ²¹æ¶é´" prop="Time1"> |
| | | <el-input v-model="form.Time1" placeholder="请è¾å
¥ä¸å·æªå æ²¹æ¶é´" /> |
| | | </el-form-item> |
| | | <el-form-item label="äºå·æªå æ²¹æ¶é´" prop="Time2"> |
| | | <el-input v-model="form.Time2" placeholder="请è¾å
¥äºå·æªå æ²¹æ¶é´" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸å·æªå æ²¹æ¶é´" prop="Time3"> |
| | | <el-input v-model="form.Time3" placeholder="请è¾å
¥ä¸å·æªå æ²¹æ¶é´" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">ç¡® å®</el-button> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listOilFilling, getOilFilling, delOilFilling, addOilFilling, updateOilFilling } from "@/api/main/da/oilFilling/oilFilling"; |
| | | |
| | | export default { |
| | | name: "OilFilling", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // æºæ²¹å æ³¨è¡¨æ ¼æ°æ® |
| | | oilFillingList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // è¡¨åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢æºæ²¹å 注å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listOilFilling(this.queryParams).then(response => { |
| | | this.oilFillingList = response.rows; |
| | | console.log(response.rows) |
| | | console.log(this.oilFillingList) |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | describe: null, |
| | | setFuelVolume: null, |
| | | actualFuelConsumption: null, |
| | | refuelingTime: null, |
| | | result: null, |
| | | actualOilvolume1: null, |
| | | actualOilvolume2: null, |
| | | actualOilvolume3: null, |
| | | OilModel1: null, |
| | | OilModel2: null, |
| | | OilModel3: null, |
| | | setOilvolume1: null, |
| | | setOilvolume2: null, |
| | | setOilvolume3: null, |
| | | Status1: null, |
| | | Status2: null, |
| | | Status3: null, |
| | | Time1: null, |
| | | Time2: null, |
| | | Time3: null, |
| | | collectTime: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** éç½®æé®æä½ */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.titleName = "æ·»å æºæ²¹å 注"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getOilFilling(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.titleName = "ä¿®æ¹æºæ²¹å 注"; |
| | | }); |
| | | }, |
| | | /** æäº¤æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateOilFilling(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addOilFilling(this.form).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å 餿ºæ²¹å 注ç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delOilFilling(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** å¯¼åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('da/oilFilling/export', { |
| | | ...this.queryParams |
| | | }, `oilFilling_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input |
| | | v-model="queryParams.sfcCode" |
| | | placeholder="请è¾å
¥æ»æåºåå·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input |
| | | v-model="queryParams.locationCode" |
| | | placeholder="请è¾å
¥å·¥ä½ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éç¼ç " prop="paramSetCode"> |
| | | <el-input |
| | | v-model="queryParams.paramSetCode" |
| | | placeholder="请è¾å
¥åæ°éç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éåç§°" prop="paramSetName"> |
| | | <el-input |
| | | v-model="queryParams.paramSetName" |
| | | placeholder="请è¾å
¥åæ°éåç§°" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="æç©ç¶æ" prop="torqueStatus">--> |
| | | <!-- <el-select v-model="queryParams.torqueStatus" placeholder="è¯·éæ©æç©ç¶æ" clearable>--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="è§åº¦ç¶æ" prop="angleStatus">--> |
| | | <!-- <el-select v-model="queryParams.angleStatus" placeholder="è¯·éæ©è§åº¦ç¶æ" clearable>--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">éç½®</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | |
| | | <el-card style="margin-top: 10px" class="box-card"> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="primary"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-plus"--> |
| | | <!-- size="mini"--> |
| | | <!-- @click="handleAdd"--> |
| | | <!-- v-hasPermi="['da:tightenCollection:add']"--> |
| | | <!-- >æ°å¢</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="single"--> |
| | | <!-- @click="handleUpdate"--> |
| | | <!-- v-hasPermi="['da:tightenCollection:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="multiple"--> |
| | | <!-- @click="handleDelete"--> |
| | | <!-- v-hasPermi="['da:tightenCollection:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['da:tightenCollection:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="tightenCollectionList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主é®id" align="center" prop="id" /> |
| | | <el-table-column label="æ»æåºåå·" align="center" prop="sfcCode"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥ä½ç¼ç " align="center" prop="locationCode"> |
| | | </el-table-column> |
| | | <el-table-column label="åæ°éåç§°" align="center" prop="paramSetName"> |
| | | </el-table-column> |
| | | <el-table-column label="æç©å¼" align="center" prop="torque"> |
| | | </el-table-column> |
| | | <el-table-column label="è§åº¦å¼" align="center" prop="angle"> |
| | | </el-table-column> |
| | | <el-table-column label="è§åº¦ç¶æ" align="center" prop="angleStatus"> |
| | | </el-table-column> |
| | | <el-table-column label="ééæ¶é´" align="center" prop="collectTime"> |
| | | </el-table-column> |
| | | <!-- <el-table-column fixed="right" width="200" label="æä½" align="center" class-name="small-padding fixed-width">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- @click="handleUpdate(scope.row)"--> |
| | | <!-- v-hasPermi="['da:tightenCollection:edit']"--> |
| | | <!-- >ä¿®æ¹</el-button>--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="danger"--> |
| | | <!-- plain--> |
| | | <!-- style="width: 72px"--> |
| | | <!-- icon="el-icon-delete"--> |
| | | <!-- @click="handleDelete(scope.row)"--> |
| | | <!-- v-hasPermi="['da:tightenCollection:remove']"--> |
| | | <!-- >å é¤</el-button>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </el-card> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹æ§ç´§ééå¯¹è¯æ¡ --> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <span slot="title"> |
| | | <i class="el-icon-s-order"></i> |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="æ»æåºåå·" prop="sfcCode"> |
| | | <el-input v-model="form.sfcCode" placeholder="请è¾å
¥æ»æåºåå·" /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥ä½ç¼ç " prop="locationCode"> |
| | | <el-input v-model="form.locationCode" placeholder="请è¾å
¥å·¥ä½ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éç¼ç " prop="paramSetCode"> |
| | | <el-input v-model="form.paramSetCode" placeholder="请è¾å
¥åæ°éç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="åæ°éåç§°" prop="paramSetName"> |
| | | <el-input v-model="form.paramSetName" placeholder="请è¾å
¥åæ°éåç§°" /> |
| | | </el-form-item> |
| | | <el-form-item label="æç©å¼" prop="torque"> |
| | | <el-input v-model="form.torque" placeholder="请è¾å
¥æç©å¼" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="æç©ç¶æ" prop="torqueStatus">--> |
| | | <!-- <el-radio-group v-model="form.torqueStatus">--> |
| | | <!-- <el-radio--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.value"--> |
| | | <!-- >{{dict.label}}</el-radio>--> |
| | | <!-- </el-radio-group>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="è§åº¦å¼" prop="angle"> |
| | | <el-input v-model="form.angle" placeholder="请è¾å
¥è§åº¦å¼" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="è§åº¦ç¶æ" prop="angleStatus">--> |
| | | <!-- <el-radio-group v-model="form.angleStatus">--> |
| | | <!-- <el-radio--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.value"--> |
| | | <!-- >{{dict.label}}</el-radio>--> |
| | | <!-- </el-radio-group>--> |
| | | <!-- </el-form-item>--> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">ç¡® å®</el-button> |
| | | <el-button @click="cancel">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listTightenCollection, getTightenCollection, delTightenCollection, addTightenCollection, updateTightenCollection } from "@/api/main/da/tightenCollection/tightenCollection"; |
| | | |
| | | export default { |
| | | name: "TightenCollection", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // æ§ç´§ééè¡¨æ ¼æ°æ® |
| | | tightenCollectionList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | paramSetCode: null, |
| | | paramSetName: null, |
| | | torqueStatus: null, |
| | | angleStatus: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // è¡¨åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢æ§ç´§ééå表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listTightenCollection(this.queryParams).then(response => { |
| | | this.tightenCollectionList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | sfcCode: null, |
| | | locationCode: null, |
| | | paramSetCode: null, |
| | | paramSetName: null, |
| | | torque: null, |
| | | torqueStatus: null, |
| | | angle: null, |
| | | angleStatus: null, |
| | | collectTime: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** éç½®æé®æä½ */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.titleName = "æ·»å æ§ç´§éé"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getTightenCollection(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.titleName = "ä¿®æ¹æ§ç´§éé"; |
| | | }); |
| | | }, |
| | | /** æäº¤æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateTightenCollection(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addTightenCollection(this.form).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å 餿§ç´§ééç¼å·ä¸º"' + ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delTightenCollection(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** å¯¼åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('da/tightenCollection/export', { |
| | | ...this.queryParams |
| | | }, `tightenCollection_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |