|
@@ -90,11 +90,38 @@ public class CmRefundShopService extends CrudService<CmRefundShopDao, CmRefundSh
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
-// public List<CmRefundShop> exports(Page<CmRefundShop> cmRefundShopPage, CmRefundShop cmRefundShop){
|
|
|
-// Page<CmRefundShop> result = super.findPage(cmRefundShopPage, cmRefundShop);
|
|
|
-// List<CmRefundShop> list = result.getList();
|
|
|
-// return list;
|
|
|
-// }
|
|
|
+ public List<CmRefundShop> exports(Page<CmRefundShop> page, CmRefundShop cmRefundShop){
|
|
|
+ cmRefundShop.setPage(page);
|
|
|
+ List<CmRefundShop> result = cmRefundShopDao.findList(cmRefundShop);
|
|
|
+ for (CmRefundShop crs : result) {
|
|
|
+ List<String> idInfo = cmRefundShopRecordDao.findByRefundShopID(crs.getId());
|
|
|
+ String str = "";
|
|
|
+ String ono = "";
|
|
|
+ for (String i : idInfo) {
|
|
|
+ if (StringUtils.isNotEmpty(i)) {
|
|
|
+ String no = i.split("_")[0];
|
|
|
+ String od = i.split("_")[1];
|
|
|
+ String id = i.split("_")[2];
|
|
|
+ if ("".equals(str)) {
|
|
|
+ str += no;
|
|
|
+ } else {
|
|
|
+ str += "," + no;
|
|
|
+ }
|
|
|
+ if ("".equals(ono)) {
|
|
|
+ ono += od;
|
|
|
+ } else {
|
|
|
+ ono += "," + od;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ crs.setShopOrderIDs(str);
|
|
|
+ crs.setOrderNo(ono);
|
|
|
+ if ("4".equals(crs.getRefundWay())){
|
|
|
+ crs.setOperatorName(crs.getCrmOperatorName()+"(CRM)");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
@Transactional(readOnly = false)
|
|
|
public void save(CmRefundShop cmRefundShop) {
|