提交 | 用户 | age
|
2f1c59
|
1 |
package com.hx.phip.controller.meiji; |
F |
2 |
|
|
3 |
import com.alibaba.fastjson.JSONObject; |
|
4 |
import com.hx.common.BaseController; |
c4bd0e
|
5 |
import com.hx.phiappt.constants.tool.meiji.MeiJiDataTool; |
2f1c59
|
6 |
import com.hx.resultTool.Result; |
F |
7 |
import com.hx.util.StringUtils; |
|
8 |
import com.hz.his.dto.meiji.MeiJiDataDto; |
|
9 |
import com.hz.his.feign.service.phis.SFileService; |
3b13dd
|
10 |
import com.platform.exception.PlatTipsException; |
F |
11 |
import com.platform.resultTool.PlatformCode; |
2f1c59
|
12 |
import lombok.extern.slf4j.Slf4j; |
F |
13 |
import org.springframework.web.bind.annotation.RequestBody; |
|
14 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
15 |
import org.springframework.web.bind.annotation.RestController; |
|
16 |
|
|
17 |
import javax.annotation.Resource; |
|
18 |
|
|
19 |
/** |
|
20 |
* 美际数据 |
|
21 |
* @USER: fhx |
|
22 |
* @DATE: 2023/11/9 |
|
23 |
**/ |
|
24 |
@Slf4j |
|
25 |
@RestController |
|
26 |
@RequestMapping("/meiji/data") |
|
27 |
public class MeiJiDataController extends BaseController { |
|
28 |
|
|
29 |
@Resource |
|
30 |
private SFileService sFileService; |
|
31 |
|
|
32 |
/** 资源图片列表 */ |
|
33 |
@RequestMapping("/resource/file/list") |
|
34 |
public Result resourceFileList(@RequestBody MeiJiDataDto dto){ |
|
35 |
|
|
36 |
if(StringUtils.isEmpty(dto.getMjSkinReportId())){ |
3b13dd
|
37 |
throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "美际皮肤报告标识不能为空!"); |
2f1c59
|
38 |
} |
F |
39 |
|
|
40 |
JSONObject data = new JSONObject(); |
c4bd0e
|
41 |
data.put("list", MeiJiDataTool.getMjFileList(commonService, sFileService, dto.getMjSkinReportId())); |
2f1c59
|
42 |
return Result.success(data); |
F |
43 |
} |
|
44 |
|
|
45 |
|
|
46 |
} |