Commit 0ebbc829 authored by 谢希宇's avatar 谢希宇

create by Strive

create date 2021/02/19
parent 71741eb0
...@@ -4,11 +4,11 @@ import com.cftech.authentication.model.Authentication; ...@@ -4,11 +4,11 @@ import com.cftech.authentication.model.Authentication;
import com.cftech.core.generic.GenericDao; import com.cftech.core.generic.GenericDao;
/** /**
* 身份验证Mapper * 身份验证Mapper
* *
* @author Buyj * @author Buyj
* @date: 2020-11-23 16:56 * @date: 2020-11-23 16:56
*/ */
public interface AuthenticationMapper extends GenericDao<Authentication> { public interface AuthenticationMapper extends GenericDao<Authentication> {
} }
\ No newline at end of file
...@@ -248,9 +248,10 @@ ...@@ -248,9 +248,10 @@
from t_aidea_coupon_record from t_aidea_coupon_record
where id = #{id} where id = #{id}
</select> </select>
<select id="buyingMedicineNumber" parameterType="java.util.Map" resultType="map"> <select id="buyingMedicineNumber" parameterType="java.util.Map" resultType="map">
SELECT SELECT
SUM(d.number) number SUM(d.drugs_num) number
FROM t_order t FROM t_order t
LEFT JOIN t_order_details d ON t.id = d.order_id LEFT JOIN t_order_details d ON t.id = d.order_id
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
......
...@@ -3,12 +3,16 @@ package com.cftech.couponrecord.web; ...@@ -3,12 +3,16 @@ package com.cftech.couponrecord.web;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.cftech.couponrecord.model.CouponrecordVo; import com.cftech.couponrecord.model.CouponrecordVo;
import com.cftech.couponrecord.service.CouponrecordService; import com.cftech.couponrecord.service.CouponrecordService;
import com.google.zxing.WriterException;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
/** /**
* 2021年1月29日 * 2021年1月29日
*/ */
...@@ -48,5 +52,16 @@ public class MobileCouponrecordController { ...@@ -48,5 +52,16 @@ public class MobileCouponrecordController {
return couponrecordService.checkCouponDetails(vo); return couponrecordService.checkCouponDetails(vo);
} }
@RequestMapping(value = "/testSendCouponRecord",
method = {RequestMethod.GET, RequestMethod.POST},
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public void testSendCouponRecord(@RequestParam String openid, @RequestParam Long accountsId) {
try {
couponrecordService.sendCouponRecord(openid, accountsId);
} catch (IOException e) {
e.printStackTrace();
} catch (WriterException e) {
e.printStackTrace();
}
}
} }
...@@ -16,5 +16,4 @@ ...@@ -16,5 +16,4 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment