添加基础生产代码
This commit is contained in:
		
							
								
								
									
										1
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -220,6 +220,7 @@ | ||||
|         <module>ruoyi-quartz</module> | ||||
|         <module>ruoyi-generator</module> | ||||
|         <module>ruoyi-common</module> | ||||
|         <module>productManager</module> | ||||
|     </modules> | ||||
|     <packaging>pom</packaging> | ||||
|  | ||||
|   | ||||
							
								
								
									
										33
									
								
								productManager/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								productManager/pom.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||||
|          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||
|     <parent> | ||||
|         <artifactId>ruoyi</artifactId> | ||||
|         <groupId>com.ruoyi</groupId> | ||||
|         <version>3.7.0</version> | ||||
|     </parent> | ||||
|     <modelVersion>4.0.0</modelVersion> | ||||
|  | ||||
|     <artifactId>productManager</artifactId> | ||||
|     <dependencies> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework</groupId> | ||||
|             <artifactId>spring-web</artifactId> | ||||
|             <version>5.3.10</version> | ||||
|             <scope>compile</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>ruoyi-common</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>io.swagger</groupId> | ||||
|             <artifactId>swagger-annotations</artifactId> | ||||
|             <version>1.6.2</version> | ||||
|             <scope>compile</scope> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|  | ||||
|  | ||||
| </project> | ||||
| @@ -0,0 +1,112 @@ | ||||
| package com.ruoyi.productionManager.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.ruoyi.common.annotation.Excel; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 标准信息对象 standard_info | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  * @date 2021-10-13 | ||||
|  */ | ||||
| public class StandardInfo extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 标准id */ | ||||
|     private Long standardId; | ||||
|  | ||||
|     /** 区域分类 */ | ||||
|     @Excel(name = "区域分类") | ||||
|     private String areaCategory; | ||||
|  | ||||
|     /** 标准名称 */ | ||||
|     @Excel(name = "标准名称") | ||||
|     private String standardName; | ||||
|  | ||||
|     /** 标准类型 */ | ||||
|     @Excel(name = "标准类型") | ||||
|     private String standardCategory; | ||||
|  | ||||
|     /** 实施日期 */ | ||||
|     @Excel(name = "实施日期") | ||||
|     private String standardBeginDate; | ||||
|  | ||||
|     /** 标准状态 */ | ||||
|     @Excel(name = "标准状态") | ||||
|     private String standardStatus; | ||||
|  | ||||
|     public void setStandardId(Long standardId)  | ||||
|     { | ||||
|         this.standardId = standardId; | ||||
|     } | ||||
|  | ||||
|     public Long getStandardId()  | ||||
|     { | ||||
|         return standardId; | ||||
|     } | ||||
|     public void setAreaCategory(String areaCategory)  | ||||
|     { | ||||
|         this.areaCategory = areaCategory; | ||||
|     } | ||||
|  | ||||
|     public String getAreaCategory()  | ||||
|     { | ||||
|         return areaCategory; | ||||
|     } | ||||
|     public void setStandardName(String standardName)  | ||||
|     { | ||||
|         this.standardName = standardName; | ||||
|     } | ||||
|  | ||||
|     public String getStandardName()  | ||||
|     { | ||||
|         return standardName; | ||||
|     } | ||||
|     public void setStandardCategory(String standardCategory)  | ||||
|     { | ||||
|         this.standardCategory = standardCategory; | ||||
|     } | ||||
|  | ||||
|     public String getStandardCategory()  | ||||
|     { | ||||
|         return standardCategory; | ||||
|     } | ||||
|     public void setStandardBeginDate(String standardBeginDate)  | ||||
|     { | ||||
|         this.standardBeginDate = standardBeginDate; | ||||
|     } | ||||
|  | ||||
|     public String getStandardBeginDate()  | ||||
|     { | ||||
|         return standardBeginDate; | ||||
|     } | ||||
|     public void setStandardStatus(String standardStatus)  | ||||
|     { | ||||
|         this.standardStatus = standardStatus; | ||||
|     } | ||||
|  | ||||
|     public String getStandardStatus()  | ||||
|     { | ||||
|         return standardStatus; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|             .append("standardId", getStandardId()) | ||||
|             .append("areaCategory", getAreaCategory()) | ||||
|             .append("standardName", getStandardName()) | ||||
|             .append("standardCategory", getStandardCategory()) | ||||
|             .append("standardBeginDate", getStandardBeginDate()) | ||||
|             .append("standardStatus", getStandardStatus()) | ||||
|             .append("createBy", getCreateBy()) | ||||
|             .append("createTime", getCreateTime()) | ||||
|             .append("updateBy", getUpdateBy()) | ||||
|             .append("updateTime", getUpdateTime()) | ||||
|             .append("remark", getRemark()) | ||||
|             .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.ruoyi.productionManager.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.ruoyi.productionManager.domain.StandardInfo; | ||||
|  | ||||
| /** | ||||
|  * 标准信息Mapper接口 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  * @date 2021-10-13 | ||||
|  */ | ||||
| public interface StandardInfoMapper  | ||||
| { | ||||
|     /** | ||||
|      * 查询标准信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 标准信息 | ||||
|      */ | ||||
|     public StandardInfo selectStandardInfoByStandardId(Long standardId); | ||||
|  | ||||
|     /** | ||||
|      * 查询标准信息列表 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 标准信息集合 | ||||
|      */ | ||||
|     public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 新增标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertStandardInfo(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 修改标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateStandardInfo(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 删除标准信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteStandardInfoByStandardId(Long standardId); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除标准信息 | ||||
|      *  | ||||
|      * @param standardIds 需要删除的数据主键集合 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteStandardInfoByStandardIds(Long[] standardIds); | ||||
| } | ||||
| @@ -0,0 +1,62 @@ | ||||
| package com.ruoyi.productionManager.service; | ||||
|  | ||||
| import com.ruoyi.productionManager.domain.StandardInfo; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 标准信息Service接口 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  * @date 2021-10-13 | ||||
|  */ | ||||
| public interface IStandardInfoService  | ||||
| { | ||||
|     /** | ||||
|      * 查询标准信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 标准信息 | ||||
|      */ | ||||
|     public StandardInfo selectStandardInfoByStandardId(Long standardId); | ||||
|  | ||||
|     /** | ||||
|      * 查询标准信息列表 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 标准信息集合 | ||||
|      */ | ||||
|     public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 新增标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertStandardInfo(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 修改标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateStandardInfo(StandardInfo standardInfo); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除标准信息 | ||||
|      *  | ||||
|      * @param standardIds 需要删除的标准信息主键集合 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteStandardInfoByStandardIds(Long[] standardIds); | ||||
|  | ||||
|     /** | ||||
|      * 删除标准信息信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteStandardInfoByStandardId(Long standardId); | ||||
| } | ||||
| @@ -0,0 +1,96 @@ | ||||
| package com.ruoyi.productionManager.service.impl; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.ruoyi.common.utils.DateUtils; | ||||
| import com.ruoyi.productionManager.domain.StandardInfo; | ||||
| import com.ruoyi.productionManager.mapper.StandardInfoMapper; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| import com.ruoyi.productionManager.service.IStandardInfoService; | ||||
|  | ||||
| /** | ||||
|  * 标准信息Service业务层处理 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  * @date 2021-10-13 | ||||
|  */ | ||||
| @Service | ||||
| public class StandardInfoServiceImpl implements IStandardInfoService  | ||||
| { | ||||
|     @Autowired | ||||
|     private StandardInfoMapper standardInfoMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询标准信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 标准信息 | ||||
|      */ | ||||
|     @Override | ||||
|     public StandardInfo selectStandardInfoByStandardId(Long standardId) | ||||
|     { | ||||
|         return standardInfoMapper.selectStandardInfoByStandardId(standardId); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询标准信息列表 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 标准信息 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo) | ||||
|     { | ||||
|         return standardInfoMapper.selectStandardInfoList(standardInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertStandardInfo(StandardInfo standardInfo) | ||||
|     { | ||||
|         standardInfo.setCreateTime(DateUtils.getNowDate()); | ||||
|         return standardInfoMapper.insertStandardInfo(standardInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改标准信息 | ||||
|      *  | ||||
|      * @param standardInfo 标准信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateStandardInfo(StandardInfo standardInfo) | ||||
|     { | ||||
|         standardInfo.setUpdateTime(DateUtils.getNowDate()); | ||||
|         return standardInfoMapper.updateStandardInfo(standardInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除标准信息 | ||||
|      *  | ||||
|      * @param standardIds 需要删除的标准信息主键 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteStandardInfoByStandardIds(Long[] standardIds) | ||||
|     { | ||||
|         return standardInfoMapper.deleteStandardInfoByStandardIds(standardIds); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除标准信息信息 | ||||
|      *  | ||||
|      * @param standardId 标准信息主键 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteStandardInfoByStandardId(Long standardId) | ||||
|     { | ||||
|         return standardInfoMapper.deleteStandardInfoByStandardId(standardId); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,96 @@ | ||||
| <?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.ruoyi.productionManager.mapper.StandardInfoMapper"> | ||||
|      | ||||
|     <resultMap type="StandardInfo" id="StandardInfoResult"> | ||||
|         <result property="standardId"    column="standard_id"    /> | ||||
|         <result property="areaCategory"    column="area_category"    /> | ||||
|         <result property="standardName"    column="standard_name"    /> | ||||
|         <result property="standardCategory"    column="standard_category"    /> | ||||
|         <result property="standardBeginDate"    column="standard_begin_date"    /> | ||||
|         <result property="standardStatus"    column="standard_status"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="updateBy"    column="update_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
|         <result property="remark"    column="remark"    /> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectStandardInfoVo"> | ||||
|         select standard_id, area_category, standard_name, standard_category, standard_begin_date, standard_status, create_by, create_time, update_by, update_time, remark from standard_info | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectStandardInfoList" parameterType="StandardInfo" resultMap="StandardInfoResult"> | ||||
|         <include refid="selectStandardInfoVo"/> | ||||
|         <where>   | ||||
|             <if test="areaCategory != null  and areaCategory != ''"> and area_category = #{areaCategory}</if> | ||||
|             <if test="standardName != null  and standardName != ''"> and standard_name like concat('%', #{standardName}, '%')</if> | ||||
|             <if test="standardCategory != null  and standardCategory != ''"> and standard_category = #{standardCategory}</if> | ||||
|             <if test="standardBeginDate != null  and standardBeginDate != ''"> and standard_begin_date = #{standardBeginDate}</if> | ||||
|             <if test="standardStatus != null  and standardStatus != ''"> and standard_status = #{standardStatus}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|      | ||||
|     <select id="selectStandardInfoByStandardId" parameterType="Long" resultMap="StandardInfoResult"> | ||||
|         <include refid="selectStandardInfoVo"/> | ||||
|         where standard_id = #{standardId} | ||||
|     </select> | ||||
|          | ||||
|     <insert id="insertStandardInfo" parameterType="StandardInfo" useGeneratedKeys="true" keyProperty="standardId"> | ||||
|         insert into standard_info | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="areaCategory != null and areaCategory != ''">area_category,</if> | ||||
|             <if test="standardName != null and standardName != ''">standard_name,</if> | ||||
|             <if test="standardCategory != null and standardCategory != ''">standard_category,</if> | ||||
|             <if test="standardBeginDate != null">standard_begin_date,</if> | ||||
|             <if test="standardStatus != null and standardStatus != ''">standard_status,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="updateBy != null">update_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
|             <if test="remark != null">remark,</if> | ||||
|          </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="areaCategory != null and areaCategory != ''">#{areaCategory},</if> | ||||
|             <if test="standardName != null and standardName != ''">#{standardName},</if> | ||||
|             <if test="standardCategory != null and standardCategory != ''">#{standardCategory},</if> | ||||
|             <if test="standardBeginDate != null">#{standardBeginDate},</if> | ||||
|             <if test="standardStatus != null and standardStatus != ''">#{standardStatus},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="updateBy != null">#{updateBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
|             <if test="remark != null">#{remark},</if> | ||||
|          </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateStandardInfo" parameterType="StandardInfo"> | ||||
|         update standard_info | ||||
|         <trim prefix="SET" suffixOverrides=","> | ||||
|             <if test="areaCategory != null and areaCategory != ''">area_category = #{areaCategory},</if> | ||||
|             <if test="standardName != null and standardName != ''">standard_name = #{standardName},</if> | ||||
|             <if test="standardCategory != null and standardCategory != ''">standard_category = #{standardCategory},</if> | ||||
|             <if test="standardBeginDate != null">standard_begin_date = #{standardBeginDate},</if> | ||||
|             <if test="standardStatus != null and standardStatus != ''">standard_status = #{standardStatus},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="updateBy != null">update_by = #{updateBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|         </trim> | ||||
|         where standard_id = #{standardId} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteStandardInfoByStandardId" parameterType="Long"> | ||||
|         delete from standard_info where standard_id = #{standardId} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteStandardInfoByStandardIds" parameterType="String"> | ||||
|         delete from standard_info where standard_id in  | ||||
|         <foreach item="standardId" collection="array" open="(" separator="," close=")"> | ||||
|             #{standardId} | ||||
|         </foreach> | ||||
|     </delete> | ||||
| </mapper> | ||||
| @@ -60,6 +60,12 @@ | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>ruoyi-generator</artifactId> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.ruoyi</groupId> | ||||
|             <artifactId>productManager</artifactId> | ||||
|             <version>3.7.0</version> | ||||
|             <scope>compile</scope> | ||||
|         </dependency> | ||||
|  | ||||
|     </dependencies> | ||||
|  | ||||
|   | ||||
| @@ -0,0 +1,103 @@ | ||||
| package com.ruoyi.web.controller.productionManager; | ||||
|  | ||||
| import java.util.List; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.PostMapping; | ||||
| import org.springframework.web.bind.annotation.PutMapping; | ||||
| import org.springframework.web.bind.annotation.DeleteMapping; | ||||
| import org.springframework.web.bind.annotation.PathVariable; | ||||
| import org.springframework.web.bind.annotation.RequestBody; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
| import com.ruoyi.common.annotation.Log; | ||||
| import com.ruoyi.common.core.controller.BaseController; | ||||
| import com.ruoyi.common.core.domain.AjaxResult; | ||||
| import com.ruoyi.common.enums.BusinessType; | ||||
| import com.ruoyi.productionManager.domain.StandardInfo; | ||||
| import com.ruoyi.productionManager.service.IStandardInfoService; | ||||
| import com.ruoyi.common.utils.poi.ExcelUtil; | ||||
| import com.ruoyi.common.core.page.TableDataInfo; | ||||
|  | ||||
| /** | ||||
|  * 标准信息Controller | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  * @date 2021-10-13 | ||||
|  */ | ||||
| @RestController | ||||
| @RequestMapping("/productionManager/standard") | ||||
| public class StandardInfoController extends BaseController | ||||
| { | ||||
|     @Autowired | ||||
|     private IStandardInfoService standardInfoService; | ||||
|  | ||||
|     /** | ||||
|      * 查询标准信息列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:list')") | ||||
|     @GetMapping("/list") | ||||
|     public TableDataInfo list(StandardInfo standardInfo) | ||||
|     { | ||||
|         startPage(); | ||||
|         List<StandardInfo> list = standardInfoService.selectStandardInfoList(standardInfo); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 导出标准信息列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:export')") | ||||
|     @Log(title = "标准信息", businessType = BusinessType.EXPORT) | ||||
|     @GetMapping("/export") | ||||
|     public AjaxResult export(StandardInfo standardInfo) | ||||
|     { | ||||
|         List<StandardInfo> list = standardInfoService.selectStandardInfoList(standardInfo); | ||||
|         ExcelUtil<StandardInfo> util = new ExcelUtil<StandardInfo>(StandardInfo.class); | ||||
|         return util.exportExcel(list, "标准信息数据"); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取标准信息详细信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:query')") | ||||
|     @GetMapping(value = "/{standardId}") | ||||
|     public AjaxResult getInfo(@PathVariable("standardId") Long standardId) | ||||
|     { | ||||
|         return AjaxResult.success(standardInfoService.selectStandardInfoByStandardId(standardId)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增标准信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:add')") | ||||
|     @Log(title = "标准信息", businessType = BusinessType.INSERT) | ||||
|     @PostMapping | ||||
|     public AjaxResult add(@RequestBody StandardInfo standardInfo) | ||||
|     { | ||||
|         return toAjax(standardInfoService.insertStandardInfo(standardInfo)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改标准信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:edit')") | ||||
|     @Log(title = "标准信息", businessType = BusinessType.UPDATE) | ||||
|     @PutMapping | ||||
|     public AjaxResult edit(@RequestBody StandardInfo standardInfo) | ||||
|     { | ||||
|         return toAjax(standardInfoService.updateStandardInfo(standardInfo)); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除标准信息 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('productionManager:standard:remove')") | ||||
|     @Log(title = "标准信息", businessType = BusinessType.DELETE) | ||||
| 	@DeleteMapping("/{standardIds}") | ||||
|     public AjaxResult remove(@PathVariable Long[] standardIds) | ||||
|     { | ||||
|         return toAjax(standardInfoService.deleteStandardInfoByStandardIds(standardIds)); | ||||
|     } | ||||
| } | ||||
| @@ -3,7 +3,7 @@ gen: | ||||
|   # 作者 | ||||
|   author: ruoyi | ||||
|   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool | ||||
|   packageName: com.ruoyi.system | ||||
|   packageName: com.ruoyi.productionManager | ||||
|   # 自动去除表前缀,默认是false | ||||
|   autoRemovePre: false | ||||
|   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user