|
|
@@ -249,7 +249,7 @@ public class ReleaseProductByBatchController {
|
|
|
* @return model and view
|
|
|
*/
|
|
|
@RequestMapping(value = "/release/failure/xls", method = RequestMethod.GET)
|
|
|
- public ModelAndView exportOrderses(String batch, HttpServletRequest request, @RequestParam(defaultValue = "false") Boolean isAjax, String currency) {
|
|
|
+ public ModelAndView exportOrderses(String batch, HttpServletRequest request, @RequestParam(defaultValue = "false") Boolean isAjax, String currency, Integer isPerson) {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
HttpSession session = request.getSession();
|
|
|
Object loading = session.getAttribute("load-error-ing");
|
|
|
@@ -270,10 +270,14 @@ public class ReleaseProductByBatchController {
|
|
|
}
|
|
|
modelAndView.addObject("data", releaseProductByBatchService.findFailureReleaseProductByBatch(batch));
|
|
|
String url ="";
|
|
|
- if (Currency.USD.equals(currency)) {
|
|
|
- url = "classpath:jxls-tpl/trade/releaseByBatchError-usd";
|
|
|
+ if (null != isPerson && isPerson.intValue() == IntegerConstant.YES_SHORT.intValue()) {
|
|
|
+ url = "classpath:jxls-tpl/trade/releaseByBatchError-person";
|
|
|
} else {
|
|
|
- url = "classpath:jxls-tpl/trade/releaseByBatchError-rmb";
|
|
|
+ if (Currency.USD.equals(currency)) {
|
|
|
+ url = "classpath:jxls-tpl/trade/releaseByBatchError-usd";
|
|
|
+ } else {
|
|
|
+ url = "classpath:jxls-tpl/trade/releaseByBatchError-rmb";
|
|
|
+ }
|
|
|
}
|
|
|
modelAndView.setView(new JxlsExcelView(url, "导入失败产品-优软商城"));
|
|
|
logger.log("批量上架模块", "以Excel形式导出批量上架商品匹配不合格的数据");
|