12345678910111213141516171819202122232425262728293031 |
- package com.ruoyi.system.service.impl;
- import com.ruoyi.common.annotation.DataSource;
- import com.ruoyi.common.enums.DataSourceType;
- import com.ruoyi.system.domain.AttachMngs;
- import com.ruoyi.system.mapper.AttachMngsMapper;
- import com.ruoyi.system.service.IAttachMngsService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- @DataSource(value = DataSourceType.ATTACHS)
- @Service
- public class AttachMngsServiceImpl implements IAttachMngsService {
- @Autowired
- private AttachMngsMapper attachMngsMapper;
- @Override
- public Integer insertAttachMngs(AttachMngs attachmngs) {
- return attachMngsMapper.insertAttachmngs(attachmngs);
- }
- @Override
- public Byte[] getImg(String attachId) {
- AttachMngs attachMngs = attachMngsMapper.getAttachmngsBySysIdAndAttchId(attachId);
- return attachMngs.getAttachFile();
- }
- }
|