大华口门对接

dahua_koumen
zhangxiongfeng 2026-07-28 18:25:57 +08:00
parent f670036b18
commit ac94e9fe88
1 changed files with 4 additions and 5 deletions

View File

@ -101,11 +101,10 @@ public class UserAddExe {
@Transactional(rollbackFor = Exception.class)
public boolean execute(UserAddCmd cmd) {
// 临时注释,跳过企业信息校验(测试用)
// Boolean b = corpInfoQueryExe.verifyCorpInfo();
// if (!b) {
// throw new BizException("请先完善企业信息");
// }
Boolean b = corpInfoQueryExe.verifyCorpInfo();
if (!b) {
throw new BizException("请先完善企业信息");
}
log.info("开始新增用户name: {}, corpinfoId: {}, phone: {}", cmd.getName(), cmd.getCorpinfoId(), cmd.getPhone());
try {
ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();