Commit b57fe18b authored by fanjr's avatar fanjr

pda接口

parent e29ba84c
...@@ -48,20 +48,5 @@ public class MobileCouponrecordController { ...@@ -48,20 +48,5 @@ public class MobileCouponrecordController {
return couponrecordService.checkCouponDetails(vo); return couponrecordService.checkCouponDetails(vo);
} }
/**
* @Author Fanjr
* @Description 检测结果详情
* @Date 2021年1月29日
* @Param
* @return
**/
@RequestMapping(value = "/checkCouponById",
method = {RequestMethod.GET, RequestMethod.POST},
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public JSONObject checkCouponById(CouponrecordVo vo) {
return couponrecordService.checkCouponById(vo);
}
} }
package com.cftech.couponrecord.web; package com.cftech.couponrecord.web;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.cftech.couponrecord.model.CouponrecordVo;
import com.cftech.couponrecord.service.CouponrecordService;
import com.cftech.couponrecord.service.PdaCouponrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* 日期
* pda核销接口
* Fanjr
*/
@RestController
@RequestMapping("/pda/writeOff/coupon")
public class PdaCouponrecordController { public class PdaCouponrecordController {
@Autowired
private PdaCouponrecordService pdaCouponrecordService;
/**
* @Author Fanjr
* @Description 检测券核销
* @Date 2021年2月8日
* @Param
* @return
**/
@RequestMapping(value = "/writeOff", method = {RequestMethod.POST})
public JSONObject writeOff(@RequestBody String param) {
JSONObject obj = JSON.parseObject(param);
return pdaCouponrecordService.writeOff(obj);
}
} }
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