| | |
| | | |
| | | /** |
| | | * 每日签到记录列表 前15条 |
| | | * @param userId |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "每日签到记录列表 前15条", response = IntegratingTaskVO.class) |
| | |
| | | @RequestParam(value = "orderNumber", required = false)String orderNumber, |
| | | @RequestParam(value = "goodName", required = false)String goodName, |
| | | @RequestParam(value = "name", required = false)String name, |
| | | @RequestParam(value = "cancelType", required = false)String cancelType) |
| | | @RequestParam(value = "cancelType", required = false)String cancelType, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "orderType", required = false) String orderType) |
| | | { |
| | | return newStriveForFeign.orderGetList(pageNum,pageSize,userId,goodsId,orderNumber, |
| | | goodName,name,cancelType,getCommunityId()+""); |
| | | goodName,name,cancelType,getCommunityId()+"",merchantId,orderType); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | item.setCommunityId(getCommunityId()+""); |
| | | item.setUserId(getUserId()+""); |
| | | item.setOrderType("1"); |
| | | return newStriveForFeign.orderAddData(item); |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "经度") |
| | | private String lng; |
| | | |
| | | @ApiModelProperty(value = "商家id") |
| | | private String merchantId; |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "订单类型 1 线上订单 2线下商家订单") |
| | | private String orderType; |
| | | |
| | | @ApiModelProperty(value = "兑换状态(1每天 2周一到周五 3周末)") |
| | | private String businessType; |
| | | |
| | |
| | | @RequestParam(value = "goodName", required = false)String goodName, |
| | | @RequestParam(value = "name", required = false)String name, |
| | | @RequestParam(value = "cancelType", required = false)String cancelType, |
| | | @RequestParam(value = "communityId", required = false)String communityId); |
| | | @RequestParam(value = "communityId", required = false)String communityId, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "orderType", required = false) String orderType); |
| | | |
| | | /** |
| | | * 分页详情 |
| | |
| | | @RequestParam(value = "orderNumber", required = false)String orderNumber, |
| | | @RequestParam(value = "goodName", required = false)String goodName, |
| | | @RequestParam(value = "name", required = false)String name, |
| | | @RequestParam(value = "cancelType", required = false)String cancelType) |
| | | @RequestParam(value = "cancelType", required = false)String cancelType, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "orderType", required = false) String orderType) |
| | | { |
| | | return newStriveForFeign.orderGetList(pageNum,pageSize,userId,goodsId,orderNumber, |
| | | goodName,name,cancelType,getCommunityId()+""); |
| | | goodName,name,cancelType,getCommunityId()+"",merchantId,orderType); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | item.setCommunityId(getCommunityId()+""); |
| | | item.setUserId(getUserId()+""); |
| | | item.setOrderType("2"); |
| | | return newStriveForFeign.orderAddData(item); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | @Slf4j |
| | | @Api(tags = {"社区动态/随手拍/微心愿/社区活动"}) |
| | | @Api(tags = {"新增双争双评"}) |
| | | @RestController |
| | | @RequestMapping("/NewFightOrder") |
| | | public class NewFightShoppingOrderApi |
| | |
| | | @GetMapping("/orderGetList") |
| | | public R orderGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "userId", required = false)String userId, |
| | | @RequestParam(value = "goodsId", required = false)String goodsId, |
| | | @RequestParam(value = "orderNumber", required = false)String orderNumber, |
| | | @RequestParam(value = "goodName", required = false)String goodName, |
| | | @RequestParam(value = "name", required = false)String name, |
| | | @RequestParam(value = "cancelType", required = false)String cancelType, |
| | | @RequestParam(value = "communityId", required = false)String communityId) |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "goodsId", required = false) String goodsId, |
| | | @RequestParam(value = "orderNumber", required = false) String orderNumber, |
| | | @RequestParam(value = "goodName", required = false) String goodName, |
| | | @RequestParam(value = "name", required = false) String name, |
| | | @RequestParam(value = "cancelType", required = false) String cancelType, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "orderType", required = false) String orderType) |
| | | { |
| | | return orderService.getList(pageNum,pageSize,userId,goodsId,orderNumber, |
| | | goodName,name,cancelType,communityId); |
| | | goodName,name,cancelType,communityId,merchantId,orderType); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Param("goodName") String goodName, |
| | | @Param("name") String name, |
| | | @Param("cancelType") String cancelType, |
| | | @Param("communityId") String communityId); |
| | | @Param("communityId") String communityId, |
| | | @Param("merchantId") String merchantId, |
| | | @Param("orderType") String orderType); |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | @ApiModelProperty(value = "经度") |
| | | private String lng; |
| | | |
| | | @ApiModelProperty(value = "商家id") |
| | | private String merchantId; |
| | | |
| | | @ApiModelProperty(value = "订单类型 1 线上订单 2线下商家订单") |
| | | private String orderType; |
| | | |
| | | @ApiModelProperty(value = "兑换状态(1每天 2周一到周五 3周末)") |
| | | private String businessType; |
| | | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "兑换开始时间") |
| | | private String businessStartTime; |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.building.NewFightShoppingOrderVO; |
| | | import com.panzhihua.service_dangjian.entity.NewFightShoppingOrder; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface NewFightShoppingOrderService extends IService<NewFightShoppingOrder> |
| | | { |
| | |
| | | * @return |
| | | */ |
| | | R getList(int pageNum,int pageSize,String userId,String goodsId,String orderNumber, |
| | | String goodName,String name,String cancelType,String communityId); |
| | | String goodName,String name,String cancelType,String communityId,String merchantId, |
| | | String orderType); |
| | | |
| | | NewFightShoppingOrder getDetails(String id, String communityId); |
| | | /** |
| | |
| | | import com.panzhihua.service_dangjian.service.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Override |
| | | public R getList(int pageNum,int pageSize,String userId,String goodsId,String orderNumber, |
| | | String goodName,String name,String cancelType,String communityId) |
| | | String goodName,String name,String cancelType,String communityId,String merchantId,String orderType) |
| | | { |
| | | Page page = new Page<NewFightShopping>(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,userId,goodsId,orderNumber,goodName,name,cancelType,communityId)); |
| | | return R.ok(baseMapper.getList(page,userId,goodsId,orderNumber,goodName,name,cancelType, |
| | | communityId, merchantId,orderType)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | public R addData(NewFightShoppingOrderVO item) |
| | | { |
| | | item.setOrderNumber(Snowflake.getId()+""); |
| | | |
| | | |
| | | //判断是线上下单 还是商家线下下单 1线上 2线下 |
| | | if(StringUtils.equals("1",item.getOrderType())) |
| | | { |
| | | |
| | | } |
| | | |
| | | |
| | | NewFightShopping goods=shoppingService.getDetails(item.getGoodsId()); |
| | | |
| | | int allMoney=0; |
| | |
| | | { |
| | | return R.ok(); |
| | | } |
| | | return R.fail("添加失败"); |
| | | return R.fail("失败"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="abolishTime" column="abolish_time" /> |
| | | <result property="communityId" column="community_id" /> |
| | | <result property="merchantId" column="merchant_id" /> |
| | | <result property="orderType" column="order_type" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <!-- 分页查询 --> |
| | |
| | | jso.cancel_time, |
| | | jso.abolish_time, |
| | | jso.community_id, |
| | | jso.merchant_id, |
| | | jso.order_type, |
| | | jso.remark, |
| | | jso.paly_money |
| | | from new_fight_shopping_order as jso |
| | | LEFT JOIN sys_user su ON jso.user_id = su.user_id |
| | |
| | | LEFT JOIN new_fight_community_config as vcc ON vcc.community_id=jso.community_id |
| | | <where> |
| | | 1=1 |
| | | <if test="merchantId !=null and merchantId !='' "> |
| | | and jso.merchant_id=#{merchantId} |
| | | </if> |
| | | <if test="orderType !=null and orderType !='' "> |
| | | and jso.order_type=#{orderType} |
| | | </if> |
| | | <if test="communityId !=null and communityId !='' "> |
| | | and jso.community_id=#{communityId} |
| | | </if> |
| | |
| | | jso.cancel_time, |
| | | jso.abolish_time, |
| | | jso.community_id, |
| | | jso.merchant_id, |
| | | jso.order_type, |
| | | jso.remark, |
| | | jso.paly_money |
| | | from new_fight_shopping_order as jso |
| | | LEFT JOIN sys_user su ON jso.user_id = su.user_id |
| | |
| | | <if test="item.communityId !=null and item.communityId !='' "> |
| | | community_id, |
| | | </if> |
| | | <if test="item.merchantId !=null and item.merchantId !='' "> |
| | | merchant_id, |
| | | </if> |
| | | <if test="item.orderType !=null and item.orderType !='' "> |
| | | order_type, |
| | | </if> |
| | | <if test="item.remark !=null and item.remark !='' "> |
| | | remark, |
| | | </if> |
| | | creation_time |
| | | </trim> |
| | | values |
| | |
| | | </if> |
| | | <if test="item.communityId !=null and item.communityId !='' "> |
| | | #{item.communityId}, |
| | | </if> |
| | | <if test="item.merchantId !=null and item.merchantId !='' "> |
| | | #{item.merchantId}, |
| | | </if> |
| | | <if test="item.orderType !=null and item.orderType !='' "> |
| | | #{item.orderType}, |
| | | </if> |
| | | <if test="item.remark !=null and item.remark !='' "> |
| | | #{item.remark}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | |
| | | <if test="item.communityId !=null and item.communityId !='' "> |
| | | community_id=#{item.communityId}, |
| | | </if> |
| | | <if test="item.merchantId !=null and item.merchantId !='' "> |
| | | merchant_id=#{item.merchantId}, |
| | | </if> |
| | | <if test="item.orderType !=null and item.orderType !='' "> |
| | | order_type=#{item.orderType}, |
| | | </if> |
| | | <if test="item.remark !=null and item.remark !='' "> |
| | | remark=#{item.remark}, |
| | | </if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id = #{item.id} |
| | |
| | | |
| | | SysUserRoleDO sysUserRoleDO=sysUserRoleDAO.selectOne(new QueryWrapper<SysUserRoleDO>() |
| | | .lambda().eq(SysUserRoleDO::getUserId,sysUserDO.getUserId())); |
| | | if(sysUserRoleDO!=null ) |
| | | if(sysUserRoleDO!=null && sysUserRoleDO.getRoleId()!=null ) |
| | | { |
| | | loginUserInfoVO.setRoleId(sysUserRoleDO.getRoleId()+""); |
| | | } |