| | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.core.WhBusinessEnum; |
| | | import com.consum.base.core.type.StatesType; |
| | | import com.consum.base.core.type.TransferStatesType; |
| | | import com.consum.base.core.utils.CommonUtil; |
| | | import com.consum.base.core.utils.IdUtil; |
| | | import com.consum.base.pojo.GoodsUseRecordVO; |
| | |
| | | if (id == null) { |
| | | return ResponseValue.error("参数错误"); |
| | | } |
| | | LWhFormTransfer lWhFormTransfer = lWhFormTransferService.selectById(id); |
| | | if (lWhFormTransfer.getStates() != TransferStatesType.OUT_PENDING.getValue()) { |
| | | return ResponseValue.error("状态错误,不能撤销"); |
| | | } |
| | | |
| | | int num = this.lWhFormTransferService.updateStatus(id); |
| | | return num > 0 ? ResponseValue.success(1) : ResponseValue.error("修改失败!"); |