已重命名1个文件
已修改1个文件
已添加17个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanItemsProject.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | 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.main.em.inspectionPlanItemsProject.domain.EmInspectionPlanItemsProject; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.service.IEmInspectionPlanItemsProjectService; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡-项ç®Controller |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/em/inspectionPlanItemsProject") |
| | | public class EmInspectionPlanItemsProjectController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEmInspectionPlanItemsProjectService emInspectionPlanItemsProjectService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | startPage(); |
| | | List<EmInspectionPlanItemsProject> list = emInspectionPlanItemsProjectService.selectEmInspectionPlanItemsProjectList(emInspectionPlanItemsProject); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç¹æ£ä»»å¡-项ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:export')") |
| | | @Log(title = "ç¹æ£ä»»å¡-项ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | List<EmInspectionPlanItemsProject> list = emInspectionPlanItemsProjectService.selectEmInspectionPlanItemsProjectList(emInspectionPlanItemsProject); |
| | | ExcelUtil<EmInspectionPlanItemsProject> util = new ExcelUtil<EmInspectionPlanItemsProject>(EmInspectionPlanItemsProject.class); |
| | | util.exportExcel(response, list, "ç¹æ£ä»»å¡-项ç®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¹æ£ä»»å¡-项ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(emInspectionPlanItemsProjectService.selectEmInspectionPlanItemsProjectById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:add')") |
| | | @Log(title = "ç¹æ£ä»»å¡-项ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | return toAjax(emInspectionPlanItemsProjectService.insertEmInspectionPlanItemsProject(emInspectionPlanItemsProject)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:edit')") |
| | | @Log(title = "ç¹æ£ä»»å¡-项ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | return toAjax(emInspectionPlanItemsProjectService.updateEmInspectionPlanItemsProject(emInspectionPlanItemsProject)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanItemsProject:remove')") |
| | | @Log(title = "ç¹æ£ä»»å¡-项ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(emInspectionPlanItemsProjectService.deleteEmInspectionPlanItemsProjectByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanItemsProject.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡-项ç®å¯¹è±¡ em_inspection_plan_items_project |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public class EmInspectionPlanItemsProject extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private Long id; |
| | | |
| | | /** 项ç®ç¼å· */ |
| | | @Excel(name = "项ç®ç¼å·") |
| | | private String itemsCode; |
| | | |
| | | /** 项ç®å称 */ |
| | | @Excel(name = "项ç®å称") |
| | | private String itemsName; |
| | | |
| | | /** 项ç®ç±»å */ |
| | | @Excel(name = "项ç®ç±»å") |
| | | private String itemsType; |
| | | |
| | | /** æ å */ |
| | | @Excel(name = "æ å") |
| | | private String standard; |
| | | |
| | | /** 项ç®å
容 */ |
| | | @Excel(name = "项ç®å
容") |
| | | private String itemsContent; |
| | | |
| | | /** å建人 */ |
| | | @Excel(name = "å建人") |
| | | private String createUser; |
| | | |
| | | /** æ´æ°äºº */ |
| | | @Excel(name = "æ´æ°äºº") |
| | | private String updateUser; |
| | | |
| | | /** ç»æ */ |
| | | @Excel(name = "ç»æ") |
| | | private String results; |
| | | |
| | | |
| | | /** ä»»å¡ID */ |
| | | private String planTaskId; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setItemsCode(String itemsCode) |
| | | { |
| | | this.itemsCode = itemsCode; |
| | | } |
| | | |
| | | public String getItemsCode() |
| | | { |
| | | return itemsCode; |
| | | } |
| | | public void setItemsName(String itemsName) |
| | | { |
| | | this.itemsName = itemsName; |
| | | } |
| | | |
| | | public String getItemsName() |
| | | { |
| | | return itemsName; |
| | | } |
| | | public void setItemsType(String itemsType) |
| | | { |
| | | this.itemsType = itemsType; |
| | | } |
| | | |
| | | public String getItemsType() |
| | | { |
| | | return itemsType; |
| | | } |
| | | public void setStandard(String standard) |
| | | { |
| | | this.standard = standard; |
| | | } |
| | | |
| | | public String getStandard() |
| | | { |
| | | return standard; |
| | | } |
| | | public void setItemsContent(String itemsContent) |
| | | { |
| | | this.itemsContent = itemsContent; |
| | | } |
| | | |
| | | public String getItemsContent() |
| | | { |
| | | return itemsContent; |
| | | } |
| | | public void setCreateUser(String createUser) |
| | | { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public String getCreateUser() |
| | | { |
| | | return createUser; |
| | | } |
| | | public void setUpdateUser(String updateUser) |
| | | { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public String getUpdateUser() |
| | | { |
| | | return updateUser; |
| | | } |
| | | public void setResults(String results) |
| | | { |
| | | this.results = results; |
| | | } |
| | | |
| | | public String getResults() |
| | | { |
| | | return results; |
| | | } |
| | | public void setPlanTaskId(String planTaskId) |
| | | { |
| | | this.planTaskId = planTaskId; |
| | | } |
| | | |
| | | public String getPlanTaskId() |
| | | { |
| | | return planTaskId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("itemsCode", getItemsCode()) |
| | | .append("itemsName", getItemsName()) |
| | | .append("itemsType", getItemsType()) |
| | | .append("standard", getStandard()) |
| | | .append("itemsContent", getItemsContent()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("results", getResults()) |
| | | .append("planTaskId", getPlanTaskId()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanItemsProject.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.domain.EmInspectionPlanItemsProject; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡-项ç®Mapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public interface EmInspectionPlanItemsProjectMapper extends BaseMapper<EmInspectionPlanItemsProject> |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | public EmInspectionPlanItemsProject selectEmInspectionPlanItemsProjectById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç¹æ£ä»»å¡-项ç®éå |
| | | */ |
| | | public List<EmInspectionPlanItemsProject> selectEmInspectionPlanItemsProjectList(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanItemsProjectById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanItemsProjectByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanItemsProject.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.domain.EmInspectionPlanItemsProject; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡-项ç®Serviceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public interface IEmInspectionPlanItemsProjectService extends IService<EmInspectionPlanItemsProject> |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | public EmInspectionPlanItemsProject selectEmInspectionPlanItemsProjectById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç¹æ£ä»»å¡-项ç®éå |
| | | */ |
| | | public List<EmInspectionPlanItemsProject> selectEmInspectionPlanItemsProjectList(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param ids éè¦å é¤çç¹æ£ä»»å¡-项ç®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanItemsProjectByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡-项ç®ä¿¡æ¯ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanItemsProjectById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanItemsProject.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.mapper.EmInspectionPlanItemsProjectMapper; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.domain.EmInspectionPlanItemsProject; |
| | | import com.jcdm.main.em.inspectionPlanItemsProject.service.IEmInspectionPlanItemsProjectService; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡-项ç®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | @Service |
| | | public class EmInspectionPlanItemsProjectServiceImpl extends ServiceImpl<EmInspectionPlanItemsProjectMapper,EmInspectionPlanItemsProject> implements IEmInspectionPlanItemsProjectService |
| | | { |
| | | @Autowired |
| | | private EmInspectionPlanItemsProjectMapper emInspectionPlanItemsProjectMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | @Override |
| | | public EmInspectionPlanItemsProject selectEmInspectionPlanItemsProjectById(Long id) |
| | | { |
| | | return emInspectionPlanItemsProjectMapper.selectEmInspectionPlanItemsProjectById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç¹æ£ä»»å¡-é¡¹ç® |
| | | */ |
| | | @Override |
| | | public List<EmInspectionPlanItemsProject> selectEmInspectionPlanItemsProjectList(EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | return emInspectionPlanItemsProjectMapper.selectEmInspectionPlanItemsProjectList(emInspectionPlanItemsProject); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | emInspectionPlanItemsProject.setCreateTime(DateUtils.getNowDate()); |
| | | return emInspectionPlanItemsProjectMapper.insertEmInspectionPlanItemsProject(emInspectionPlanItemsProject); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param emInspectionPlanItemsProject ç¹æ£ä»»å¡-é¡¹ç® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject) |
| | | { |
| | | emInspectionPlanItemsProject.setUpdateTime(DateUtils.getNowDate()); |
| | | return emInspectionPlanItemsProjectMapper.updateEmInspectionPlanItemsProject(emInspectionPlanItemsProject); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | * |
| | | * @param ids éè¦å é¤çç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEmInspectionPlanItemsProjectByIds(Long[] ids) |
| | | { |
| | | return emInspectionPlanItemsProjectMapper.deleteEmInspectionPlanItemsProjectByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡-项ç®ä¿¡æ¯ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡-项ç®ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEmInspectionPlanItemsProjectById(Long id) |
| | | { |
| | | return emInspectionPlanItemsProjectMapper.deleteEmInspectionPlanItemsProjectById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanTask.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | 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.main.em.inspectionPlanTask.domain.EmInspectionPlanTask; |
| | | import com.jcdm.main.em.inspectionPlanTask.service.IEmInspectionPlanTaskService; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡Controller |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/em/inspectionPlanTask") |
| | | public class EmInspectionPlanTaskController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IEmInspectionPlanTaskService emInspectionPlanTaskService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | startPage(); |
| | | List<EmInspectionPlanTask> list = emInspectionPlanTaskService.selectEmInspectionPlanTaskList(emInspectionPlanTask); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç¹æ£ä»»å¡å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:export')") |
| | | @Log(title = "ç¹æ£ä»»å¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | List<EmInspectionPlanTask> list = emInspectionPlanTaskService.selectEmInspectionPlanTaskList(emInspectionPlanTask); |
| | | ExcelUtil<EmInspectionPlanTask> util = new ExcelUtil<EmInspectionPlanTask>(EmInspectionPlanTask.class); |
| | | util.exportExcel(response, list, "ç¹æ£ä»»å¡æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¹æ£ä»»å¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(emInspectionPlanTaskService.selectEmInspectionPlanTaskById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:add')") |
| | | @Log(title = "ç¹æ£ä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | return toAjax(emInspectionPlanTaskService.insertEmInspectionPlanTask(emInspectionPlanTask)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:edit')") |
| | | @Log(title = "ç¹æ£ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | return toAjax(emInspectionPlanTaskService.updateEmInspectionPlanTask(emInspectionPlanTask)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:remove')") |
| | | @Log(title = "ç¹æ£ä»»å¡", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(emInspectionPlanTaskService.deleteEmInspectionPlanTaskByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanTask.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡å¯¹è±¡ em_inspection_plan_task |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public class EmInspectionPlanTask extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ID */ |
| | | private Long id; |
| | | |
| | | /** 计åç¼å· */ |
| | | @Excel(name = "计åç¼å·") |
| | | private String planCode; |
| | | |
| | | /** 计åå称 */ |
| | | @Excel(name = "计åå称") |
| | | private String planName; |
| | | |
| | | /** 计åç±»å */ |
| | | @Excel(name = "计åç±»å") |
| | | private String planType; |
| | | |
| | | /** ç¶æ */ |
| | | @Excel(name = "ç¶æ") |
| | | private String state; |
| | | |
| | | /** 设å¤ç¼ç */ |
| | | @Excel(name = "设å¤ç¼ç ") |
| | | private String devicesCode; |
| | | |
| | | /** 设å¤å称 */ |
| | | @Excel(name = "设å¤å称") |
| | | private String devicesName; |
| | | |
| | | /** åç */ |
| | | @Excel(name = "åç") |
| | | private String brand; |
| | | |
| | | /** è§æ ¼ */ |
| | | @Excel(name = "è§æ ¼") |
| | | private String specs; |
| | | |
| | | /** ç»æ */ |
| | | @Excel(name = "ç»æ") |
| | | private String results; |
| | | |
| | | /** å¤æ³¨ */ |
| | | @Excel(name = "å¤æ³¨") |
| | | private String remarks; |
| | | |
| | | /** å建人 */ |
| | | @Excel(name = "å建人") |
| | | private String createUser; |
| | | |
| | | /** ä¿®æ¹äºº */ |
| | | @Excel(name = "ä¿®æ¹äºº") |
| | | private String updateUser; |
| | | |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setPlanCode(String planCode) |
| | | { |
| | | this.planCode = planCode; |
| | | } |
| | | |
| | | public String getPlanCode() |
| | | { |
| | | return planCode; |
| | | } |
| | | public void setPlanName(String planName) |
| | | { |
| | | this.planName = planName; |
| | | } |
| | | |
| | | public String getPlanName() |
| | | { |
| | | return planName; |
| | | } |
| | | public void setPlanType(String planType) |
| | | { |
| | | this.planType = planType; |
| | | } |
| | | |
| | | public String getPlanType() |
| | | { |
| | | return planType; |
| | | } |
| | | public void setState(String state) |
| | | { |
| | | this.state = state; |
| | | } |
| | | |
| | | public String getState() |
| | | { |
| | | return state; |
| | | } |
| | | public void setDevicesCode(String devicesCode) |
| | | { |
| | | this.devicesCode = devicesCode; |
| | | } |
| | | |
| | | public String getDevicesCode() |
| | | { |
| | | return devicesCode; |
| | | } |
| | | public void setDevicesName(String devicesName) |
| | | { |
| | | this.devicesName = devicesName; |
| | | } |
| | | |
| | | public String getDevicesName() |
| | | { |
| | | return devicesName; |
| | | } |
| | | public void setBrand(String brand) |
| | | { |
| | | this.brand = brand; |
| | | } |
| | | |
| | | public String getBrand() |
| | | { |
| | | return brand; |
| | | } |
| | | public void setSpecs(String specs) |
| | | { |
| | | this.specs = specs; |
| | | } |
| | | |
| | | public String getSpecs() |
| | | { |
| | | return specs; |
| | | } |
| | | public void setResults(String results) |
| | | { |
| | | this.results = results; |
| | | } |
| | | |
| | | public String getResults() |
| | | { |
| | | return results; |
| | | } |
| | | public void setRemarks(String remarks) |
| | | { |
| | | this.remarks = remarks; |
| | | } |
| | | |
| | | public String getRemarks() |
| | | { |
| | | return remarks; |
| | | } |
| | | public void setCreateUser(String createUser) |
| | | { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public String getCreateUser() |
| | | { |
| | | return createUser; |
| | | } |
| | | public void setUpdateUser(String updateUser) |
| | | { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public String getUpdateUser() |
| | | { |
| | | return updateUser; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("planCode", getPlanCode()) |
| | | .append("planName", getPlanName()) |
| | | .append("planType", getPlanType()) |
| | | .append("state", getState()) |
| | | .append("devicesCode", getDevicesCode()) |
| | | .append("devicesName", getDevicesName()) |
| | | .append("brand", getBrand()) |
| | | .append("specs", getSpecs()) |
| | | .append("results", getResults()) |
| | | .append("remarks", getRemarks()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanTask.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡Mapperæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public interface EmInspectionPlanTaskMapper extends BaseMapper<EmInspectionPlanTask> |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç¹æ£ä»»å¡ |
| | | */ |
| | | public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡å表 |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç¹æ£ä»»å¡éå |
| | | */ |
| | | public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanTaskById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanTaskByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanTask.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡Serviceæ¥å£ |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | public interface IEmInspectionPlanTaskService extends IService<EmInspectionPlanTask> |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç¹æ£ä»»å¡ |
| | | */ |
| | | public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡å表 |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç¹æ£ä»»å¡éå |
| | | */ |
| | | public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡ |
| | | * |
| | | * @param ids éè¦å é¤çç¹æ£ä»»å¡ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanTaskByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡ä¿¡æ¯ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteEmInspectionPlanTaskById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.em.inspectionPlanTask.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.jcdm.main.em.inspectionPlanTask.mapper.EmInspectionPlanTaskMapper; |
| | | import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask; |
| | | import com.jcdm.main.em.inspectionPlanTask.service.IEmInspectionPlanTaskService; |
| | | |
| | | /** |
| | | * ç¹æ£ä»»å¡Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author Yi |
| | | * @date 2024-03-23 |
| | | */ |
| | | @Service |
| | | public class EmInspectionPlanTaskServiceImpl extends ServiceImpl<EmInspectionPlanTaskMapper,EmInspectionPlanTask> implements IEmInspectionPlanTaskService |
| | | { |
| | | @Autowired |
| | | private EmInspectionPlanTaskMapper emInspectionPlanTaskMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç¹æ£ä»»å¡ |
| | | */ |
| | | @Override |
| | | public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id) |
| | | { |
| | | return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£ä»»å¡å表 |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç¹æ£ä»»å¡ |
| | | */ |
| | | @Override |
| | | public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskList(emInspectionPlanTask); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | emInspectionPlanTask.setCreateTime(DateUtils.getNowDate()); |
| | | return emInspectionPlanTaskMapper.insertEmInspectionPlanTask(emInspectionPlanTask); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¹æ£ä»»å¡ |
| | | * |
| | | * @param emInspectionPlanTask ç¹æ£ä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask) |
| | | { |
| | | emInspectionPlanTask.setUpdateTime(DateUtils.getNowDate()); |
| | | return emInspectionPlanTaskMapper.updateEmInspectionPlanTask(emInspectionPlanTask); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¹æ£ä»»å¡ |
| | | * |
| | | * @param ids éè¦å é¤çç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEmInspectionPlanTaskByIds(Long[] ids) |
| | | { |
| | | return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¹æ£ä»»å¡ä¿¡æ¯ |
| | | * |
| | | * @param id ç¹æ£ä»»å¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteEmInspectionPlanTaskById(Long id) |
| | | { |
| | | return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.restful.controller; |
| | | |
| | | import java.util.Date; |
| | | import java.util.Timer; |
| | | import java.util.TimerTask; |
| | | |
| | | public class testClass { |
| | | public static void main(String[] args) { |
| | | // å建Timerå®ä¾ |
| | | Timer timer = new Timer(); |
| | | |
| | | // å建TimerTaskå®ä¾ |
| | | TimerTask task = new TimerTask() { |
| | | @Override |
| | | public void run() { |
| | | // å¨è¿éç¼åå®æ¶ä»»å¡çå
·ä½é»è¾ |
| | | System.out.println("å®æ¶ä»»å¡è§¦åï¼å½åæ¶é´ï¼" + new Date()); |
| | | } |
| | | }; |
| | | |
| | | // 设置å®æ¶ä»»å¡ç触åæ¶é´ä¸ºæ¯å¤©ç9:25 |
| | | // è·åå½åæ¶é´ |
| | | Date currentTime = new Date(); |
| | | // 设置å®æ¶ä»»å¡ç触åæ¶é´ä¸ºå½å¤©ç9:25 |
| | | Date scheduleTime = new Date(currentTime.getYear(), currentTime.getMonth(), currentTime.getDate(), 9, 27, 0); |
| | | |
| | | // å¯å¨å®æ¶ä»»å¡ |
| | | timer.schedule(task, scheduleTime); |
| | | } |
| | | } |
ÎļþÃû´Ó jcdm-main/src/main/java/com/jcdm/main/restful/service/restfulService.java ÐÞ¸Ä |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | public class restfulService { |
| | | public class RestfulService { |
| | | public static final String getRealmName = "https://imes-test-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration"; |
| | | |
| | | public static final String postRealmName = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/interface"; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.em.inspectionPlanItemsProject.mapper.EmInspectionPlanItemsProjectMapper"> |
| | | |
| | | <resultMap type="EmInspectionPlanItemsProject" id="EmInspectionPlanItemsProjectResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="itemsCode" column="items_code" /> |
| | | <result property="itemsName" column="items_name" /> |
| | | <result property="itemsType" column="items_type" /> |
| | | <result property="standard" column="standard" /> |
| | | <result property="itemsContent" column="items_content" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="results" column="results" /> |
| | | <result property="planTaskId" column="plan_task_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEmInspectionPlanItemsProjectVo"> |
| | | select id, items_code, items_name, items_type, standard, items_content, create_user, create_time, update_user, update_time, results, plan_task_id from em_inspection_plan_items_project |
| | | </sql> |
| | | |
| | | <select id="selectEmInspectionPlanItemsProjectList" parameterType="EmInspectionPlanItemsProject" resultMap="EmInspectionPlanItemsProjectResult"> |
| | | <include refid="selectEmInspectionPlanItemsProjectVo"/> |
| | | <where> |
| | | <if test="itemsCode != null and itemsCode != ''"> and items_code = #{itemsCode}</if> |
| | | <if test="itemsName != null and itemsName != ''"> and items_name like concat('%', #{itemsName}, '%')</if> |
| | | <if test="itemsType != null and itemsType != ''"> and items_type = #{itemsType}</if> |
| | | <if test="standard != null and standard != ''"> and standard = #{standard}</if> |
| | | <if test="results != null and results != ''"> and results = #{results}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEmInspectionPlanItemsProjectById" parameterType="Long" resultMap="EmInspectionPlanItemsProjectResult"> |
| | | <include refid="selectEmInspectionPlanItemsProjectVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEmInspectionPlanItemsProject" parameterType="EmInspectionPlanItemsProject" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into em_inspection_plan_items_project |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="itemsCode != null">items_code,</if> |
| | | <if test="itemsName != null">items_name,</if> |
| | | <if test="itemsType != null">items_type,</if> |
| | | <if test="standard != null">standard,</if> |
| | | <if test="itemsContent != null">items_content,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="results != null">results,</if> |
| | | <if test="planTaskId != null">plan_task_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="itemsCode != null">#{itemsCode},</if> |
| | | <if test="itemsName != null">#{itemsName},</if> |
| | | <if test="itemsType != null">#{itemsType},</if> |
| | | <if test="standard != null">#{standard},</if> |
| | | <if test="itemsContent != null">#{itemsContent},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="results != null">#{results},</if> |
| | | <if test="planTaskId != null">#{planTaskId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEmInspectionPlanItemsProject" parameterType="EmInspectionPlanItemsProject"> |
| | | update em_inspection_plan_items_project |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="itemsCode != null">items_code = #{itemsCode},</if> |
| | | <if test="itemsName != null">items_name = #{itemsName},</if> |
| | | <if test="itemsType != null">items_type = #{itemsType},</if> |
| | | <if test="standard != null">standard = #{standard},</if> |
| | | <if test="itemsContent != null">items_content = #{itemsContent},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="results != null">results = #{results},</if> |
| | | <if test="planTaskId != null">plan_task_id = #{planTaskId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEmInspectionPlanItemsProjectById" parameterType="Long"> |
| | | delete from em_inspection_plan_items_project where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEmInspectionPlanItemsProjectByIds" parameterType="String"> |
| | | delete from em_inspection_plan_items_project where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.jcdm.main.em.inspectionPlanTask.mapper.EmInspectionPlanTaskMapper"> |
| | | |
| | | <resultMap type="EmInspectionPlanTask" id="EmInspectionPlanTaskResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="planCode" column="plan_code" /> |
| | | <result property="planName" column="plan_name" /> |
| | | <result property="planType" column="plan_type" /> |
| | | <result property="state" column="state" /> |
| | | <result property="devicesCode" column="devices_code" /> |
| | | <result property="devicesName" column="devices_name" /> |
| | | <result property="brand" column="brand" /> |
| | | <result property="specs" column="specs" /> |
| | | <result property="results" column="results" /> |
| | | <result property="remarks" column="remarks" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEmInspectionPlanTaskVo"> |
| | | select id, plan_code, plan_name, plan_type, state, devices_code, devices_name, brand, specs, results, remarks, create_time, create_user, update_time, update_user from em_inspection_plan_task |
| | | </sql> |
| | | |
| | | <select id="selectEmInspectionPlanTaskList" parameterType="EmInspectionPlanTask" resultMap="EmInspectionPlanTaskResult"> |
| | | <include refid="selectEmInspectionPlanTaskVo"/> |
| | | <where> |
| | | <if test="planCode != null and planCode != ''"> and plan_code = #{planCode}</if> |
| | | <if test="planName != null and planName != ''"> and plan_name like concat('%', #{planName}, '%')</if> |
| | | <if test="planType != null and planType != ''"> and plan_type = #{planType}</if> |
| | | <if test="state != null and state != ''"> and state = #{state}</if> |
| | | <if test="devicesCode != null and devicesCode != ''"> and devices_code = #{devicesCode}</if> |
| | | <if test="devicesName != null and devicesName != ''"> and devices_name like concat('%', #{devicesName}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectEmInspectionPlanTaskById" parameterType="Long" resultMap="EmInspectionPlanTaskResult"> |
| | | <include refid="selectEmInspectionPlanTaskVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertEmInspectionPlanTask" parameterType="EmInspectionPlanTask" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into em_inspection_plan_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="planCode != null">plan_code,</if> |
| | | <if test="planName != null">plan_name,</if> |
| | | <if test="planType != null">plan_type,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="devicesCode != null">devices_code,</if> |
| | | <if test="devicesName != null">devices_name,</if> |
| | | <if test="brand != null">brand,</if> |
| | | <if test="specs != null">specs,</if> |
| | | <if test="results != null">results,</if> |
| | | <if test="remarks != null">remarks,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="planCode != null">#{planCode},</if> |
| | | <if test="planName != null">#{planName},</if> |
| | | <if test="planType != null">#{planType},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="devicesCode != null">#{devicesCode},</if> |
| | | <if test="devicesName != null">#{devicesName},</if> |
| | | <if test="brand != null">#{brand},</if> |
| | | <if test="specs != null">#{specs},</if> |
| | | <if test="results != null">#{results},</if> |
| | | <if test="remarks != null">#{remarks},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateEmInspectionPlanTask" parameterType="EmInspectionPlanTask"> |
| | | update em_inspection_plan_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="planCode != null">plan_code = #{planCode},</if> |
| | | <if test="planName != null">plan_name = #{planName},</if> |
| | | <if test="planType != null">plan_type = #{planType},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="devicesCode != null">devices_code = #{devicesCode},</if> |
| | | <if test="devicesName != null">devices_name = #{devicesName},</if> |
| | | <if test="brand != null">brand = #{brand},</if> |
| | | <if test="specs != null">specs = #{specs},</if> |
| | | <if test="results != null">results = #{results},</if> |
| | | <if test="remarks != null">remarks = #{remarks},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteEmInspectionPlanTaskById" parameterType="Long"> |
| | | delete from em_inspection_plan_task where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteEmInspectionPlanTaskByIds" parameterType="String"> |
| | | delete from em_inspection_plan_task where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="marketAreaCode" column="market_area_code" /> |
| | | <result property="softwareVersionCode" column="software_version_code" /> |
| | | <result property="productCompanyCode" column="product_company_code" /> |
| | | <result property="spareField1" column="spare_field_1" /> |
| | | <result property="spareField2" column="spare_field_2" /> |
| | | <result property="spareField3" column="spare_field_3" /> |
| | | <result property="spareField4" column="spare_field_4" /> |
| | | <result property="spareField1" column="spare_field1" /> |
| | | <result property="spareField2" column="spare_field2" /> |
| | | <result property="spareField3" column="spare_field3" /> |
| | | <result property="spareField4" column="spare_field4" /> |
| | | <result property="siteCode" column="site_code" /> |
| | | <result property="productNum" column="product_num" /> |
| | | <result property="stationCode" column="station_code" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectOmProductionOrdeInfoVo"> |
| | | select id,site_code,product_num,station_code, product_model,result_code,result_text,sf_result ,work_order_no, sales_order_code, product_code, product_name, workshop_code, line_code, route_code, bom_code, recipe_code, plan_qty, actual_qty, bad_qty, scrap_qty, repair_qty, actual_online_qty, online_completion_mark, demand_date, plan_start_time, plan_end_time, actual_start_time, actual_end_time, serial_number, order_status, create_time, update_time, create_user, update_user, remarks, stream_number, custom, market_area_code, software_version_code, product_company_code, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from om_production_orde_info |
| | | select id,site_code,product_num,station_code, product_model,result_code,result_text,sf_result ,work_order_no, sales_order_code, product_code, product_name, workshop_code, line_code, route_code, bom_code, recipe_code, plan_qty, actual_qty, bad_qty, scrap_qty, repair_qty, actual_online_qty, online_completion_mark, demand_date, plan_start_time, plan_end_time, actual_start_time, actual_end_time, serial_number, order_status, create_time, update_time, create_user, update_user, remarks, stream_number, custom, market_area_code, software_version_code, product_company_code, spare_field1, spare_field2, spare_field3, spare_field4 from om_production_orde_info |
| | | </sql> |
| | | |
| | | <select id="selectOmProductionOrdeInfoList" parameterType="OmProductionOrdeInfo" resultMap="OmProductionOrdeInfoResult"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 |
| | | export function listInspectionPlanItemsProject(query) { |
| | | return request({ |
| | | url: '/em/inspectionPlanItemsProject/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢ç¹æ£ä»»å¡-项ç®è¯¦ç» |
| | | export function getInspectionPlanItemsProject(id) { |
| | | return request({ |
| | | url: '/em/inspectionPlanItemsProject/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢ç¹æ£ä»»å¡-é¡¹ç® |
| | | export function addInspectionPlanItemsProject(data) { |
| | | return request({ |
| | | url: '/em/inspectionPlanItemsProject', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹ç¹æ£ä»»å¡-é¡¹ç® |
| | | export function updateInspectionPlanItemsProject(data) { |
| | | return request({ |
| | | url: '/em/inspectionPlanItemsProject', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤ç¹æ£ä»»å¡-é¡¹ç® |
| | | export function delInspectionPlanItemsProject(id) { |
| | | return request({ |
| | | url: '/em/inspectionPlanItemsProject/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢ç¹æ£ä»»å¡å表 |
| | | export function listInspectionPlanTask(query) { |
| | | return request({ |
| | | url: '/em/inspectionPlanTask/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢ç¹æ£ä»»å¡è¯¦ç» |
| | | export function getInspectionPlanTask(id) { |
| | | return request({ |
| | | url: '/em/inspectionPlanTask/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢ç¹æ£ä»»å¡ |
| | | export function addInspectionPlanTask(data) { |
| | | return request({ |
| | | url: '/em/inspectionPlanTask', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹ç¹æ£ä»»å¡ |
| | | export function updateInspectionPlanTask(data) { |
| | | return request({ |
| | | url: '/em/inspectionPlanTask', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤ç¹æ£ä»»å¡ |
| | | export function delInspectionPlanTask(id) { |
| | | return request({ |
| | | url: '/em/inspectionPlanTask/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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="itemsCode"> |
| | | <el-input |
| | | v-model="queryParams.itemsCode" |
| | | placeholder="请è¾å
¥é¡¹ç®ç¼å·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="项ç®å称" prop="itemsName"> |
| | | <el-input |
| | | v-model="queryParams.itemsName" |
| | | placeholder="请è¾å
¥é¡¹ç®å称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="项ç®ç±»å" prop="itemsType">--> |
| | | <!-- <el-select v-model="queryParams.itemsType" 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="standard"> |
| | | <el-input |
| | | v-model="queryParams.standard" |
| | | placeholder="请è¾å
¥æ å" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="ç»æ" prop="results"> |
| | | <el-input |
| | | v-model="queryParams.results" |
| | | 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="['em:inspectionPlanItemsProject: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="['em:inspectionPlanItemsProject: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="['em:inspectionPlanItemsProject: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="['em:inspectionPlanItemsProject:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="inspectionPlanItemsProjectList" @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="itemsCode"> |
| | | </el-table-column> |
| | | <el-table-column label="项ç®å称" align="center" prop="itemsName"> |
| | | </el-table-column> |
| | | <el-table-column label="项ç®ç±»å" align="center" prop="itemsType"> |
| | | </el-table-column> |
| | | <el-table-column label="æ å" align="center" prop="standard"> |
| | | </el-table-column> |
| | | <el-table-column label="项ç®å
容" align="center" prop="itemsContent"> |
| | | </el-table-column> |
| | | <el-table-column label="å建人" align="center" prop="createUser"> |
| | | </el-table-column> |
| | | <el-table-column label="å建æ¶é´" align="center" prop="createTime"> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ°äºº" align="center" prop="updateUser"> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ°æ¶é´" align="center" prop="updateTime"> |
| | | </el-table-column> |
| | | <el-table-column label="ç»æ" align="center" prop="results"> |
| | | </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="['em:inspectionPlanItemsProject:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['em:inspectionPlanItemsProject: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="itemsCode"> |
| | | <el-input v-model="form.itemsCode" placeholder="请è¾å
¥é¡¹ç®ç¼å·" /> |
| | | </el-form-item> |
| | | <el-form-item label="项ç®å称" prop="itemsName"> |
| | | <el-input v-model="form.itemsName" placeholder="请è¾å
¥é¡¹ç®å称" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="项ç®ç±»å" prop="itemsType">--> |
| | | <!-- <el-select v-model="form.itemsType" placeholder="请éæ©é¡¹ç®ç±»å">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="æ å" prop="standard"> |
| | | <el-input v-model="form.standard" placeholder="请è¾å
¥æ å" /> |
| | | </el-form-item> |
| | | <el-form-item label="项ç®å
容"> |
| | | <editor v-model="form.itemsContent" :min-height="192"/> |
| | | </el-form-item> |
| | | <el-form-item label="å建人" prop="createUser"> |
| | | <el-input v-model="form.createUser" placeholder="请è¾å
¥å建人" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ´æ°äºº" prop="updateUser"> |
| | | <el-input v-model="form.updateUser" placeholder="请è¾å
¥æ´æ°äºº" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç»æ" prop="results"> |
| | | <el-input v-model="form.results" 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 { listInspectionPlanItemsProject, getInspectionPlanItemsProject, delInspectionPlanItemsProject, addInspectionPlanItemsProject, updateInspectionPlanItemsProject } from "@/api/main/em/inspectionPlanItemsProject/inspectionPlanItemsProject"; |
| | | |
| | | export default { |
| | | name: "InspectionPlanItemsProject", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // éä¸æ°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // ç¹æ£ä»»å¡-项ç®è¡¨æ ¼æ°æ® |
| | | inspectionPlanItemsProjectList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | itemsCode: null, |
| | | itemsName: null, |
| | | itemsType: null, |
| | | standard: null, |
| | | results: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // 表åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "IDä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢ç¹æ£ä»»å¡-项ç®å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listInspectionPlanItemsProject(this.queryParams).then(response => { |
| | | this.inspectionPlanItemsProjectList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | itemsCode: null, |
| | | itemsName: null, |
| | | itemsType: null, |
| | | standard: null, |
| | | itemsContent: null, |
| | | createUser: null, |
| | | createTime: null, |
| | | updateUser: null, |
| | | updateTime: null, |
| | | results: null, |
| | | spareField2: null, |
| | | planTaskId: 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 |
| | | getInspectionPlanItemsProject(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) { |
| | | updateInspectionPlanItemsProject(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addInspectionPlanItemsProject(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 delInspectionPlanItemsProject(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å é¤æå"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('em/inspectionPlanItemsProject/export', { |
| | | ...this.queryParams |
| | | }, `inspectionPlanItemsProject_${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="planCode"> |
| | | <el-input |
| | | v-model="queryParams.planCode" |
| | | placeholder="请è¾å
¥è®¡åç¼å·" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="计åå称" prop="planName"> |
| | | <el-input |
| | | v-model="queryParams.planName" |
| | | placeholder="请è¾å
¥è®¡åå称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="计åç±»å" prop="planType">--> |
| | | <!-- <el-select v-model="queryParams.planType" 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="state"> |
| | | <el-input |
| | | v-model="queryParams.state" |
| | | placeholder="请è¾å
¥ç¶æ" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="设å¤ç¼ç " prop="devicesCode"> |
| | | <el-input |
| | | v-model="queryParams.devicesCode" |
| | | placeholder="请è¾å
¥è®¾å¤ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="设å¤å称" prop="devicesName"> |
| | | <el-input |
| | | v-model="queryParams.devicesName" |
| | | 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="['em:inspectionPlanTask: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="['em:inspectionPlanTask: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="['em:inspectionPlanTask: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="['em:inspectionPlanTask:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="inspectionPlanTaskList" @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="planCode"> |
| | | </el-table-column> |
| | | <el-table-column label="计åå称" align="center" prop="planName"> |
| | | </el-table-column> |
| | | <el-table-column label="计åç±»å" align="center" prop="planType"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¶æ" align="center" prop="state"> |
| | | </el-table-column> |
| | | <el-table-column label="设å¤ç¼ç " align="center" prop="devicesCode"> |
| | | </el-table-column> |
| | | <el-table-column label="设å¤å称" align="center" prop="devicesName"> |
| | | </el-table-column> |
| | | <el-table-column label="åç" align="center" prop="brand"> |
| | | </el-table-column> |
| | | <el-table-column label="è§æ ¼" align="center" prop="specs"> |
| | | </el-table-column> |
| | | <el-table-column label="ç»æ" align="center" prop="results"> |
| | | </el-table-column> |
| | | <el-table-column label="å¤æ³¨" align="center" prop="remarks"> |
| | | </el-table-column> |
| | | <el-table-column label="å建æ¶é´" align="center" prop="createTime"> |
| | | </el-table-column> |
| | | <el-table-column label="å建人" align="center" prop="createUser"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¿®æ¹æ¶é´" align="center" prop="updateTime"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¿®æ¹äºº" align="center" prop="updateUser"> |
| | | </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="['em:inspectionPlanTask:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | plain |
| | | style="width: 72px" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['em:inspectionPlanTask: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="planCode"> |
| | | <el-input v-model="form.planCode" placeholder="请è¾å
¥è®¡åç¼å·" /> |
| | | </el-form-item> |
| | | <el-form-item label="计åå称" prop="planName"> |
| | | <el-input v-model="form.planName" placeholder="请è¾å
¥è®¡åå称" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="计åç±»å" prop="planType">--> |
| | | <!-- <el-select v-model="form.planType" placeholder="请éæ©è®¡åç±»å">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="ç¶æ" prop="state"> |
| | | <el-input v-model="form.state" placeholder="请è¾å
¥ç¶æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="设å¤ç¼ç " prop="devicesCode"> |
| | | <el-input v-model="form.devicesCode" placeholder="请è¾å
¥è®¾å¤ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="设å¤å称" prop="devicesName"> |
| | | <el-input v-model="form.devicesName" placeholder="请è¾å
¥è®¾å¤å称" /> |
| | | </el-form-item> |
| | | <el-form-item label="åç" prop="brand"> |
| | | <el-input v-model="form.brand" placeholder="请è¾å
¥åç" /> |
| | | </el-form-item> |
| | | <el-form-item label="è§æ ¼" prop="specs"> |
| | | <el-input v-model="form.specs" placeholder="请è¾å
¥è§æ ¼" /> |
| | | </el-form-item> |
| | | <el-form-item label="ç»æ" prop="results"> |
| | | <el-input v-model="form.results" placeholder="请è¾å
¥ç»æ" /> |
| | | </el-form-item> |
| | | <el-form-item label="å¤æ³¨" prop="remarks"> |
| | | <el-input v-model="form.remarks" placeholder="请è¾å
¥å¤æ³¨" /> |
| | | </el-form-item> |
| | | <el-form-item label="å建人" prop="createUser"> |
| | | <el-input v-model="form.createUser" placeholder="请è¾å
¥å建人" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¿®æ¹äºº" prop="updateUser"> |
| | | <el-input v-model="form.updateUser" 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 { listInspectionPlanTask, getInspectionPlanTask, delInspectionPlanTask, addInspectionPlanTask, updateInspectionPlanTask } from "@/api/main/em/inspectionPlanTask/inspectionPlanTask"; |
| | | |
| | | export default { |
| | | name: "InspectionPlanTask", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | titleName: "", |
| | | // éä¸æ°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // ç¹æ£ä»»å¡è¡¨æ ¼æ°æ® |
| | | inspectionPlanTaskList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | planCode: null, |
| | | planName: null, |
| | | planType: null, |
| | | state: null, |
| | | devicesCode: null, |
| | | devicesName: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // 表åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "IDä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢ç¹æ£ä»»å¡å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listInspectionPlanTask(this.queryParams).then(response => { |
| | | this.inspectionPlanTaskList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | planCode: null, |
| | | planName: null, |
| | | planType: null, |
| | | state: null, |
| | | devicesCode: null, |
| | | devicesName: null, |
| | | brand: null, |
| | | specs: null, |
| | | results: null, |
| | | remarks: null, |
| | | createTime: null, |
| | | createUser: null, |
| | | updateTime: null, |
| | | updateUser: null, |
| | | spareField1: null, |
| | | spareField2: null, |
| | | spareField3: null, |
| | | spareField4: 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 |
| | | getInspectionPlanTask(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) { |
| | | updateInspectionPlanTask(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addInspectionPlanTask(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 delInspectionPlanTask(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å é¤æå"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('em/inspectionPlanTask/export', { |
| | | ...this.queryParams |
| | | }, `inspectionPlanTask_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |