Commit f7373230 by 墨竹

活码操作

parent bd196b7c
...@@ -22,6 +22,7 @@ import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO; ...@@ -22,6 +22,7 @@ import com.gic.haoban.manage.api.dto.hm.HmQrcodeStoreDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmClerkRelationQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO; import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO;
import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import com.gic.haoban.manage.api.enums.hm.HmWelcomeReferType; import com.gic.haoban.manage.api.enums.hm.HmWelcomeReferType;
import com.gic.haoban.manage.api.service.hm.HmQrcodeApiService; import com.gic.haoban.manage.api.service.hm.HmQrcodeApiService;
import com.gic.haoban.manage.service.config.Config; import com.gic.haoban.manage.service.config.Config;
...@@ -169,7 +170,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -169,7 +170,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
GicLogRecordEvaluationContext.noWriteLog(); GicLogRecordEvaluationContext.noWriteLog();
} else { } else {
if (invokingType != 1) { if (invokingType != 1) {
logContent = logContent + "——" + HbBindEnum.getName(invokingType); logContent = logContent + "——" + ChannelCodeEnum.getNameByCode(invokingType);
} }
GicLogRecordEvaluationContext.putAttribute("logContent", logContent); GicLogRecordEvaluationContext.putAttribute("logContent", logContent);
logger.info("新增活码日志:logText:{}", logContent); logger.info("新增活码日志:logText:{}", logContent);
...@@ -377,7 +378,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -377,7 +378,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
String hmName = "【" + hmId + "-" + hmQrcodeQDTO.getName() + "】:"; String hmName = "【" + hmId + "-" + hmQrcodeQDTO.getName() + "】:";
GicLogRecordEvaluationContext.putAttribute("hmName", hmName); GicLogRecordEvaluationContext.putAttribute("hmName", hmName);
if (invokingType != 1) { if (invokingType != 1) {
logText = logText + "——" + HbBindEnum.getName(invokingType); logText = logText + "——" + ChannelCodeEnum.getNameByCode(invokingType);
} }
GicLogRecordEvaluationContext.putAttribute("logContent", logText); GicLogRecordEvaluationContext.putAttribute("logContent", logText);
logger.info("更新活码日志:hmName:{},logText:{}", hmName, logText); logger.info("更新活码日志:hmName:{},logText:{}", hmName, logText);
...@@ -580,7 +581,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService { ...@@ -580,7 +581,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
setLoggerContext(hmQrcodeBO.getEnterpriseId(), hmQrcodeBO.getWxEnterpriseId(), hmQrcodeBO.getModifierId(), hmQrcodeBO.getModifierName()); setLoggerContext(hmQrcodeBO.getEnterpriseId(), hmQrcodeBO.getWxEnterpriseId(), hmQrcodeBO.getModifierId(), hmQrcodeBO.getModifierName());
String logContent = "【" + hmId + "-" + hmQrcodeBO.getName() + "】"; String logContent = "【" + hmId + "-" + hmQrcodeBO.getName() + "】";
if (invokingType != 1) { if (invokingType != 1) {
logContent = logContent + "——" + HbBindEnum.getName(invokingType); logContent = logContent + "——" + ChannelCodeEnum.getNameByCode(invokingType);
} }
GicLogRecordEvaluationContext.putAttribute("logContent", logContent); GicLogRecordEvaluationContext.putAttribute("logContent", logContent);
return ServiceResponse.success(); return ServiceResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment