|
|
@@ -355,6 +355,10 @@ public class WfTextbookClaimServiceImpl extends MPJBaseServiceImpl<WfTextbookCla
|
|
|
throw new MyException("未找到入库详细数据");
|
|
|
}
|
|
|
|
|
|
+ if(textbookWarehouseRecord.getRemainNumber() > textbookWarehouseRecords.getConfirmNumber()){
|
|
|
+ throw new MyException("发放数量大于库存数量");
|
|
|
+ }
|
|
|
+
|
|
|
//更新教材入库中的的库存数量
|
|
|
textbookWarehouseRecordMapper.updateById(new TextbookWarehouseRecord() {{
|
|
|
setModifyUserId(StpUtil.getLoginIdAsLong());
|