Commit fd2a6a9b by 墨竹

fix:活码

parent 7f96451a
......@@ -121,7 +121,10 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
} else {
hmQrcodeQDTO.setHmCode("HM02" + hmId);
}
Long hmGroupId = hmQrcodeQDTO.getHmGroupId();
if (hmGroupId == null) {
hmQrcodeQDTO.setHmGroupId(0L);
}
List<String> clerkIdList = setStoreClerk(hmQrcodeQDTO, wxEnterpriseId, hmId, hmType);
if (CollectionUtils.isEmpty(clerkIdList)) {
return ServiceResponse.failure(Convert.toStr(HaoBanErrCodeCommon.ERR_8.getCode()),"该导购已经生成过活码或未关联过好办");
......@@ -172,19 +175,6 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
GicLogRecordEvaluationContext.putAttribute("userName", userName);
}
private void saveWelcomeRelation(HmQrcodeQDTO hmQrcodeQDTO) {
if (StringUtils.isNotBlank(hmQrcodeQDTO.getWelcomeId())) {
HmWelcomeRelationBO welcomeRelationBo = new HmWelcomeRelationBO();
welcomeRelationBo.setEnterpriseId(hmQrcodeQDTO.getEnterpriseId());
welcomeRelationBo.setWxEnterpriseId(hmQrcodeQDTO.getWxEnterpriseId());
welcomeRelationBo.setWelcomeId(hmQrcodeQDTO.getWelcomeId());
welcomeRelationBo.setReferId(hmQrcodeQDTO.getHmId() + "");
welcomeRelationBo.setReferCode(hmQrcodeQDTO.getHmCode());
welcomeRelationBo.setReferName(hmQrcodeQDTO.getName());
welcomeRelationBo.setType(HmWelcomeReferType.HM.getCode());
welcomeRelationService.saveHmWelcomeRelation(welcomeRelationBo);
}
}
@GicLogRecord(value = "修改员工活码-${#hmName}-${#logContent}",
category = GicLogRecordCategoryEnum.HUOMA,
......
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