| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | IPage<Map<String, Object>> equipmentReportRepairList = equipmentReportRepairService.getReportRepairList(pageNo, pageSize, params); |
| | | return Result.ok(equipmentReportRepairList); |
| | | } |
| | | |
| | | @PutMapping("/accept") |
| | | public Result<?> accept(@RequestBody EquipmentReportRepair equipmentReportRepair ){ |
| | | equipmentReportRepair.setStatus("5"); |
| | | equipmentReportRepair.setAcceptTime(new Date()); |
| | | equipmentReportRepairService.updateById(equipmentReportRepair); |
| | | return Result.OK("楠屾敹鎴愬姛"); |
| | | } |
| | | } |
| | |
| | | for(SysDictItem nodeOperationItem:nodeOperationItems){ |
| | | if(roleNodeItem.getItemValue().equals(nodeOperationItem.getItemValue())){ |
| | | if(ObjectUtils.isNotNull(operation)){ |
| | | List<String> buttonvalues = Arrays.asList(nodeOperationItem.getItemText().split(",")); |
| | | List<String> buttonValues = Arrays.asList(nodeOperationItem.getItemText().split(",")); |
| | | List<SysDictItem> operations = sysDictItemService.selectItemsByMainId(operation.getId()); |
| | | List<ButtonVo> buttons = new ArrayList<>(); |
| | | for(String value:buttonvalues){ |
| | | for(String value:buttonValues){ |
| | | for(SysDictItem name:operations){ |
| | | |
| | | if(name.getItemValue().equals(value)){ |
| | | ButtonVo button = new ButtonVo(); |
| | | button.setName(name.getItemText()); |
对比新文件 |
| | |
| | | ALTER TABLE [dbo].[mom_eam_equipment_report_repair] DROP CONSTRAINT [DF__mom_eam_e__err_u__00AD44A9] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[mom_eam_equipment_report_repair] ALTER COLUMN [err_uda5] text NULL |
| | | GO |
| | | |
| | | IF ((SELECT COUNT(*) FROM ::fn_listextendedproperty('MS_Description', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'mom_eam_equipment_report_repair', |
| | | 'COLUMN', N'err_uda5')) > 0) |
| | | EXEC sp_updateextendedproperty |
| | | 'MS_Description', N'楠屾敹鎰忚', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'mom_eam_equipment_report_repair', |
| | | 'COLUMN', N'err_uda5' |
| | | ELSE |
| | | EXEC sp_addextendedproperty |
| | | 'MS_Description', N'楠屾敹鎰忚', |
| | | 'SCHEMA', N'dbo', |
| | | 'TABLE', N'mom_eam_equipment_report_repair', |
| | | 'COLUMN', N'err_uda5' |