| | |
| | | String type = json.getString("type"); |
| | | |
| | | EquipmentDocument equipmentDocument = json.toJavaObject(EquipmentDocument.class); |
| | | equipmentDocument.setType(fileType); |
| | | equipmentDocument.setFileType(fileType); |
| | | equipmentDocumentService.save(equipmentDocument); |
| | | // 文件变更 |
| | | if (isFileChange) { |
| | |
| | | String type = json.getString("type"); |
| | | |
| | | EquipmentDocument equipmentDocument = json.toJavaObject(EquipmentDocument.class); |
| | | equipmentDocument.setType(fileType); |
| | | equipmentDocument.setFileType(fileType); |
| | | equipmentDocumentService.saveOrUpdate(equipmentDocument); |
| | | // 文件变更 |
| | | if (isFileChange) { |
| | |
| | | /**文档类型*/ |
| | | @Excel(name = "文档类型", width = 15) |
| | | @ApiModelProperty(value = "文档类型") |
| | | @Dict(dicCode = "common_upload_type") |
| | | private String type; |
| | | // @Dict(dicCode = "common_upload_type") |
| | | @Dict(dictTable = "mom_eam_document_type",dicCode = "id",dicText = "name") |
| | | private String fileType; |
| | | |
| | | /**备用字段1*/ |
| | | @Excel(name = "备用字段1", width = 15) |
| | |
| | | /**文档类型*/ |
| | | @Excel(name = "文档类型", width = 15) |
| | | @ApiModelProperty(value = "文档类型") |
| | | @Dict(dicCode = "common_upload_type") |
| | | @Dict(dictTable = "mom_eam_document_type",dicCode = "id",dicText = "name") |
| | | private String documentTypeId; |
| | | /**文档名称*/ |
| | | @Excel(name = "文档名称", width = 15) |
| | |
| | | t1.num, |
| | | t2.name, |
| | | t2.type, |
| | | t3.item_text AS typeName, |
| | | t3.name AS typeName, |
| | | t2.size |
| | | FROM |
| | | mom_eam_maintenance_standard_work_instruction t1 |
| | | LEFT JOIN mom_sys_upload t2 ON t1.work_instruction_id = t2.id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'common_upload_type' ) t3 ON t3.item_value = t2.type |
| | | LEFT JOIN mom_eam_document_type t3 ON t3.id = t2.type |
| | | WHERE t1.del_flag = 0 |
| | | <if test="params.maintenanceStandardId != null and params.maintenanceStandardId != ''"> |
| | | and t1.maintenance_standard_id = #{params.maintenanceStandardId} |