dev
This commit is contained in:
parent
9e6ac90eed
commit
c1176934a8
|
|
@ -9,9 +9,12 @@ import com.syjiaer.clinic.server.common.vo.Result;
|
|||
import com.syjiaer.clinic.server.controller.BaseController;
|
||||
import com.syjiaer.clinic.server.entity.common.CommonConfig;
|
||||
import com.syjiaer.clinic.server.service.common.CommonConfigService;
|
||||
import com.syjiaer.clinic.server.service.common.FileService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
|
@ -32,6 +35,8 @@ public class CommonConfigController extends BaseController {
|
|||
private CommonConfigService commonConfigService;
|
||||
@Autowired
|
||||
private Config config;
|
||||
@Autowired
|
||||
private FileService fileService;
|
||||
|
||||
@RequestMapping("list")
|
||||
public Result<Object> list() {
|
||||
|
|
@ -94,7 +99,13 @@ public class CommonConfigController extends BaseController {
|
|||
map.put("pageType", config.get("print", "pageType"));
|
||||
return success(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传诊所图片
|
||||
*/
|
||||
// @RequestMapping("uploadClinicImage")
|
||||
// public Result<Object> uploadClinicImage(@RequestParam("file") MultipartFile file) {
|
||||
// return success(commonConfigService.uploadClinicImage(file));
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import com.syjiaer.clinic.server.mapper.common.CommonConfigMapper;
|
|||
import com.syjiaer.clinic.server.service.BaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -13,6 +14,8 @@ import java.util.List;
|
|||
public class CommonConfigService extends BaseService {
|
||||
@Autowired
|
||||
private CommonConfigMapper commonConfigMapper;
|
||||
@Autowired
|
||||
private FileService fileService;
|
||||
|
||||
public void save(CommonConfig commonConfig){
|
||||
commonConfigMapper.insertOrUpdate(commonConfig);
|
||||
|
|
@ -32,4 +35,14 @@ public class CommonConfigService extends BaseService {
|
|||
queryWrapper.eq("k", key);
|
||||
return commonConfigMapper.selectOne(queryWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传诊所logo
|
||||
* @param file
|
||||
* @return
|
||||
*/
|
||||
// public Object uploadClinicImage(MultipartFile file) {
|
||||
// String fileName = fileService.uploadFile(file);
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue