|
|
@ -43,8 +43,8 @@ public class OaAppendixService extends MybatisBaseService<OaAppendixMapper, OaAp |
|
|
|
return baseMapper.fetchByLinkSid(linkSid); |
|
|
|
} |
|
|
|
|
|
|
|
public void saveOrUpdateFile(String sid, List<OaAppendix> oaAppendixList) { |
|
|
|
baseMapper.deleteByLinkSid(sid); |
|
|
|
public void saveOrUpdateFile(String sid, List<OaAppendix> oaAppendixList,String fileType) { |
|
|
|
baseMapper.deleteByLinkSid(sid,fileType); |
|
|
|
if (!oaAppendixList.isEmpty()) { |
|
|
|
oaAppendixList.forEach(v -> { |
|
|
|
baseMapper.insert(v); |
|
|
@ -79,7 +79,7 @@ public class OaAppendixService extends MybatisBaseService<OaAppendixMapper, OaAp |
|
|
|
oaAppendixList.add(oaAppendix); |
|
|
|
} |
|
|
|
} |
|
|
|
saveOrUpdateFile(sid, oaAppendixList); |
|
|
|
saveOrUpdateFile(sid, oaAppendixList,fileType); |
|
|
|
} |
|
|
|
|
|
|
|
public List<String> selectByLinkSid(String sid) { |
|
|
|