yujian
2020-06-29 ec60e757d358636dcac1589c44a66f3e276fe58c
fanli/src/main/java/com/yeshi/fanli/service/impl/order/dividents/TeamDividentsRecordServiceImpl.java
@@ -28,12 +28,11 @@
         throw new ParamsException(1, "参数不完整");
      // 判断是否存在
      TeamDividentsRecord old = teamDividentsRecordMapper.selectByUidAndDayForUpdate(record.getUid(),
            record.getDay());
      TeamDividentsRecord old = teamDividentsRecordMapper.selectByUidAndDayAndTypeForUpdate(record.getUid(),
            record.getDay(),record.getType());
      if (old != null)
         throw new TeamDividentsRecordException(TeamDividentsRecordException.CODE_EXIST, "记录已存在");
      // 加入记录
      if (record.getCreateTime() == null)
         record.setCreateTime(new Date());
      teamDividentsRecordMapper.insertSelective(record);