|
@@ -9,7 +9,6 @@ import thyyxxk.webserver.constants.sidicts.SiFunction;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
import thyyxxk.webserver.utils.SiUtil;
|
|
|
-import thyyxxk.webserver.utils.TokenUtil;
|
|
|
|
|
|
/**
|
|
|
* @description: 医保上传服务
|
|
@@ -35,18 +34,18 @@ public class SiUploadService {
|
|
|
fsUploadIn.put("in", file);
|
|
|
fsUploadIn.put("filename", fileName);
|
|
|
fsUploadIn.put("fixmedins_code", SiUtil.INSTITUTION_ID);
|
|
|
- return getStringResultVo(fileName, input, fsUploadIn);
|
|
|
+ return getStringResultVo(input, fsUploadIn);
|
|
|
}
|
|
|
|
|
|
- public ResultVo<String> uploadFile(JSONObject fsUploadIn, String fileName) {
|
|
|
+ public ResultVo<String> uploadFile(JSONObject fsUploadIn) {
|
|
|
JSONObject input = exec.makeTradeHeader(SiFunction.UPLOAD_FILE);
|
|
|
- return getStringResultVo(fileName, input, fsUploadIn);
|
|
|
+ return getStringResultVo(input, fsUploadIn);
|
|
|
}
|
|
|
|
|
|
- private ResultVo<String> getStringResultVo(String fileName, JSONObject input, JSONObject fsUploadIn) {
|
|
|
+ private ResultVo<String> getStringResultVo(JSONObject input, JSONObject fsUploadIn) {
|
|
|
input.getJSONObject("input").put("fsUploadIn", fsUploadIn);
|
|
|
JSONObject result = exec.executeTrade(input, SiFunction.UPLOAD_FILE);
|
|
|
- log.info("【操作员:{}】上传文件:\n参数:{},\n结果:{}", TokenUtil.getInstance().getTokenUserId(), input, result);
|
|
|
+ log.info("上传文件:{}", result);
|
|
|
if (null == result) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
|
|
|
}
|