| | |
| | | comActWarehouseApply.setCreateTime(new Date()); |
| | | comActWarehouseApply.setApplyUserId(this.getUserId()); |
| | | comActWarehouseApply.setStatus(ComActWarehouseApplyVO.status.dcl); |
| | | comActWarehouseApply.setApplyName(this.getLoginUserInfo().getName()!=null?this.getLoginUserInfo().getName():""); |
| | | comActWarehouseApply.setApplyPhone(this.getLoginUserInfo().getPhone()!=null?this.getLoginUserInfo().getPhone():""); |
| | | return this.communityService.comActWarehouseApplyInsert(comActWarehouseApply); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty("核销人") |
| | | private String writeOffUserName; |
| | | |
| | | /** |
| | | *剩下数量 |
| | | */ |
| | | @ApiModelProperty("剩下数量") |
| | | private Integer surplusQuantity; |
| | | |
| | | /** |
| | | * 状态 0待处理 1 待领取 2已拒绝 3已领取 -1已取消 |
| | | */ |
| | |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.panzhihua.common.model.vos.community.warehouse.ComActWarehouseApplyVO"> |
| | | select t.*,t1.name as donateName,t1.item,t1.image,t1.phone as donatePhone,t2.name as writeOffUserName,t3.name as solveName from com_act_warehouse_apply t inner join com_act_warehouse_donates t1 on t.goods_id = t1.id left join sys_user t2 on t.write_off_user_id = t2.user_id left join sys_user t3 on t.solve_user_id = t3.user_id |
| | | select t.*,t1.name as donateName,t1.item,t1.image,t1.phone as donatePhone,t2.name as writeOffUserName,t3.name as solveName,t1.surplus_quantity as surplusQuantity from com_act_warehouse_apply t inner join com_act_warehouse_donates t1 on t.goods_id = t1.id left join sys_user t2 on t.write_off_user_id = t2.user_id left join sys_user t3 on t.solve_user_id = t3.user_id |
| | | where t.id=#{id} |
| | | </select> |
| | | </mapper> |