| | |
| | | Integer added = procurementSuppliesExpendsService.addExpends(dto); |
| | | |
| | | if ( added == 0) { |
| | | return Result.fail("当前库存不足"); |
| | | throw new RuntimeException("当前库存不足"); |
| | | } |
| | | return Result.success(added); |
| | | } |
| | |
| | | </select> |
| | | <select id="selectListByIds" resultType="com.ruoyi.performance.pojo.AuxiliaryWorkingHoursDay"> |
| | | select * from auxiliary_working_hours_day |
| | | where state='已审核' |
| | | where state='已批准' |
| | | <if test="ids !=null and ids != ''"> |
| | | and name_user in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |