¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.controller; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.service.FormulaInfoService; |
| | | import cn.stylefeng.roses.core.base.controller.BaseController; |
| | | import cn.stylefeng.roses.kernel.model.response.ResponseData; |
| | | import cn.stylefeng.roses.core.mutidatasource.annotion.DataSource; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | |
| | | |
| | | /** |
| | | * é
æ¹é
ç½®æ§å¶å¨ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 15:39:01 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/formulaInfo") |
| | | public class FormulaInfoController extends BaseController { |
| | | |
| | | private String PREFIX = "/modular/bs/formulaInfo"; |
| | | |
| | | @Autowired |
| | | private FormulaInfoService formulaInfoService; |
| | | |
| | | /** |
| | | * 跳转å°ä¸»é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("") |
| | | public String index() { |
| | | return PREFIX + "/formulaInfo.html"; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/add") |
| | | public String add() { |
| | | return PREFIX + "/formulaInfo_add.html"; |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/edit") |
| | | public String edit() { |
| | | return PREFIX + "/formulaInfo_edit.html"; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/addItem") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData addItem(FormulaInfoParam formulaInfoParam) { |
| | | this.formulaInfoService.add(formulaInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/editItem") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData editItem(FormulaInfoParam formulaInfoParam) { |
| | | this.formulaInfoService.update(formulaInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/delete") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData delete(FormulaInfoParam formulaInfoParam) { |
| | | this.formulaInfoService.delete(formulaInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥ç详æ
æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/detail") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData detail(FormulaInfoParam formulaInfoParam) { |
| | | FormulaInfo detail = this.formulaInfoService.getById(formulaInfoParam.getId()); |
| | | return ResponseData.success(detail); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/list") |
| | | @DataSource(name = "self") |
| | | public LayuiPageInfo list(FormulaInfoParam formulaInfoParam) { |
| | | return this.formulaInfoService.findPageBySpec(formulaInfoParam); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @TableName("bs_formula_info") |
| | | public class FormulaInfo implements Serializable { |
| | | |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 主é®id |
| | | */ |
| | | @TableId(value = "id", type = IdType.ID_WORKER) |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | @TableField("formula_code") |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * é
æ¹å称 |
| | | */ |
| | | @TableField("formula_name") |
| | | private String formulaName; |
| | | |
| | | /** |
| | | * ç¶æ(åå
¸) |
| | | */ |
| | | @TableField("status") |
| | | private String status; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | @TableField("spare_field_1") |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | @TableField("spare_field_2") |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | @TableField("remark") |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | @TableField(value = "create_user", fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(value = "create_time", fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getFormulaCode() { |
| | | return formulaCode; |
| | | } |
| | | |
| | | public void setFormulaCode(String formulaCode) { |
| | | this.formulaCode = formulaCode; |
| | | } |
| | | |
| | | public String getFormulaName() { |
| | | return formulaName; |
| | | } |
| | | |
| | | public void setFormulaName(String formulaName) { |
| | | this.formulaName = formulaName; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getSpareField1() { |
| | | return spareField1; |
| | | } |
| | | |
| | | public void setSpareField1(String spareField1) { |
| | | this.spareField1 = spareField1; |
| | | } |
| | | |
| | | public String getSpareField2() { |
| | | return spareField2; |
| | | } |
| | | |
| | | public void setSpareField2(String spareField2) { |
| | | this.spareField2 = spareField2; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getCreateUser() { |
| | | return createUser; |
| | | } |
| | | |
| | | public void setCreateUser(String createUser) { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(String updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "FormulaInfo{" + |
| | | "id=" + id + |
| | | ", formulaCode=" + formulaCode + |
| | | ", formulaName=" + formulaName + |
| | | ", status=" + status + |
| | | ", spareField1=" + spareField1 + |
| | | ", spareField2=" + spareField2 + |
| | | ", remark=" + remark + |
| | | ", createUser=" + createUser + |
| | | ", createTime=" + createTime + |
| | | ", updateUser=" + updateUser + |
| | | ", updateTime=" + updateTime + |
| | | "}"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.mapper; |
| | | |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.result.FormulaInfoResult; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | public interface FormulaInfoMapper extends BaseMapper<FormulaInfo> { |
| | | |
| | | /** |
| | | * è·åå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<FormulaInfoResult> customList(@Param("paramCondition") FormulaInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åmapå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<Map<String, Object>> customMapList(@Param("paramCondition") FormulaInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åå页å®ä½å表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | Page<FormulaInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") FormulaInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åå页mapå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") FormulaInfoParam paramCondition); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="cn.stylefeng.guns.modular.zsx.bs.formula.mapper.FormulaInfoMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo"> |
| | | <id column="id" property="id" /> |
| | | <result column="formula_code" property="formulaCode" /> |
| | | <result column="formula_name" property="formulaName" /> |
| | | <result column="status" property="status" /> |
| | | <result column="spare_field_1" property="spareField1" /> |
| | | <result column="spare_field_2" property="spareField2" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | <!-- éç¨æ¥è¯¢ç»æå --> |
| | | <sql id="Base_Column_List"> |
| | | id AS "id", formula_code AS "formulaCode", formula_name AS "formulaName", status AS "status", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", remark AS "remark", create_user AS "createUser", create_time AS "createTime", update_user AS "updateUser", update_time AS "updateTime" |
| | | </sql> |
| | | |
| | | |
| | | <select id="customList" resultType="cn.stylefeng.guns.modular.zsx.bs.formula.model.result.FormulaInfoResult" parameterType="cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.formulaName != null and paramCondition.formulaName != ''"> |
| | | and formula_name like CONCAT('%',#{paramCondition.formulaName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.formulaName != null and paramCondition.formulaName != ''"> |
| | | and formula_name like CONCAT('%',#{paramCondition.formulaName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customPageList" resultType="cn.stylefeng.guns.modular.zsx.bs.formula.model.result.FormulaInfoResult" parameterType="cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.formulaName != null and paramCondition.formulaName != ''"> |
| | | and formula_name like CONCAT('%',#{paramCondition.formulaName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.formulaName != null and paramCondition.formulaName != ''"> |
| | | and formula_name like CONCAT('%',#{paramCondition.formulaName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.model.params; |
| | | |
| | | import lombok.Data; |
| | | import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam; |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Data |
| | | public class FormulaInfoParam implements Serializable, BaseValidatingParam { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * 主é®id |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * é
æ¹å称 |
| | | */ |
| | | private String formulaName; |
| | | |
| | | /** |
| | | * ç¶æ(åå
¸) |
| | | */ |
| | | private String status; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | @Override |
| | | public String checkParam() { |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.model.result; |
| | | |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Data |
| | | public class FormulaInfoResult implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * 主é®id |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * é
æ¹å称 |
| | | */ |
| | | private String formulaName; |
| | | |
| | | /** |
| | | * ç¶æ(åå
¸) |
| | | */ |
| | | private String status; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.service; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.result.FormulaInfoResult; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | public interface FormulaInfoService extends IService<FormulaInfo> { |
| | | |
| | | /** |
| | | * æ°å¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void add(FormulaInfoParam param); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void delete(FormulaInfoParam param); |
| | | |
| | | /** |
| | | * æ´æ° |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void update(FormulaInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ¡æ°æ®ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | FormulaInfoResult findBySpec(FormulaInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<FormulaInfoResult> findListBySpec(FormulaInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢å页æ°æ®ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | LayuiPageInfo findPageBySpec(FormulaInfoParam param); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formula.service.impl; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory; |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.mapper.FormulaInfoMapper; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.params.FormulaInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.model.result.FormulaInfoResult; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.service.FormulaInfoService; |
| | | import cn.stylefeng.roses.core.util.ToolUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½® æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Service |
| | | public class FormulaInfoServiceImpl extends ServiceImpl<FormulaInfoMapper, FormulaInfo> implements FormulaInfoService { |
| | | |
| | | @Override |
| | | public void add(FormulaInfoParam param){ |
| | | FormulaInfo entity = getEntity(param); |
| | | this.save(entity); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(FormulaInfoParam param){ |
| | | this.removeById(getKey(param)); |
| | | } |
| | | |
| | | @Override |
| | | public void update(FormulaInfoParam param){ |
| | | FormulaInfo oldEntity = getOldEntity(param); |
| | | FormulaInfo newEntity = getEntity(param); |
| | | ToolUtil.copyProperties(newEntity, oldEntity); |
| | | this.updateById(newEntity); |
| | | } |
| | | |
| | | @Override |
| | | public FormulaInfoResult findBySpec(FormulaInfoParam param){ |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<FormulaInfoResult> findListBySpec(FormulaInfoParam param){ |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public LayuiPageInfo findPageBySpec(FormulaInfoParam param){ |
| | | Page pageContext = getPageContext(); |
| | | IPage page = this.baseMapper.customPageList(pageContext, param); |
| | | return LayuiPageFactory.createPageInfo(page); |
| | | } |
| | | |
| | | private Serializable getKey(FormulaInfoParam param){ |
| | | return param.getId(); |
| | | } |
| | | |
| | | private Page getPageContext() { |
| | | return LayuiPageFactory.defaultPage(); |
| | | } |
| | | |
| | | private FormulaInfo getOldEntity(FormulaInfoParam param) { |
| | | return this.getById(getKey(param)); |
| | | } |
| | | |
| | | private FormulaInfo getEntity(FormulaInfoParam param) { |
| | | FormulaInfo entity = new FormulaInfo(); |
| | | ToolUtil.copyProperties(param, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.controller; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.entity.FormulaInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formula.service.FormulaInfoService; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.service.FormulaChildInfoService; |
| | | import cn.stylefeng.guns.modular.zsx.bs.productBomInfo.entity.ProductBomInfo; |
| | | import cn.stylefeng.roses.core.base.controller.BaseController; |
| | | import cn.stylefeng.roses.kernel.model.exception.RequestEmptyException; |
| | | import cn.stylefeng.roses.kernel.model.response.ResponseData; |
| | | import cn.stylefeng.roses.core.mutidatasource.annotion.DataSource; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | |
| | | |
| | | /** |
| | | * é
æ¹é
ç½®åä¿¡æ¯æ§å¶å¨ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 15:45:10 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/formulaChildInfo") |
| | | public class FormulaChildInfoController extends BaseController { |
| | | |
| | | private String PREFIX = "/modular/bs/formulaChildInfo"; |
| | | |
| | | @Autowired |
| | | private FormulaChildInfoService formulaChildInfoService; |
| | | |
| | | @Autowired |
| | | private FormulaInfoService formulaInfoService; |
| | | |
| | | /** |
| | | * 跳转å°ä¸»é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("") |
| | | @DataSource(name = "self") |
| | | public String index(@RequestParam("formulaCode") String formulaCode, Model model) { |
| | | model.addAttribute("formulaInfoCode", formulaCode); |
| | | FormulaInfo formulaInfo = formulaInfoService.getOne(new QueryWrapper<FormulaInfo>().eq("formula_code", formulaCode)); |
| | | if (formulaInfo == null) { |
| | | throw new RequestEmptyException(); |
| | | } |
| | | return PREFIX + "/formulaChildInfo.html"; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/add") |
| | | @DataSource(name = "self") |
| | | public String add(@RequestParam("formulaInfoCode") String formulaCode, Model model) { |
| | | model.addAttribute("formulaInfoCode", formulaCode); |
| | | FormulaInfo formulaInfo = formulaInfoService.getOne(new QueryWrapper<FormulaInfo>().eq("formula_code", formulaCode)); |
| | | if (formulaInfo == null) { |
| | | throw new RequestEmptyException(); |
| | | } |
| | | return PREFIX + "/formulaChildInfo_add.html"; |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾é¡µé¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/edit") |
| | | public String edit() { |
| | | return PREFIX + "/formulaChildInfo_edit.html"; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/addItem") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData addItem(FormulaChildInfoParam formulaChildInfoParam) { |
| | | this.formulaChildInfoService.add(formulaChildInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/editItem") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData editItem(FormulaChildInfoParam formulaChildInfoParam) { |
| | | this.formulaChildInfoService.update(formulaChildInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/delete") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData delete(FormulaChildInfoParam formulaChildInfoParam) { |
| | | this.formulaChildInfoService.delete(formulaChildInfoParam); |
| | | return ResponseData.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥ç详æ
æ¥å£ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @RequestMapping("/detail") |
| | | @ResponseBody |
| | | @DataSource(name = "self") |
| | | public ResponseData detail(FormulaChildInfoParam formulaChildInfoParam) { |
| | | FormulaChildInfo detail = this.formulaChildInfoService.getById(formulaChildInfoParam.getId()); |
| | | return ResponseData.success(detail); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping("/list") |
| | | @DataSource(name = "self") |
| | | public LayuiPageInfo list(FormulaChildInfoParam formulaChildInfoParam) { |
| | | return this.formulaChildInfoService.findPageBySpec(formulaChildInfoParam); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @TableName("bs_formula_child_info") |
| | | public class FormulaChildInfo implements Serializable { |
| | | |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.ID_WORKER) |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | @TableField("formula_code") |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * 产线 |
| | | */ |
| | | @TableField("line_code") |
| | | private String lineCode; |
| | | |
| | | /** |
| | | * å·¥ä½ |
| | | */ |
| | | @TableField("location_code") |
| | | private String locationCode; |
| | | |
| | | /** |
| | | * 产åç¼å· |
| | | */ |
| | | @TableField("product_code") |
| | | private String productCode; |
| | | |
| | | /** |
| | | * æä½å
容 |
| | | */ |
| | | @TableField("operation_steps") |
| | | private String operationSteps; |
| | | |
| | | /** |
| | | * ææ¯è¦æ± |
| | | */ |
| | | @TableField("tech_requirement") |
| | | private String techRequirement; |
| | | |
| | | /** |
| | | * ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼ |
| | | */ |
| | | @TableField("operation_type") |
| | | private String operationType; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | @TableField("step_sort") |
| | | private String stepSort; |
| | | |
| | | /** |
| | | * åæ°ç¼ç |
| | | */ |
| | | @TableField("param_code") |
| | | private String paramCode; |
| | | |
| | | /** |
| | | * ç©æç¼ç |
| | | */ |
| | | @TableField("material_code") |
| | | private String materialCode; |
| | | |
| | | /** |
| | | * å¾ç |
| | | */ |
| | | @TableField("picture") |
| | | private String picture; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | @TableField("remarks") |
| | | private String remarks; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | @TableField("spare_field_1") |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | @TableField("spare_field_2") |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * é¢çå段3 |
| | | */ |
| | | @TableField("spare_field_3") |
| | | private String spareField3; |
| | | |
| | | /** |
| | | * é¢çå段4 |
| | | */ |
| | | @TableField("spare_field_4") |
| | | private String spareField4; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | @TableField(value = "create_user", fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(value = "create_time", fill = FieldFill.INSERT) |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | @TableField(value = "update_user", fill = FieldFill.UPDATE) |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | @TableField(value = "update_time", fill = FieldFill.UPDATE) |
| | | private Date updateTime; |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getFormulaCode() { |
| | | return formulaCode; |
| | | } |
| | | |
| | | public void setFormulaCode(String formulaCode) { |
| | | this.formulaCode = formulaCode; |
| | | } |
| | | |
| | | public String getLineCode() { |
| | | return lineCode; |
| | | } |
| | | |
| | | public void setLineCode(String lineCode) { |
| | | this.lineCode = lineCode; |
| | | } |
| | | |
| | | public String getLocationCode() { |
| | | return locationCode; |
| | | } |
| | | |
| | | public void setLocationCode(String locationCode) { |
| | | this.locationCode = locationCode; |
| | | } |
| | | |
| | | public String getProductCode() { |
| | | return productCode; |
| | | } |
| | | |
| | | public void setProductCode(String productCode) { |
| | | this.productCode = productCode; |
| | | } |
| | | |
| | | public String getOperationSteps() { |
| | | return operationSteps; |
| | | } |
| | | |
| | | public void setOperationSteps(String operationSteps) { |
| | | this.operationSteps = operationSteps; |
| | | } |
| | | |
| | | public String getTechRequirement() { |
| | | return techRequirement; |
| | | } |
| | | |
| | | public void setTechRequirement(String techRequirement) { |
| | | this.techRequirement = techRequirement; |
| | | } |
| | | |
| | | public String getOperationType() { |
| | | return operationType; |
| | | } |
| | | |
| | | public void setOperationType(String operationType) { |
| | | this.operationType = operationType; |
| | | } |
| | | |
| | | public String getStepSort() { |
| | | return stepSort; |
| | | } |
| | | |
| | | public void setStepSort(String stepSort) { |
| | | this.stepSort = stepSort; |
| | | } |
| | | |
| | | public String getParamCode() { |
| | | return paramCode; |
| | | } |
| | | |
| | | public void setParamCode(String paramCode) { |
| | | this.paramCode = paramCode; |
| | | } |
| | | |
| | | public String getMaterialCode() { |
| | | return materialCode; |
| | | } |
| | | |
| | | public void setMaterialCode(String materialCode) { |
| | | this.materialCode = materialCode; |
| | | } |
| | | |
| | | public String getPicture() { |
| | | return picture; |
| | | } |
| | | |
| | | public void setPicture(String picture) { |
| | | this.picture = picture; |
| | | } |
| | | |
| | | public String getRemarks() { |
| | | return remarks; |
| | | } |
| | | |
| | | public void setRemarks(String remarks) { |
| | | this.remarks = remarks; |
| | | } |
| | | |
| | | public String getSpareField1() { |
| | | return spareField1; |
| | | } |
| | | |
| | | public void setSpareField1(String spareField1) { |
| | | this.spareField1 = spareField1; |
| | | } |
| | | |
| | | public String getSpareField2() { |
| | | return spareField2; |
| | | } |
| | | |
| | | public void setSpareField2(String spareField2) { |
| | | this.spareField2 = spareField2; |
| | | } |
| | | |
| | | public String getSpareField3() { |
| | | return spareField3; |
| | | } |
| | | |
| | | public void setSpareField3(String spareField3) { |
| | | this.spareField3 = spareField3; |
| | | } |
| | | |
| | | public String getSpareField4() { |
| | | return spareField4; |
| | | } |
| | | |
| | | public void setSpareField4(String spareField4) { |
| | | this.spareField4 = spareField4; |
| | | } |
| | | |
| | | public String getCreateUser() { |
| | | return createUser; |
| | | } |
| | | |
| | | public void setCreateUser(String createUser) { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(String updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "FormulaChildInfo{" + |
| | | "id=" + id + |
| | | ", formulaCode=" + formulaCode + |
| | | ", lineCode=" + lineCode + |
| | | ", locationCode=" + locationCode + |
| | | ", productCode=" + productCode + |
| | | ", operationSteps=" + operationSteps + |
| | | ", techRequirement=" + techRequirement + |
| | | ", operationType=" + operationType + |
| | | ", stepSort=" + stepSort + |
| | | ", paramCode=" + paramCode + |
| | | ", materialCode=" + materialCode + |
| | | ", picture=" + picture + |
| | | ", remarks=" + remarks + |
| | | ", spareField1=" + spareField1 + |
| | | ", spareField2=" + spareField2 + |
| | | ", spareField3=" + spareField3 + |
| | | ", spareField4=" + spareField4 + |
| | | ", createUser=" + createUser + |
| | | ", createTime=" + createTime + |
| | | ", updateUser=" + updateUser + |
| | | ", updateTime=" + updateTime + |
| | | "}"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.mapper; |
| | | |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result.FormulaChildInfoResult; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | public interface FormulaChildInfoMapper extends BaseMapper<FormulaChildInfo> { |
| | | |
| | | /** |
| | | * è·åå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<FormulaChildInfoResult> customList(@Param("paramCondition") FormulaChildInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åmapå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<Map<String, Object>> customMapList(@Param("paramCondition") FormulaChildInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åå页å®ä½å表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | Page<FormulaChildInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") FormulaChildInfoParam paramCondition); |
| | | |
| | | /** |
| | | * è·åå页mapå表 |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") FormulaChildInfoParam paramCondition); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="cn.stylefeng.guns.modular.zsx.bs.formulaChild.mapper.FormulaChildInfoMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo"> |
| | | <id column="id" property="id" /> |
| | | <result column="formula_code" property="formulaCode" /> |
| | | <result column="line_code" property="lineCode" /> |
| | | <result column="location_code" property="locationCode" /> |
| | | <result column="product_code" property="productCode" /> |
| | | <result column="operation_steps" property="operationSteps" /> |
| | | <result column="tech_requirement" property="techRequirement" /> |
| | | <result column="operation_type" property="operationType" /> |
| | | <result column="step_sort" property="stepSort" /> |
| | | <result column="param_code" property="paramCode" /> |
| | | <result column="material_code" property="materialCode" /> |
| | | <result column="picture" property="picture" /> |
| | | <result column="remarks" property="remarks" /> |
| | | <result column="spare_field_1" property="spareField1" /> |
| | | <result column="spare_field_2" property="spareField2" /> |
| | | <result column="spare_field_3" property="spareField3" /> |
| | | <result column="spare_field_4" property="spareField4" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | <!-- éç¨æ¥è¯¢ç»æå --> |
| | | <sql id="Base_Column_List"> |
| | | id AS "id", formula_code AS "formulaCode", line_code AS "lineCode", location_code AS "locationCode", product_code AS "productCode", operation_steps AS "operationSteps", tech_requirement AS "techRequirement", operation_type AS "operationType", step_sort AS "stepSort", param_code AS "paramCode", material_code AS "materialCode", picture AS "picture", remarks AS "remarks", spare_field_1 AS "spareField1", spare_field_2 AS "spareField2", spare_field_3 AS "spareField3", spare_field_4 AS "spareField4", create_user AS "createUser", create_time AS "createTime", update_user AS "updateUser", update_time AS "updateTime" |
| | | </sql> |
| | | |
| | | |
| | | <select id="customList" resultType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result.FormulaChildInfoResult" parameterType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_child_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.lineCode != null and paramCondition.lineCode != ''"> |
| | | and line_code like CONCAT('%',#{paramCondition.lineCode},'%') |
| | | </if> |
| | | <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
| | | and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
| | | </if> |
| | | <if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
| | | and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
| | | </if> |
| | | <if test="paramCondition.materialCode != null and paramCondition.materialCode != ''"> |
| | | and material_code like CONCAT('%',#{paramCondition.materialCode},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_child_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.lineCode != null and paramCondition.lineCode != ''"> |
| | | and line_code like CONCAT('%',#{paramCondition.lineCode},'%') |
| | | </if> |
| | | <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
| | | and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
| | | </if> |
| | | <if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
| | | and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
| | | </if> |
| | | <if test="paramCondition.materialCode != null and paramCondition.materialCode != ''"> |
| | | and material_code like CONCAT('%',#{paramCondition.materialCode},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customPageList" resultType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result.FormulaChildInfoResult" parameterType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_child_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.lineCode != null and paramCondition.lineCode != ''"> |
| | | and line_code like CONCAT('%',#{paramCondition.lineCode},'%') |
| | | </if> |
| | | <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
| | | and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
| | | </if> |
| | | <if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
| | | and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
| | | </if> |
| | | <if test="paramCondition.materialCode != null and paramCondition.materialCode != ''"> |
| | | and material_code like CONCAT('%',#{paramCondition.materialCode},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from bs_formula_child_info where 1 = 1 |
| | | <if test="paramCondition.formulaCode != null and paramCondition.formulaCode != ''"> |
| | | and formula_code like CONCAT('%',#{paramCondition.formulaCode},'%') |
| | | </if> |
| | | <if test="paramCondition.lineCode != null and paramCondition.lineCode != ''"> |
| | | and line_code like CONCAT('%',#{paramCondition.lineCode},'%') |
| | | </if> |
| | | <if test="paramCondition.locationCode != null and paramCondition.locationCode != ''"> |
| | | and location_code like CONCAT('%',#{paramCondition.locationCode},'%') |
| | | </if> |
| | | <if test="paramCondition.productCode != null and paramCondition.productCode != ''"> |
| | | and product_code like CONCAT('%',#{paramCondition.productCode},'%') |
| | | </if> |
| | | <if test="paramCondition.materialCode != null and paramCondition.materialCode != ''"> |
| | | and material_code like CONCAT('%',#{paramCondition.materialCode},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params; |
| | | |
| | | import lombok.Data; |
| | | import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam; |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Data |
| | | public class FormulaChildInfoParam implements Serializable, BaseValidatingParam { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * 产线 |
| | | */ |
| | | private String lineCode; |
| | | |
| | | /** |
| | | * å·¥ä½ |
| | | */ |
| | | private String locationCode; |
| | | |
| | | /** |
| | | * 产åç¼å· |
| | | */ |
| | | private String productCode; |
| | | |
| | | /** |
| | | * æä½å
容 |
| | | */ |
| | | private String operationSteps; |
| | | |
| | | /** |
| | | * ææ¯è¦æ± |
| | | */ |
| | | private String techRequirement; |
| | | |
| | | /** |
| | | * ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼ |
| | | */ |
| | | private String operationType; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | private String stepSort; |
| | | |
| | | /** |
| | | * åæ°ç¼ç |
| | | */ |
| | | private String paramCode; |
| | | |
| | | /** |
| | | * ç©æç¼ç |
| | | */ |
| | | private String materialCode; |
| | | |
| | | /** |
| | | * å¾ç |
| | | */ |
| | | private String picture; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | private String remarks; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * é¢çå段3 |
| | | */ |
| | | private String spareField3; |
| | | |
| | | /** |
| | | * é¢çå段4 |
| | | */ |
| | | private String spareField4; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | @Override |
| | | public String checkParam() { |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result; |
| | | |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Data |
| | | public class FormulaChildInfoResult implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * id |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * é
æ¹ç¼ç |
| | | */ |
| | | private String formulaCode; |
| | | |
| | | /** |
| | | * 产线 |
| | | */ |
| | | private String lineCode; |
| | | |
| | | /** |
| | | * å·¥ä½ |
| | | */ |
| | | private String locationCode; |
| | | |
| | | /** |
| | | * 产åç¼å· |
| | | */ |
| | | private String productCode; |
| | | |
| | | /** |
| | | * æä½å
容 |
| | | */ |
| | | private String operationSteps; |
| | | |
| | | /** |
| | | * ææ¯è¦æ± |
| | | */ |
| | | private String techRequirement; |
| | | |
| | | /** |
| | | * ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼ |
| | | */ |
| | | private String operationType; |
| | | |
| | | /** |
| | | * æåº |
| | | */ |
| | | private String stepSort; |
| | | |
| | | /** |
| | | * åæ°ç¼ç |
| | | */ |
| | | private String paramCode; |
| | | |
| | | /** |
| | | * ç©æç¼ç |
| | | */ |
| | | private String materialCode; |
| | | |
| | | /** |
| | | * å¾ç |
| | | */ |
| | | private String picture; |
| | | |
| | | /** |
| | | * å¤æ³¨ |
| | | */ |
| | | private String remarks; |
| | | |
| | | /** |
| | | * é¢çå段1 |
| | | */ |
| | | private String spareField1; |
| | | |
| | | /** |
| | | * é¢çå段2 |
| | | */ |
| | | private String spareField2; |
| | | |
| | | /** |
| | | * é¢çå段3 |
| | | */ |
| | | private String spareField3; |
| | | |
| | | /** |
| | | * é¢çå段4 |
| | | */ |
| | | private String spareField4; |
| | | |
| | | /** |
| | | * å建ç¨æ· |
| | | */ |
| | | private String createUser; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * æ´æ¹ç¨æ· |
| | | */ |
| | | private String updateUser; |
| | | |
| | | /** |
| | | * æ´æ¹æ¶é´ |
| | | */ |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.service; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result.FormulaChildInfoResult; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | public interface FormulaChildInfoService extends IService<FormulaChildInfo> { |
| | | |
| | | /** |
| | | * æ°å¢ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void add(FormulaChildInfoParam param); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void delete(FormulaChildInfoParam param); |
| | | |
| | | /** |
| | | * æ´æ° |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | void update(FormulaChildInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ¡æ°æ®ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | FormulaChildInfoResult findBySpec(FormulaChildInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢å表ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | List<FormulaChildInfoResult> findListBySpec(FormulaChildInfoParam param); |
| | | |
| | | /** |
| | | * æ¥è¯¢å页æ°æ®ï¼Specificationæ¨¡å¼ |
| | | * |
| | | * @author ruimin |
| | | * @Date 2023-10-09 |
| | | */ |
| | | LayuiPageInfo findPageBySpec(FormulaChildInfoParam param); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.stylefeng.guns.modular.zsx.bs.formulaChild.service.impl; |
| | | |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory; |
| | | import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.mapper.FormulaChildInfoMapper; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.result.FormulaChildInfoResult; |
| | | import cn.stylefeng.guns.modular.zsx.bs.formulaChild.service.FormulaChildInfoService; |
| | | import cn.stylefeng.roses.core.util.ToolUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * é
æ¹é
ç½®åä¿¡æ¯ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author ruimin |
| | | * @since 2023-10-09 |
| | | */ |
| | | @Service |
| | | public class FormulaChildInfoServiceImpl extends ServiceImpl<FormulaChildInfoMapper, FormulaChildInfo> implements FormulaChildInfoService { |
| | | |
| | | @Override |
| | | public void add(FormulaChildInfoParam param){ |
| | | FormulaChildInfo entity = getEntity(param); |
| | | this.save(entity); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(FormulaChildInfoParam param){ |
| | | this.removeById(getKey(param)); |
| | | } |
| | | |
| | | @Override |
| | | public void update(FormulaChildInfoParam param){ |
| | | FormulaChildInfo oldEntity = getOldEntity(param); |
| | | FormulaChildInfo newEntity = getEntity(param); |
| | | ToolUtil.copyProperties(newEntity, oldEntity); |
| | | this.updateById(newEntity); |
| | | } |
| | | |
| | | @Override |
| | | public FormulaChildInfoResult findBySpec(FormulaChildInfoParam param){ |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<FormulaChildInfoResult> findListBySpec(FormulaChildInfoParam param){ |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public LayuiPageInfo findPageBySpec(FormulaChildInfoParam param){ |
| | | Page pageContext = getPageContext(); |
| | | IPage page = this.baseMapper.customPageList(pageContext, param); |
| | | return LayuiPageFactory.createPageInfo(page); |
| | | } |
| | | |
| | | private Serializable getKey(FormulaChildInfoParam param){ |
| | | return param.getId(); |
| | | } |
| | | |
| | | private Page getPageContext() { |
| | | return LayuiPageFactory.defaultPage(); |
| | | } |
| | | |
| | | private FormulaChildInfo getOldEntity(FormulaChildInfoParam param) { |
| | | return this.getById(getKey(param)); |
| | | } |
| | | |
| | | private FormulaChildInfo getEntity(FormulaChildInfoParam param) { |
| | | FormulaChildInfo entity = new FormulaChildInfo(); |
| | | ToolUtil.copyProperties(param, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711286667255394305, 'FORMULA_CHILD_INFO', '0', '[0],', 'é
æ¹é
ç½®åä¿¡æ¯', 'fa-star', '/formulaChildInfo', 999, 1, 'Y', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:45:10', '2023-10-09 15:45:10', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711286667259588609, 'FORMULA_CHILD_INFO_ADD', 'FORMULA_CHILD_INFO', '[0],[FORMULA_CHILD_INFO],', 'é
æ¹é
ç½®åä¿¡æ¯æ·»å ', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:45:10', '2023-10-09 15:45:10', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711286667259588610, 'FORMULA_CHILD_INFO_EDIT', 'FORMULA_CHILD_INFO', '[0],[FORMULA_CHILD_INFO],', 'é
æ¹é
ç½®åä¿¡æ¯ä¿®æ¹', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:45:10', '2023-10-09 15:45:10', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711286667259588611, 'FORMULA_CHILD_INFO_DELETE', 'FORMULA_CHILD_INFO', '[0],[FORMULA_CHILD_INFO],', 'é
æ¹é
ç½®åä¿¡æ¯å é¤', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:45:10', '2023-10-09 15:45:10', 1, 1); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711285120836485121, 'FORMULA_INFO', '0', '[0],', 'é
æ¹é
ç½®', 'fa-star', '/formulaInfo', 999, 1, 'Y', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:39:01', '2023-10-09 15:39:01', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711285120836485122, 'FORMULA_INFO_ADD', 'FORMULA_INFO', '[0],[FORMULA_INFO],', 'é
æ¹é
置添å ', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:39:01', '2023-10-09 15:39:01', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711285120836485123, 'FORMULA_INFO_EDIT', 'FORMULA_INFO', '[0],[FORMULA_INFO],', 'é
æ¹é
置修æ¹', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:39:01', '2023-10-09 15:39:01', 1, 1); |
| | | INSERT INTO `sys_menu`(`MENU_ID`, `CODE`, `PCODE`, `PCODES`, `NAME`, `ICON`, `URL`, `SORT`, `LEVELS`, `MENU_FLAG`, `DESCRIPTION`, `STATUS`, `NEW_PAGE_FLAG`, `OPEN_FLAG`, `SYSTEM_TYPE`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`) VALUES (1711285120836485124, 'FORMULA_INFO_DELETE', 'FORMULA_INFO', '[0],[FORMULA_INFO],', 'é
æ¹é
ç½®å é¤', 'fa-star', '', 999, 2, 'N', '', 'ENABLE', '', '', 'BASE_SYSTEM', '2023-10-09 15:39:01', '2023-10-09 15:39:01', 1, 1); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | layui.use(['table', 'admin', 'ax', 'func'], function () { |
| | | var $ = layui.$; |
| | | var table = layui.table; |
| | | var $ax = layui.ax; |
| | | var admin = layui.admin; |
| | | var func = layui.func; |
| | | |
| | | /** |
| | | * é
æ¹é
ç½®åä¿¡æ¯ç®¡ç |
| | | */ |
| | | var FormulaChildInfo = { |
| | | tableId: "formulaChildInfoTable" |
| | | }; |
| | | |
| | | /** |
| | | * åå§åè¡¨æ ¼çå |
| | | */ |
| | | FormulaChildInfo.initColumn = function () { |
| | | return [[ |
| | | {type: 'checkbox'}, |
| | | {field: 'id', hide: true, title: 'id'}, |
| | | {field: 'formulaCode', sort: true, title: 'é
æ¹ç¼ç '}, |
| | | {field: 'lineCode', sort: true, title: '产线'}, |
| | | {field: 'locationCode', sort: true, title: 'å·¥ä½'}, |
| | | {field: 'productCode', sort: true, title: '产åç¼å·'}, |
| | | {field: 'operationSteps', sort: true, title: 'æä½å
容'}, |
| | | {field: 'techRequirement', sort: true, title: 'ææ¯è¦æ±'}, |
| | | {field: 'operationType', sort: true, title: 'ç±»å'}, |
| | | {field: 'stepSort', sort: true, title: 'æåº'}, |
| | | {field: 'paramCode', sort: true, title: 'åæ°ç¼ç '}, |
| | | {field: 'materialCode', sort: true, title: 'ç©æç¼ç '}, |
| | | {field: 'picture', sort: true, title: 'å¾ç'}, |
| | | {field: 'remarks', sort: true, title: 'å¤æ³¨'}, |
| | | {field: 'createUser', sort: true, title: 'å建ç¨æ·'}, |
| | | {field: 'createTime', sort: true, title: 'å建æ¶é´'}, |
| | | {field: 'updateUser', sort: true, title: 'æ´æ¹ç¨æ·'}, |
| | | {field: 'updateTime', sort: true, title: 'æ´æ¹æ¶é´'}, |
| | | {fixed: 'right',width: 125, minWidth: 125, align: 'center', toolbar: '#tableBar', title: 'æä½'} |
| | | ]]; |
| | | }; |
| | | |
| | | /** |
| | | * ç¹å»æ¥è¯¢æé® |
| | | */ |
| | | FormulaChildInfo.search = function () { |
| | | var queryData = {}; |
| | | |
| | | queryData['formulaCode'] = $('#formulaCode').val(); |
| | | queryData['lineCode'] = $('#lineCode').val(); |
| | | queryData['locationCode'] = $('#locationCode').val(); |
| | | queryData['productCode'] = $('#productCode').val(); |
| | | queryData['materialCode'] = $('#materialCode').val(); |
| | | |
| | | table.reload(FormulaChildInfo.tableId, { |
| | | where: queryData, page: {curr: 1} |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * 跳转å°æ·»å é¡µé¢ |
| | | */ |
| | | FormulaChildInfo.jumpAddPage = function () { |
| | | func.open({ |
| | | height: 650, |
| | | title: 'æ·»å é
æ¹é
置信æ¯', |
| | | content: Feng.ctxPath + '/formulaChildInfo/add?formulaInfoCode=' + $("#formulaInfoCode").val(), |
| | | tableId: FormulaChildInfo.tableId, |
| | | }); |
| | | // window.location.href = Feng.ctxPath + '/formulaChildInfo/add' |
| | | }; |
| | | |
| | | /** |
| | | * 跳转å°ç¼è¾é¡µé¢ |
| | | * |
| | | * @param data ç¹å»æé®æ¶åçè¡æ°æ® |
| | | */ |
| | | FormulaChildInfo.jumpEditPage = function (data) { |
| | | func.open({ |
| | | height: 650, |
| | | title: 'BOMä¿¡æ¯', |
| | | content: Feng.ctxPath + '/formulaChildInfo/edit?id=' + data.id, |
| | | tableId: FormulaChildInfo.tableId, |
| | | }); |
| | | // window.location.href = Feng.ctxPath + '/formulaChildInfo/edit?id=' + data.id |
| | | }; |
| | | |
| | | /** |
| | | * 导åºexcelæé® |
| | | */ |
| | | FormulaChildInfo.exportExcel = function () { |
| | | var checkRows = table.checkStatus(FormulaChildInfo.tableId); |
| | | if (checkRows.data.length === 0) { |
| | | Feng.error("请éæ©è¦å¯¼åºçæ°æ®"); |
| | | } else { |
| | | table.exportFile(tableResult.config.id, checkRows.data, 'xls'); |
| | | } |
| | | }; |
| | | |
| | | /** |
| | | * ç¹å»å é¤ |
| | | * |
| | | * @param data ç¹å»æé®æ¶åçè¡æ°æ® |
| | | */ |
| | | FormulaChildInfo.onDeleteItem = function (data) { |
| | | var operation = function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaChildInfo/delete", function (data) { |
| | | Feng.success("å é¤æå!"); |
| | | table.reload(FormulaChildInfo.tableId); |
| | | }, function (data) { |
| | | Feng.error("å é¤å¤±è´¥!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("id", data.id); |
| | | ajax.start(); |
| | | }; |
| | | Feng.confirm("æ¯å¦å é¤?", operation); |
| | | }; |
| | | |
| | | var queryData = {}; |
| | | queryData['formulaCode'] = $('#formulaInfoCode').val(); |
| | | // 渲æè¡¨æ ¼ |
| | | var tableResult = table.render({ |
| | | elem: '#' + FormulaChildInfo.tableId, |
| | | url: Feng.ctxPath + '/formulaChildInfo/list', |
| | | page: true, |
| | | height: "full-158", |
| | | cellMinWidth: 100, |
| | | where: queryData, |
| | | cols: FormulaChildInfo.initColumn() |
| | | }); |
| | | |
| | | // å
³éé¡µé¢ |
| | | $('#btnBack').click(function () { |
| | | window.location.href = Feng.ctxPath + "/formulaInfo"; |
| | | }); |
| | | |
| | | // æç´¢æé®ç¹å»äºä»¶ |
| | | $('#btnSearch').click(function () { |
| | | FormulaChildInfo.search(); |
| | | }); |
| | | |
| | | // æ·»å æé®ç¹å»äºä»¶ |
| | | $('#btnAdd').click(function () { |
| | | |
| | | FormulaChildInfo.jumpAddPage(); |
| | | |
| | | }); |
| | | |
| | | // 导åºexcel |
| | | $('#btnExp').click(function () { |
| | | FormulaChildInfo.exportExcel(); |
| | | }); |
| | | |
| | | // å·¥å
·æ¡ç¹å»äºä»¶ |
| | | table.on('tool(' + FormulaChildInfo.tableId + ')', function (obj) { |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | |
| | | if (layEvent === 'edit') { |
| | | FormulaChildInfo.jumpEditPage(data); |
| | | } else if (layEvent === 'delete') { |
| | | FormulaChildInfo.onDeleteItem(data); |
| | | } |
| | | }); |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * æ·»å æè
ä¿®æ¹é¡µé¢ |
| | | */ |
| | | var FormulaChildInfoInfoDlg = { |
| | | data: { |
| | | id: "", |
| | | formulaCode: "", |
| | | lineCode: "", |
| | | locationCode: "", |
| | | productCode: "", |
| | | operationSteps: "", |
| | | techRequirement: "", |
| | | operationType: "", |
| | | stepSort: "", |
| | | paramCode: "", |
| | | materialCode: "", |
| | | picture: "", |
| | | remarks: "", |
| | | spareField1: "", |
| | | spareField2: "", |
| | | spareField3: "", |
| | | spareField4: "", |
| | | createUser: "", |
| | | createTime: "", |
| | | updateUser: "", |
| | | updateTime: "" |
| | | } |
| | | }; |
| | | |
| | | layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () { |
| | | var $ = layui.jquery; |
| | | var $ax = layui.ax; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaChildInfo/addItem", function (data) { |
| | | Feng.success("æ·»å æåï¼"); |
| | | admin.putTempData('formOk', true); |
| | | admin.closeThisDialog(); |
| | | |
| | | }, function (data) { |
| | | Feng.error("æ·»å 失败ï¼" + data.responseJSON.message) |
| | | }); |
| | | ajax.set(data.field); |
| | | ajax.start(); |
| | | |
| | | return false; |
| | | }); |
| | | |
| | | $('#cancel').click(function(){ |
| | | // window.location.href = Feng.ctxPath + '/formulaChildInfo' |
| | | admin.closeThisDialog(); |
| | | }); |
| | | |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * 详æ
对è¯æ¡ |
| | | */ |
| | | var FormulaChildInfoInfoDlg = { |
| | | data: { |
| | | id: "", |
| | | formulaCode: "", |
| | | lineCode: "", |
| | | locationCode: "", |
| | | productCode: "", |
| | | operationSteps: "", |
| | | techRequirement: "", |
| | | operationType: "", |
| | | stepSort: "", |
| | | paramCode: "", |
| | | materialCode: "", |
| | | picture: "", |
| | | remarks: "", |
| | | spareField1: "", |
| | | spareField2: "", |
| | | spareField3: "", |
| | | spareField4: "", |
| | | createUser: "", |
| | | createTime: "", |
| | | updateUser: "", |
| | | updateTime: "" |
| | | } |
| | | }; |
| | | |
| | | layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () { |
| | | var $ = layui.jquery; |
| | | var $ax = layui.ax; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | //è·å详æ
ä¿¡æ¯ï¼å¡«å
表å |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaChildInfo/detail?id=" + Feng.getUrlParam("id")); |
| | | var result = ajax.start(); |
| | | form.val('formulaChildInfoForm', result.data); |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaChildInfo/editItem", function (data) { |
| | | Feng.success("æ´æ°æåï¼"); |
| | | // window.location.href = Feng.ctxPath + '/formulaChildInfo' |
| | | admin.putTempData('formOk', true); |
| | | //å
³æ对è¯æ¡ |
| | | admin.closeThisDialog(); |
| | | }, function (data) { |
| | | Feng.error("æ´æ°å¤±è´¥ï¼" + data.responseJSON.message) |
| | | }); |
| | | ajax.set(data.field); |
| | | ajax.start(); |
| | | |
| | | return false; |
| | | }); |
| | | |
| | | $('#cancel').click(function(){ |
| | | // window.location.href = Feng.ctxPath + '/formulaChildInfo' |
| | | admin.closeThisDialog(); |
| | | }); |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | layui.use(['table', 'admin', 'ax', 'func'], function () { |
| | | var $ = layui.$; |
| | | var table = layui.table; |
| | | var $ax = layui.ax; |
| | | var admin = layui.admin; |
| | | var func = layui.func; |
| | | |
| | | /** |
| | | * é
æ¹é
置管ç |
| | | */ |
| | | var FormulaInfo = { |
| | | tableId: "formulaInfoTable" |
| | | }; |
| | | |
| | | /** |
| | | * åå§åè¡¨æ ¼çå |
| | | */ |
| | | FormulaInfo.initColumn = function () { |
| | | return [[ |
| | | {type: 'checkbox'}, |
| | | {field: 'id', hide: true, title: '主é®id'}, |
| | | // {field: 'formulaCode', sort: true, title: 'é
æ¹ç¼ç '}, |
| | | { |
| | | field: 'formulaCode',width:130, align: "center", sort: true, title: 'é
æ¹ç¼ç ', templet: function (d) { |
| | | var url = Feng.ctxPath + '/formulaChildInfo?formulaCode=' + d.formulaCode; |
| | | return '<a style="color: #01AAED;" href="' + url + '">' + d.formulaCode + '</a>'; |
| | | } |
| | | }, |
| | | {field: 'formulaName', sort: true, title: 'é
æ¹å称'}, |
| | | {field: 'status', sort: true, title: 'ç¶æ(åå
¸)'}, |
| | | {field: 'remark', sort: true, title: 'å¤æ³¨'}, |
| | | {field: 'createUser', sort: true, title: 'å建ç¨æ·'}, |
| | | {field: 'createTime', sort: true, title: 'å建æ¶é´'}, |
| | | {field: 'updateUser', sort: true, title: 'æ´æ¹ç¨æ·'}, |
| | | {field: 'updateTime', sort: true, title: 'æ´æ¹æ¶é´'}, |
| | | {fixed: 'right',width: 125, minWidth: 125, align: 'center', toolbar: '#tableBar', title: 'æä½'} |
| | | ]]; |
| | | }; |
| | | |
| | | /** |
| | | * ç¹å»æ¥è¯¢æé® |
| | | */ |
| | | FormulaInfo.search = function () { |
| | | var queryData = {}; |
| | | |
| | | queryData['formulaCode'] = $('#formulaCode').val(); |
| | | queryData['formulaName'] = $('#formulaName').val(); |
| | | |
| | | table.reload(FormulaInfo.tableId, { |
| | | where: queryData, page: {curr: 1} |
| | | }); |
| | | }; |
| | | |
| | | /** |
| | | * 跳转å°æ·»å é¡µé¢ |
| | | */ |
| | | FormulaInfo.jumpAddPage = function () { |
| | | window.location.href = Feng.ctxPath + '/formulaInfo/add' |
| | | }; |
| | | |
| | | /** |
| | | * 跳转å°ç¼è¾é¡µé¢ |
| | | * |
| | | * @param data ç¹å»æé®æ¶åçè¡æ°æ® |
| | | */ |
| | | FormulaInfo.jumpEditPage = function (data) { |
| | | window.location.href = Feng.ctxPath + '/formulaInfo/edit?id=' + data.id |
| | | }; |
| | | |
| | | /** |
| | | * 导åºexcelæé® |
| | | */ |
| | | FormulaInfo.exportExcel = function () { |
| | | var checkRows = table.checkStatus(FormulaInfo.tableId); |
| | | if (checkRows.data.length === 0) { |
| | | Feng.error("请éæ©è¦å¯¼åºçæ°æ®"); |
| | | } else { |
| | | table.exportFile(tableResult.config.id, checkRows.data, 'xls'); |
| | | } |
| | | }; |
| | | |
| | | /** |
| | | * ç¹å»å é¤ |
| | | * |
| | | * @param data ç¹å»æé®æ¶åçè¡æ°æ® |
| | | */ |
| | | FormulaInfo.onDeleteItem = function (data) { |
| | | var operation = function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaInfo/delete", function (data) { |
| | | Feng.success("å é¤æå!"); |
| | | table.reload(FormulaInfo.tableId); |
| | | }, function (data) { |
| | | Feng.error("å é¤å¤±è´¥!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("id", data.id); |
| | | ajax.start(); |
| | | }; |
| | | Feng.confirm("æ¯å¦å é¤?", operation); |
| | | }; |
| | | |
| | | // 渲æè¡¨æ ¼ |
| | | var tableResult = table.render({ |
| | | elem: '#' + FormulaInfo.tableId, |
| | | url: Feng.ctxPath + '/formulaInfo/list', |
| | | page: true, |
| | | height: "full-158", |
| | | cellMinWidth: 100, |
| | | cols: FormulaInfo.initColumn() |
| | | }); |
| | | |
| | | // æç´¢æé®ç¹å»äºä»¶ |
| | | $('#btnSearch').click(function () { |
| | | FormulaInfo.search(); |
| | | }); |
| | | |
| | | // æ·»å æé®ç¹å»äºä»¶ |
| | | $('#btnAdd').click(function () { |
| | | |
| | | FormulaInfo.jumpAddPage(); |
| | | |
| | | }); |
| | | |
| | | // 导åºexcel |
| | | $('#btnExp').click(function () { |
| | | FormulaInfo.exportExcel(); |
| | | }); |
| | | |
| | | // å·¥å
·æ¡ç¹å»äºä»¶ |
| | | table.on('tool(' + FormulaInfo.tableId + ')', function (obj) { |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | |
| | | if (layEvent === 'edit') { |
| | | FormulaInfo.jumpEditPage(data); |
| | | } else if (layEvent === 'delete') { |
| | | FormulaInfo.onDeleteItem(data); |
| | | } |
| | | }); |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * æ·»å æè
ä¿®æ¹é¡µé¢ |
| | | */ |
| | | var FormulaInfoInfoDlg = { |
| | | data: { |
| | | id: "", |
| | | formulaCode: "", |
| | | formulaName: "", |
| | | status: "", |
| | | spareField1: "", |
| | | spareField2: "", |
| | | remark: "", |
| | | createUser: "", |
| | | createTime: "", |
| | | updateUser: "", |
| | | updateTime: "" |
| | | } |
| | | }; |
| | | |
| | | layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () { |
| | | var $ = layui.jquery; |
| | | var $ax = layui.ax; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaInfo/addItem", function (data) { |
| | | Feng.success("æ·»å æåï¼"); |
| | | window.location.href = Feng.ctxPath + '/formulaInfo' |
| | | }, function (data) { |
| | | Feng.error("æ·»å 失败ï¼" + data.responseJSON.message) |
| | | }); |
| | | ajax.set(data.field); |
| | | ajax.start(); |
| | | |
| | | return false; |
| | | }); |
| | | |
| | | $('#cancel').click(function(){ |
| | | window.location.href = Feng.ctxPath + '/formulaInfo' |
| | | }); |
| | | |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * 详æ
对è¯æ¡ |
| | | */ |
| | | var FormulaInfoInfoDlg = { |
| | | data: { |
| | | id: "", |
| | | formulaCode: "", |
| | | formulaName: "", |
| | | status: "", |
| | | spareField1: "", |
| | | spareField2: "", |
| | | remark: "", |
| | | createUser: "", |
| | | createTime: "", |
| | | updateUser: "", |
| | | updateTime: "" |
| | | } |
| | | }; |
| | | |
| | | layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () { |
| | | var $ = layui.jquery; |
| | | var $ax = layui.ax; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //è·å详æ
ä¿¡æ¯ï¼å¡«å
表å |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaInfo/detail?id=" + Feng.getUrlParam("id")); |
| | | var result = ajax.start(); |
| | | form.val('formulaInfoForm', result.data); |
| | | |
| | | //表åæ交äºä»¶ |
| | | form.on('submit(btnSubmit)', function (data) { |
| | | var ajax = new $ax(Feng.ctxPath + "/formulaInfo/editItem", function (data) { |
| | | Feng.success("æ´æ°æåï¼"); |
| | | window.location.href = Feng.ctxPath + '/formulaInfo' |
| | | }, function (data) { |
| | | Feng.error("æ´æ°å¤±è´¥ï¼" + data.responseJSON.message) |
| | | }); |
| | | ajax.set(data.field); |
| | | ajax.start(); |
| | | |
| | | return false; |
| | | }); |
| | | |
| | | $('#cancel').click(function(){ |
| | | window.location.href = Feng.ctxPath + '/formulaInfo' |
| | | }); |
| | | }); |
| | |
| | | $('#planQty').text(msg.planQty); |
| | | $('#planStartTime').text(msg.planStartTime); |
| | | $('#planEndTime').text(msg.planEndTime); |
| | | $('#recipeCode').text(msg.recipeCode); |
| | | var radioElement = $('#sex1'); |
| | | |
| | | function initLineInfo(){ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_container.html",{js:["/assets/modular/bs/formulaChildInfo/formulaChildInfo.js"]}){ |
| | | |
| | | <div class="layui-body-header"> |
| | | <span class="layui-body-header-title">é
æ¹é
ç½®åä¿¡æ¯ç®¡ç</span> |
| | | </div> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-sm12 layui-col-md12 layui-col-lg12"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar"> |
| | | <div class="layui-form-item"> |
| | | <input type="hidden" id="formulaInfoCode" value="${formulaInfoCode}"/> |
| | | <div class="layui-inline"> |
| | | <input id="formulaCode" class="layui-input" type="text" placeholder="é
æ¹ç¼ç "/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input id="lineCode" class="layui-input" type="text" placeholder="产线"/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input id="locationCode" class="layui-input" type="text" placeholder="å·¥ä½"/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input id="productCode" class="layui-input" type="text" placeholder="产åç¼å·"/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input id="materialCode" class="layui-input" type="text" placeholder="ç©æç¼ç "/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>æç´¢</button> |
| | | <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>æ·»å </button> |
| | | <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导åº</button> |
| | | <button id="btnBack" class="layui-btn icon-btn layui-btn-normal"><i class="layui-icon"></i>è¿å</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-table" id="formulaChildInfoTable" lay-filter="formulaChildInfoTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="tableBar"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">ä¿®æ¹</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">å é¤</a> |
| | | </script> |
| | | @} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_form.html",{js:["/assets/modular/bs/formulaChildInfo/formulaChildInfo_add.js"],css:["/assets/expand/module/formSelects/formSelects-v4.css"]}){ |
| | | |
| | | <form class="layui-form" id="formulaChildInfoForm" lay-filter="formulaChildInfoForm"> |
| | | <div class="layui-fluid" style="padding-bottom: 75px;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-header">åºæ¬ä¿¡æ¯</div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form-item layui-row"> |
| | | <input name="id" type="hidden"/> |
| | | <input name="formulaCode" type="hidden" value="${formulaInfoCode}"/> |
| | | <!-- <div class="layui-inline layui-col-md12">--> |
| | | <!-- <label class="layui-form-label">é
æ¹ç¼ç <span style="color: red;">*</span></label>--> |
| | | <!-- <div class="layui-input-block">--> |
| | | <!-- <input id="formulaCode" name="formulaCode" placeholder="请è¾å
¥é
æ¹ç¼ç " type="text" class="layui-input" lay-verify="required" required/>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">产线<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="lineCode" name="lineCode" placeholder="请è¾å
¥äº§çº¿" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å·¥ä½<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="locationCode" name="locationCode" placeholder="请è¾å
¥å·¥ä½" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">产åç¼å·<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="productCode" name="productCode" placeholder="请è¾å
¥äº§åç¼å·" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">æä½å
容<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="operationSteps" name="operationSteps" placeholder="请è¾å
¥æä½å
容" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ææ¯è¦æ±<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="techRequirement" name="techRequirement" placeholder="请è¾å
¥ææ¯è¦æ±" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="operationType" name="operationType" placeholder="请è¾å
¥ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">æåº<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="stepSort" name="stepSort" placeholder="请è¾å
¥æåº" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">åæ°ç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="paramCode" name="paramCode" placeholder="请è¾å
¥åæ°ç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç©æç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="materialCode" name="materialCode" placeholder="请è¾å
¥ç©æç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¾ç<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="picture" name="picture" placeholder="请è¾å
¥å¾ç" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¤æ³¨<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="remarks" name="remarks" placeholder="请è¾å
¥å¤æ³¨" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段1<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField1" name="spareField1" placeholder="请è¾å
¥é¢çå段1" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段2<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField2" name="spareField2" placeholder="请è¾å
¥é¢çå段2" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段3<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField3" name="spareField3" placeholder="请è¾å
¥é¢çå段3" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段4<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField4" name="spareField4" placeholder="请è¾å
¥é¢çå段4" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group-bottom text-center"> |
| | | <button class="layui-btn" lay-filter="btnSubmit" lay-submit> æ交 </button> |
| | | <button type="reset" class="layui-btn layui-btn-primary" id="cancel"> åæ¶ </button> |
| | | </div> |
| | | |
| | | </form> |
| | | |
| | | @} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_form.html",{js:["/assets/modular/bs/formulaChildInfo/formulaChildInfo_edit.js"]}){ |
| | | |
| | | <form class="layui-form" id="formulaChildInfoForm" lay-filter="formulaChildInfoForm"> |
| | | <div class="layui-fluid" style="padding-bottom: 75px;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-header">åºæ¬ä¿¡æ¯</div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form-item layui-row"> |
| | | <input name="id" type="hidden"/> |
| | | |
| | | <!-- <div class="layui-inline layui-col-md12">--> |
| | | <!-- <label class="layui-form-label">é
æ¹ç¼ç <span style="color: red;">*</span></label>--> |
| | | <!-- <div class="layui-input-block">--> |
| | | <!-- <input id="formulaCode" name="formulaCode" placeholder="请è¾å
¥é
æ¹ç¼ç " type="text" class="layui-input" lay-verify="required" required/>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">产线<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="lineCode" name="lineCode" placeholder="请è¾å
¥äº§çº¿" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å·¥ä½<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="locationCode" name="locationCode" placeholder="请è¾å
¥å·¥ä½" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">产åç¼å·<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="productCode" name="productCode" placeholder="请è¾å
¥äº§åç¼å·" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">æä½å
容<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="operationSteps" name="operationSteps" placeholder="请è¾å
¥æä½å
容" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ææ¯è¦æ±<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="techRequirement" name="techRequirement" placeholder="请è¾å
¥ææ¯è¦æ±" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="operationType" name="operationType" placeholder="请è¾å
¥ç±»åï¼æ«æ产åæ¡ç 1ãæ«æç©ææ¡ç 2ãæ§ç´§ç±»3ï¼" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">æåº<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="stepSort" name="stepSort" placeholder="请è¾å
¥æåº" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">åæ°ç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="paramCode" name="paramCode" placeholder="请è¾å
¥åæ°ç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç©æç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="materialCode" name="materialCode" placeholder="请è¾å
¥ç©æç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¾ç<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="picture" name="picture" placeholder="请è¾å
¥å¾ç" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¤æ³¨<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="remarks" name="remarks" placeholder="请è¾å
¥å¤æ³¨" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group-bottom text-center"> |
| | | <button class="layui-btn" lay-filter="btnSubmit" lay-submit> æ交 </button> |
| | | <button type="reset" class="layui-btn layui-btn-primary" id="cancel"> åæ¶ </button> |
| | | </div> |
| | | |
| | | </form> |
| | | |
| | | @} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_container.html",{js:["/assets/modular/bs/formulaInfo/formulaInfo.js"]}){ |
| | | |
| | | <div class="layui-body-header"> |
| | | <span class="layui-body-header-title">é
æ¹é
置管ç</span> |
| | | </div> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-sm12 layui-col-md12 layui-col-lg12"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <input id="formulaCode" class="layui-input" type="text" placeholder="é
æ¹ç¼ç "/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input id="formulaName" class="layui-input" type="text" placeholder="é
æ¹å称"/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>æç´¢</button> |
| | | <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>æ·»å </button> |
| | | <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon"></i>导åº</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-table" id="formulaInfoTable" lay-filter="formulaInfoTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="tableBar"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">ä¿®æ¹</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">å é¤</a> |
| | | </script> |
| | | @} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_form.html",{js:["/assets/modular/bs/formulaInfo/formulaInfo_add.js"],css:["/assets/expand/module/formSelects/formSelects-v4.css"]}){ |
| | | |
| | | <form class="layui-form" id="formulaInfoForm" lay-filter="formulaInfoForm"> |
| | | <div class="layui-fluid" style="padding-bottom: 75px;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-header">åºæ¬ä¿¡æ¯</div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form-item layui-row"> |
| | | <input name="id" type="hidden"/> |
| | | |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é
æ¹ç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="formulaCode" name="formulaCode" placeholder="请è¾å
¥é
æ¹ç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é
æ¹å称<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="formulaName" name="formulaName" placeholder="请è¾å
¥é
æ¹å称" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç¶æ(åå
¸)<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="status" name="status" placeholder="请è¾å
¥ç¶æ(åå
¸)" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段1<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField1" name="spareField1" placeholder="请è¾å
¥é¢çå段1" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段2<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField2" name="spareField2" placeholder="请è¾å
¥é¢çå段2" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¤æ³¨<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="remark" name="remark" placeholder="请è¾å
¥å¤æ³¨" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group-bottom text-center"> |
| | | <button class="layui-btn" lay-filter="btnSubmit" lay-submit> æ交 </button> |
| | | <button type="reset" class="layui-btn layui-btn-primary" id="cancel"> åæ¶ </button> |
| | | </div> |
| | | |
| | | </form> |
| | | |
| | | @} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @layout("/common/_form.html",{js:["/assets/modular/bs/formulaInfo/formulaInfo_edit.js"]}){ |
| | | |
| | | <form class="layui-form" id="formulaInfoForm" lay-filter="formulaInfoForm"> |
| | | <div class="layui-fluid" style="padding-bottom: 75px;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-header">åºæ¬ä¿¡æ¯</div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form-item layui-row"> |
| | | <input name="id" type="hidden"/> |
| | | |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é
æ¹ç¼ç <span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="formulaCode" name="formulaCode" placeholder="请è¾å
¥é
æ¹ç¼ç " type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é
æ¹å称<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="formulaName" name="formulaName" placeholder="请è¾å
¥é
æ¹å称" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">ç¶æ(åå
¸)<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="status" name="status" placeholder="请è¾å
¥ç¶æ(åå
¸)" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段1<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField1" name="spareField1" placeholder="请è¾å
¥é¢çå段1" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">é¢çå段2<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="spareField2" name="spareField2" placeholder="请è¾å
¥é¢çå段2" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-col-md12"> |
| | | <label class="layui-form-label">å¤æ³¨<span style="color: red;">*</span></label> |
| | | <div class="layui-input-block"> |
| | | <input id="remark" name="remark" placeholder="请è¾å
¥å¤æ³¨" type="text" class="layui-input" lay-verify="required" required/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group-bottom text-center"> |
| | | <button class="layui-btn" lay-filter="btnSubmit" lay-submit> æ交 </button> |
| | | <button type="reset" class="layui-btn layui-btn-primary" id="cancel"> åæ¶ </button> |
| | | </div> |
| | | |
| | | </form> |
| | | |
| | | @} |
| | |
| | | <span class="mySpan" style="float: right" id="productName"></span> |
| | | </div> |
| | | <div class="orderInfo"> |
| | | <span>å·¥èºé
æ¹</span> |
| | | <span class="mySpan" style="float: right" id="recipeCode"></span> |
| | | </div> |
| | | <div class="orderInfo"> |
| | | <span>计åæ°é</span> |
| | | <span class="mySpan" style="float: right" id="planQty"></span> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm9 layui-col-md9 layui-col-lg9"> |
| | | <div class="layui-card" style="height: 577px"> |
| | | <div class="layui-card" style="height: 605px"> |
| | | <div class="layui-card-header" style="font-weight: bold"> |
| | | <i class="layui-icon layui-icon-rate-solid"></i>æä½æ |
| | | </div> |