diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java new file mode 100644 index 00000000..e37532bb --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java @@ -0,0 +1,126 @@ +package com.ruoyi.erp.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.erp.domain.ErpMaterial; +import com.ruoyi.erp.service.IErpMaterialService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 物料信息Controller + * + * @author ruoyi + * @date 2023-11-12 + */ +@Controller +@RequestMapping("/erp/material") +public class ErpMaterialController extends BaseController +{ + private String prefix = "erp/material"; + + @Autowired + private IErpMaterialService erpMaterialService; + + @RequiresPermissions("erp:material:view") + @GetMapping() + public String material() + { + return prefix + "/material"; + } + + /** + * 查询物料信息列表 + */ + @RequiresPermissions("erp:material:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ErpMaterial erpMaterial) + { + startPage(); + List list = erpMaterialService.selectErpMaterialList(erpMaterial); + return getDataTable(list); + } + + /** + * 导出物料信息列表 + */ + @RequiresPermissions("erp:material:export") + @Log(title = "物料信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ErpMaterial erpMaterial) + { + List list = erpMaterialService.selectErpMaterialList(erpMaterial); + ExcelUtil util = new ExcelUtil(ErpMaterial.class); + return util.exportExcel(list, "物料信息数据"); + } + + /** + * 新增物料信息 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存物料信息 + */ + @RequiresPermissions("erp:material:add") + @Log(title = "物料信息", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ErpMaterial erpMaterial) + { + return toAjax(erpMaterialService.insertErpMaterial(erpMaterial)); + } + + /** + * 修改物料信息 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + ErpMaterial erpMaterial = erpMaterialService.selectErpMaterialById(id); + mmap.put("erpMaterial", erpMaterial); + return prefix + "/edit"; + } + + /** + * 修改保存物料信息 + */ + @RequiresPermissions("erp:material:edit") + @Log(title = "物料信息", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ErpMaterial erpMaterial) + { + return toAjax(erpMaterialService.updateErpMaterial(erpMaterial)); + } + + /** + * 删除物料信息 + */ + @RequiresPermissions("erp:material:remove") + @Log(title = "物料信息", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(erpMaterialService.deleteErpMaterialByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java new file mode 100644 index 00000000..75dbf594 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterial.java @@ -0,0 +1,211 @@ +package com.ruoyi.erp.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 物料信息对象 erp_material + * + * @author ruoyi + * @date 2023-11-12 + */ +public class ErpMaterial extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @Excel(name = "主键ID") + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除") + private String delFlag; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 审核状态 */ + @Excel(name = "审核状态") + private String auditStatus; + + /** 使用状态 */ + @Excel(name = "使用状态") + private String useStatus; + + /** 是否有生产团队 */ + @Excel(name = "是否有生产团队") + private String havaProductTem; + + /** 物料类型 */ + @Excel(name = "物料类型") + private String materialType; + + /** 加工方式 */ + @Excel(name = "加工方式") + private String processMethod; + + /** 单位 */ + @Excel(name = "单位") + private String unit; + + /** 品牌 */ + @Excel(name = "品牌") + private String brand; + + /** 描述 */ + @Excel(name = "描述") + private String describe; + + /** 入库部门 */ + @Excel(name = "入库部门") + private String warehouseDept; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getDelFlag() + { + return delFlag; + } + public void setMaterialNo(String materialNo) + { + this.materialNo = materialNo; + } + + public String getMaterialNo() + { + return materialNo; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setAuditStatus(String auditStatus) + { + this.auditStatus = auditStatus; + } + + public String getAuditStatus() + { + return auditStatus; + } + public void setUseStatus(String useStatus) + { + this.useStatus = useStatus; + } + + public String getUseStatus() + { + return useStatus; + } + public void setHavaProductTem(String havaProductTem) + { + this.havaProductTem = havaProductTem; + } + + public String getHavaProductTem() + { + return havaProductTem; + } + public void setMaterialType(String materialType) + { + this.materialType = materialType; + } + + public String getMaterialType() + { + return materialType; + } + public void setProcessMethod(String processMethod) + { + this.processMethod = processMethod; + } + + public String getProcessMethod() + { + return processMethod; + } + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + public void setBrand(String brand) + { + this.brand = brand; + } + + public String getBrand() + { + return brand; + } + public void setDescribe(String describe) + { + this.describe = describe; + } + + public String getDescribe() + { + return describe; + } + public void setWarehouseDept(String warehouseDept) + { + this.warehouseDept = warehouseDept; + } + + public String getWarehouseDept() + { + return warehouseDept; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("materialNo", getMaterialNo()) + .append("materialName", getMaterialName()) + .append("auditStatus", getAuditStatus()) + .append("useStatus", getUseStatus()) + .append("havaProductTem", getHavaProductTem()) + .append("materialType", getMaterialType()) + .append("processMethod", getProcessMethod()) + .append("unit", getUnit()) + .append("brand", getBrand()) + .append("describe", getDescribe()) + .append("warehouseDept", getWarehouseDept()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpMaterialMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpMaterialMapper.java new file mode 100644 index 00000000..b54e5c2e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpMaterialMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.erp.mapper; + +import java.util.List; +import com.ruoyi.erp.domain.ErpMaterial; + +/** + * 物料信息Mapper接口 + * + * @author ruoyi + * @date 2023-11-12 + */ +public interface ErpMaterialMapper +{ + /** + * 查询物料信息 + * + * @param id 物料信息ID + * @return 物料信息 + */ + public ErpMaterial selectErpMaterialById(Long id); + + /** + * 查询物料信息列表 + * + * @param erpMaterial 物料信息 + * @return 物料信息集合 + */ + public List selectErpMaterialList(ErpMaterial erpMaterial); + + /** + * 新增物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + public int insertErpMaterial(ErpMaterial erpMaterial); + + /** + * 修改物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + public int updateErpMaterial(ErpMaterial erpMaterial); + + /** + * 删除物料信息 + * + * @param id 物料信息ID + * @return 结果 + */ + public int deleteErpMaterialById(Long id); + + /** + * 批量删除物料信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpMaterialByIds(String[] ids); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpMaterialService.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpMaterialService.java new file mode 100644 index 00000000..fd24678c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpMaterialService.java @@ -0,0 +1,61 @@ +package com.ruoyi.erp.service; + +import java.util.List; +import com.ruoyi.erp.domain.ErpMaterial; + +/** + * 物料信息Service接口 + * + * @author ruoyi + * @date 2023-11-12 + */ +public interface IErpMaterialService +{ + /** + * 查询物料信息 + * + * @param id 物料信息ID + * @return 物料信息 + */ + public ErpMaterial selectErpMaterialById(Long id); + + /** + * 查询物料信息列表 + * + * @param erpMaterial 物料信息 + * @return 物料信息集合 + */ + public List selectErpMaterialList(ErpMaterial erpMaterial); + + /** + * 新增物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + public int insertErpMaterial(ErpMaterial erpMaterial); + + /** + * 修改物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + public int updateErpMaterial(ErpMaterial erpMaterial); + + /** + * 批量删除物料信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpMaterialByIds(String ids); + + /** + * 删除物料信息信息 + * + * @param id 物料信息ID + * @return 结果 + */ + public int deleteErpMaterialById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpMaterialServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpMaterialServiceImpl.java new file mode 100644 index 00000000..1acc30b5 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpMaterialServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.erp.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.erp.mapper.ErpMaterialMapper; +import com.ruoyi.erp.domain.ErpMaterial; +import com.ruoyi.erp.service.IErpMaterialService; +import com.ruoyi.common.core.text.Convert; + +/** + * 物料信息Service业务层处理 + * + * @author ruoyi + * @date 2023-11-12 + */ +@Service +public class ErpMaterialServiceImpl implements IErpMaterialService +{ + @Autowired + private ErpMaterialMapper erpMaterialMapper; + + /** + * 查询物料信息 + * + * @param id 物料信息ID + * @return 物料信息 + */ + @Override + public ErpMaterial selectErpMaterialById(Long id) + { + return erpMaterialMapper.selectErpMaterialById(id); + } + + /** + * 查询物料信息列表 + * + * @param erpMaterial 物料信息 + * @return 物料信息 + */ + @Override + public List selectErpMaterialList(ErpMaterial erpMaterial) + { + return erpMaterialMapper.selectErpMaterialList(erpMaterial); + } + + /** + * 新增物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + @Override + public int insertErpMaterial(ErpMaterial erpMaterial) + { + erpMaterial.setCreateTime(DateUtils.getNowDate()); + return erpMaterialMapper.insertErpMaterial(erpMaterial); + } + + /** + * 修改物料信息 + * + * @param erpMaterial 物料信息 + * @return 结果 + */ + @Override + public int updateErpMaterial(ErpMaterial erpMaterial) + { + erpMaterial.setUpdateTime(DateUtils.getNowDate()); + return erpMaterialMapper.updateErpMaterial(erpMaterial); + } + + /** + * 删除物料信息对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteErpMaterialByIds(String ids) + { + return erpMaterialMapper.deleteErpMaterialByIds(Convert.toStrArray(ids)); + } + + /** + * 删除物料信息信息 + * + * @param id 物料信息ID + * @return 结果 + */ + @Override + public int deleteErpMaterialById(Long id) + { + return erpMaterialMapper.deleteErpMaterialById(id); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml new file mode 100644 index 00000000..679e31dd --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, material_no, material_name, audit_status, use_status, hava_product_tem, material_type, process_method, unit, brand, describe, warehouse_dept from erp_material + + + + + + + + insert into erp_material + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + material_no, + material_name, + audit_status, + use_status, + hava_product_tem, + material_type, + process_method, + unit, + brand, + describe, + warehouse_dept, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{materialNo}, + #{materialName}, + #{auditStatus}, + #{useStatus}, + #{havaProductTem}, + #{materialType}, + #{processMethod}, + #{unit}, + #{brand}, + #{describe}, + #{warehouseDept}, + + + + + update erp_material + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + material_no = #{materialNo}, + material_name = #{materialName}, + audit_status = #{auditStatus}, + use_status = #{useStatus}, + hava_product_tem = #{havaProductTem}, + material_type = #{materialType}, + process_method = #{processMethod}, + unit = #{unit}, + brand = #{brand}, + describe = #{describe}, + warehouse_dept = #{warehouseDept}, + + where id = #{id} + + + + delete from erp_material where id = #{id} + + + + delete from erp_material where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/add.html b/ruoyi-admin/src/main/resources/templates/erp/material/add.html new file mode 100644 index 00000000..61c8829a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/material/add.html @@ -0,0 +1,106 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/edit.html b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html new file mode 100644 index 00000000..ab50434a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html @@ -0,0 +1,107 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/material.html b/ruoyi-admin/src/main/resources/templates/erp/material/material.html new file mode 100644 index 00000000..2ac314f8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/material/material.html @@ -0,0 +1,233 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • + +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-generator/src/main/resources/templates/tool/gen/edit.html b/ruoyi-generator/src/main/resources/templates/tool/gen/edit.html index 53a6c2b2..cf126d33 100644 --- a/ruoyi-generator/src/main/resources/templates/tool/gen/edit.html +++ b/ruoyi-generator/src/main/resources/templates/tool/gen/edit.html @@ -536,6 +536,7 @@ var options = { title: '菜单选择', width: "380", + height: "580", url: url, callBack: doMenuSubmit }; diff --git a/sql/erp_update.sql b/sql/erp_update.sql new file mode 100644 index 00000000..976fc0aa --- /dev/null +++ b/sql/erp_update.sql @@ -0,0 +1,55 @@ +-- 20231112 新增物料信息表 +CREATE TABLE `erp_material` ( + `id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` CHAR ( 1 ) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者', + `create_time` DATETIME DEFAULT NULL COMMENT '创建时间', + `update_by` VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者', + `update_time` DATETIME DEFAULT NULL COMMENT '更新时间', + `remark` VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注', + `material_no` VARCHAR ( 50 ) DEFAULT NULL COMMENT '料号', + `material_name` VARCHAR ( 255 ) DEFAULT NULL COMMENT '物料名称', + `audit_status` VARCHAR ( 50 ) DEFAULT NULL COMMENT '审核状态', + `use_status` VARCHAR ( 50 ) DEFAULT NULL COMMENT '使用状态', + `hava_product_tem` VARCHAR ( 50 ) DEFAULT NULL COMMENT '是否有生产团队', + `material_type` VARCHAR ( 50 ) DEFAULT NULL COMMENT '物料类型', + `process_method` VARCHAR ( 50 ) DEFAULT NULL COMMENT '加工方式', + `unit` VARCHAR ( 50 ) DEFAULT NULL COMMENT '单位', + `brand` VARCHAR ( 255 ) DEFAULT NULL COMMENT '品牌', + `describe` VARCHAR ( 500 ) DEFAULT NULL COMMENT '描述', + `warehouse_dept` VARCHAR ( 50 ) DEFAULT NULL COMMENT '入库部门', + PRIMARY KEY ( `id` ) USING BTREE +) ENGINE = INNODB AUTO_INCREMENT = 32 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMMENT = '物料表'; + +-- 20231112 更新数据字典 +UPDATE `wancaierpdemo`.`sys_dict_type` SET `dict_name` = '单位', `dict_type` = 'sys_unit_class', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:01:22', `update_by` = 'admin', `update_time` = '2023-11-12 08:54:14', `remark` = 'erp_material' WHERE `dict_id` = 18; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 1, `dict_label` = 'pcs', `dict_value` = 'pcs', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:01:58', `update_by` = 'admin', `update_time` = '2021-10-21 10:14:48', `remark` = '' WHERE `dict_code` = 52; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 6, `dict_label` = '套', `dict_value` = '套', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:12', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:00', `remark` = '' WHERE `dict_code` = 53; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 14, `dict_label` = '只', `dict_value` = '只', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:23', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:36', `remark` = '' WHERE `dict_code` = 54; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 7, `dict_label` = '卷', `dict_value` = '卷', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:36', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:08', `remark` = '' WHERE `dict_code` = 55; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 8, `dict_label` = '双', `dict_value` = '双', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:52', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:16', `remark` = '' WHERE `dict_code` = 56; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 4, `dict_label` = 'M', `dict_value` = 'M', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:02', `update_by` = 'admin', `update_time` = '2023-11-12 08:44:11', `remark` = '' WHERE `dict_code` = 57; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 2, `dict_label` = 'kg', `dict_value` = 'kg', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:13', `update_by` = 'admin', `update_time` = '2023-11-12 08:43:53', `remark` = '' WHERE `dict_code` = 58; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 3, `dict_label` = 'g', `dict_value` = 'g', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:23', `update_by` = 'admin', `update_time` = '2023-11-12 08:43:59', `remark` = '' WHERE `dict_code` = 59; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 9, `dict_label` = 'KPCS', `dict_value` = 'KPCS', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:39', `update_by` = 'admin', `update_time` = '2021-10-21 10:15:58', `remark` = '' WHERE `dict_code` = 60; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 10, `dict_label` = '箱', `dict_value` = '箱', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:57', `update_by` = 'admin', `update_time` = '2021-10-21 10:16:07', `remark` = '' WHERE `dict_code` = 61; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 11, `dict_label` = '桶', `dict_value` = '桶', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:04:09', `update_by` = 'admin', `update_time` = '2021-10-21 10:21:43', `remark` = '' WHERE `dict_code` = 62; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 12, `dict_label` = '盒', `dict_value` = '盒', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:04:25', `update_by` = 'admin', `update_time` = '2021-10-21 10:21:49', `remark` = '' WHERE `dict_code` = 63; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 13, `dict_label` = '台', `dict_value` = '台', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2022-11-17 11:56:38', `update_by` = 'admin', `update_time` = '2022-11-17 11:56:53', `remark` = '' WHERE `dict_code` = 188; +UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 5, `dict_label` = 'ML', `dict_value` = '5', `dict_type` = 'sys_unit_class', `css_class` = NULL, `list_class` = NULL, `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2023-11-12 08:44:26', `update_by` = '', `update_time` = NULL, `remark` = NULL WHERE `dict_code` = 280; +INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (77, '审核状态', 'auditStatus', '0', 'admin', '2023-11-12 05:28:46', 'admin', '2023-11-12 06:51:07', 'erp_material'); +INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (79, '加工方式', 'processMethod', '0', 'admin', '2023-11-12 06:47:38', 'admin', '2023-11-12 06:51:17', 'erp_material'); +INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (78, '使用状态', 'useStatus', '0', 'admin', '2023-11-12 06:44:29', '', NULL, 'erp_material'); +INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (80, '入库部门', 'warehouseDept', '0', 'admin', '2023-11-12 06:50:40', '', NULL, 'erp_material'); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (269, 0, '待审核', '0', 'auditStatus', NULL, 'default', 'Y', '0', 'admin', '2023-11-12 05:29:41', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (270, 1, '审核通过', '1', 'auditStatus', '', '', 'Y', '0', 'admin', '2023-11-12 05:29:58', 'admin', '2023-11-12 05:30:08', ''); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (271, 2, '审核拒绝', '2', 'auditStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 05:30:23', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (272, 0, '是', '0', 'useStatus', '', '', 'Y', '0', 'admin', '2023-11-12 06:45:09', 'admin', '2023-11-12 06:45:36', ''); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (273, 1, '否', '1', 'useStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:45:24', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (274, 2, '已作废', '2', 'useStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:46:04', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (275, 0, '采购', '0', 'processMethod', '', '', 'Y', '0', 'admin', '2023-11-12 06:48:47', 'admin', '2023-11-12 06:49:52', ''); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (276, 1, '委内加工', '1', 'processMethod', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:49:03', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (277, 2, '委外加工', '2', 'processMethod', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:49:29', '', NULL, NULL); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (278, 0, '仓库部门', '0', 'warehouseDept', '', '', 'Y', '0', 'admin', '2023-11-12 08:42:01', 'admin', '2023-11-12 08:43:00', ''); +INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (279, 1, '采购部门', '1', 'warehouseDept', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 08:42:12', '', NULL, NULL); +