|
|
|
|
@ -9,6 +9,7 @@ import com.flossom.common.core.enums.WxUserIntegralMessageTypeEnum;
|
|
|
|
|
import com.flossom.common.core.mapper.CtLeaveMessageMapper;
|
|
|
|
|
import com.flossom.common.core.mapper.WxScriptMessageMapper;
|
|
|
|
|
import com.flossom.common.core.mapper.WxUserScriptLogMapper;
|
|
|
|
|
import com.flossom.common.core.utils.DateUtils;
|
|
|
|
|
import com.flossom.common.security.utils.SecurityUtils;
|
|
|
|
|
import com.flossom.miniProgram.service.ICtleaveMeassageService;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
@ -39,10 +40,14 @@ public class CtleaveMessageServiceImpl implements ICtleaveMeassageService {
|
|
|
|
|
BeanUtils.copyProperties(wxScriptMessage, wxUserScriptLog);
|
|
|
|
|
wxUserScriptLog.setId(null);
|
|
|
|
|
wxUserScriptLog.setWxUserId(SecurityUtils.getLoginUser().getWxUserMember().getId());
|
|
|
|
|
wxUserScriptLog.setMessageType(WxUserIntegralMessageTypeEnum.USER_REGISTRATION.getCode());
|
|
|
|
|
wxUserScriptLog.setMessageType(WxUserIntegralMessageTypeEnum.LEAVE_MESSAGE.getCode());
|
|
|
|
|
wxUserScriptLog.setIsCustom(0);
|
|
|
|
|
wxUserScriptLog.setTitile(wxScriptMessage.getMessageTitle());
|
|
|
|
|
wxUserScriptLog.setContent(wxScriptMessage.getMessageContent());
|
|
|
|
|
wxUserScriptLog.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
wxUserScriptLog.setCreateBy(null);
|
|
|
|
|
wxUserScriptLog.setUpdateTime(null);
|
|
|
|
|
wxUserScriptLog.setUpdateBy(null);
|
|
|
|
|
wxUserScriptLogMapper.insertWxUserScriptLog(wxUserScriptLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|