diff --git a/ruoyi-admin/src/main/java/com/ruoyi/financial/controller/FinancialCompantFixedAssetsController.java b/ruoyi-admin/src/main/java/com/ruoyi/financial/controller/FinancialCompantFixedAssetsController.java new file mode 100644 index 00000000..e6f92800 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/financial/controller/FinancialCompantFixedAssetsController.java @@ -0,0 +1,151 @@ +package com.ruoyi.financial.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.financial.domain.FinancialCompantFixedAssets; +import com.ruoyi.financial.service.IFinancialCompantFixedAssetsService; +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 2024-05-28 + */ +@Controller +@RequestMapping("/financial/compantFixedAssets") +public class FinancialCompantFixedAssetsController extends BaseController +{ + private String prefix = "financial/compantFixedAssets"; + + @Autowired + private IFinancialCompantFixedAssetsService financialCompantFixedAssetsService; + + @RequiresPermissions("financial:CompantFixedAssets:view") + @GetMapping() + public String CompantFixedAssets() + { + return prefix + "/CompantFixedAssets"; + } + + /** + * 查询公司固定资产列表 + */ + @RequiresPermissions("financial:CompantFixedAssets:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(FinancialCompantFixedAssets financialCompantFixedAssets) + { + startPage(); + List list = financialCompantFixedAssetsService.selectFinancialCompantFixedAssetsList(financialCompantFixedAssets); + return getDataTable(list); + } + + /** + * 导出公司固定资产列表 + */ + @RequiresPermissions("financial:CompantFixedAssets:export") + @Log(title = "公司固定资产", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(FinancialCompantFixedAssets financialCompantFixedAssets) + { + List list = financialCompantFixedAssetsService.selectFinancialCompantFixedAssetsList(financialCompantFixedAssets); + ExcelUtil util = new ExcelUtil(FinancialCompantFixedAssets.class); + return util.exportExcel(list, "公司固定资产数据"); + } + + /** + * 新增公司固定资产 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存公司固定资产 + */ + @RequiresPermissions("financial:CompantFixedAssets:add") + @Log(title = "公司固定资产", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(FinancialCompantFixedAssets financialCompantFixedAssets) + { + return toAjax(financialCompantFixedAssetsService.insertFinancialCompantFixedAssets(financialCompantFixedAssets)); + } + + /** + * 修改公司固定资产 + */ + @GetMapping("/edit/{compantFixedAssetsId}") + public String edit(@PathVariable("compantFixedAssetsId") Long compantFixedAssetsId, ModelMap mmap) + { + FinancialCompantFixedAssets financialCompantFixedAssets = financialCompantFixedAssetsService.selectFinancialCompantFixedAssetsById(compantFixedAssetsId); + mmap.put("financialCompantFixedAssets", financialCompantFixedAssets); + return prefix + "/edit"; + } + + /** + * 修改保存公司固定资产 + */ + @RequiresPermissions("financial:CompantFixedAssets:edit") + @Log(title = "公司固定资产", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(FinancialCompantFixedAssets financialCompantFixedAssets) + { + return toAjax(financialCompantFixedAssetsService.updateFinancialCompantFixedAssets(financialCompantFixedAssets)); + } + + /** + * 删除公司固定资产 + */ + @RequiresPermissions("financial:CompantFixedAssets:remove") + @Log(title = "公司固定资产", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(financialCompantFixedAssetsService.deleteFinancialCompantFixedAssetsByIds(ids)); + } + + /** + * 作废公司固定资产 + */ + @RequiresPermissions("financial:CompantFixedAssets:cancel") + @Log(title = "公司固定资产", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(financialCompantFixedAssetsService.cancelFinancialCompantFixedAssetsById(id)); + } + + /** + * 恢复公司固定资产 + */ + @RequiresPermissions("financial:CompantFixedAssets:restore") + @Log(title = "公司固定资产", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(financialCompantFixedAssetsService.restoreFinancialCompantFixedAssetsById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/financial/domain/FinancialCompantFixedAssets.java b/ruoyi-admin/src/main/java/com/ruoyi/financial/domain/FinancialCompantFixedAssets.java new file mode 100644 index 00000000..dd63f46c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/financial/domain/FinancialCompantFixedAssets.java @@ -0,0 +1,371 @@ +package com.ruoyi.financial.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; + +/** + * 公司固定资产对象 financial_compant_fixed_assets + * + * @author ruoyi + * @date 2024-05-28 + */ +public class FinancialCompantFixedAssets extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 设备档案id */ + private Long compantFixedAssetsId; + + /** 料号 */ + @Excel(name = "料号") + private String materialCode; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + /** 设备编号 */ + @Excel(name = "设备编号") + private String equipCode; + /** 设备名称 */ + @Excel(name = "设备名称") + private String equipName; + + /** 设备型号 */ + @Excel(name = "设备型号") + private String equipModel; + + /** 设备重量 */ + @Excel(name = "设备重量") + private String equipWeight; + + /** 设备状态 */ + @Excel(name = "设备状态") + private String equipStatus; + + /** 计量单位 */ + @Excel(name = "计量单位") + private String equipUnit; + + /** 设备类别 */ + @Excel(name = "设备类别") + private String equipCategory; + + /** 出厂编号 */ + @Excel(name = "出厂编号") + private String factoryCode; + + /** 设备价格 */ + @Excel(name = "设备价格") + private Long equipPrice; + + /** 厂家代码 */ + @Excel(name = "厂家代码") + private String manufacturerCode; + + /** 设备生产日期 */ + @Excel(name = "设备生产日期") + private String equipProductionDate; + + /** 所在部门 */ + @Excel(name = "所在部门") + private String department; + + /** 设备厂家名称 */ + @Excel(name = "设备厂家名称") + private String equipManufacturerName; + + /** 设备使用日期 */ + @Excel(name = "设备使用日期") + private String equipUsageDate; + + /** 折旧年数 */ + @Excel(name = "折旧年数") + private String depreciationYears; + + /** 年折旧率 */ + @Excel(name = "年折旧率") + private String annualDepreciationRate; + + /** 设备存放位置 */ + @Excel(name = "设备存放位置") + private String equipStorageLocation; + + /** 完成工序 */ + @Excel(name = "完成工序") + private String completeTheProcess; + + /** 负责人 */ + @Excel(name = "负责人") + private String esponsiblePerson; + + /** 使用状态 */ + @Excel(name = "使用状态") + private String useStatus; + + /** 审核状态 */ + @Excel(name = "审核状态") + private String auditStatus; + + /** 删除标志 */ + private String delFlag; + + + public void setCompantFixedAssetsId(Long compantFixedAssetsId) + { + this.compantFixedAssetsId = compantFixedAssetsId; + } + + public Long getCompantFixedAssetsId() + { + return compantFixedAssetsId; + } + + public String getEquipCode() { + return equipCode; + } + + public void setEquipCode(String equipCode) { + this.equipCode = equipCode; + } + + public String getEquipName() { + return equipName; + } + + public void setEquipName(String equipName) { + this.equipName = equipName; + } + public void setMaterialCode(String materialCode) + { + this.materialCode = materialCode; + } + + public String getMaterialCode() + { + return materialCode; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setEquipModel(String equipModel) + { + this.equipModel = equipModel; + } + + public String getEquipModel() + { + return equipModel; + } + public void setEquipWeight(String equipWeight) + { + this.equipWeight = equipWeight; + } + + public String getEquipWeight() + { + return equipWeight; + } + public void setEquipStatus(String equipStatus) + { + this.equipStatus = equipStatus; + } + + public String getEquipStatus() + { + return equipStatus; + } + public void setEquipUnit(String equipUnit) + { + this.equipUnit = equipUnit; + } + + public String getEquipUnit() + { + return equipUnit; + } + public void setEquipCategory(String equipCategory) + { + this.equipCategory = equipCategory; + } + + public String getEquipCategory() + { + return equipCategory; + } + public void setFactoryCode(String factoryCode) + { + this.factoryCode = factoryCode; + } + + public String getFactoryCode() + { + return factoryCode; + } + public void setEquipPrice(Long equipPrice) + { + this.equipPrice = equipPrice; + } + + public Long getEquipPrice() + { + return equipPrice; + } + public void setManufacturerCode(String manufacturerCode) + { + this.manufacturerCode = manufacturerCode; + } + + public String getManufacturerCode() + { + return manufacturerCode; + } + public void setEquipProductionDate(String equipProductionDate) + { + this.equipProductionDate = equipProductionDate; + } + + public String getEquipProductionDate() + { + return equipProductionDate; + } + public void setDepartment(String department) + { + this.department = department; + } + + public String getDepartment() + { + return department; + } + public void setEquipManufacturerName(String equipManufacturerName) + { + this.equipManufacturerName = equipManufacturerName; + } + + public String getEquipManufacturerName() + { + return equipManufacturerName; + } + public void setEquipUsageDate(String equipUsageDate) + { + this.equipUsageDate = equipUsageDate; + } + + public String getEquipUsageDate() + { + return equipUsageDate; + } + public void setDepreciationYears(String depreciationYears) + { + this.depreciationYears = depreciationYears; + } + + public String getDepreciationYears() + { + return depreciationYears; + } + public void setAnnualDepreciationRate(String annualDepreciationRate) + { + this.annualDepreciationRate = annualDepreciationRate; + } + + public String getAnnualDepreciationRate() + { + return annualDepreciationRate; + } + public void setEquipStorageLocation(String equipStorageLocation) + { + this.equipStorageLocation = equipStorageLocation; + } + + public String getEquipStorageLocation() + { + return equipStorageLocation; + } + public void setCompleteTheProcess(String completeTheProcess) + { + this.completeTheProcess = completeTheProcess; + } + + public String getCompleteTheProcess() + { + return completeTheProcess; + } + public void setEsponsiblePerson(String esponsiblePerson) + { + this.esponsiblePerson = esponsiblePerson; + } + + public String getEsponsiblePerson() + { + return esponsiblePerson; + } + public void setUseStatus(String useStatus) + { + this.useStatus = useStatus; + } + + public String getUseStatus() + { + return useStatus; + } + public void setAuditStatus(String auditStatus) + { + this.auditStatus = auditStatus; + } + + public String getAuditStatus() + { + return auditStatus; + } + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getDelFlag() + { + return delFlag; + } + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("compantFixedAssetsId", getCompantFixedAssetsId()) + .append("materialCode", getMaterialCode()) + .append("materialName", getMaterialName()) + .append("equipModel", getEquipModel()) + .append("equipWeight", getEquipWeight()) + .append("equipStatus", getEquipStatus()) + .append("equipUnit", getEquipUnit()) + .append("equipCategory", getEquipCategory()) + .append("factoryCode", getFactoryCode()) + .append("equipPrice", getEquipPrice()) + .append("manufacturerCode", getManufacturerCode()) + .append("equipProductionDate", getEquipProductionDate()) + .append("department", getDepartment()) + .append("equipManufacturerName", getEquipManufacturerName()) + .append("equipUsageDate", getEquipUsageDate()) + .append("depreciationYears", getDepreciationYears()) + .append("annualDepreciationRate", getAnnualDepreciationRate()) + .append("equipStorageLocation", getEquipStorageLocation()) + .append("completeTheProcess", getCompleteTheProcess()) + .append("esponsiblePerson", getEsponsiblePerson()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("useStatus", getUseStatus()) + .append("auditStatus", getAuditStatus()) + .append("delFlag", getDelFlag()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/financial/mapper/FinancialCompantFixedAssetsMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/financial/mapper/FinancialCompantFixedAssetsMapper.java new file mode 100644 index 00000000..dc693f72 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/financial/mapper/FinancialCompantFixedAssetsMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.financial.mapper; + +import java.util.List; +import com.ruoyi.financial.domain.FinancialCompantFixedAssets; + +/** + * 公司固定资产Mapper接口 + * + * @author ruoyi + * @date 2024-05-28 + */ +public interface FinancialCompantFixedAssetsMapper +{ + /** + * 查询公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 公司固定资产 + */ + public FinancialCompantFixedAssets selectFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 查询公司固定资产列表 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 公司固定资产集合 + */ + public List selectFinancialCompantFixedAssetsList(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 新增公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + public int insertFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 修改公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + public int updateFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 删除公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + public int deleteFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 批量删除公司固定资产 + * + * @param compantFixedAssetsIds 需要删除的数据ID + * @return 结果 + */ + public int deleteFinancialCompantFixedAssetsByIds(String[] compantFixedAssetsIds); + + /** + * 作废公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + public int cancelFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 恢复公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + public int restoreFinancialCompantFixedAssetsById(Long compantFixedAssetsId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/financial/service/IFinancialCompantFixedAssetsService.java b/ruoyi-admin/src/main/java/com/ruoyi/financial/service/IFinancialCompantFixedAssetsService.java new file mode 100644 index 00000000..7f1a2955 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/financial/service/IFinancialCompantFixedAssetsService.java @@ -0,0 +1,75 @@ +package com.ruoyi.financial.service; + +import java.util.List; +import com.ruoyi.financial.domain.FinancialCompantFixedAssets; + +/** + * 公司固定资产Service接口 + * + * @author ruoyi + * @date 2024-05-28 + */ +public interface IFinancialCompantFixedAssetsService +{ + /** + * 查询公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 公司固定资产 + */ + public FinancialCompantFixedAssets selectFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 查询公司固定资产列表 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 公司固定资产集合 + */ + public List selectFinancialCompantFixedAssetsList(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 新增公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + public int insertFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 修改公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + public int updateFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets); + + /** + * 批量删除公司固定资产 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteFinancialCompantFixedAssetsByIds(String ids); + + /** + * 删除公司固定资产信息 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + public int deleteFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 作废公司固定资产 + * @param compantFixedAssetsId 公司固定资产ID + * @return + */ + int cancelFinancialCompantFixedAssetsById(Long compantFixedAssetsId); + + /** + * 恢复公司固定资产 + * @param compantFixedAssetsId 公司固定资产ID + * @return + */ + int restoreFinancialCompantFixedAssetsById(Long compantFixedAssetsId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialCompantFixedAssetsServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialCompantFixedAssetsServiceImpl.java new file mode 100644 index 00000000..f05eb7de --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialCompantFixedAssetsServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.financial.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.financial.mapper.FinancialCompantFixedAssetsMapper; +import com.ruoyi.financial.domain.FinancialCompantFixedAssets; +import com.ruoyi.financial.service.IFinancialCompantFixedAssetsService; +import com.ruoyi.common.core.text.Convert; + +/** + * 公司固定资产Service业务层处理 + * + * @author ruoyi + * @date 2024-05-28 + */ +@Service +public class FinancialCompantFixedAssetsServiceImpl implements IFinancialCompantFixedAssetsService +{ + @Autowired + private FinancialCompantFixedAssetsMapper financialCompantFixedAssetsMapper; + + /** + * 查询公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 公司固定资产 + */ + @Override + public FinancialCompantFixedAssets selectFinancialCompantFixedAssetsById(Long compantFixedAssetsId) + { + return financialCompantFixedAssetsMapper.selectFinancialCompantFixedAssetsById(compantFixedAssetsId); + } + + /** + * 查询公司固定资产列表 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 公司固定资产 + */ + @Override + public List selectFinancialCompantFixedAssetsList(FinancialCompantFixedAssets financialCompantFixedAssets) + { + return financialCompantFixedAssetsMapper.selectFinancialCompantFixedAssetsList(financialCompantFixedAssets); + } + + /** + * 新增公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + @Override + public int insertFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets) + { + String loginName = ShiroUtils.getLoginName(); + financialCompantFixedAssets.setCreateBy(loginName); + financialCompantFixedAssets.setCreateTime(DateUtils.getNowDate()); + return financialCompantFixedAssetsMapper.insertFinancialCompantFixedAssets(financialCompantFixedAssets); + } + + /** + * 修改公司固定资产 + * + * @param financialCompantFixedAssets 公司固定资产 + * @return 结果 + */ + @Override + public int updateFinancialCompantFixedAssets(FinancialCompantFixedAssets financialCompantFixedAssets) + { + String loginName = ShiroUtils.getLoginName(); + financialCompantFixedAssets.setUpdateBy(loginName); + financialCompantFixedAssets.setUpdateTime(DateUtils.getNowDate()); + return financialCompantFixedAssetsMapper.updateFinancialCompantFixedAssets(financialCompantFixedAssets); + } + + /** + * 删除公司固定资产对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteFinancialCompantFixedAssetsByIds(String ids) + { + return financialCompantFixedAssetsMapper.deleteFinancialCompantFixedAssetsByIds(Convert.toStrArray(ids)); + } + + /** + * 删除公司固定资产信息 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + @Override + public int deleteFinancialCompantFixedAssetsById(Long compantFixedAssetsId) + { + return financialCompantFixedAssetsMapper.deleteFinancialCompantFixedAssetsById(compantFixedAssetsId); + } + + /** + * 作废公司固定资产 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + @Override + public int cancelFinancialCompantFixedAssetsById(Long compantFixedAssetsId) + { + return financialCompantFixedAssetsMapper.cancelFinancialCompantFixedAssetsById(compantFixedAssetsId); + } + + /** + * 恢复公司固定资产信息 + * + * @param compantFixedAssetsId 公司固定资产ID + * @return 结果 + */ + @Override + public int restoreFinancialCompantFixedAssetsById(Long compantFixedAssetsId) + { + return financialCompantFixedAssetsMapper.restoreFinancialCompantFixedAssetsById(compantFixedAssetsId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/financial/FinancialCompantFixedAssetsMapper.xml b/ruoyi-admin/src/main/resources/mapper/financial/FinancialCompantFixedAssetsMapper.xml new file mode 100644 index 00000000..6b8e28b8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/financial/FinancialCompantFixedAssetsMapper.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select compant_fixed_assets_id, material_code, material_name,equip_code,equip_name, equip_model, + equip_weight, equip_status, equip_unit, equip_category, factory_code, + equip_price, manufacturer_code, equip_production_date, department, equip_manufacturer_name, + equip_usage_date, depreciation_years, annual_depreciation_rate, equip_storage_location, + complete_the_process, esponsible_person, remark, create_by, create_time, update_by, + update_time, use_status, audit_status, del_flag + from financial_compant_fixed_assets + + + + + + + + insert into financial_compant_fixed_assets + + material_code, + material_name, + equip_code, + equip_name, + equip_model, + equip_weight, + equip_status, + equip_unit, + equip_category, + factory_code, + equip_price, + manufacturer_code, + equip_production_date, + department, + equip_manufacturer_name, + equip_usage_date, + depreciation_years, + annual_depreciation_rate, + equip_storage_location, + complete_the_process, + esponsible_person, + remark, + create_by, + create_time, + update_by, + update_time, + use_status, + audit_status, + del_flag, + + + #{materialCode}, + #{materialName}, + #{equipCode}, + #{equipName}, + #{equipModel}, + #{equipWeight}, + #{equipStatus}, + #{equipUnit}, + #{equipCategory}, + #{factoryCode}, + #{equipPrice}, + #{manufacturerCode}, + #{equipProductionDate}, + #{department}, + #{equipManufacturerName}, + #{equipUsageDate}, + #{depreciationYears}, + #{annualDepreciationRate}, + #{equipStorageLocation}, + #{completeTheProcess}, + #{esponsiblePerson}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{useStatus}, + #{auditStatus}, + #{delFlag}, + + + + + update financial_compant_fixed_assets + + material_code = #{materialCode}, + material_name = #{materialName}, + equip_code = #{equipCode}, + equip_name = #{equipName}, + equip_model = #{equipModel}, + equip_ weight = #{equipWeight}, + equip_status = #{equipStatus}, + equip_unit = #{equipUnit}, + equip_category = #{equipCategory}, + factory_code = #{factoryCode}, + equip_price = #{equipPrice}, + manufacturer_code = #{manufacturerCode}, + equip_production_date = #{equipProductionDate}, + department = #{department}, + equip_manufacturer_name = #{equipManufacturerName}, + equip_usage_date = #{equipUsageDate}, + depreciation_years = #{depreciationYears}, + annual_depreciation_rate = #{annualDepreciationRate}, + equip_storage_location = #{equipStorageLocation}, + complete_the_process = #{completeTheProcess}, + esponsible_person = #{esponsiblePerson}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + use_status = #{useStatus}, + audit_status = #{auditStatus}, + del_flag = #{delFlag}, + + where compant_fixed_assets_id = #{compantFixedAssetsId} + + + + delete from financial_compant_fixed_assets where compant_fixed_assets_id = #{compantFixedAssetsId} + + + + delete from financial_compant_fixed_assets where compant_fixed_assets_id in + + #{compantFixedAssetsId} + + + + + update financial_compant_fixed_assets set del_flag = '1' where compant_fixed_assets_id = #{compantFixedAssetsId} + + + + update financial_compant_fixed_assets set del_flag = '0' where compant_fixed_assets_id = #{compantFixedAssetsId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/add.html b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/add.html new file mode 100644 index 00000000..db328d7e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/add.html @@ -0,0 +1,234 @@ + + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/compantFixedAssets.html b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/compantFixedAssets.html new file mode 100644 index 00000000..1b16bac2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/compantFixedAssets.html @@ -0,0 +1,144 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/edit.html b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/edit.html new file mode 100644 index 00000000..4d2eabfb --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/financial/compantFixedAssets/edit.html @@ -0,0 +1,240 @@ + + + + + + + +
+
+ +
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file