jinpengyong
2022-01-17 3ddfa12fbc43e80e99e4959fbac8881eaa8e3ca3
screen-api/src/main/java/com/moral/api/service/impl/SupervisionServiceImpl.java
@@ -45,7 +45,7 @@
        //获取jar包所在目录
        ApplicationHome h = new ApplicationHome(getClass());
        //在jar包所在目录下生成一个upload文件夹用来存储上传的图片
        String path = h.getSource().getParentFile().toString() + "/static/img/";
        String path = h.getSource().getParentFile().toString() + "/static/img";
        Map<String, Object> result = new HashMap<>();
@@ -124,7 +124,7 @@
    public Map<String, Object> updateSupervision(MultipartFile[] files, Supervision supervision) {
        String path = this.getClass().getClassLoader()
                .getResource("").getFile() + "static/img/";
                .getResource("").getFile() + "static/img";
        Map<String, Object> result = new HashMap<>();
@@ -160,4 +160,9 @@
        supervisionMapper.updateById(supervision);
        return result;
    }
    @Override
    public void deleteSupervision(Integer id) {
        supervisionMapper.deleteById(id);
    }
}