Commit a8435ca6 by guojuxing

新建商户和超级管理员

parent f833e3ce
package com.gic.store.utils;
package com.gic.enterprise.utils;
import com.gic.log.api.dto.SystemSetLogDTO;
import com.gic.log.api.service.LogApiService;
import com.gic.store.utils.PropertyNameMap;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
......
package com.gic.store.utils.log;
package com.gic.enterprise.utils.log;
import com.gic.store.utils.LogUtils;
import com.gic.enterprise.utils.LogUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
......@@ -20,15 +20,15 @@ public class LogAspect {
private static final Logger logger = LoggerFactory.getLogger(LogAspect.class);
@Pointcut("execution(* com.gic.store.service.outer.*.save*(..))")
@Pointcut("execution(* com.gic.enterprise.service.outer.*.save*(..))")
public void saveCell() {
}
@Pointcut("execution(public * com.gic.store.service.outer.*.edit*(..))")
@Pointcut("execution(public * com.gic.enterprise.service.outer.*.edit*(..))")
public void updateCell() {
}
@Pointcut("execution(* com.gic.store.service.outer.*.delete*(..))")
@Pointcut("execution(* com.gic.enterprise.service.outer.*.delete*(..))")
public void deleteCell() {
}
......
......@@ -18,4 +18,6 @@
<dubbo:service interface="com.gic.enterprise.service.EnterpriseApiService" ref="enterpriseApiService" timeout="60000" />
<dubbo:reference interface="com.gic.log.api.service.LogApiService" id="logApiService" timeout="60000" />
</beans>
......@@ -56,6 +56,8 @@ public class EnterpriseController {
}
}
userDTO.setPassword(UserPasswordUtil.getEncryptPassword(password));
//超级管理员
userDTO.setSuperAdmin(1);
//新增
ServiceResponse userResult = userApiService.saveUser(userDTO);
if (userResult.isSuccess()) {
......
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