|
@@ -6,6 +6,7 @@ import com.platform.yijia.pojo.*;
|
|
|
import com.platform.yijia.service.*;
|
|
|
import com.platform.yijia.utils.CodeMsg;
|
|
|
import com.platform.yijia.utils.FeiEPrinterUtil;
|
|
|
+import com.platform.yijia.utils.PosPrinterUtil;
|
|
|
import com.platform.yijia.utils.ResultData;
|
|
|
import com.platform.yijia.utils.redis.RedisCacheUtil;
|
|
|
import com.platform.yijia.utils.weixinapp.WeiXinUserUtil;
|
|
@@ -238,6 +239,21 @@ public class IntegralShoppingMallController {
|
|
|
wxPushUtil.push(gzhAppId, gzhAppSecret, gzhNewsTemplateInfo.getTemplateId(), request.getOpenId(), wxMpTemplate);
|
|
|
resultData=ResultData.success(CodeMsg.SUCCESS);
|
|
|
}
|
|
|
+
|
|
|
+ //POS机打印小票
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("orderNo", integralOrderNo);
|
|
|
+ map.put("createdDate", new SimpleDateFormat(" yyyy-MM-dd HH:mm:ss").format(integralOrder.getExchangeTime()));
|
|
|
+ map.put("payDate", new SimpleDateFormat(" yyyy-MM-dd HH:mm:ss").format(integralOrder.getExchangeTime()));
|
|
|
+ map.put("stationName", stationName);
|
|
|
+ map.put("waresName", integralOrder.getWaresName());
|
|
|
+ map.put("exchangeNum", integralOrder.getExchangeNum());
|
|
|
+ map.put("orderSumIntegral", orderSumIntegral);
|
|
|
+ map.put("surplusPoints", surplusPoints);
|
|
|
+ map.put("customerName", integralOrder.getCustomerName());
|
|
|
+ map.put("orderType", "3");
|
|
|
+ PosPrinterUtil.sendPosPrintDirectMessage(map);
|
|
|
+
|
|
|
//打印机打印小票
|
|
|
List<Map<String, Object>> stationPrinterList = stationService.getStationPrinterList(request.getStationId());
|
|
|
if(stationPrinterList != null && stationPrinterList.get(0).get("integralPrintFlag").toString().equals("1")){
|
|
@@ -279,6 +295,9 @@ public class IntegralShoppingMallController {
|
|
|
return gson.toJson(resultData);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//获取公众号消息模板
|
|
|
// @RequestMapping(value = "/getGzhNewsTemplate", method = RequestMethod.GET)
|
|
|
// @ResponseBody
|