Commit a1d3c0ae by qwmqiuwenmin

fix

parent 838dd737
......@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.impl;
import java.util.Date;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -36,6 +37,9 @@ public class StaffServiceImpl implements StaffService {
tab.setUpdateTime(now);
tab.setStaffId(StringUtil.randomUUID());
tab.setStatusFlag(1);
if(StringUtils.isBlank(tab.getStaffId())){
tab.setWxUserId(tab.getStaffId());
}
mapper.insertSelective(tab);
return tab.getStaffId();
}
......
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