diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java index 2cde3f7..4c8813d 100644 --- a/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseDeviceLedger.java @@ -83,6 +83,18 @@ public class BaseDeviceLedger extends BaseEntity { @Excel(name = "所属工位") private String productLineCode; + /** + * 工厂编号 + */ + @Excel(name = "工厂编号") + private String factoryCode; + + /** + * 工厂名称 + */ + @Excel(name = "工厂名称") + private String factoryName; + /** * 启用标识 */ @@ -115,6 +127,21 @@ public class BaseDeviceLedger extends BaseEntity { @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date updatedTime; + public String getFactoryName() { + return factoryName; + } + + public void setFactoryName(String factoryName) { + this.factoryName = factoryName; + } + + public String getFactoryCode() { + return factoryCode; + } + + public void setFactoryCode(String factoryCode) { + this.factoryCode = factoryCode; + } public String getCostCenter() { return costCenter; diff --git a/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml index fe92e0f..8692444 100644 --- a/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml +++ b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml @@ -5,123 +5,150 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - select obj_id, device_code, device_name, device_model, device_type, device_address, device_status, used_department, cost_center, manufacturer, enable_date,product_line_code, is_flag, created_by, created_time, updated_by, updated_time from base_deviceledger + select obj_id, + device_code, + device_name, + device_model, + device_type, + device_address, + device_status, + used_department, + cost_center, + manufacturer, + enable_date, + product_line_code, + factory_code, + is_flag, + created_by, + created_time, + updated_by, + updated_time + from base_deviceledger - - SELECT seq_base_deviceledger.NEXTVAL as objId FROM DUAL - + + SELECT seq_base_deviceledger.NEXTVAL as objId FROM DUAL + insert into base_deviceledger - obj_id, - device_code, - device_name, - device_model, - device_type, - device_address, - device_status, - used_department, - product_line_code, - cost_center, - manufacturer, - enable_date, - is_flag, - created_by, - created_time, - updated_by, - updated_time, + obj_id, + device_code, + device_name, + device_model, + device_type, + device_address, + device_status, + used_department, + product_line_code, + cost_center, + manufacturer, + enable_date, + factory_code, + is_flag, + created_by, + created_time, + updated_by, + updated_time, - #{objId}, - #{deviceCode}, - #{deviceName}, - #{deviceModel}, - #{deviceType}, - #{deviceAddress}, - #{deviceStatus}, - #{usedDepartment}, - #{productLineCode}, - cost_center, - manufacturer, - enable_date, - #{isFlag}, - #{createdBy}, - #{createdTime}, - #{updatedBy}, - #{updatedTime}, + #{objId}, + #{deviceCode}, + #{deviceName}, + #{deviceModel}, + #{deviceType}, + #{deviceAddress}, + #{deviceStatus}, + #{usedDepartment}, + #{productLineCode}, + #{costCenter}, + #{manufacturer}, + #{enableDate}, + #{factoryCode}, + #{isFlag}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, update base_deviceledger - device_code = #{deviceCode}, - device_name = #{deviceName}, - device_model = #{deviceModel}, - device_type = #{deviceType}, - device_address = #{deviceAddress}, - device_status = #{deviceStatus}, - used_department = #{usedDepartment}, - #{costCenter}, - #{manufacturer}, - #{enableDate}, - product_line_code = #{productLineCode}, - is_flag = #{isFlag}, - created_by = #{createdBy}, - created_time = #{createdTime}, - updated_by = #{updatedBy}, - updated_time = #{updatedTime}, + device_code = #{deviceCode}, + device_name = #{deviceName}, + device_model = #{deviceModel}, + device_type = #{deviceType}, + device_address = #{deviceAddress}, + device_status = #{deviceStatus}, + used_department = #{usedDepartment}, + cost_center = #{costCenter}, + manufacturer = #{manufacturer}, + enable_date = #{enableDate}, + product_line_code = #{productLineCode}, + factory_code = #{factoryCode}, + is_flag = #{isFlag}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, where obj_id = #{objId} - delete from base_deviceledger where obj_id = #{objId} + delete + from base_deviceledger + where obj_id = #{objId}