rk
2025-12-15 a1a6e227628810259fcba0fff146792e97a80b8a
server/dmmall_service/src/main/java/com/doumee/dao/business/model/Integral.java
@@ -2,6 +2,7 @@
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;
@@ -109,4 +110,19 @@
    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;
    }
}