Commit eebe2311 authored by neo's avatar neo

[bugfix] log josn result for upload balance

parent 622c3e23
package pwc.taxtech.atms.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.json.GsonBuilderUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -50,6 +55,7 @@ import static pwc.taxtech.atms.constant.Constant.HEADER_ROW_INDEX;
@RequestMapping(value = "api/v1/DataImport")
@RestController
public class TBDataImportController {
private static Logger LOGGER = LoggerFactory.getLogger(TBDataImportController.class);
@Autowired
TBDataImportService tbDataImportService;
......@@ -408,10 +414,14 @@ public class TBDataImportController {
@ApiOperation(value = "ImportBalance", notes = "")
@RequestMapping(value = "ImportBalance", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseEntity importBalanceList(@RequestBody ImportBalanceDto importDto) {
return ResponseEntity.ok(dataImportService.importTrialBalance(importDto.getBalanceList(), importDto.getImportType(),
OperationResultDto result = dataImportService.importTrialBalance(importDto.getBalanceList(), importDto.getImportType(),
importDto.getServiceTypeId(),
identityService.getIdentityUser().getID()
));
);
LOGGER.info("import balance result {}", JSON.toJSONString(result));
return ResponseEntity.ok(result);
}
@RequestMapping(value = "GetParentCodesForDisplay", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment