diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseInventoryReportDamageController.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseInventoryReportDamageController.java new file mode 100644 index 00000000..0e687b40 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseInventoryReportDamageController.java @@ -0,0 +1,151 @@ +package com.ruoyi.warehouse.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.warehouse.domain.WarehouseInventoryReportDamage; +import com.ruoyi.warehouse.service.IWarehouseInventoryReportDamageService; +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 刘晓旭 + * @date 2024-05-31 + */ +@Controller +@RequestMapping("/warehouse/inventoryReportDamage") +public class WarehouseInventoryReportDamageController extends BaseController +{ + private String prefix = "warehouse/inventoryReportDamage"; + + @Autowired + private IWarehouseInventoryReportDamageService warehouseInventoryReportDamageService; + + @RequiresPermissions("warehouse:inventoryReportDamage:view") + @GetMapping() + public String inventoryReportDamage() + { + return prefix + "/inventoryReportDamage"; + } + + /** + * 查询仓库库存报损列表 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + startPage(); + List list = warehouseInventoryReportDamageService.selectWarehouseInventoryReportDamageList(warehouseInventoryReportDamage); + return getDataTable(list); + } + + /** + * 导出仓库库存报损列表 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:export") + @Log(title = "仓库库存报损", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + List list = warehouseInventoryReportDamageService.selectWarehouseInventoryReportDamageList(warehouseInventoryReportDamage); + ExcelUtil util = new ExcelUtil(WarehouseInventoryReportDamage.class); + return util.exportExcel(list, "仓库库存报损数据"); + } + + /** + * 新增仓库库存报损 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存仓库库存报损 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:add") + @Log(title = "仓库库存报损", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + return toAjax(warehouseInventoryReportDamageService.insertWarehouseInventoryReportDamage(warehouseInventoryReportDamage)); + } + + /** + * 修改仓库库存报损 + */ + @GetMapping("/edit/{reportDamageId}") + public String edit(@PathVariable("reportDamageId") Long reportDamageId, ModelMap mmap) + { + WarehouseInventoryReportDamage warehouseInventoryReportDamage = warehouseInventoryReportDamageService.selectWarehouseInventoryReportDamageById(reportDamageId); + mmap.put("warehouseInventoryReportDamage", warehouseInventoryReportDamage); + return prefix + "/edit"; + } + + /** + * 修改保存仓库库存报损 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:edit") + @Log(title = "仓库库存报损", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + return toAjax(warehouseInventoryReportDamageService.updateWarehouseInventoryReportDamage(warehouseInventoryReportDamage)); + } + + /** + * 删除仓库库存报损 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:remove") + @Log(title = "仓库库存报损", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(warehouseInventoryReportDamageService.deleteWarehouseInventoryReportDamageByIds(ids)); + } + + /** + * 作废仓库库存报损 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:cancel") + @Log(title = "仓库库存报损", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(warehouseInventoryReportDamageService.cancelWarehouseInventoryReportDamageById(id)); + } + + /** + * 恢复仓库库存报损 + */ + @RequiresPermissions("warehouse:inventoryReportDamage:restore") + @Log(title = "仓库库存报损", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(warehouseInventoryReportDamageService.restoreWarehouseInventoryReportDamageById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseInventoryReportDamage.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseInventoryReportDamage.java new file mode 100644 index 00000000..1a9996b2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseInventoryReportDamage.java @@ -0,0 +1,227 @@ +package com.ruoyi.warehouse.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +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; + +/** + * 仓库库存报损对象 warehouse_inventory_report_damage + * + * @author 刘晓旭 + * @date 2024-05-31 + */ +public class WarehouseInventoryReportDamage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 库存报损id */ + private Long reportDamageId; + + /** 报损单号 */ + @Excel(name = "报损单号") + private String reportDamageCode; + + /** 报废类型 */ + @Excel(name = "报废类型") + private String warehousScrapType; + + /** 关联生产单号 */ + @Excel(name = "关联生产单号") + private String makeNo; + + /** 是否关联生产单号 */ + @Excel(name = "是否关联生产单号") + private String whetherMakeNo; + + /** 申请部门 */ + @Excel(name = "申请部门") + private String applyDept; + + /** 申请时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date applyTime; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 物料数合计 */ + @Excel(name = "物料数合计") + private String materialTotal; + + /** 数量合计 */ + @Excel(name = "数量合计") + private String numTotal; + + /** 仓库ID */ + @Excel(name = "仓库ID") + private String warehouseCode; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouseName; + + /** 仓库存放地址 */ + @Excel(name = "仓库存放地址") + private String warehouseStoreAddress; + + public void setReportDamageId(Long reportDamageId) + { + this.reportDamageId = reportDamageId; + } + + public Long getReportDamageId() + { + return reportDamageId; + } + public void setReportDamageCode(String reportDamageCode) + { + this.reportDamageCode = reportDamageCode; + } + + public String getReportDamageCode() + { + return reportDamageCode; + } + public void setWarehousScrapType(String warehousScrapType) + { + this.warehousScrapType = warehousScrapType; + } + + public String getWarehousScrapType() + { + return warehousScrapType; + } + public void setMakeNo(String makeNo) + { + this.makeNo = makeNo; + } + + public String getMakeNo() + { + return makeNo; + } + public void setWhetherMakeNo(String whetherMakeNo) + { + this.whetherMakeNo = whetherMakeNo; + } + + public String getWhetherMakeNo() + { + return whetherMakeNo; + } + public void setApplyDept(String applyDept) + { + this.applyDept = applyDept; + } + + public String getApplyDept() + { + return applyDept; + } + public void setApplyTime(Date applyTime) + { + this.applyTime = applyTime; + } + + public Date getApplyTime() + { + return applyTime; + } + 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 setMaterialTotal(String materialTotal) + { + this.materialTotal = materialTotal; + } + + public String getMaterialTotal() + { + return materialTotal; + } + public void setNumTotal(String numTotal) + { + this.numTotal = numTotal; + } + + public String getNumTotal() + { + return numTotal; + } + public void setWarehouseCode(String warehouseCode) + { + this.warehouseCode = warehouseCode; + } + + public String getWarehouseCode() + { + return warehouseCode; + } + public void setWarehouseName(String warehouseName) + { + this.warehouseName = warehouseName; + } + + public String getWarehouseName() + { + return warehouseName; + } + public void setWarehouseStoreAddress(String warehouseStoreAddress) + { + this.warehouseStoreAddress = warehouseStoreAddress; + } + + public String getWarehouseStoreAddress() + { + return warehouseStoreAddress; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("reportDamageId", getReportDamageId()) + .append("reportDamageCode", getReportDamageCode()) + .append("warehousScrapType", getWarehousScrapType()) + .append("makeNo", getMakeNo()) + .append("whetherMakeNo", getWhetherMakeNo()) + .append("applyDept", getApplyDept()) + .append("applyTime", getApplyTime()) + .append("materialNo", getMaterialNo()) + .append("materialName", getMaterialName()) + .append("materialTotal", getMaterialTotal()) + .append("numTotal", getNumTotal()) + .append("warehouseCode", getWarehouseCode()) + .append("warehouseName", getWarehouseName()) + .append("warehouseStoreAddress", getWarehouseStoreAddress()) + .append("remark", getRemark()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseInventoryReportDamageMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseInventoryReportDamageMapper.java new file mode 100644 index 00000000..9d9c6f19 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseInventoryReportDamageMapper.java @@ -0,0 +1,86 @@ +package com.ruoyi.warehouse.mapper; + +import java.util.List; +import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamage; +import org.apache.ibatis.annotations.Param; + +/** + * 仓库库存报损Mapper接口 + * + * @author 刘晓旭 + * @date 2024-05-31 + */ +public interface WarehouseInventoryReportDamageMapper +{ + /** + * 查询仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 仓库库存报损 + */ + public WarehouseInventoryReportDamage selectWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 查询仓库库存报损列表 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 仓库库存报损集合 + */ + public List selectWarehouseInventoryReportDamageList(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 新增仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + public int insertWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 修改仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + public int updateWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 删除仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + public int deleteWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 批量删除仓库库存报损 + * + * @param reportDamageIds 需要删除的数据ID + * @return 结果 + */ + public int deleteWarehouseInventoryReportDamageByIds(String[] reportDamageIds); + + /** + * 作废仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + public int cancelWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 恢复仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + public int restoreWarehouseInventoryReportDamageById(Long reportDamageId); + + + /** + * 查询数据库中今天已经生产的最大序号 + * + * @param prefix 前面的:BS年月日 + */ + public String findMaxRoundCode(@Param("prefix") String prefix); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseInventoryReportDamageService.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseInventoryReportDamageService.java new file mode 100644 index 00000000..5bcafd23 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseInventoryReportDamageService.java @@ -0,0 +1,75 @@ +package com.ruoyi.warehouse.service; + +import java.util.List; +import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamage; + +/** + * 仓库库存报损Service接口 + * + * @author 刘晓旭 + * @date 2024-05-31 + */ +public interface IWarehouseInventoryReportDamageService +{ + /** + * 查询仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 仓库库存报损 + */ + public WarehouseInventoryReportDamage selectWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 查询仓库库存报损列表 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 仓库库存报损集合 + */ + public List selectWarehouseInventoryReportDamageList(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 新增仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + public int insertWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 修改仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + public int updateWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage); + + /** + * 批量删除仓库库存报损 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWarehouseInventoryReportDamageByIds(String ids); + + /** + * 删除仓库库存报损信息 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + public int deleteWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 作废仓库库存报损 + * @param reportDamageId 仓库库存报损ID + * @return + */ + int cancelWarehouseInventoryReportDamageById(Long reportDamageId); + + /** + * 恢复仓库库存报损 + * @param reportDamageId 仓库库存报损ID + * @return + */ + int restoreWarehouseInventoryReportDamageById(Long reportDamageId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseInventoryReportDamageServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseInventoryReportDamageServiceImpl.java new file mode 100644 index 00000000..39999741 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseInventoryReportDamageServiceImpl.java @@ -0,0 +1,174 @@ +package com.ruoyi.warehouse.service.impl; + +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +import com.ruoyi.common.exception.BusinessException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.warehouse.mapper.WarehouseInventoryReportDamageMapper; +import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamage; +import com.ruoyi.warehouse.service.IWarehouseInventoryReportDamageService; +import com.ruoyi.common.core.text.Convert; + +/** + * 仓库库存报损Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-05-31 + */ +@Service +public class WarehouseInventoryReportDamageServiceImpl implements IWarehouseInventoryReportDamageService +{ + @Autowired + private WarehouseInventoryReportDamageMapper warehouseInventoryReportDamageMapper; + + /** + * 查询仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 仓库库存报损 + */ + @Override + public WarehouseInventoryReportDamage selectWarehouseInventoryReportDamageById(Long reportDamageId) + { + return warehouseInventoryReportDamageMapper.selectWarehouseInventoryReportDamageById(reportDamageId); + } + + /** + * 查询仓库库存报损列表 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 仓库库存报损 + */ + @Override + public List selectWarehouseInventoryReportDamageList(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + return warehouseInventoryReportDamageMapper.selectWarehouseInventoryReportDamageList(warehouseInventoryReportDamage); + } + + /** + * 新增仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + @Override + public int insertWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + + + //更改日期格式,以提高可读性 + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + String dataPart = df.format(new Date()); + + //移除日期中的分隔符以便于后续处理 + String prefix = "BS"+dataPart.replace("-",""); + + //查询数据库中最大的编号 + String maxCode = warehouseInventoryReportDamageMapper.findMaxRoundCode(prefix); + + String newCode = generateNewCode(prefix,maxCode); + + warehouseInventoryReportDamage.setReportDamageCode(newCode); + warehouseInventoryReportDamage.setCreateTime(DateUtils.getNowDate()); + String loginName = ShiroUtils.getLoginName(); + warehouseInventoryReportDamage.setCreateBy(loginName); + return warehouseInventoryReportDamageMapper.insertWarehouseInventoryReportDamage(warehouseInventoryReportDamage); + } + + /** + * 修改仓库库存报损 + * + * @param warehouseInventoryReportDamage 仓库库存报损 + * @return 结果 + */ + @Override + public int updateWarehouseInventoryReportDamage(WarehouseInventoryReportDamage warehouseInventoryReportDamage) + { + String loginName = ShiroUtils.getLoginName(); + warehouseInventoryReportDamage.setUpdateBy(loginName); + warehouseInventoryReportDamage.setUpdateTime(DateUtils.getNowDate()); + return warehouseInventoryReportDamageMapper.updateWarehouseInventoryReportDamage(warehouseInventoryReportDamage); + } + + /** + * 删除仓库库存报损对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWarehouseInventoryReportDamageByIds(String ids) + { + return warehouseInventoryReportDamageMapper.deleteWarehouseInventoryReportDamageByIds(Convert.toStrArray(ids)); + } + + /** + * 删除仓库库存报损信息 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + @Override + public int deleteWarehouseInventoryReportDamageById(Long reportDamageId) + { + return warehouseInventoryReportDamageMapper.deleteWarehouseInventoryReportDamageById(reportDamageId); + } + + /** + * 作废仓库库存报损 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + @Override + public int cancelWarehouseInventoryReportDamageById(Long reportDamageId) + { + return warehouseInventoryReportDamageMapper.cancelWarehouseInventoryReportDamageById(reportDamageId); + } + + /** + * 恢复仓库库存报损信息 + * + * @param reportDamageId 仓库库存报损ID + * @return 结果 + */ + @Override + public int restoreWarehouseInventoryReportDamageById(Long reportDamageId) + { + return warehouseInventoryReportDamageMapper.restoreWarehouseInventoryReportDamageById(reportDamageId); + } + + + /** + *报损单号生产规则 + *系统自动生成,按照特定编码,编码暂用【BS+年月日+001】, + *自增长,如:BS20231111001,BS20231111002 + * + */ + private String generateNewCode(String prefix, String maxCode) { + if (StringUtils.isEmpty(maxCode)){ + return prefix+"001"; + } + //解析并递增编号 + int sequence = Integer.parseInt(maxCode.substring(5)) + 1 ; + + //检查序列号是否溢出 + if (sequence > 999){ + throw new BusinessException("当日编号已达到最大值999,请检查或调整策略"); + } + + //格式化序列号,自动补零至三位 + DecimalFormat df = new DecimalFormat("000"); + + return prefix + df.format(sequence); + } + + +} diff --git a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseInventoryReportDamageMapper.xml b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseInventoryReportDamageMapper.xml new file mode 100644 index 00000000..4d70b37e --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseInventoryReportDamageMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select report_damage_id, report_damage_code, warehous_scrap_type, make_no, whether_make_no, apply_dept, apply_time, material_no, material_name, material_total, num_total, warehouse_code, warehouse_name, warehouse_store_address, remark, create_time, create_by, update_by, update_time from warehouse_inventory_report_damage + + + + + + + + insert into warehouse_inventory_report_damage + + report_damage_code, + warehous_scrap_type, + make_no, + whether_make_no, + apply_dept, + apply_time, + material_no, + material_name, + material_total, + num_total, + warehouse_code, + warehouse_name, + warehouse_store_address, + remark, + create_time, + create_by, + update_by, + update_time, + + + #{reportDamageCode}, + #{warehousScrapType}, + #{makeNo}, + #{whetherMakeNo}, + #{applyDept}, + #{applyTime}, + #{materialNo}, + #{materialName}, + #{materialTotal}, + #{numTotal}, + #{warehouseCode}, + #{warehouseName}, + #{warehouseStoreAddress}, + #{remark}, + #{createTime}, + #{createBy}, + #{updateBy}, + #{updateTime}, + + + + + update warehouse_inventory_report_damage + + report_damage_code = #{reportDamageCode}, + warehous_scrap_type = #{warehousScrapType}, + make_no = #{makeNo}, + whether_make_no = #{whetherMakeNo}, + apply_dept = #{applyDept}, + apply_time = #{applyTime}, + material_no = #{materialNo}, + material_name = #{materialName}, + material_total = #{materialTotal}, + num_total = #{numTotal}, + warehouse_code = #{warehouseCode}, + warehouse_name = #{warehouseName}, + warehouse_store_address = #{warehouseStoreAddress}, + remark = #{remark}, + create_time = #{createTime}, + create_by = #{createBy}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where report_damage_id = #{reportDamageId} + + + + delete from warehouse_inventory_report_damage where report_damage_id = #{reportDamageId} + + + + delete from warehouse_inventory_report_damage where report_damage_id in + + #{reportDamageId} + + + + + update warehouse_inventory_report_damage set del_flag = '1' where report_damage_id = #{reportDamageId} + + + + update warehouse_inventory_report_damage set del_flag = '0' where report_damage_id = #{reportDamageId} + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html new file mode 100644 index 00000000..25844378 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html @@ -0,0 +1,119 @@ + + + + + + + +
+
+ + + + + + + + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/edit.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/edit.html new file mode 100644 index 00000000..79e2df5d --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/edit.html @@ -0,0 +1,126 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/inventoryReportDamage.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/inventoryReportDamage.html new file mode 100644 index 00000000..4ba4f9af --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/inventoryReportDamage.html @@ -0,0 +1,192 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • + +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file