¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.technologyRoute.controller; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.jcdm.main.bs.technologyRoute.domain.BsTechnologyRouteInfo; |
| | | import com.jcdm.main.bs.technologyRoute.service.IBsTechnologyRouteInfoService; |
| | | 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 ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/bs/technologyRoute") |
| | | public class BsTechnologyRouteInfoController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IBsTechnologyRouteInfoService bsTechnologyRouteInfoService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | startPage(); |
| | | List<BsTechnologyRouteInfo> list = bsTechnologyRouteInfoService.selectBsTechnologyRouteInfoList(bsTechnologyRouteInfo); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå·¥èºæµç¨å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:export')") |
| | | @Log(title = "å·¥èºæµç¨", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | List<BsTechnologyRouteInfo> list = bsTechnologyRouteInfoService.selectBsTechnologyRouteInfoList(bsTechnologyRouteInfo); |
| | | ExcelUtil<BsTechnologyRouteInfo> util = new ExcelUtil<BsTechnologyRouteInfo>(BsTechnologyRouteInfo.class); |
| | | util.exportExcel(response, list, "å·¥èºæµç¨æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·¥èºæµç¨è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(bsTechnologyRouteInfoService.selectBsTechnologyRouteInfoById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºæµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:add')") |
| | | @Log(title = "å·¥èºæµç¨", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | return toAjax(bsTechnologyRouteInfoService.insertBsTechnologyRouteInfo(bsTechnologyRouteInfo)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºæµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:edit')") |
| | | @Log(title = "å·¥èºæµç¨", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | return toAjax(bsTechnologyRouteInfoService.updateBsTechnologyRouteInfo(bsTechnologyRouteInfo)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å·¥èºæµç¨ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRoute:remove')") |
| | | @Log(title = "å·¥èºæµç¨", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(bsTechnologyRouteInfoService.deleteBsTechnologyRouteInfoByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.technologyRoute.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; |
| | | |
| | | /** |
| | | * å·¥èºæµç¨å¯¹è±¡ bs_technology_route_info |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public class BsTechnologyRouteInfo extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** å·¥èºæµç¨ç¼ç */ |
| | | @Excel(name = "å·¥èºæµç¨ç¼ç ") |
| | | private String routeCode; |
| | | |
| | | /** å·¥èºæµç¨å称 */ |
| | | @Excel(name = "å·¥èºæµç¨å称") |
| | | private String routeName; |
| | | |
| | | /** 产åç¼ç */ |
| | | @Excel(name = "产åç¼ç ") |
| | | private String productCode; |
| | | |
| | | /** 产åå称 */ |
| | | @Excel(name = "产åå称") |
| | | private String productName; |
| | | |
| | | /** çæ¬ */ |
| | | @Excel(name = "çæ¬") |
| | | private String version; |
| | | |
| | | /** ç¶æ(åå
¸) */ |
| | | @Excel(name = "ç¶æ(åå
¸)") |
| | | private String status; |
| | | |
| | | /** æ°æ®æ¥æº */ |
| | | @Excel(name = "æ°æ®æ¥æº") |
| | | private String dataSource; |
| | | |
| | | /** å建ç¨æ· */ |
| | | @Excel(name = "å建ç¨æ·") |
| | | private String createUser; |
| | | |
| | | /** æ´æ¹ç¨æ· */ |
| | | @Excel(name = "æ´æ¹ç¨æ·") |
| | | private String updateUser; |
| | | |
| | | /** é¢çå段1 */ |
| | | private String spareField1; |
| | | |
| | | /** é¢çå段2 */ |
| | | private String spareField2; |
| | | |
| | | /** é¢çå段3 */ |
| | | private String spareField3; |
| | | |
| | | /** é¢çå段4 */ |
| | | private String spareField4; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setRouteCode(String routeCode) |
| | | { |
| | | this.routeCode = routeCode; |
| | | } |
| | | |
| | | public String getRouteCode() |
| | | { |
| | | return routeCode; |
| | | } |
| | | public void setRouteName(String routeName) |
| | | { |
| | | this.routeName = routeName; |
| | | } |
| | | |
| | | public String getRouteName() |
| | | { |
| | | return routeName; |
| | | } |
| | | public void setProductCode(String productCode) |
| | | { |
| | | this.productCode = productCode; |
| | | } |
| | | |
| | | public String getProductCode() |
| | | { |
| | | return productCode; |
| | | } |
| | | public void setProductName(String productName) |
| | | { |
| | | this.productName = productName; |
| | | } |
| | | |
| | | public String getProductName() |
| | | { |
| | | return productName; |
| | | } |
| | | public void setVersion(String version) |
| | | { |
| | | this.version = version; |
| | | } |
| | | |
| | | public String getVersion() |
| | | { |
| | | return version; |
| | | } |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | public void setDataSource(String dataSource) |
| | | { |
| | | this.dataSource = dataSource; |
| | | } |
| | | |
| | | public String getDataSource() |
| | | { |
| | | return dataSource; |
| | | } |
| | | 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 setSpareField1(String spareField1) |
| | | { |
| | | this.spareField1 = spareField1; |
| | | } |
| | | |
| | | public String getSpareField1() |
| | | { |
| | | return spareField1; |
| | | } |
| | | public void setSpareField2(String spareField2) |
| | | { |
| | | this.spareField2 = spareField2; |
| | | } |
| | | |
| | | public String getSpareField2() |
| | | { |
| | | return spareField2; |
| | | } |
| | | public void setSpareField3(String spareField3) |
| | | { |
| | | this.spareField3 = spareField3; |
| | | } |
| | | |
| | | public String getSpareField3() |
| | | { |
| | | return spareField3; |
| | | } |
| | | public void setSpareField4(String spareField4) |
| | | { |
| | | this.spareField4 = spareField4; |
| | | } |
| | | |
| | | public String getSpareField4() |
| | | { |
| | | return spareField4; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("routeCode", getRouteCode()) |
| | | .append("routeName", getRouteName()) |
| | | .append("productCode", getProductCode()) |
| | | .append("productName", getProductName()) |
| | | .append("version", getVersion()) |
| | | .append("status", getStatus()) |
| | | .append("dataSource", getDataSource()) |
| | | .append("remark", getRemark()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("spareField1", getSpareField1()) |
| | | .append("spareField2", getSpareField2()) |
| | | .append("spareField3", getSpareField3()) |
| | | .append("spareField4", getSpareField4()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.technologyRoute.mapper; |
| | | |
| | | import com.jcdm.main.bs.technologyRoute.domain.BsTechnologyRouteInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å·¥èºæµç¨Mapperæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public interface BsTechnologyRouteInfoMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return å·¥èºæµç¨ |
| | | */ |
| | | public BsTechnologyRouteInfo selectBsTechnologyRouteInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨å表 |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return å·¥èºæµç¨éå |
| | | */ |
| | | public List<BsTechnologyRouteInfo> selectBsTechnologyRouteInfoList(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * å é¤å·¥èºæµç¨ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºæµç¨ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteInfoByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.technologyRoute.service; |
| | | |
| | | import com.jcdm.main.bs.technologyRoute.domain.BsTechnologyRouteInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å·¥èºæµç¨Serviceæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public interface IBsTechnologyRouteInfoService |
| | | { |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return å·¥èºæµç¨ |
| | | */ |
| | | public BsTechnologyRouteInfo selectBsTechnologyRouteInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨å表 |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return å·¥èºæµç¨éå |
| | | */ |
| | | public List<BsTechnologyRouteInfo> selectBsTechnologyRouteInfoList(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo); |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºæµç¨ |
| | | * |
| | | * @param ids éè¦å é¤çå·¥èºæµç¨ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteInfoByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤å·¥èºæµç¨ä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteInfoById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.technologyRoute.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import com.jcdm.main.bs.technologyRoute.domain.BsTechnologyRouteInfo; |
| | | import com.jcdm.main.bs.technologyRoute.mapper.BsTechnologyRouteInfoMapper; |
| | | import com.jcdm.main.bs.technologyRoute.service.IBsTechnologyRouteInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | /** |
| | | * å·¥èºæµç¨Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | @Service |
| | | public class BsTechnologyRouteInfoServiceImpl implements IBsTechnologyRouteInfoService |
| | | { |
| | | @Autowired |
| | | private BsTechnologyRouteInfoMapper bsTechnologyRouteInfoMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return å·¥èºæµç¨ |
| | | */ |
| | | @Override |
| | | public BsTechnologyRouteInfo selectBsTechnologyRouteInfoById(Long id) |
| | | { |
| | | return bsTechnologyRouteInfoMapper.selectBsTechnologyRouteInfoById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºæµç¨å表 |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return å·¥èºæµç¨ |
| | | */ |
| | | @Override |
| | | public List<BsTechnologyRouteInfo> selectBsTechnologyRouteInfoList(BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | return bsTechnologyRouteInfoMapper.selectBsTechnologyRouteInfoList(bsTechnologyRouteInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | bsTechnologyRouteInfo.setCreateTime(DateUtils.getNowDate()); |
| | | return bsTechnologyRouteInfoMapper.insertBsTechnologyRouteInfo(bsTechnologyRouteInfo); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºæµç¨ |
| | | * |
| | | * @param bsTechnologyRouteInfo å·¥èºæµç¨ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateBsTechnologyRouteInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo) |
| | | { |
| | | bsTechnologyRouteInfo.setUpdateTime(DateUtils.getNowDate()); |
| | | return bsTechnologyRouteInfoMapper.updateBsTechnologyRouteInfo(bsTechnologyRouteInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºæµç¨ |
| | | * |
| | | * @param ids éè¦å é¤çå·¥èºæµç¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBsTechnologyRouteInfoByIds(Long[] ids) |
| | | { |
| | | return bsTechnologyRouteInfoMapper.deleteBsTechnologyRouteInfoByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å·¥èºæµç¨ä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºæµç¨ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBsTechnologyRouteInfoById(Long id) |
| | | { |
| | | return bsTechnologyRouteInfoMapper.deleteBsTechnologyRouteInfoById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.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.bs.domain.BsTechnologyRouteChildInfo; |
| | | import com.jcdm.main.bs.service.IBsTechnologyRouteChildInfoService; |
| | | import com.jcdm.common.utils.poi.ExcelUtil; |
| | | import com.jcdm.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * å·¥èºè·¯çº¿åä¿¡æ¯Controller |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/bs/technologyRouteChild") |
| | | public class BsTechnologyRouteChildInfoController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IBsTechnologyRouteChildInfoService bsTechnologyRouteChildInfoService; |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | startPage(); |
| | | List<BsTechnologyRouteChildInfo> list = bsTechnologyRouteChildInfoService.selectBsTechnologyRouteChildInfoList(bsTechnologyRouteChildInfo); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:export')") |
| | | @Log(title = "å·¥èºè·¯çº¿åä¿¡æ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | List<BsTechnologyRouteChildInfo> list = bsTechnologyRouteChildInfoService.selectBsTechnologyRouteChildInfoList(bsTechnologyRouteChildInfo); |
| | | ExcelUtil<BsTechnologyRouteChildInfo> util = new ExcelUtil<BsTechnologyRouteChildInfo>(BsTechnologyRouteChildInfo.class); |
| | | util.exportExcel(response, list, "å·¥èºè·¯çº¿åä¿¡æ¯æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·¥èºè·¯çº¿åä¿¡æ¯è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(bsTechnologyRouteChildInfoService.selectBsTechnologyRouteChildInfoById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:add')") |
| | | @Log(title = "å·¥èºè·¯çº¿åä¿¡æ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | return toAjax(bsTechnologyRouteChildInfoService.insertBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:edit')") |
| | | @Log(title = "å·¥èºè·¯çº¿åä¿¡æ¯", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | return toAjax(bsTechnologyRouteChildInfoService.updateBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:technologyRouteChild:remove')") |
| | | @Log(title = "å·¥èºè·¯çº¿åä¿¡æ¯", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(bsTechnologyRouteChildInfoService.deleteBsTechnologyRouteChildInfoByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.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; |
| | | |
| | | /** |
| | | * å·¥èºè·¯çº¿åä¿¡æ¯å¯¹è±¡ bs_technology_route_child_info |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public class BsTechnologyRouteChildInfo extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主é®id */ |
| | | private Long id; |
| | | |
| | | /** å·¥åºç¼ç */ |
| | | @Excel(name = "å·¥åºç¼ç ") |
| | | private String processesCode; |
| | | |
| | | /** å·¥åºå称 */ |
| | | @Excel(name = "å·¥åºå称") |
| | | private String processesName; |
| | | |
| | | /** å å·¥é¡ºåº */ |
| | | @Excel(name = "å 工顺åº") |
| | | private String stepNo; |
| | | |
| | | /** ä¸ä¸éå·¥åº */ |
| | | @Excel(name = "ä¸ä¸éå·¥åº") |
| | | private String nextProcess; |
| | | |
| | | /** ä¸ä¸ä¸éå·¥åºå
³ç³» */ |
| | | @Excel(name = "ä¸ä¸ä¸éå·¥åºå
³ç³»") |
| | | private String nextProcessBond; |
| | | |
| | | /** æ¯å¦å
³é®å·¥åº */ |
| | | @Excel(name = "æ¯å¦å
³é®å·¥åº") |
| | | private String keyProcessesFlag; |
| | | |
| | | /** åå¤æ¶é´ */ |
| | | @Excel(name = "åå¤æ¶é´") |
| | | private String preparationTime; |
| | | |
| | | /** çå¾
æ¶é´ */ |
| | | @Excel(name = "çå¾
æ¶é´") |
| | | private String waitTime; |
| | | |
| | | /** å建ç¨æ· */ |
| | | @Excel(name = "å建ç¨æ·") |
| | | private String createUser; |
| | | |
| | | /** æ´æ¹ç¨æ· */ |
| | | @Excel(name = "æ´æ¹ç¨æ·") |
| | | private String updateUser; |
| | | |
| | | /** å·¥èºæµç¨ç¼ç */ |
| | | @Excel(name = "å·¥èºæµç¨ç¼ç ") |
| | | private String routeCode; |
| | | |
| | | /** é¢çå段1 */ |
| | | private String spareField1; |
| | | |
| | | /** é¢çå段2 */ |
| | | private String spareField2; |
| | | |
| | | /** é¢çå段3 */ |
| | | private String spareField3; |
| | | |
| | | /** é¢çå段4 */ |
| | | private String spareField4; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setProcessesCode(String processesCode) |
| | | { |
| | | this.processesCode = processesCode; |
| | | } |
| | | |
| | | public String getProcessesCode() |
| | | { |
| | | return processesCode; |
| | | } |
| | | public void setProcessesName(String processesName) |
| | | { |
| | | this.processesName = processesName; |
| | | } |
| | | |
| | | public String getProcessesName() |
| | | { |
| | | return processesName; |
| | | } |
| | | public void setStepNo(String stepNo) |
| | | { |
| | | this.stepNo = stepNo; |
| | | } |
| | | |
| | | public String getStepNo() |
| | | { |
| | | return stepNo; |
| | | } |
| | | public void setNextProcess(String nextProcess) |
| | | { |
| | | this.nextProcess = nextProcess; |
| | | } |
| | | |
| | | public String getNextProcess() |
| | | { |
| | | return nextProcess; |
| | | } |
| | | public void setNextProcessBond(String nextProcessBond) |
| | | { |
| | | this.nextProcessBond = nextProcessBond; |
| | | } |
| | | |
| | | public String getNextProcessBond() |
| | | { |
| | | return nextProcessBond; |
| | | } |
| | | public void setKeyProcessesFlag(String keyProcessesFlag) |
| | | { |
| | | this.keyProcessesFlag = keyProcessesFlag; |
| | | } |
| | | |
| | | public String getKeyProcessesFlag() |
| | | { |
| | | return keyProcessesFlag; |
| | | } |
| | | public void setPreparationTime(String preparationTime) |
| | | { |
| | | this.preparationTime = preparationTime; |
| | | } |
| | | |
| | | public String getPreparationTime() |
| | | { |
| | | return preparationTime; |
| | | } |
| | | public void setWaitTime(String waitTime) |
| | | { |
| | | this.waitTime = waitTime; |
| | | } |
| | | |
| | | public String getWaitTime() |
| | | { |
| | | return waitTime; |
| | | } |
| | | 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 setRouteCode(String routeCode) |
| | | { |
| | | this.routeCode = routeCode; |
| | | } |
| | | |
| | | public String getRouteCode() |
| | | { |
| | | return routeCode; |
| | | } |
| | | public void setSpareField1(String spareField1) |
| | | { |
| | | this.spareField1 = spareField1; |
| | | } |
| | | |
| | | public String getSpareField1() |
| | | { |
| | | return spareField1; |
| | | } |
| | | public void setSpareField2(String spareField2) |
| | | { |
| | | this.spareField2 = spareField2; |
| | | } |
| | | |
| | | public String getSpareField2() |
| | | { |
| | | return spareField2; |
| | | } |
| | | public void setSpareField3(String spareField3) |
| | | { |
| | | this.spareField3 = spareField3; |
| | | } |
| | | |
| | | public String getSpareField3() |
| | | { |
| | | return spareField3; |
| | | } |
| | | public void setSpareField4(String spareField4) |
| | | { |
| | | this.spareField4 = spareField4; |
| | | } |
| | | |
| | | public String getSpareField4() |
| | | { |
| | | return spareField4; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("processesCode", getProcessesCode()) |
| | | .append("processesName", getProcessesName()) |
| | | .append("stepNo", getStepNo()) |
| | | .append("nextProcess", getNextProcess()) |
| | | .append("nextProcessBond", getNextProcessBond()) |
| | | .append("keyProcessesFlag", getKeyProcessesFlag()) |
| | | .append("preparationTime", getPreparationTime()) |
| | | .append("waitTime", getWaitTime()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .append("routeCode", getRouteCode()) |
| | | .append("spareField1", getSpareField1()) |
| | | .append("spareField2", getSpareField2()) |
| | | .append("spareField3", getSpareField3()) |
| | | .append("spareField4", getSpareField4()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo; |
| | | |
| | | /** |
| | | * å·¥èºè·¯çº¿åä¿¡æ¯Mapperæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public interface BsTechnologyRouteChildInfoMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | public BsTechnologyRouteChildInfo selectBsTechnologyRouteChildInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯éå |
| | | */ |
| | | public List<BsTechnologyRouteChildInfo> selectBsTechnologyRouteChildInfoList(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * å é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteChildInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteChildInfoByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.service; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo; |
| | | |
| | | /** |
| | | * å·¥èºè·¯çº¿åä¿¡æ¯Serviceæ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | public interface IBsTechnologyRouteChildInfoService |
| | | { |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | public BsTechnologyRouteChildInfo selectBsTechnologyRouteChildInfoById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯éå |
| | | */ |
| | | public List<BsTechnologyRouteChildInfo> selectBsTechnologyRouteChildInfoList(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo); |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param ids éè¦å é¤çå·¥èºè·¯çº¿åä¿¡æ¯ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteChildInfoByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤å·¥èºè·¯çº¿åä¿¡æ¯ä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBsTechnologyRouteChildInfoById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.jcdm.main.bs.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.jcdm.main.bs.mapper.BsTechnologyRouteChildInfoMapper; |
| | | import com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo; |
| | | import com.jcdm.main.bs.service.IBsTechnologyRouteChildInfoService; |
| | | |
| | | /** |
| | | * å·¥èºè·¯çº¿åä¿¡æ¯Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruimin |
| | | * @date 2023-12-09 |
| | | */ |
| | | @Service |
| | | public class BsTechnologyRouteChildInfoServiceImpl implements IBsTechnologyRouteChildInfoService |
| | | { |
| | | @Autowired |
| | | private BsTechnologyRouteChildInfoMapper bsTechnologyRouteChildInfoMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public BsTechnologyRouteChildInfo selectBsTechnologyRouteChildInfoById(Long id) |
| | | { |
| | | return bsTechnologyRouteChildInfoMapper.selectBsTechnologyRouteChildInfoById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public List<BsTechnologyRouteChildInfo> selectBsTechnologyRouteChildInfoList(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | return bsTechnologyRouteChildInfoMapper.selectBsTechnologyRouteChildInfoList(bsTechnologyRouteChildInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | bsTechnologyRouteChildInfo.setCreateTime(DateUtils.getNowDate()); |
| | | return bsTechnologyRouteChildInfoMapper.insertBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param bsTechnologyRouteChildInfo å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateBsTechnologyRouteChildInfo(BsTechnologyRouteChildInfo bsTechnologyRouteChildInfo) |
| | | { |
| | | bsTechnologyRouteChildInfo.setUpdateTime(DateUtils.getNowDate()); |
| | | return bsTechnologyRouteChildInfoMapper.updateBsTechnologyRouteChildInfo(bsTechnologyRouteChildInfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | * |
| | | * @param ids éè¦å é¤çå·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBsTechnologyRouteChildInfoByIds(Long[] ids) |
| | | { |
| | | return bsTechnologyRouteChildInfoMapper.deleteBsTechnologyRouteChildInfoByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å·¥èºè·¯çº¿åä¿¡æ¯ä¿¡æ¯ |
| | | * |
| | | * @param id å·¥èºè·¯çº¿åä¿¡æ¯ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBsTechnologyRouteChildInfoById(Long id) |
| | | { |
| | | return bsTechnologyRouteChildInfoMapper.deleteBsTechnologyRouteChildInfoById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.jcdm.main.bs.technologyRoute.mapper.BsTechnologyRouteInfoMapper"> |
| | | |
| | | <resultMap type="BsTechnologyRouteInfo" id="BsTechnologyRouteInfoResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="routeCode" column="route_code" /> |
| | | <result property="routeName" column="route_name" /> |
| | | <result property="productCode" column="product_code" /> |
| | | <result property="productName" column="product_name" /> |
| | | <result property="version" column="version" /> |
| | | <result property="status" column="status" /> |
| | | <result property="dataSource" column="data_source" /> |
| | | <result property="remark" column="remark" /> |
| | | <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="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" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBsTechnologyRouteInfoVo"> |
| | | select id, route_code, route_name, product_code, product_name, version, status, data_source, remark, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from bs_technology_route_info |
| | | </sql> |
| | | |
| | | <select id="selectBsTechnologyRouteInfoList" parameterType="BsTechnologyRouteInfo" resultMap="BsTechnologyRouteInfoResult"> |
| | | <include refid="selectBsTechnologyRouteInfoVo"/> |
| | | <where> |
| | | <if test="routeCode != null and routeCode != ''"> and route_code like concat('%', #{routeCode}, '%')</if> |
| | | <if test="routeName != null and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if> |
| | | <if test="productCode != null and productCode != ''"> and product_code like concat('%', #{productCode}, '%')</if> |
| | | <if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | <if test="dataSource != null and dataSource != ''"> and data_source like concat('%', #{dataSource}, '%')</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectBsTechnologyRouteInfoById" parameterType="Long" resultMap="BsTechnologyRouteInfoResult"> |
| | | <include refid="selectBsTechnologyRouteInfoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertBsTechnologyRouteInfo" parameterType="BsTechnologyRouteInfo"> |
| | | insert into bs_technology_route_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="routeCode != null and routeCode != ''">route_code,</if> |
| | | <if test="routeName != null">route_name,</if> |
| | | <if test="productCode != null and productCode != ''">product_code,</if> |
| | | <if test="productName != null">product_name,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="dataSource != null">data_source,</if> |
| | | <if test="remark != null">remark,</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="spareField1 != null">spare_field_1,</if> |
| | | <if test="spareField2 != null">spare_field_2,</if> |
| | | <if test="spareField3 != null">spare_field_3,</if> |
| | | <if test="spareField4 != null">spare_field_4,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="routeCode != null and routeCode != ''">#{routeCode},</if> |
| | | <if test="routeName != null">#{routeName},</if> |
| | | <if test="productCode != null and productCode != ''">#{productCode},</if> |
| | | <if test="productName != null">#{productName},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="dataSource != null">#{dataSource},</if> |
| | | <if test="remark != null">#{remark},</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="spareField1 != null">#{spareField1},</if> |
| | | <if test="spareField2 != null">#{spareField2},</if> |
| | | <if test="spareField3 != null">#{spareField3},</if> |
| | | <if test="spareField4 != null">#{spareField4},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateBsTechnologyRouteInfo" parameterType="BsTechnologyRouteInfo"> |
| | | update bs_technology_route_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="routeCode != null and routeCode != ''">route_code = #{routeCode},</if> |
| | | <if test="routeName != null">route_name = #{routeName},</if> |
| | | <if test="productCode != null and productCode != ''">product_code = #{productCode},</if> |
| | | <if test="productName != null">product_name = #{productName},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="dataSource != null">data_source = #{dataSource},</if> |
| | | <if test="remark != null">remark = #{remark},</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="spareField1 != null">spare_field_1 = #{spareField1},</if> |
| | | <if test="spareField2 != null">spare_field_2 = #{spareField2},</if> |
| | | <if test="spareField3 != null">spare_field_3 = #{spareField3},</if> |
| | | <if test="spareField4 != null">spare_field_4 = #{spareField4},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteBsTechnologyRouteInfoById" parameterType="Long"> |
| | | delete from bs_technology_route_info where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteBsTechnologyRouteInfoByIds" parameterType="String"> |
| | | delete from bs_technology_route_info 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.bs.mapper.BsTechnologyRouteChildInfoMapper"> |
| | | |
| | | <resultMap type="BsTechnologyRouteChildInfo" id="BsTechnologyRouteChildInfoResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="processesCode" column="processes_code" /> |
| | | <result property="processesName" column="processes_name" /> |
| | | <result property="stepNo" column="step_no" /> |
| | | <result property="nextProcess" column="next_process" /> |
| | | <result property="nextProcessBond" column="next_process_bond" /> |
| | | <result property="keyProcessesFlag" column="key_processes_flag" /> |
| | | <result property="preparationTime" column="preparation_time" /> |
| | | <result property="waitTime" column="wait_time" /> |
| | | <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="remark" column="remark" /> |
| | | <result property="routeCode" column="route_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" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBsTechnologyRouteChildInfoVo"> |
| | | select id, processes_code, processes_name, step_no, next_process, next_process_bond, key_processes_flag, preparation_time, wait_time, create_user, create_time, update_user, update_time, remark, route_code, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from bs_technology_route_child_info |
| | | </sql> |
| | | |
| | | <select id="selectBsTechnologyRouteChildInfoList" parameterType="BsTechnologyRouteChildInfo" resultMap="BsTechnologyRouteChildInfoResult"> |
| | | <include refid="selectBsTechnologyRouteChildInfoVo"/> |
| | | <where> |
| | | <if test="processesCode != null and processesCode != ''"> and processes_code like concat('%', #{processesCode}, '%')</if> |
| | | <if test="processesName != null and processesName != ''"> and processes_name like concat('%', #{processesName}, '%')</if> |
| | | <if test="keyProcessesFlag != null and keyProcessesFlag != ''"> and key_processes_flag = #{keyProcessesFlag}</if> |
| | | <if test="routeCode != null and routeCode != ''"> and route_code = #{routeCode}</if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectBsTechnologyRouteChildInfoById" parameterType="Long" resultMap="BsTechnologyRouteChildInfoResult"> |
| | | <include refid="selectBsTechnologyRouteChildInfoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertBsTechnologyRouteChildInfo" parameterType="BsTechnologyRouteChildInfo"> |
| | | insert into bs_technology_route_child_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="processesCode != null and processesCode != ''">processes_code,</if> |
| | | <if test="processesName != null">processes_name,</if> |
| | | <if test="stepNo != null">step_no,</if> |
| | | <if test="nextProcess != null">next_process,</if> |
| | | <if test="nextProcessBond != null">next_process_bond,</if> |
| | | <if test="keyProcessesFlag != null">key_processes_flag,</if> |
| | | <if test="preparationTime != null">preparation_time,</if> |
| | | <if test="waitTime != null">wait_time,</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="remark != null">remark,</if> |
| | | <if test="routeCode != null">route_code,</if> |
| | | <if test="spareField1 != null">spare_field_1,</if> |
| | | <if test="spareField2 != null">spare_field_2,</if> |
| | | <if test="spareField3 != null">spare_field_3,</if> |
| | | <if test="spareField4 != null">spare_field_4,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="processesCode != null and processesCode != ''">#{processesCode},</if> |
| | | <if test="processesName != null">#{processesName},</if> |
| | | <if test="stepNo != null">#{stepNo},</if> |
| | | <if test="nextProcess != null">#{nextProcess},</if> |
| | | <if test="nextProcessBond != null">#{nextProcessBond},</if> |
| | | <if test="keyProcessesFlag != null">#{keyProcessesFlag},</if> |
| | | <if test="preparationTime != null">#{preparationTime},</if> |
| | | <if test="waitTime != null">#{waitTime},</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="remark != null">#{remark},</if> |
| | | <if test="routeCode != null">#{routeCode},</if> |
| | | <if test="spareField1 != null">#{spareField1},</if> |
| | | <if test="spareField2 != null">#{spareField2},</if> |
| | | <if test="spareField3 != null">#{spareField3},</if> |
| | | <if test="spareField4 != null">#{spareField4},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateBsTechnologyRouteChildInfo" parameterType="BsTechnologyRouteChildInfo"> |
| | | update bs_technology_route_child_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="processesCode != null and processesCode != ''">processes_code = #{processesCode},</if> |
| | | <if test="processesName != null">processes_name = #{processesName},</if> |
| | | <if test="stepNo != null">step_no = #{stepNo},</if> |
| | | <if test="nextProcess != null">next_process = #{nextProcess},</if> |
| | | <if test="nextProcessBond != null">next_process_bond = #{nextProcessBond},</if> |
| | | <if test="keyProcessesFlag != null">key_processes_flag = #{keyProcessesFlag},</if> |
| | | <if test="preparationTime != null">preparation_time = #{preparationTime},</if> |
| | | <if test="waitTime != null">wait_time = #{waitTime},</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="remark != null">remark = #{remark},</if> |
| | | <if test="routeCode != null">route_code = #{routeCode},</if> |
| | | <if test="spareField1 != null">spare_field_1 = #{spareField1},</if> |
| | | <if test="spareField2 != null">spare_field_2 = #{spareField2},</if> |
| | | <if test="spareField3 != null">spare_field_3 = #{spareField3},</if> |
| | | <if test="spareField4 != null">spare_field_4 = #{spareField4},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteBsTechnologyRouteChildInfoById" parameterType="Long"> |
| | | delete from bs_technology_route_child_info where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteBsTechnologyRouteChildInfoByIds" parameterType="String"> |
| | | delete from bs_technology_route_child_info where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢å·¥èºæµç¨å表 |
| | | export function listTechnologyRoute(query) { |
| | | return request({ |
| | | url: '/bs/technologyRoute/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢å·¥èºæµç¨è¯¦ç» |
| | | export function getTechnologyRoute(id) { |
| | | return request({ |
| | | url: '/bs/technologyRoute/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢å·¥èºæµç¨ |
| | | export function addTechnologyRoute(data) { |
| | | return request({ |
| | | url: '/bs/technologyRoute', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹å·¥èºæµç¨ |
| | | export function updateTechnologyRoute(data) { |
| | | return request({ |
| | | url: '/bs/technologyRoute', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤å·¥èºæµç¨ |
| | | export function delTechnologyRoute(id) { |
| | | return request({ |
| | | url: '/bs/technologyRoute/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 |
| | | export function listTechnologyRouteChild(query) { |
| | | return request({ |
| | | url: '/bs/technologyRouteChild/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯è¯¦ç» |
| | | export function getTechnologyRouteChild(id) { |
| | | return request({ |
| | | url: '/bs/technologyRouteChild/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // æ°å¢å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | export function addTechnologyRouteChild(data) { |
| | | return request({ |
| | | url: '/bs/technologyRouteChild', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | export function updateTechnologyRouteChild(data) { |
| | | return request({ |
| | | url: '/bs/technologyRouteChild', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // å é¤å·¥èºè·¯çº¿åä¿¡æ¯ |
| | | export function delTechnologyRouteChild(id) { |
| | | return request({ |
| | | url: '/bs/technologyRouteChild/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/main/route-data', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['bs:technologyRouteChild:list'], |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | component: () => import('@/views/main/bs/technologyRouteChild/index'), |
| | | name: 'Data', |
| | | meta: { title: 'å·¥èºæµç¨è¯¦æ
', activeMenu: '/main/bs/technologyRouteChild' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/monitor/job-log', |
| | | component: Layout, |
| | | hidden: true, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="å·¥èºæµç¨ç¼ç " prop="routeCode"> |
| | | <el-input |
| | | v-model="queryParams.routeCode" |
| | | placeholder="请è¾å
¥å·¥èºæµç¨ç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥èºæµç¨å称" prop="routeName"> |
| | | <el-input |
| | | v-model="queryParams.routeName" |
| | | placeholder="请è¾å
¥å·¥èºæµç¨å称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="产åç¼ç " prop="productCode"> |
| | | <el-input |
| | | v-model="queryParams.productCode" |
| | | placeholder="请è¾å
¥äº§åç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="产åå称" prop="productName"> |
| | | <el-input |
| | | v-model="queryParams.productName" |
| | | placeholder="请è¾å
¥äº§åå称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="ç¶æ(åå
¸)" prop="status">--> |
| | | <!-- <el-select v-model="queryParams.status" 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="dataSource"> |
| | | <el-input |
| | | v-model="queryParams.dataSource" |
| | | placeholder="请è¾å
¥æ°æ®æ¥æº" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <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-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="['bs:technologyRoute: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="['bs:technologyRoute: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="['bs:technologyRoute: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="['bs:technologyRoute:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table border v-loading="loading" :data="technologyRouteList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column :show-overflow-tooltip='true' label="å·¥èºæµç¨ç¼ç " align="center"> |
| | | <template slot-scope="scope"> |
| | | <router-link :to="{path: '/main/route-data/index/', query: {routeCode: scope.row.routeCode} }" class="link-type"> |
| | | <span>{{ scope.row.routeCode }}</span> |
| | | </router-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="å·¥èºæµç¨å称" align="center" prop="routeName"> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="产åç¼ç " align="center" prop="productCode"> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="产åå称" align="center" prop="productName"> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="çæ¬" align="center" prop="version"> |
| | | </el-table-column> |
| | | <el-table-column label="ç¶æ(åå
¸)" align="center" prop="status"> |
| | | </el-table-column> |
| | | <el-table-column label="æ°æ®æ¥æº" align="center" prop="dataSource"> |
| | | </el-table-column> |
| | | <el-table-column label="å¤æ³¨" align="center" prop="remark"> |
| | | </el-table-column> |
| | | <el-table-column label="å建ç¨æ·" align="center" prop="createUser"> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="å建æ¶é´" align="center" prop="createTime" width="180"> |
| | | </el-table-column> |
| | | <el-table-column label="æ´æ¹ç¨æ·" align="center" prop="updateUser"> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip='true' label="æ´æ¹æ¶é´" align="center" prop="updateTime" width="180"> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" width="130" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['bs:technologyRoute:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['bs:technologyRoute:remove']" |
| | | >å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹å·¥èºæµç¨å¯¹è¯æ¡ --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="å·¥èºæµç¨ç¼ç " prop="routeCode"> |
| | | <el-input v-model="form.routeCode" placeholder="请è¾å
¥å·¥èºæµç¨ç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥èºæµç¨å称" prop="routeName"> |
| | | <el-input v-model="form.routeName" placeholder="请è¾å
¥å·¥èºæµç¨å称" /> |
| | | </el-form-item> |
| | | <el-form-item label="产åç¼ç " prop="productCode"> |
| | | <el-input v-model="form.productCode" placeholder="请è¾å
¥äº§åç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="产åå称" prop="productName"> |
| | | <el-input v-model="form.productName" placeholder="请è¾å
¥äº§åå称" /> |
| | | </el-form-item> |
| | | <el-form-item label="çæ¬" prop="version"> |
| | | <el-input v-model="form.version" placeholder="请è¾å
¥çæ¬" /> |
| | | </el-form-item> |
| | | <el-form-item label="å¤æ³¨" prop="remark"> |
| | | <el-input v-model="form.remark" 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 { listTechnologyRoute, getTechnologyRoute, delTechnologyRoute, addTechnologyRoute, updateTechnologyRoute } from "@/api/main/bs/technologyRoute/technologyRoute"; |
| | | |
| | | export default { |
| | | name: "TechnologyRoute", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | // éä¸æ°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // å·¥èºæµç¨è¡¨æ ¼æ°æ® |
| | | technologyRouteList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | routeCode: null, |
| | | routeName: null, |
| | | productCode: null, |
| | | productName: null, |
| | | status: null, |
| | | dataSource: null, |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // 表åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | routeCode: [ |
| | | { required: true, message: "å·¥èºæµç¨ç¼ç ä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | productCode: [ |
| | | { required: true, message: "产åç¼ç ä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** æ¥è¯¢å·¥èºæµç¨å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listTechnologyRoute(this.queryParams).then(response => { |
| | | this.technologyRouteList = response.rows; |
| | | console.log(this.technologyRouteList) |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | routeCode: null, |
| | | routeName: null, |
| | | productCode: null, |
| | | productName: null, |
| | | version: null, |
| | | status: null, |
| | | dataSource: null, |
| | | remark: null, |
| | | createUser: null, |
| | | createTime: null, |
| | | updateUser: null, |
| | | updateTime: 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.title = "æ·»å å·¥èºæµç¨"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getTechnologyRoute(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "ä¿®æ¹å·¥èºæµç¨"; |
| | | }); |
| | | }, |
| | | /** æ交æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateTechnologyRoute(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addTechnologyRoute(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 delTechnologyRoute(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å é¤æå"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('main/technologyRoute/export', { |
| | | ...this.queryParams |
| | | }, `technologyRoute_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="å·¥åºç¼ç " prop="processesCode"> |
| | | <el-input |
| | | v-model="queryParams.processesCode" |
| | | placeholder="请è¾å
¥å·¥åºç¼ç " |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥åºå称" prop="processesName"> |
| | | <el-input |
| | | v-model="queryParams.processesName" |
| | | placeholder="请è¾å
¥å·¥åºå称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label-width="120" label="æ¯å¦å
³é®å·¥åº" prop="keyProcessesFlag"> |
| | | <el-input |
| | | v-model="queryParams.keyProcessesFlag" |
| | | placeholder="请è¾å
¥æ¯å¦å
³é®å·¥åº" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <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-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="['bs:technologyRouteChild: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="['bs:technologyRouteChild: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="['bs:technologyRouteChild: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="['bs:technologyRouteChild:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-close" |
| | | size="mini" |
| | | @click="handleClose" |
| | | >å
³é</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | <el-descriptions class="margin-top" :column="4" :size="size" border> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-user"></i> |
| | | å·¥èºæµç¨ç¼ç |
| | | </template> |
| | | xxxxxxxxxx |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-mobile-phone"></i> |
| | | å·¥èºæµç¨å称 |
| | | </template> |
| | | xxxxxxxxxx |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-location-outline"></i> |
| | | 产åç¼ç |
| | | </template> |
| | | xxxxxxxxxx |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-tickets"></i> |
| | | 产åå称 |
| | | </template> |
| | | xxxxxxxxxx |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-table v-loading="loading" :data="technologyRouteChildList" @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="processesCode"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥åºå称" align="center" prop="processesName"> |
| | | </el-table-column> |
| | | <el-table-column label="å 工顺åº" align="center" prop="stepNo"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸ä¸éå·¥åº" align="center" prop="nextProcess"> |
| | | </el-table-column> |
| | | <el-table-column label="ä¸ä¸ä¸éå·¥åºå
³ç³»" align="center" prop="nextProcessBond"> |
| | | </el-table-column> |
| | | <el-table-column label="æ¯å¦å
³é®å·¥åº" align="center" prop="keyProcessesFlag"> |
| | | </el-table-column> |
| | | <el-table-column label="åå¤æ¶é´" align="center" prop="preparationTime"> |
| | | </el-table-column> |
| | | <el-table-column label="çå¾
æ¶é´" align="center" prop="waitTime"> |
| | | </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="remark"> |
| | | </el-table-column> |
| | | <el-table-column label="å·¥èºæµç¨ç¼ç " align="center" prop="routeCode"> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['bs:technologyRouteChild:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['bs:technologyRouteChild:remove']" |
| | | >å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯å¯¹è¯æ¡ --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="å·¥åºç¼ç " prop="processesCode"> |
| | | <el-input v-model="form.processesCode" placeholder="请è¾å
¥å·¥åºç¼ç " /> |
| | | </el-form-item> |
| | | <el-form-item label="å·¥åºå称" prop="processesName"> |
| | | <el-input v-model="form.processesName" placeholder="请è¾å
¥å·¥åºå称" /> |
| | | </el-form-item> |
| | | <el-form-item label="å 工顺åº" prop="stepNo"> |
| | | <el-input v-model="form.stepNo" placeholder="请è¾å
¥å 工顺åº" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¸éå·¥åº" prop="nextProcess"> |
| | | <el-input v-model="form.nextProcess" placeholder="请è¾å
¥ä¸ä¸éå·¥åº" /> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸ä¸ä¸éå·¥åºå
³ç³»" prop="nextProcessBond"> |
| | | <el-input v-model="form.nextProcessBond" placeholder="请è¾å
¥ä¸ä¸ä¸éå·¥åºå
³ç³»" /> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦å
³é®å·¥åº" prop="keyProcessesFlag"> |
| | | <el-input v-model="form.keyProcessesFlag" placeholder="请è¾å
¥æ¯å¦å
³é®å·¥åº" /> |
| | | </el-form-item> |
| | | <el-form-item label="åå¤æ¶é´" prop="preparationTime"> |
| | | <el-input v-model="form.preparationTime" placeholder="请è¾å
¥åå¤æ¶é´" /> |
| | | </el-form-item> |
| | | <el-form-item label="çå¾
æ¶é´" prop="waitTime"> |
| | | <el-input v-model="form.waitTime" placeholder="请è¾å
¥çå¾
æ¶é´" /> |
| | | </el-form-item> |
| | | <el-form-item label="å¤æ³¨" prop="remark"> |
| | | <el-input v-model="form.remark" 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 { listTechnologyRouteChild, getTechnologyRouteChild, delTechnologyRouteChild, addTechnologyRouteChild, updateTechnologyRouteChild } from "@/api/main/bs/technologyRouteChild/technologyRouteChild"; |
| | | |
| | | export default { |
| | | name: "TechnologyRouteChild", |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | loading: true, |
| | | // éä¸æ°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // å·¥èºè·¯çº¿åä¿¡æ¯è¡¨æ ¼æ°æ® |
| | | technologyRouteChildList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | processesCode: null, |
| | | processesName: null, |
| | | keyProcessesFlag: null, |
| | | routeCode: undefined, |
| | | |
| | | }, |
| | | // 表ååæ° |
| | | form: {}, |
| | | // 表åæ ¡éª |
| | | rules: { |
| | | id: [ |
| | | { required: true, message: "主é®idä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | processesCode: [ |
| | | { required: true, message: "å·¥åºç¼ç ä¸è½ä¸ºç©º", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.$route.query) |
| | | this.queryParams.routeCode = this.$route.query.routeCode |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** è¿åæé®æä½ */ |
| | | handleClose() { |
| | | const obj = { path: "/main/technologyRoute" }; |
| | | this.$tab.closeOpenPage(obj); |
| | | }, |
| | | /** æ¥è¯¢å·¥èºè·¯çº¿åä¿¡æ¯å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listTechnologyRouteChild(this.queryParams).then(response => { |
| | | this.technologyRouteChildList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | processesCode: null, |
| | | processesName: null, |
| | | stepNo: null, |
| | | nextProcess: null, |
| | | nextProcessBond: null, |
| | | keyProcessesFlag: null, |
| | | preparationTime: null, |
| | | waitTime: null, |
| | | createUser: null, |
| | | createTime: null, |
| | | updateUser: null, |
| | | updateTime: null, |
| | | remark: null, |
| | | routeCode: 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.title = "æ·»å å·¥èºè·¯çº¿åä¿¡æ¯"; |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getTechnologyRouteChild(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "ä¿®æ¹å·¥èºè·¯çº¿åä¿¡æ¯"; |
| | | }); |
| | | }, |
| | | /** æ交æé® */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateTechnologyRouteChild(this.form).then(response => { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addTechnologyRouteChild(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 delTechnologyRouteChild(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å é¤æå"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('bs/technologyRouteChild/export', { |
| | | ...this.queryParams |
| | | }, `technologyRouteChild_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |