| | |
| | | @Mapper |
| | | public interface MesProMpsMapper extends BaseMapperX<MesProMpsDO> { |
| | | |
| | | default MesProMpsDO selectByIdForUpdate(Long id) { |
| | | return selectOne(new LambdaQueryWrapperX<MesProMpsDO>() |
| | | .eq(MesProMpsDO::getId, id).last("FOR UPDATE")); |
| | | } |
| | | |
| | | default PageResult<MesProMpsDO> selectPage(MesProMpsPageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<MesProMpsDO>() |
| | | .likeIfPresent(MesProMpsDO::getCode, reqVO.getCode()) |
| | |
| | | .setSql("quantity_produced = IFNULL(quantity_produced, 0) + " + incrQuantity)); |
| | | } |
| | | |
| | | } |
| | | } |