|
@@ -269,7 +269,7 @@ public class TbPeopleService extends ServiceImpl<TbPeopleMapper, TbPeople> imple
|
|
|
*/
|
|
|
public boolean confirmOrder(Integer confirm,Long orderId){
|
|
|
//边民拒绝
|
|
|
- if(confirm == null || confirm != 1 || confirm.toString().equals("")){
|
|
|
+ if(confirm == null || confirm != 1){
|
|
|
//修改订单表状态
|
|
|
TbOrder order = tbOrderMapper.selectById(orderId);
|
|
|
if(order == null)throw new ServiceException("订单信息异常!");
|
|
@@ -282,8 +282,8 @@ public class TbPeopleService extends ServiceImpl<TbPeopleMapper, TbPeople> imple
|
|
|
Long goodsId = order.getGoodsId();
|
|
|
TbGoodsTransit tbGoodsTransit = tbGoodsTransitMapper.selectById(goodsId);
|
|
|
if(tbGoodsTransit == null)throw new ServiceException("商品信息异常!");
|
|
|
- //状态设置2
|
|
|
- tbGoodsTransit.setIsOrders(ReleaseStatus.RELEASE_STATUS_PUBLISH.getCode());
|
|
|
+ //状态设置0
|
|
|
+ tbGoodsTransit.setIsOrders(0);
|
|
|
//执行修改
|
|
|
int updateById = tbGoodsTransitMapper.updateById(tbGoodsTransit);
|
|
|
return updateById == 1;
|