| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.utils.Constants; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | |
| | | private String strObjType; |
| | | |
| | | |
| | | |
| | | public static Integral createIntegral(Integer memberId, Constants.INTEGRAL_TYPE integralType,Integer objId){ |
| | | Integral integral = new Integral(); |
| | | integral.setCreator(memberId); |
| | | integral.setCreateDate(new Date()); |
| | | integral.setIsdeleted(Constants.ZERO); |
| | | integral.setMemberId(memberId); |
| | | integral.setTitle(integralType.getName()); |
| | | integral.setObjId(objId); |
| | | integral.setObjType(integralType.getKey()); |
| | | integral.setType(integralType.getType()); |
| | | |
| | | return integral; |
| | | } |
| | | |
| | | } |