diff --git a/os-mes/src/main/java/com/os/mes/base/controller/BaseDeviceLedgerController.java b/os-mes/src/main/java/com/os/mes/base/controller/BaseDeviceLedgerController.java index e8cbeb2..d46e97c 100644 --- a/os-mes/src/main/java/com/os/mes/base/controller/BaseDeviceLedgerController.java +++ b/os-mes/src/main/java/com/os/mes/base/controller/BaseDeviceLedgerController.java @@ -46,6 +46,16 @@ public class BaseDeviceLedgerController extends BaseController return getDataTable(list); } + /** + * 查询设备台账下拉框列表 + */ + @GetMapping("/getDeviceLedger") + public AjaxResult getDeviceLedger(BaseDeviceLedger baseDeviceLedger) + { + List list = baseDeviceLedgerService.selectBaseDeviceLedgerList(baseDeviceLedger); + return success(list); + } + /** * 导出设备台账列表 */ diff --git a/os-mes/src/main/java/com/os/mes/base/controller/BaseTeamMembersController.java b/os-mes/src/main/java/com/os/mes/base/controller/BaseTeamMembersController.java index 59ee6c8..b768dbf 100644 --- a/os-mes/src/main/java/com/os/mes/base/controller/BaseTeamMembersController.java +++ b/os-mes/src/main/java/com/os/mes/base/controller/BaseTeamMembersController.java @@ -48,8 +48,8 @@ public class BaseTeamMembersController extends BaseController { /** * 查询班组信息下拉框列表 */ - @GetMapping("/getBaseTeamMembers") - public AjaxResult getBaseTeamMembers(BaseTeamMembers baseTeamMembers) { + @GetMapping("/getTeamMembers") + public AjaxResult getTeamMembers(BaseTeamMembers baseTeamMembers) { List list = baseTeamMembersService.selectBaseTeamMembersList(baseTeamMembers); return success(list); } diff --git a/os-mes/src/main/java/com/os/mes/base/domain/BaseStaffInfo.java b/os-mes/src/main/java/com/os/mes/base/domain/BaseStaffInfo.java index 5abf668..bd5a1c2 100644 --- a/os-mes/src/main/java/com/os/mes/base/domain/BaseStaffInfo.java +++ b/os-mes/src/main/java/com/os/mes/base/domain/BaseStaffInfo.java @@ -49,6 +49,12 @@ public class BaseStaffInfo extends BaseEntity { @Excel(name = "班组编号") private String teamCode; + /** + * 班组名称 + */ + @Excel(name = "班组名称") + private String teamName; + /** * 手机号 */ @@ -72,6 +78,14 @@ public class BaseStaffInfo extends BaseEntity { */ private String delFlag; + public String getTeamName() { + return teamName; + } + + public void setTeamName(String teamName) { + this.teamName = teamName; + } + public void setObjId(Long objId) { this.objId = objId; } diff --git a/os-mes/src/main/java/com/os/mes/base/domain/BaseTeamMembers.java b/os-mes/src/main/java/com/os/mes/base/domain/BaseTeamMembers.java index a0fc0cf..06f10ed 100644 --- a/os-mes/src/main/java/com/os/mes/base/domain/BaseTeamMembers.java +++ b/os-mes/src/main/java/com/os/mes/base/domain/BaseTeamMembers.java @@ -38,11 +38,17 @@ public class BaseTeamMembers extends BaseEntity { private String teamHead; /** - * 所属工位 + * 所属工位编号 */ - @Excel(name = "所属工位") + @Excel(name = "所属工位编号") private String stationCode; + /** + * 所属工位名称 + */ + @Excel(name = "所属工位名称") + private String stationName; + /** * 班次(1早班 2晚班) */ @@ -79,6 +85,28 @@ public class BaseTeamMembers extends BaseEntity { @Excel(name = "机台编号") private String machineCode; + /** + * 机台名称 + */ + @Excel(name = "机台名称") + private String machineName; + + public String getStationName() { + return stationName; + } + + public void setStationName(String stationName) { + this.stationName = stationName; + } + + public String getMachineName() { + return machineName; + } + + public void setMachineName(String machineName) { + this.machineName = machineName; + } + public void setObjId(Long objId) { this.objId = objId; } diff --git a/os-mes/src/main/resources/mapper/mes/base/BaseStaffInfoMapper.xml b/os-mes/src/main/resources/mapper/mes/base/BaseStaffInfoMapper.xml index f9c159b..2112f7a 100644 --- a/os-mes/src/main/resources/mapper/mes/base/BaseStaffInfoMapper.xml +++ b/os-mes/src/main/resources/mapper/mes/base/BaseStaffInfoMapper.xml @@ -11,6 +11,7 @@ + @@ -23,41 +24,43 @@ - select obj_id, - staff_id, - staff_name, - staff_type, - card_id, - team_code, - phone_number, - sex, - pass_word, - del_flag, - create_by, - create_time, - update_by, - update_time, - remark - from base_staff_info + select bsi.obj_id, + bsi.staff_id, + bsi.staff_name, + bsi.staff_type, + bsi.card_id, + bsi.team_code, + btm.team_name, + bsi.phone_number, + bsi.sex, + bsi.pass_word, + bsi.del_flag, + bsi.create_by, + bsi.create_time, + bsi.update_by, + bsi.update_time, + bsi.remark + from base_staff_info bsi + left join base_team_members btm on btm.team_code = bsi.team_code diff --git a/os-mes/src/main/resources/mapper/mes/base/BaseTeamMembersMapper.xml b/os-mes/src/main/resources/mapper/mes/base/BaseTeamMembersMapper.xml index 996f354..d154457 100644 --- a/os-mes/src/main/resources/mapper/mes/base/BaseTeamMembersMapper.xml +++ b/os-mes/src/main/resources/mapper/mes/base/BaseTeamMembersMapper.xml @@ -10,6 +10,7 @@ + @@ -20,46 +21,51 @@ + - select obj_id, - team_code, - team_name, - team_head, - station_code, - classes, - start_time, - end_time, - dine_time, - is_flag, - create_by, - create_time, - update_by, - update_time, - machine_code - from base_team_members + select btm.obj_id, + btm.team_code, + btm.team_name, + btm.team_head, + btm.station_code, + bpl.product_line_name station_name, + btm.classes, + btm.start_time, + btm.end_time, + btm.dine_time, + btm.is_flag, + btm.create_by, + btm.create_time, + btm.update_by, + btm.update_time, + btm.machine_code, + bdl.device_name machine_name + from base_team_members btm + left join base_product_line bpl on bpl.product_line_code = btm.station_code + left join base_device_ledger bdl on bdl.device_code = btm.machine_code