|
|
@ -175,11 +175,26 @@ public class ProductController extends JeecgController<TbProduct, ProductService |
|
|
|
TbCustoms tbCustoms = new TbCustoms(); |
|
|
|
BeanUtils.copyProperties(customsReq, tbCustoms); |
|
|
|
tbCustoms.setUserId(hanHaiMember.getId()); |
|
|
|
tbCustomsService.save(tbCustoms); |
|
|
|
tbCustoms.setId(customsReq.getId()); |
|
|
|
tbCustoms.setAuditStatus(0); |
|
|
|
tbCustomsService.saveOrUpdate(tbCustoms); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "我的清关申请", notes = "我的清关申请") |
|
|
|
@PostMapping(value = "/myCustoms") |
|
|
|
public Result<TbCustoms> myCustoms(@RequestHeader("X-Access-Token") String token) { |
|
|
|
HanHaiMember hanHaiMember = shiroRealm.checkUserTokenIsEffectHanHaiAccount(token); |
|
|
|
QueryWrapper<TbCustoms> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq("user_id",hanHaiMember.getId()).orderByDesc("create_time").last("limit 1"); |
|
|
|
TbCustoms one = tbCustomsService.getOne(wrapper); |
|
|
|
return Result.OK(one); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "下订单", notes = "订单") |
|
|
|
@PostMapping(value = "/addProductOrder") |
|
|
|
public Result<String> addProductOrder(@RequestBody ProductOrderReq productOrderReq, @RequestHeader("X-Access-Token") String token) { |
|
|
|