|
|
|
@ -11,6 +11,8 @@ import au.com.royalpay.payment.tools.utils.PageListUtils;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
|
|
|
|
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
@ -25,6 +27,7 @@ import javax.annotation.Resource;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
public class CustomServiceImpl implements CustomService {
|
|
|
|
public class CustomServiceImpl implements CustomService {
|
|
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private CustomSupport customSupport;
|
|
|
|
private CustomSupport customSupport;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
@ -36,6 +39,11 @@ public class CustomServiceImpl implements CustomService {
|
|
|
|
public JSONObject findOneWithDetail(String report_id) {
|
|
|
|
public JSONObject findOneWithDetail(String report_id) {
|
|
|
|
JSONObject result = customReportsMapper.findOne(report_id);
|
|
|
|
JSONObject result = customReportsMapper.findOne(report_id);
|
|
|
|
result.put("sub_orders", customReportDetailsMapper.findByReportId(report_id));
|
|
|
|
result.put("sub_orders", customReportDetailsMapper.findByReportId(report_id));
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
result.put("query_result", customSupport.queryCustomResult(report_id));
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
logger.error("Query Custom Declare status failure:", e);
|
|
|
|
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|