| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String goodName; |
| | | |
| | | @ApiModelProperty(value = "商品价格") |
| | | private String goodPrice; |
| | | |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String coverImgUrl; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "电话") |
| | | private String phone; |
| | | |
| | | } |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String goodName; |
| | | |
| | | @ApiModelProperty(value = "商品价格") |
| | | private String goodPrice; |
| | | |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String coverImgUrl; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "电话") |
| | | private String phone; |
| | | |
| | | } |
| | |
| | | return R.fail("金汇币不足!"); |
| | | } |
| | | |
| | | item.setCancelType("0"); |
| | | item.setPalyMoney(goods.getGoodPrice()); |
| | | int num= baseMapper.addData(item); |
| | | if(num>0) |
| | |
| | | #{item.id}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | #{item.goldCoin}, |
| | | #{item.userId}, |
| | | </if> |
| | | <if test="item.goldCoin != null and item.goldCoin != '' "> |
| | | #{item.goldCoin}, |
| | |
| | | id=#{item.id}, |
| | | </if> |
| | | <if test="item.userId != null and item.userId != '' "> |
| | | user_id=#{item.goldCoin}, |
| | | user_id=#{item.userId}, |
| | | </if> |
| | | <if test="item.goldCoin != null and item.goldCoin != '' "> |
| | | gold_coin=#{item.goldCoin}, |
| | |
| | | |
| | | <select id="getDetails" resultMap="itemMap"> |
| | | select |
| | | id, |
| | | order_number, |
| | | goods_id, |
| | | user_id, |
| | | creation_time, |
| | | cancel_type, |
| | | update_time, |
| | | cancel_time, |
| | | paly_money |
| | | from jinhui_shopping_order |
| | | jso.id, |
| | | jso.order_number, |
| | | jso.goods_id, |
| | | js.good_name, |
| | | js.good_price, |
| | | js.cover_img_url, |
| | | jso.user_id, |
| | | su.name, |
| | | su.phone, |
| | | jso.creation_time, |
| | | jso.cancel_type, |
| | | jso.update_time, |
| | | jso.cancel_time, |
| | | jso.paly_money |
| | | from jinhui_shopping_order as jso |
| | | LEFT JOIN sys_user su ON jso.user_id = su.user_id |
| | | LEFT JOIN jinhui_shopping js ON js.id = jso.goods_id |
| | | where |
| | | id=#{id} |
| | | jso.id=#{id} |
| | | </select> |
| | | |
| | | <insert id="addData"> |