Commit 88f19a161c15d5d05520e8f84175fc039f301481

Authored by fangcheng
1 parent d4c160c08e

发卡时间修改

Showing 1 changed file with 3 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java View file @ 88f19a1
1 1 package com.lyms.platform.operate.web.controller;
2 2  
  3 +import java.text.SimpleDateFormat;
3 4 import java.util.Date;
4 5  
5 6 import javax.servlet.http.HttpServletRequest;
... ... @@ -15,7 +16,6 @@
15 16 import com.lyms.platform.common.result.BaseObjectResponse;
16 17 import com.lyms.platform.common.result.RespBuilder;
17 18 import com.lyms.platform.common.result.ResponseCode;
18   -import com.lyms.platform.common.utils.DateUtil;
19 19 import com.lyms.platform.common.utils.PropertiesUtils;
20 20 import com.lyms.platform.operate.web.utils.HospitalCouponPrintUtils;
21 21 import com.lyms.platform.pojo.Patients;
... ... @@ -58,8 +58,8 @@
58 58 Integer XSJE =0;// 销售金额
59 59 Integer CZZKL =100;//充值折扣率
60 60 Integer YE = KMJE;//余额
61   - String result = HospitalCouponPrintUtils.getDZdjq(cardType, cardNum, sendReason, sendPersonName, patientUserName, DateUtil.getyyyy_MM_dd(new Date()),remark, JSFS, KMJE, XSJE, CZZKL, YE);
62   - System.out.println("result="+result);
  61 + SimpleDateFormat nowFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  62 + String result = HospitalCouponPrintUtils.getDZdjq(cardType, cardNum, sendReason, sendPersonName, patientUserName, nowFormat.format(new Date()),remark, JSFS, KMJE, XSJE, CZZKL, YE);
63 63 if("0".equals(result)){
64 64 return RespBuilder.buildErro(ResponseCode.SUCCESS);
65 65 }else{