diff --git a/代码库/mall-admin/.classpath b/代码库/mall-admin/.classpath new file mode 100644 index 0000000..6d7587a --- /dev/null +++ b/代码库/mall-admin/.classpath @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/代码库/mall-admin/.project b/代码库/mall-admin/.project new file mode 100644 index 0000000..110f5e6 --- /dev/null +++ b/代码库/mall-admin/.project @@ -0,0 +1,40 @@ + + + mall-admin + + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + org.springframework.ide.eclipse.boot.validation.springbootbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + + diff --git a/代码库/mall-admin/.settings/org.eclipse.jdt.core.prefs b/代码库/mall-admin/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/代码库/mall-admin/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/代码库/mall-admin/.settings/org.eclipse.m2e.core.prefs b/代码库/mall-admin/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/代码库/mall-admin/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/代码库/mall-admin/.settings/org.eclipse.wst.common.project.facet.core.xml b/代码库/mall-admin/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..d858295 --- /dev/null +++ b/代码库/mall-admin/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,4 @@ + + + + diff --git a/代码库/mall-admin/pom.xml b/代码库/mall-admin/pom.xml new file mode 100644 index 0000000..fbc0e4b --- /dev/null +++ b/代码库/mall-admin/pom.xml @@ -0,0 +1,142 @@ + + 4.0.0 + + com.macro.mall + mall-admin + 0.0.1-SNAPSHOT + jar + + mall-admin + mall-admin project for mall + + + org.springframework.boot + spring-boot-starter-parent + 1.5.14.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + true + + + + + com.macro.mall + mall-mbg + 1.0-SNAPSHOT + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-security + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.2.0 + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-aop + + + + com.github.pagehelper + pagehelper-spring-boot-starter + 1.2.3 + + + + io.springfox + springfox-swagger2 + 2.6.1 + + + io.springfox + springfox-swagger-ui + 2.6.1 + + + + io.jsonwebtoken + jjwt + 0.9.0 + + + + com.aliyun.oss + aliyun-sdk-oss + 2.5.0 + + + + net.logstash.logback + logstash-logback-encoder + 4.8 + + + + com.alibaba + druid-spring-boot-starter + 1.1.10 + + + + org.projectlombok + lombok + true + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + com.spotify + docker-maven-plugin + 1.1.0 + + + build-image + package + + build + + + + + mall/${project.artifactId}:${project.version} + http://192.168.1.71:2375 + java:8 + ["java", "-jar", "-Dspring.profiles.active=prod","/${project.build.finalName}.jar"] + + + / + ${project.build.directory} + ${project.build.finalName}.jar + + + + + + + diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/MallAdminApplication.java b/代码库/mall-admin/src/main/java/com/sock/mall/MallAdminApplication.java new file mode 100644 index 0000000..74cd3ee --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/MallAdminApplication.java @@ -0,0 +1,18 @@ +package com.macro.mall; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +/** + * Ӧ + */ +@SpringBootApplication +@MapperScan({"com.macro.mall.mapper","com.macro.mall.dao"}) +@EnableTransactionManagement +public class MallAdminApplication { + public static void main(String[] args) { + SpringApplication.run(MallAdminApplication.class, args); + } +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/bo/AdminUserDetails.java b/代码库/mall-admin/src/main/java/com/sock/mall/bo/AdminUserDetails.java deleted file mode 100644 index 3e6a5ac..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/bo/AdminUserDetails.java +++ /dev/null @@ -1 +0,0 @@ -package com.sock.mall.bo; import com.sock.mall.model.UmsAdmin; import com.sock.mall.model.UmsPermission; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; /** * SpringSecurity需要的用户详情 */ public class AdminUserDetails implements UserDetails { private UmsAdmin umsAdmin; private List permissionList; public AdminUserDetails(UmsAdmin umsAdmin,List permissionList) { this.umsAdmin = umsAdmin; this.permissionList = permissionList; } @Override public Collection getAuthorities() { //返回当前用户的权限 return permissionList.stream() .filter(permission -> permission.getValue()!=null) .map(permission ->new SimpleGrantedAuthority(permission.getValue())) .collect(Collectors.toList()); } @Override /*登录密码*/ public String getPassword() { return umsAdmin.getPassword(); } @Override /*登录名称*/ public String getUsername() { return umsAdmin.getUsername(); } @Override /*有效性验证(是否过期)*/ public boolean isAccountNonExpired() { return true; } @Override /*有效性验证(是否被锁)*/ public boolean isAccountNonLocked() { return true; } @Override /*验证证书是否有效*/ public boolean isCredentialsNonExpired() { return true; } @Override /*状态判断890-*/ public boolean isEnabled() { return umsAdmin.getStatus().equals(1); } } \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/bo/WebLog.java b/代码库/mall-admin/src/main/java/com/sock/mall/bo/WebLog.java deleted file mode 100644 index f36df97..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/bo/WebLog.java +++ /dev/null @@ -1 +0,0 @@ -package com.sock.mall.bo; /** * Controller层的日志封装类 */ public class WebLog { /** * 操作描述 */ private String description; /** * 操作用户 */ private String username; /** * 操作时间 */ private Long startTime; /** * 消耗时间 */ private Integer spendTime; /** * 根路径 */ private String basePath; /** * URI */ private String uri; /** * URL */ private String url; /** * 请求类型 */ private String method; /** * IP地址 */ private String ip; private Object parameter; private Object result; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Long getStartTime() { return startTime; } public void setStartTime(Long startTime) { this.startTime = startTime; } public Integer getSpendTime() { return spendTime; } public void setSpendTime(Integer spendTime) { this.spendTime = spendTime; } public String getBasePath() { return basePath; } public void setBasePath(String basePath) { this.basePath = basePath; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getMethod() { return method; } public void setMethod(String method) { this.method = method; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public Object getParameter() { return parameter; } public void setParameter(Object parameter) { this.parameter = parameter; } public Object getResult() { return result; } public void setResult(Object result) { this.result = result; } } \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/component/BIndingResultAspect.java b/代码库/mall-admin/src/main/java/com/sock/mall/component/BIndingResultAspect.java deleted file mode 100644 index 8ec4dc3..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/component/BIndingResultAspect.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.macro.mall.component; - -import com.macro.mall.dto.CommonResult; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; -import org.aspectj.lang.annotation.Pointcut; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; -import org.springframework.validation.BindingResult; - -/** - * HibernateValidator - */ -@Aspect -@Component -@Order(2) -public class BindingResultAspect { - @Pointcut("execution(public * com.macro.mall.controller.*.*(..))") - /*SpringMVCIJ֤*/ - /*Spring֤Ĵ󷵻BindingResult*/ - public void BindingResult() { - } - - @Around("BindingResult()") - public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { - /*Around(value="BindingResult()"*/ - Object[] args = joinPoint.getArgs(); - for (Object arg : args) { - if (arg instanceof BindingResult) { - /*֤ͨ*/ - BindingResult result = (BindingResult) arg; - if (result.hasErrors()) { - /*ݲ*/ - return new CommonResult().validateFailed(result); - /* ֤ͨ쳣*/ - /*شļϢ*/ - } - } - } - return joinPoint.proceed();//AOPл֪ͨproceed - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/component/JwtAuthenticationTokenFilter.java b/代码库/mall-admin/src/main/java/com/sock/mall/component/JwtAuthenticationTokenFilter.java deleted file mode 100644 index 67c1408..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/component/JwtAuthenticationTokenFilter.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.macro.mall.component; - -import com.macro.mall.util.JwtTokenUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.security.web.authentication.WebAuthenticationDetailsSource; -import org.springframework.stereotype.Component; -import org.springframework.web.filter.OncePerRequestFilter; - -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -/** - * JWT¼Ȩ - */ -public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { - private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class); - /*Log4jUtils࣬LoggerIJ*/ - @Autowired - private UserDetailsService userDetailsService;//ûϸϢ - @Autowired - private JwtTokenUtil jwtTokenUtil;//jwt¼Ȩ - @Value("${jwt.tokenHeader}") - private String tokenHeader;//¼ͷ - @Value("${jwt.tokenHead}") - private String tokenHead; - - @Override - protected void doFilterInternal(HttpServletRequest request, - HttpServletResponse response, - FilterChain chain) throws ServletException, IOException { - /*Filterʵֹ˹*/ - String authHeader = request.getHeader(this.tokenHeader); - if (authHeader != null && authHeader.startsWith(this.tokenHead)) { - String authToken = authHeader.substring(this.tokenHead.length());// The part after "Bearer " - String username = jwtTokenUtil.getUserNameFromToken(authToken); - LOGGER.info("checking username:{}", username); - if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) { - UserDetails userDetails = this.userDetailsService.loadUserByUsername(username); - if (jwtTokenUtil.validateToken(authToken, userDetails)) { - /*֤ϢSecurityContextHolderУUsernamePasswordAuthenticationTokenSecurity֤˺Ĺ*/ - UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities()); - authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); - LOGGER.info("authenticated user:{}", username); - SecurityContextHolder.getContext().setAuthentication(authentication); - } - } - } - chain.doFilter(request, response);//תһ - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/component/RestAuthenticationEntryPoint.java b/代码库/mall-admin/src/main/java/com/sock/mall/component/RestAuthenticationEntryPoint.java deleted file mode 100644 index 148d3ef..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/component/RestAuthenticationEntryPoint.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.macro.mall.component; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.util.JsonUtil; -import org.springframework.security.core.AuthenticationException; -import org.springframework.security.web.AuthenticationEntryPoint; -import org.springframework.stereotype.Component; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -/** - * δ¼tokenʧЧʽӿʱԶķؽ - */ -@Component -public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint {// - @Override - public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { - response.setCharacterEncoding("UTF-8"); - response.setContentType("application/json"); - response.getWriter().println(JsonUtil.objectToJson(new CommonResult().unauthorized(authException.getMessage()))); - response.getWriter().flush(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/component/RestfulAccessDeniedHandler.java b/代码库/mall-admin/src/main/java/com/sock/mall/component/RestfulAccessDeniedHandler.java deleted file mode 100644 index be45726..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/component/RestfulAccessDeniedHandler.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.macro.mall.component; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.util.JsonUtil; -import org.springframework.security.access.AccessDeniedException; -import org.springframework.security.web.access.AccessDeniedHandler; -import org.springframework.stereotype.Component; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -/** - * ʽӿûȨʱԶķؽ - */ -@Component -public class RestfulAccessDeniedHandler implements AccessDeniedHandler{//ûзȨ - @Override - public void handle(HttpServletRequest request, - HttpServletResponse response, - AccessDeniedException e) throws IOException, ServletException { - response.setCharacterEncoding("UTF-8"); - response.setContentType("application/json"); - response.getWriter().println(JsonUtil.objectToJson(new CommonResult().forbidden(e.getMessage()))); - response.getWriter().flush(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/component/WebLogAspect.java b/代码库/mall-admin/src/main/java/com/sock/mall/component/WebLogAspect.java deleted file mode 100644 index 360d514..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/component/WebLogAspect.java +++ /dev/null @@ -1,127 +0,0 @@ -package com.macro.mall.component; - -import com.macro.mall.bo.WebLog; -import com.macro.mall.util.JsonUtil; -import com.macro.mall.util.RequestUtil; -import io.swagger.annotations.ApiOperation; -import net.logstash.logback.marker.Markers; -import org.aspectj.lang.JoinPoint; -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.Signature; -import org.aspectj.lang.annotation.*; -import org.aspectj.lang.reflect.MethodSignature; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.core.annotation.Order; -import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; - -import javax.servlet.http.HttpServletRequest; -import java.lang.reflect.Method; -import java.lang.reflect.Parameter; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * ͳһ־ - */ -@Aspect//javaඨΪ -@Component -@Order(1) -public class WebLogAspect { - private static final Logger LOGGER = LoggerFactory.getLogger(WebLogAspect.class); - private ThreadLocal startTime = new ThreadLocal<>(); - /** - * һ - * ~һ*ηֵⷵ - * ~ڶ*controllerӰ - * ~*ⷽ - * ~..ƥIJ - */ - - @Pointcut("execution(public * com.macro.mall.controller.*.*(..))") - public void webLog() { - } - - @Before("webLog()") - public void doBefore(JoinPoint joinPoint) throws Throwable { - startTime.set(System.currentTimeMillis()); - } - - @AfterReturning(value = "webLog()", returning = "ret") - public void doAfterReturning(Object ret) throws Throwable { - } - - @Around("webLog()") - public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { - //ȡǰ - ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); - HttpServletRequest request = attributes.getRequest(); - //¼Ϣ(ͨlogstashelasticsearch) - WebLog webLog = new WebLog(); - Object result = joinPoint.proceed(); - Signature signature = joinPoint.getSignature(); - MethodSignature methodSignature = (MethodSignature) signature; - Method method = methodSignature.getMethod(); - if (method.isAnnotationPresent(ApiOperation.class)) { - ApiOperation log = method.getAnnotation(ApiOperation.class); - webLog.setDescription(log.value()); - } - long endTime = System.currentTimeMillis(); - webLog.setBasePath(RequestUtil.getBasePath(request)); - webLog.setIp(request.getRemoteUser()); - webLog.setMethod(request.getMethod()); - webLog.setParameter(getParameter(method, joinPoint.getArgs())); - webLog.setResult(result); - webLog.setSpendTime((int) (endTime - startTime.get())); - webLog.setStartTime(startTime.get()); - webLog.setUri(request.getRequestURI()); - webLog.setUrl(request.getRequestURL().toString()); - Map logMap = new HashMap<>(); - logMap.put("url",webLog.getUrl()); - logMap.put("method",webLog.getMethod()); - logMap.put("parameter",webLog.getParameter()); - logMap.put("spendTime",webLog.getSpendTime()); - logMap.put("description",webLog.getDescription()); - // LOGGER.info("{}", JsonUtil.objectToJson(webLog)); - LOGGER.info(Markers.appendEntries(logMap),JsonUtil.objectToJson(webLog)); - return result;//󣬷 - } - - /** - * ݷʹIJȡ - */ - private Object getParameter(Method method, Object[] args) { - List argList = new ArrayList<>();//ArrayList[]LIst[Object] - Parameter[] parameters = method.getParameters(); - for (int i = 0; i < parameters.length; i++) { - RequestBody requestBody = parameters[i].getAnnotation(RequestBody.class);//getAnnotationڷԪصָ͵ע - if (requestBody != null) {//ӦHttpbodyΪ - argList.add(args[i]);// - } - RequestParam requestParam = parameters[i].getAnnotation(RequestParam.class); - if (requestParam != null) {//Ϊ - Map map = new HashMap<>(); //map - String key = parameters[i].getName();//ȡ - if (!StringUtils.isEmpty(requestParam.value())) {//ֵգkeyزֵ - key = requestParam.value(); - } - map.put(key, args[i]);//argue[i]key - argList.add(map);//һmapmapзi=nʱargֵ - } - } - if (argList.size() == 0) {//Ϊ0ʱؿ - return null; - } else if (argList.size() == 1) {//Ϊ1ʱűֵ - return argList.get(0); - } else { - return argList; - } - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/config/OssConfig.java b/代码库/mall-admin/src/main/java/com/sock/mall/config/OssConfig.java deleted file mode 100644 index e7cdff4..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/config/OssConfig.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.macro.mall.config; - -import com.aliyun.oss.OSSClient; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - - -@Configuration -public class OssConfig {//OSS࣬ȡϢ - @Value("${aliyun.oss.endpoint}") - private String ALIYUN_OSS_ENDPOINT;//OSS˿ - @Value("${aliyun.oss.accessKeyId}") - private String ALIYUN_OSS_ACCESSKEYID;//ԿID - @Value("${aliyun.oss.accessKeySecret}") - private String ALIYUN_OSS_ACCESSKEYSECRET;//Կ - @Bean - public OSSClient ossClient(){//OSSjavaͻˣOSSн - return new OSSClient(ALIYUN_OSS_ENDPOINT,ALIYUN_OSS_ACCESSKEYID,ALIYUN_OSS_ACCESSKEYSECRET); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/config/SecurityConfig.java b/代码库/mall-admin/src/main/java/com/sock/mall/config/SecurityConfig.java deleted file mode 100644 index 598f113..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/config/SecurityConfig.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.macro.mall.config; - -import com.macro.mall.bo.AdminUserDetails; -import com.macro.mall.component.JwtAuthenticationTokenFilter; -import com.macro.mall.component.RestAuthenticationEntryPoint; -import com.macro.mall.component.RestfulAccessDeniedHandler; -import com.macro.mall.model.UmsAdmin; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.service.UmsAdminService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.web.servlet.FilterRegistrationBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.http.HttpMethod; -import org.springframework.security.authentication.encoding.Md5PasswordEncoder; -import org.springframework.security.authentication.encoding.PasswordEncoder; -import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; -import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; -import org.springframework.security.config.annotation.web.builders.HttpSecurity; -import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; -import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; -import org.springframework.security.config.http.SessionCreationPolicy; -import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.security.core.userdetails.UsernameNotFoundException; -import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; -import org.springframework.web.cors.CorsConfiguration; -import org.springframework.web.cors.UrlBasedCorsConfigurationSource; -import org.springframework.web.filter.CorsFilter; - -import java.util.List; - - -/** - * SpringSecurity - */ -@Configuration//Configure÷ԴӦȨ -@EnableWebSecurity//Spring Security:ͷϼע@EnableWebSecurity -@EnableGlobalMethodSecurity(prePostEnabled=true) -public class SecurityConfig extends WebSecurityConfigurerAdapter {//SecurityConfig - @Autowired - private UmsAdminService adminService;// - @Autowired - private RestfulAccessDeniedHandler restfulAccessDeniedHandler;//ܾ - @Autowired - private RestAuthenticationEntryPoint restAuthenticationEntryPoint;//֤ - - @Override - protected void configure(HttpSecurity httpSecurity) throws Exception { - httpSecurity.csrf()// ʹõJWTԲҪcsrf - .disable() - .sessionManagement()// token˲Ҫsession - .sessionCreationPolicy(SessionCreationPolicy.STATELESS) - .and() - .authorizeRequests() - .antMatchers(HttpMethod.GET, // վ̬ԴȨ - "/", - "/*.html", - "/favicon.ico", - "/**/*.html", - "/**/*.css", - "/**/*.js", - "/swagger-resources/**", - "/v2/api-docs/**" - ) - /*permitAll()δ֤ʱκηʵԴURL/login һֱض*/ - .permitAll() - .antMatchers("/admin/login", "/admin/register")// Ե¼עҪ - .permitAll() - .antMatchers(HttpMethod.OPTIONS)//Ƚһoptions - .permitAll() - .antMatchers("/**")//ʱȫз - .permitAll() - .anyRequest()// ȫҪȨ֤ - .authenticated(); - /*HttpSecurityࣺXMLеԪأûwebİȫ,Ĭ£е*/ - // û - httpSecurity.headers().cacheControl(); - // JWT filter - httpSecurity.addFilterBefore(jwtAuthenticationTokenFilter(), UsernamePasswordAuthenticationFilter.class); - //ԶδȨδ¼ - httpSecurity.exceptionHandling() - .accessDeniedHandler(restfulAccessDeniedHandler) - .authenticationEntryPoint(restAuthenticationEntryPoint); - } - - @Override - /*ֻ¼ܷ*/ - protected void configure(AuthenticationManagerBuilder auth) throws Exception { - auth.userDetailsService(userDetailsService()) - .passwordEncoder(passwordEncoder()); - } - - @Bean - public PasswordEncoder passwordEncoder() {// - return new Md5PasswordEncoder(); - } - - @Bean - public UserDetailsService userDetailsService() { - //ȡ¼ûϢ - return username -> { - UmsAdmin admin = adminService.getAdminByUsername(username); - if (admin != null) { - List permissionList = adminService.getPermissionList(admin.getId()); - return new AdminUserDetails(admin,permissionList); - } - throw new UsernameNotFoundException("û"); - }; - } - - @Bean - public JwtAuthenticationTokenFilter jwtAuthenticationTokenFilter(){ - return new JwtAuthenticationTokenFilter();//µĹ - } - - /** - * õĹ - */ - @Bean - public CorsFilter corsFilter() { - UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); - CorsConfiguration config = new CorsConfiguration(); - config.addAllowedOrigin("*");// - config.setAllowCredentials(true);// - config.addAllowedHeader("*"); - config.addAllowedMethod("*"); - source.registerCorsConfiguration("/**", config); - FilterRegistrationBean bean = new FilterRegistrationBean(new CorsFilter(source)); - bean.setOrder(0); - return new CorsFilter(source);//µĹֵ - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/config/Swagger2Config.java b/代码库/mall-admin/src/main/java/com/sock/mall/config/Swagger2Config.java deleted file mode 100644 index e8f2d68..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/config/Swagger2Config.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.config; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import springfox.documentation.builders.ApiInfoBuilder; -import springfox.documentation.builders.PathSelectors; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.service.ApiInfo; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; -import springfox.documentation.swagger2.annotations.EnableSwagger2; - -/** - * Swagger2APIĵ - */ -@Configuration -@EnableSwagger2 -public class Swagger2Config {//swagger2 - @Bean - public Docket createRestApi(){ - return new Docket(DocumentationType.SWAGGER_2)//ǩ - .apiInfo(apiInfo()) - .select() - .apis(RequestHandlerSelectors.basePackage("com.macro.mall.controller")) - .paths(PathSelectors.any()) - .build(); - } -/*Զ巵Ϣ*/ - private ApiInfo apiInfo() { - return new ApiInfoBuilder() - .title("mall̨ϵͳ") - .description("mall̨ģ") - .contact("macro") - .version("1.0") - .build(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsPrefrenceAreaController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsPrefrenceAreaController.java deleted file mode 100644 index f64c37f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsPrefrenceAreaController.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.CmsPrefrenceArea; -import com.macro.mall.service.CmsPrefrenceAreaService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.List; - -/** - * ƷѡController - */ -@Controller//DispatcherServletַ -@Api(tags = "CmsPrefrenceAreaController", description = "Ʒѡ") -@RequestMapping("/prefrenceArea")//ӳ -public class CmsPrefrenceAreaController { - @Autowired//עԴ - private CmsPrefrenceAreaService prefrenceAreaService; - - @ApiOperation("ȡƷѡ") - @RequestMapping(value = "/listAll", method = RequestMethod.GET)//ʾ/listAll.doʱʵCmsPrefrenceAreaControllerliseAll - @ResponseBody//תдbodyJSONݻXML - public Object listAll() { - List prefrenceAreaList = prefrenceAreaService.listAll(); - return new CommonResult().success(prefrenceAreaList);//ɹ򷵻ذȫƷlistAll - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsSubjectController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsSubjectController.java deleted file mode 100644 index 1927a87..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/CmsSubjectController.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.CmsSubject; -import com.macro.mall.service.CmsSubjectService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.List; - -/** - * ƷרController - */ -@Controller -@Api(tags = "CmsSubjectController", description = "Ʒר") -@RequestMapping("/subject") -public class CmsSubjectController { - @Autowired - private CmsSubjectService subjectService; - - @ApiOperation("ȡȫƷר") - @RequestMapping(value = "/listAll", method = RequestMethod.GET) - @ResponseBody - public Object listAll() { - List subjectList = subjectService.listAll(); - return new CommonResult().success(subjectList); - } - - @ApiOperation(value = "רƷҳȡר") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - /*@RequestParamHTTPServletRequest*/ - public Object getList(@RequestParam(value = "keyword", required = false) String keyword, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { - List subjectList = subjectService.list(keyword, pageNum, pageSize); - return new CommonResult().pageSuccess(subjectList); - } diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsCompanyAddressController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsCompanyAddressController.java deleted file mode 100644 index e807163..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsCompanyAddressController.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.OmsCompanyAddress; -import com.macro.mall.service.OmsCompanyAddressService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.List; - -/** - * ջַController - * Created by macro on 2018/10/18. - */ -@Controller -@Api(tags = "OmsCompanyAddressController", description = "ջַ") -@RequestMapping("/companyAddress") -public class OmsCompanyAddressController { - @Autowired - private OmsCompanyAddressService companyAddressService; - - @ApiOperation("ȡջַ") - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ResponseBody - public Object list() { - List companyAddressList = companyAddressService.list(); - return new CommonResult().success(companyAddressList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderController.java deleted file mode 100644 index 8a228ad..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderController.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.*; -import com.macro.mall.model.OmsOrder; -import com.macro.mall.service.OmsOrderService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * Controller - * Created by macro on 2018/10/11. - */ -@Controller -@Api(tags = "OmsOrderController", description = "") -@RequestMapping("/order") -public class OmsOrderController { - @Autowired - private OmsOrderService orderService; - - @ApiOperation("ѯ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(OmsOrderQueryParam queryParam, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List orderList = orderService.list(queryParam, pageSize, pageNum); - return new CommonResult().pageSuccess(orderList); - } - - @ApiOperation("") - @RequestMapping(value = "/update/delivery", method = RequestMethod.POST) - @ResponseBody - public Object delivery(@RequestBody List deliveryParamList) { - int count = orderService.delivery(deliveryParamList);//Ͷ - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("رն") - @RequestMapping(value = "/update/close", method = RequestMethod.POST) - @ResponseBody - public Object close(@RequestParam("ids") List ids,@RequestParam String note) { - int count = orderService.close(ids,note); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = orderService.delete(ids); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡ:ϢƷϢ¼") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object detail(@PathVariable Long id) { - OmsOrderDetail orderDetailResult = orderService.detail(id); - return new CommonResult().success(orderDetailResult); - } - - @ApiOperation("޸ջϢ") - @RequestMapping(value = "/update/receiverInfo", method = RequestMethod.POST) - @ResponseBody - public Object updateReceiverInfo(@RequestBody OmsReceiverInfoParam receiverInfoParam) { - int count = orderService.updateReceiverInfo(receiverInfoParam); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸ĶϢ") - @RequestMapping(value = "/update/moneyInfo", method = RequestMethod.POST) - @ResponseBody - public Object updateReceiverInfo(@RequestBody OmsMoneyInfoParam moneyInfoParam) { - int count = orderService.updateMoneyInfo(moneyInfoParam); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ע") - @RequestMapping(value = "/update/note", method = RequestMethod.POST) - @ResponseBody - public Object updateNote(@RequestParam("id") Long id, - @RequestParam("note") String note, - @RequestParam("status") Integer status) {//״̬ - int count = orderService.updateNote(id,note,status); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnApplyController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnApplyController.java deleted file mode 100644 index 550fb2a..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnApplyController.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.OmsOrderReturnApplyResult; -import com.macro.mall.dto.OmsReturnApplyQueryParam; -import com.macro.mall.dto.OmsUpdateStatusParam; -import com.macro.mall.model.OmsOrderReturnApply; -import com.macro.mall.service.OmsOrderReturnApplyService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ˻ - */ -@Controller -@Api(tags = "OmsOrderReturnApplyController", description = "˻") -@RequestMapping("/returnApply") -public class OmsOrderReturnApplyController {//˻ - @Autowired - private OmsOrderReturnApplyService returnApplyService; - - @ApiOperation("ҳѯ˻") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(OmsReturnApplyQueryParam queryParam, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum); - return new CommonResult().pageSuccess(returnApplyList); - } - - @ApiOperation("ɾ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = returnApplyService.delete(ids); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡ˻") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - /*@PathVariableURLռλ*/ - public Object getItem(@PathVariable Long id) { - OmsOrderReturnApplyResult result = returnApplyService.getItem(id); - return new CommonResult().success(result); - } - - @ApiOperation("޸״̬") - @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateStatus(@PathVariable Long id, @RequestBody OmsUpdateStatusParam statusParam) { - int count = returnApplyService.updateStatus(id, statusParam); - if (count > 0) { - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnReasonController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnReasonController.java deleted file mode 100644 index ce799f1..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderReturnReasonController.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.OmsOrderReturnReason; -import com.macro.mall.service.OmsOrderReturnReasonService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ˻ԭController - */ -@Controller -@Api(tags = "OmsOrderReturnReasonController", description = "˻ԭ") -@RequestMapping("/returnReason") -public class OmsOrderReturnReasonController { - @Autowired - private OmsOrderReturnReasonService orderReturnReasonService; - - @ApiOperation("˻ԭ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody OmsOrderReturnReason returnReason) {//˻ԭ - int count = orderReturnReasonService.create(returnReason); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸˻ԭ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody OmsOrderReturnReason returnReason) { - int count = orderReturnReasonService.update(id,returnReason); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾ˻ԭ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = orderReturnReasonService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯȫ˻ԭ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List reasonList = orderReturnReasonService.list(pageSize,pageNum); - return new CommonResult().pageSuccess(reasonList); - } - - @ApiOperation("ȡ˻ԭϢ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) { - OmsOrderReturnReason reason = orderReturnReasonService.getItem(id); - return new CommonResult().success(reason); - } - - @ApiOperation("޸˻ԭ״̬") - @RequestMapping(value = "/update/status", method = RequestMethod.POST) - @ResponseBody - public Object updateStatus(@RequestParam(value = "status") Integer status, - @RequestParam("ids") List ids) {//޸״̬ - int count = orderReturnReasonService.updateStatus(ids,status); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderSettingController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderSettingController.java deleted file mode 100644 index 03f1719..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OmsOrderSettingController.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.OmsOrderSetting; -import com.macro.mall.service.OmsOrderSettingService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -/** - * Controller - */ -@Controller -@Api(tags = "OmsOrderSettingController", description = "ù") -@RequestMapping("/orderSetting") -public class OmsOrderSettingController { - @Autowired - private OmsOrderSettingService orderSettingService; - - @ApiOperation("ȡָ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) {//ȡϢ - OmsOrderSetting orderSetting = orderSettingService.getItem(id); - return new CommonResult().success(orderSetting); - } - - @ApiOperation("޸ָ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody OmsOrderSetting orderSetting) { - int count = orderSettingService.update(id,orderSetting); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OssCtontroller.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/OssCtontroller.java deleted file mode 100644 index 5b7722e..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/OssCtontroller.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.macro.mall.controller; - - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.OssCallbackResult; -import com.macro.mall.dto.OssPolicyResult; -import com.macro.mall.service.impl.OssServiceImpl; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletRequest; - -/** - * Ossزӿ - */ -@Controller -@Api(tags = "OssController",description = "Oss") -@RequestMapping("/aliyun/oss") -public class OssController { - @Autowired - private OssServiceImpl ossService;//Ʒ - - @ApiOperation(value = "ossϴǩ") - @RequestMapping(value = "/policy",method = RequestMethod.GET) - @ResponseBody - public Object policy() { - OssPolicyResult result = ossService.policy(); - return new CommonResult().success(result); - } - - @ApiOperation(value = "ossϴɹص")//ƴ洢 - @RequestMapping(value = "callback",method = RequestMethod.POST) - @ResponseBody - public Object callback(HttpServletRequest request) { - OssCallbackResult ossCallbackResult = ossService.callback(request); - return new CommonResult().success(ossCallbackResult); - } - -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsBrandController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsBrandController.java deleted file mode 100644 index 9fc0217..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsBrandController.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.PmsBrandParam; -import com.macro.mall.service.PmsBrandService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ƷƹController - */ -@Controller -@Api(tags = "PmsBrandController",description = "ƷƷƹ") -@RequestMapping("/brand") -public class PmsBrandController { - @Autowired - private PmsBrandService brandService;//ƷƷ - - @ApiOperation(value = "ȡȫƷб") - @RequestMapping(value = "/listAll", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:read')")//½ûroles/permissions - public Object getList() {//ȡб - return new CommonResult().success(brandService.listAllBrand()); - } - - @ApiOperation(value = "Ʒ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:create')") - public Object create(@Validated @RequestBody PmsBrandParam pmsBrand, BindingResult result) {// - CommonResult commonResult; - int count = brandService.createBrand(pmsBrand); - if (count == 1) { - commonResult = new CommonResult().success(count); - } else { - commonResult = new CommonResult().failed(); - } - return commonResult; - } - - @ApiOperation(value = "Ʒ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:update')") - public Object update(@PathVariable("id") Long id, - @Validated @RequestBody PmsBrandParam pmsBrandParam, - BindingResult result) { - CommonResult commonResult; - int count = brandService.updateBrand(id, pmsBrandParam); - if (count == 1) { - commonResult = new CommonResult().success(count); - } else { - commonResult = new CommonResult().failed(); - } - return commonResult; - } - - @ApiOperation(value = "ɾƷ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:delete')") - public Object delete(@PathVariable("id") Long id) { - int count = brandService.deleteBrand(id); - if (count == 1) { - return new CommonResult().success(null); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation(value = "ƷƷҳȡƷб") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:read')") - public Object getList(@RequestParam(value = "keyword", required = false) String keyword, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { - return new CommonResult().pageSuccess(brandService.listBrand(keyword, pageNum, pageSize)); - } - - @ApiOperation(value = "ݱŲѯƷϢ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:read')") - public Object getItem(@PathVariable("id") Long id) {//ȡϢ - return new CommonResult().success(brandService.getBrand(id)); - } - - @ApiOperation(value = "ɾƷ") - @RequestMapping(value = "/delete/batch", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:delete')") - public Object deleteBatch(@RequestParam("ids") List ids) { - int count = brandService.deleteBrand(ids); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation(value = "ʾ״̬") - @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:update')") - public Object updateShowStatus(@RequestParam("ids") List ids, - @RequestParam("showStatus") Integer showStatus) {//״̬ - int count = brandService.updateShowStatus(ids, showStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation(value = "³״̬") - @RequestMapping(value = "/update/factoryStatus", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:brand:update')") - public Object updateFactoryStatus(@RequestParam("ids") List ids, - @RequestParam("factoryStatus") Integer factoryStatus) { - int count = brandService.updateFactoryStatus(ids, factoryStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeCategoryController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeCategoryController.java deleted file mode 100644 index 554e86b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeCategoryController.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.PmsProductAttributeCategoryItem; -import com.macro.mall.model.PmsProductAttributeCategory; -import com.macro.mall.service.PmsProductAttributeCategoryService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ƷԷController - */ -@Controller -@Api(tags = "PmsProductAttributeCategoryController", description = "ƷԷ") -@RequestMapping("/productAttribute/category") -public class PmsProductAttributeCategoryController { - @Autowired - private PmsProductAttributeCategoryService productAttributeCategoryService; - - @ApiOperation("ƷԷ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestParam String name) { - int count = productAttributeCategoryService.create(name); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸ƷԷ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestParam String name) { - int count = productAttributeCategoryService.update(id, name); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ɾƷԷ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) - @ResponseBody - public Object delete(@PathVariable Long id) { - int count = productAttributeCategoryService.delete(id); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ȡƷԷϢ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) { - PmsProductAttributeCategory productAttributeCategory = productAttributeCategoryService.getItem(id); - return new CommonResult().success(productAttributeCategory); - } - - @ApiOperation("ҳȡƷԷ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object getList(@RequestParam(defaultValue = "5") Integer pageSize, @RequestParam(defaultValue = "1") Integer pageNum) { - List productAttributeCategoryList = productAttributeCategoryService.getList(pageSize, pageNum); - return new CommonResult().pageSuccess(productAttributeCategoryList); - } - - @ApiOperation("ȡƷԷ༰") - @RequestMapping(value = "/list/withAttr", method = RequestMethod.GET) - @ResponseBody - public Object getListWithAttr() { - List productAttributeCategoryResultList = productAttributeCategoryService.getListWithAttr(); - return new CommonResult().success(productAttributeCategoryResultList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeController.java deleted file mode 100644 index a348a81..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductAttributeController.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.PmsProductAttributeParam; -import com.macro.mall.dto.ProductAttrInfo; -import com.macro.mall.model.PmsProductAttribute; -import com.macro.mall.service.PmsProductAttributeService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ƷԹController - */ -@Controller -@Api(tags = "PmsProductAttributeController", description = "ƷԹ") -@RequestMapping("/productAttribute") -public class PmsProductAttributeController { - @Autowired - private PmsProductAttributeService productAttributeService;//ƷԷ - - @ApiOperation("ݷѯбб") - @ApiImplicitParams({@ApiImplicitParam(name = "type", value = "0ʾԣ1ʾ", required = true, paramType = "query", dataType = "integer")}) - @RequestMapping(value = "/list/{cid}", method = RequestMethod.GET) - @ResponseBody - public Object getList(@PathVariable Long cid, - @RequestParam(value = "type") Integer type, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {//ȡб - List productAttributeList = productAttributeService.getList(cid, type, pageSize, pageNum); - return new CommonResult().pageSuccess(productAttributeList); - } - - @ApiOperation("ƷϢ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody PmsProductAttributeParam productAttributeParam, BindingResult bindingResult) { - int count = productAttributeService.create(productAttributeParam);//ƷԷ - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸ƷϢ") - @RequestMapping(value = "/update/{id}",method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id,@RequestBody PmsProductAttributeParam productAttributeParam,BindingResult bindingResult){// - int count = productAttributeService.update(id,productAttributeParam); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ѯƷ") - @RequestMapping(value = "/{id}",method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id){//ȡϢ - PmsProductAttribute productAttribute = productAttributeService.getItem(id); - return new CommonResult().success(productAttribute); - } - - @ApiOperation("ɾƷ") - @RequestMapping(value = "/delete",method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids){ - int count = productAttributeService.delete(ids); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ƷidȡƷԼԷ") - @RequestMapping(value = "/attrInfo/{productCategoryId}",method = RequestMethod.GET) - @ResponseBody - public Object getAttrInfo(@PathVariable Long productCategoryId){//ȡϢ - List productAttrInfoList = productAttributeService.getProductAttrInfo(productCategoryId); - return new CommonResult().success(productAttrInfoList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductCategoryController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductCategoryController.java deleted file mode 100644 index 5ce9b90..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductCategoryController.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.PmsProductCategoryParam; -import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; -import com.macro.mall.model.PmsProductCategory; -import com.macro.mall.service.PmsProductCategoryService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ƷģController - */ -@Controller -@Api(tags = "PmsProductCategoryController", description = "Ʒ") -@RequestMapping("/productCategory") -public class PmsProductCategoryController {//Ʒ - @Autowired - private PmsProductCategoryService productCategoryService;//Ʒ - - @ApiOperation("ӲƷ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:create')") - public Object create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam, - BindingResult result) { - int count = productCategoryService.create(productCategoryParam); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸Ʒ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:update')") - public Object update(@PathVariable Long id, - @Validated - @RequestBody PmsProductCategoryParam productCategoryParam, - BindingResult result) { - int count = productCategoryService.update(id, productCategoryParam); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ҳѯƷ") - @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:read')") - public Object getList(@PathVariable Long parentId, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum); - return new CommonResult().pageSuccess(productCategoryList); - } - - @ApiOperation("idȡƷ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:read')") - public Object getItem(@PathVariable Long id) { - PmsProductCategory productCategory = productCategoryService.getItem(id); - return new CommonResult().success(productCategory); - } - - @ApiOperation("ɾƷ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:delete')") - public Object delete(@PathVariable Long id) { - int count = productCategoryService.delete(id); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸ĵʾ״̬") - @RequestMapping(value = "/update/navStatus", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:update')") - public Object updateNavStatus(@RequestParam("ids") List ids, @RequestParam("navStatus") Integer navStatus) { - int count = productCategoryService.updateNavStatus(ids, navStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸ʾ״̬") - @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:update')") - public Object updateShowStatus(@RequestParam("ids") List ids, @RequestParam("showStatus") Integer showStatus) { - int count = productCategoryService.updateShowStatus(ids, showStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ѯһ༰ӷ") - @RequestMapping(value = "/list/withChildren", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:productCategory:read')") - public Object listWithChildren() {//Яӷ - List list = productCategoryService.listWithChildren(); - return new CommonResult().success(list); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductController.java deleted file mode 100644 index ce4e4f6..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsProductController.java +++ /dev/null @@ -1,153 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.PmsProductParam; -import com.macro.mall.dto.PmsProductQueryParam; -import com.macro.mall.dto.PmsProductResult; -import com.macro.mall.model.PmsProduct; -import com.macro.mall.service.PmsProductService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ƷController - */ -@Controller -@Api(tags = "PmsProductController", description = "Ʒ") -@RequestMapping("/product") -public class PmsProductController { - @Autowired - private PmsProductService productService; - - @ApiOperation("Ʒ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:create')") - public Object create(@RequestBody PmsProductParam productParam, BindingResult bindingResult) {//ӣƷ - int count = productService.create(productParam);//Ʒ - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ƷidȡƷ༭Ϣ") - @RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET)//Ϣ - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:read')") - public Object getUpdateInfo(@PathVariable Long id) { - PmsProductResult productResult = productService.getUpdateInfo(id); - return new CommonResult().success(productResult); - } - - @ApiOperation("Ʒ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:update')") - public Object update(@PathVariable Long id, @RequestBody PmsProductParam productParam, BindingResult bindingResult) { - int count = productService.update(id, productParam); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ѯƷ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:read')") - public Object getList(PmsProductQueryParam productQueryParam, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List productList = productService.list(productQueryParam, pageSize, pageNum); - return new CommonResult().pageSuccess(productList); - } - - @ApiOperation("Ʒƻģѯ") - @RequestMapping(value = "/simpleList", method = RequestMethod.GET) - @ResponseBody - public Object getList(String keyword) {//ģѯ - List productList = productService.list(keyword); - return new CommonResult().success(productList); - } - - @ApiOperation("޸״̬") - @RequestMapping(value = "/update/verifyStatus",method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:update')") - public Object updateVerifyStatus(@RequestParam("ids") List ids, - @RequestParam("verifyStatus") Integer verifyStatus,//״̬ - @RequestParam("detail") String detail) { - int count = productService.updateVerifyStatus(ids, verifyStatus, detail); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("¼") - @RequestMapping(value = "/update/publishStatus",method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:update')") - public Object updatePublishStatus(@RequestParam("ids") List ids, - @RequestParam("publishStatus") Integer publishStatus) { - int count = productService.updatePublishStatus(ids, publishStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ƼƷ") - @RequestMapping(value = "/update/recommendStatus",method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:update')") - public Object updateRecommendStatus(@RequestParam("ids") List ids, - @RequestParam("recommendStatus") Integer recommendStatus) { - int count = productService.updateRecommendStatus(ids, recommendStatus);//Ƽ״̬ - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("ΪƷ") - @RequestMapping(value = "/update/newStatus",method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:update')") - public Object updateNewStatus(@RequestParam("ids") List ids, - @RequestParam("newStatus") Integer newStatus) { - int count = productService.updateNewStatus(ids, newStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } - - @ApiOperation("޸ɾ״̬") - @RequestMapping(value = "/update/deleteStatus",method = RequestMethod.POST) - @ResponseBody - @PreAuthorize("hasAuthority('pms:product:delete')") - public Object updateDeleteStatus(@RequestParam("ids") List ids, - @RequestParam("deleteStatus") Integer deleteStatus) { - int count = productService.updateDeleteStatus(ids, deleteStatus); - if (count > 0) { - return new CommonResult().success(count); - } else { - return new CommonResult().failed(); - } - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsSkuStockController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsSkuStockController.java deleted file mode 100644 index dc9b01a..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/PmsSkuStockController.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.PmsSkuStock; -import com.macro.mall.service.PmsSkuStockService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * skuController - */ -@Controller -@Api(tags = "PmsSkuStockController", description = "skuƷ") -@RequestMapping("/sku") -public class PmsSkuStockController { - @Autowired - private PmsSkuStockService skuStockService; - - @ApiOperation("Ʒżģsku") - @RequestMapping(value = "/{pid}", method = RequestMethod.GET) - @ResponseBody - public Object getList(@PathVariable Long pid, @RequestParam(value = "keyword",required = false) String keyword) {//ȡб - List skuStockList = skuStockService.getList(pid, keyword);//sku洢б - return new CommonResult().success(skuStockList); - } - @ApiOperation("¿Ϣ") - @RequestMapping(value ="/update/{pid}",method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long pid,@RequestBody List skuStockList){ - int count = skuStockService.update(pid,skuStockList);//sku洢 - if(count>0){ - return new CommonResult().success(count); - }else{ - return new CommonResult().failed(); - } - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponController.java deleted file mode 100644 index f520a61..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponController.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.SmsCouponParam; -import com.macro.mall.model.SmsCoupon; -import com.macro.mall.service.SmsCouponService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ŻȯController - */ -@Controller -@Api(tags = "SmsCouponController", description = "Żȯ") -@RequestMapping("/coupon") -public class SmsCouponController { - @Autowired - private SmsCouponService couponService; - @ApiOperation("Żȯ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object add(@RequestBody SmsCouponParam couponParam) {// - int count = couponService.create(couponParam);//Żȯ - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾŻȯ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) - @ResponseBody - public Object delete(@PathVariable Long id) { - int count = couponService.delete(id); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Żȯ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id,@RequestBody SmsCouponParam couponParam) { - int count = couponService.update(id,couponParam); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ŻȯƺͷҳȡŻȯб") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list( - @RequestParam(value = "name",required = false) String name, - @RequestParam(value = "type",required = false) Integer type, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List couponList = couponService.list(name,type,pageSize,pageNum); - return new CommonResult().pageSuccess(couponList); - } - - @ApiOperation("ȡŻȯϸϢ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) {//ȡϢ - SmsCouponParam couponParam = couponService.getItem(id); - return new CommonResult().success(couponParam); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponHistoryController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponHistoryController.java deleted file mode 100644 index dae9ed4..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsCouponHistoryController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsCouponHistory; -import com.macro.mall.service.SmsCouponHistoryService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.List; - -/** - * Żȯȡ¼Controller - */ -@Controller -@Api(tags = "SmsCouponHistoryController",description = "Żȯȡ¼") -@RequestMapping("/couponHistory") -public class SmsCouponHistoryController { - @Autowired - private SmsCouponHistoryService historyService; - @ApiOperation("Żȯidʹ״̬ŷҳȡȡ¼") - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "couponId",required = false) Long couponId, - @RequestParam(value = "useStatus",required = false) Integer useStatus,//ʹ״̬ - @RequestParam(value = "orderSn",required = false) String orderSn,// - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum){ - List historyList = historyService.list(couponId,useStatus,orderSn,pageSize,pageNum); - return new CommonResult().pageSuccess(historyList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionController.java deleted file mode 100644 index b16a39b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionController.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsFlashPromotion; -import com.macro.mall.service.SmsFlashPromotionService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ʱController - */ -@Controller -@Api(tags = "SmsFlashPromotionController",description = "ʱ") -@RequestMapping("/flash") -public class SmsFlashPromotionController { - @Autowired - private SmsFlashPromotionService flashPromotionService;//ʱ - @ApiOperation("ӻ") - @RequestMapping(value = "/create",method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody SmsFlashPromotion flashPromotion){ - int count = flashPromotionService.create(flashPromotion); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("༭Ϣ") - @RequestMapping(value = "/update/{id}",method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion){ - int count = flashPromotionService.update(id,flashPromotion); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾϢ") - @RequestMapping(value = "/delete/{id}",method = RequestMethod.POST) - @ResponseBody - public Object delete(@PathVariable Long id){ - int count = flashPromotionService.delete(id); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸״̬") - @RequestMapping(value = "/update/status/{id}",method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id,Integer status){ - int count = flashPromotionService.updateStatus(id,status);//״̬ - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡ") - @RequestMapping(value = "/{id}",method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id){//ȡϢ - SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); - return new CommonResult().success(flashPromotion); - } - - @ApiOperation("ݻƷҳѯ") - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ResponseBody - public Object getItem(@RequestParam(value = "keyword",required = false)String keyword,//ؼ - @RequestParam(value = "pageSize",defaultValue = "5")Integer pageSize, - @RequestParam(value = "pageNum",defaultValue = "1")Integer pageNum){ - List flashPromotionList = flashPromotionService.list(keyword,pageSize,pageNum); - return new CommonResult().pageSuccess(flashPromotionList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionProductRelationController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionProductRelationController.java deleted file mode 100644 index c575bce..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionProductRelationController.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.SmsFlashPromotionProduct; -import com.macro.mall.model.SmsFlashPromotionProductRelation; -import com.macro.mall.service.SmsFlashPromotionProductRelationService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ʱƷϵController - */ -@Controller -@Api(tags = "SmsFlashPromotionProductRelationController", description = "ʱƷϵ") -@RequestMapping("/flashProductRelation") -public class SmsFlashPromotionProductRelationController { - @Autowired - private SmsFlashPromotionProductRelationService relationService;//ʱƷ - @ApiOperation("ѡƷӹ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody List relationList) { - int count = relationService.create(relationList);// - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸ĹϢ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) { - int count = relationService.update(id,relation); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) - @ResponseBody - public Object delete(@PathVariable Long id) { - int count = relationService.delete(id); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡƷϢ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) {//ƷidȡϢ - SmsFlashPromotionProductRelation relation = relationService.getItem(id); - return new CommonResult().success(relation); - } - - @ApiOperation("ҳѯͬιƷϢ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "flashPromotionId")Long flashPromotionId,//ʱid - @RequestParam(value = "flashPromotionSessionId")Long flashPromotionSessionId,//ʱ᳡id - @RequestParam(value = "pageSize",defaultValue = "5")Integer pageSize, - @RequestParam(value = "pageNum",defaultValue = "1")Integer pageNum) { - List flashPromotionProductList = relationService.list(flashPromotionId,flashPromotionSessionId,pageSize,pageNum); - return new CommonResult().pageSuccess(flashPromotionProductList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionSessionController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionSessionController.java deleted file mode 100644 index fb1dcd2..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsFlashPromotionSessionController.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.SmsFlashPromotionSessionDetail; -import com.macro.mall.model.SmsFlashPromotionSession; -import com.macro.mall.service.SmsFlashPromotionSessionService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ʱιController - */ -@Controller -@Api(tags = "SmsFlashPromotionSessionController", description = "ʱι") -@RequestMapping("/flashSession") -public class SmsFlashPromotionSessionController { - @Autowired - private SmsFlashPromotionSessionService flashPromotionSessionService; - @ApiOperation("ӳ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody SmsFlashPromotionSession promotionSession) { - int count = flashPromotionSessionService.create(promotionSession);//ʱ᳡ - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸ij") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotionSession promotionSession) { - int count = flashPromotionSessionService.update(id,promotionSession); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸״̬") - @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateStatus(@PathVariable Long id, Integer status) { - int count = flashPromotionSessionService.updateStatus(id,status); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾ") - @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) - @ResponseBody - public Object delete(@PathVariable Long id) { - int count = flashPromotionSessionService.delete(id); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) { - SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); - return new CommonResult().success(promotionSession); - } - - @ApiOperation("ȡȫ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list() {//ȡϢб - List promotionSessionList = flashPromotionSessionService.list(); - return new CommonResult().success(promotionSessionList); - } - - @ApiOperation("ȡȫѡμ") - @RequestMapping(value = "/selectList", method = RequestMethod.GET) - @ResponseBody - public Object selectList(Long flashPromotionId) {//ѡб - List promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId); - return new CommonResult().success(promotionSessionList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeAdvertiseController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeAdvertiseController.java deleted file mode 100644 index 5f4789a..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeAdvertiseController.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsHomeAdvertise; -import com.macro.mall.service.SmsHomeAdvertiseService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ҳֲController - */ -@Controller -@Api(tags = "SmsHomeAdvertiseController", description = "ҳֲ") -@RequestMapping("/home/advertise") -public class SmsHomeAdvertiseController { - @Autowired - private SmsHomeAdvertiseService advertiseService; - - @ApiOperation("ӹ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody SmsHomeAdvertise advertise) { - int count = advertiseService.create(advertise); - if (count > 0) - return new CommonResult().success(count); - return new CommonResult().failed(); - } - - @ApiOperation("ɾ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = advertiseService.delete(ids); - if (count > 0) - return new CommonResult().success(count); - return new CommonResult().failed(); - } - - @ApiOperation("޸״̬") - @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateStatus(@PathVariable Long id, Integer status) { - int count = advertiseService.updateStatus(id, status); - if (count > 0) - return new CommonResult().success(count); - return new CommonResult().failed(); - } - - @ApiOperation("ȡ") - @RequestMapping(value = "/{id}", method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id) { - SmsHomeAdvertise advertise = advertiseService.getItem(id); - return new CommonResult().success(advertise); - } - - @ApiOperation("޸Ĺ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { - int count = advertiseService.update(id, advertise); - if (count > 0) - return new CommonResult().success(count); - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "name", required = false) String name,// - @RequestParam(value = "type", required = false) Integer type,// - @RequestParam(value = "endTime", required = false) String endTime,//ʱ - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); - return new CommonResult().pageSuccess(advertiseList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeBrandController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeBrandController.java deleted file mode 100644 index b8d57c6..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeBrandController.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsHomeBrand; -import com.macro.mall.service.SmsHomeBrandService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ҳƷƹController - */ -@Controller -@Api(tags = "SmsHomeBrandController", description = "ҳƷƹ") -@RequestMapping("/home/brand") -public class SmsHomeBrandController { - @Autowired - private SmsHomeBrandService homeBrandService; - @ApiOperation("ҳƼƷ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody List homeBrandList) { - int count = homeBrandService.create(homeBrandList);//ҳƷƷ - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ʒ") - @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateSort(@PathVariable Long id, Integer sort) {// - int count = homeBrandService.updateSort(id,sort); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾƼƷ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = homeBrandService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ״̬") - @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) - @ResponseBody - public Object updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { - int count = homeBrandService.updateRecommendStatus(ids,recommendStatus); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯƼƷ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "brandName", required = false) String brandName,//Ʒ - @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus,//Ƽ״̬ - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List homeBrandList = homeBrandService.list(brandName,recommendStatus,pageSize,pageNum); - return new CommonResult().pageSuccess(homeBrandList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeNewProductController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeNewProductController.java deleted file mode 100644 index 79b2a7d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeNewProductController.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsHomeNewProduct; -import com.macro.mall.service.SmsHomeNewProductService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ҳƷController - */ -@Controller -@Api(tags = "SmsHomeNewProductController", description = "ҳƷ") -@RequestMapping("/home/newProduct") -public class SmsHomeNewProductController { - @Autowired - private SmsHomeNewProductService homeNewProductService; - @ApiOperation("ҳƼƷ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody List homeBrandList) { - int count = homeNewProductService.create(homeBrandList); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ") - @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateSort(@PathVariable Long id, Integer sort) { - int count = homeNewProductService.updateSort(id,sort); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾƼ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = homeNewProductService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ״̬") - @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) - @ResponseBody - public Object updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { - int count = homeNewProductService.updateRecommendStatus(ids,recommendStatus); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯƼ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "productName", required = false) String productName,//Ʒ - @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List homeBrandList = homeNewProductService.list(productName,recommendStatus,pageSize,pageNum); - return new CommonResult().pageSuccess(homeBrandList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendProductController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendProductController.java deleted file mode 100644 index ec55a98..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendProductController.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsHomeRecommendProduct; -import com.macro.mall.service.SmsHomeRecommendProductService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ҳƼController - */ -@Controller -@Api(tags = "SmsHomeRecommendProductController", description = "ҳƼ") -@RequestMapping("/home/recommendProduct") -public class SmsHomeRecommendProductController { - @Autowired - private SmsHomeRecommendProductService recommendProductService; - @ApiOperation("ҳƼ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody List homeBrandList) { - int count = recommendProductService.create(homeBrandList);//ƼƷ - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ") - @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateSort(@PathVariable Long id, Integer sort) { - int count = recommendProductService.updateSort(id,sort); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾƼ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = recommendProductService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ״̬") - @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) - @ResponseBody - public Object updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { - int count = recommendProductService.updateRecommendStatus(ids,recommendStatus); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯƼ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "productName", required = false) String productName, - @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List homeBrandList = recommendProductService.list(productName,recommendStatus,pageSize,pageNum); - return new CommonResult().pageSuccess(homeBrandList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendSubjectController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendSubjectController.java deleted file mode 100644 index 857435e..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/SmsHomeRecommendSubjectController.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.SmsHomeRecommendSubject; -import com.macro.mall.service.SmsHomeRecommendSubjectService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ҳרƼController - */ -@Controller -@Api(tags = "SmsHomeRecommendSubjectController", description = "ҳרƼ") -@RequestMapping("/home/recommendSubject") -public class SmsHomeRecommendSubjectController { - @Autowired - private SmsHomeRecommendSubjectService recommendSubjectService; - @ApiOperation("ҳƼר") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody List homeBrandList) { - int count = recommendSubjectService.create(homeBrandList);//Ƽר - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ") - @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) - @ResponseBody - public Object updateSort(@PathVariable Long id, Integer sort) { - int count = recommendSubjectService.updateSort(id,sort); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾƼ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = recommendSubjectService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ƽ״̬") - @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) - @ResponseBody - public Object updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { - int count = recommendSubjectService.updateRecommendStatus(ids,recommendStatus); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ҳѯƼ") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "subjectName", required = false) String subjectName,//ר - @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { - List homeBrandList = recommendSubjectService.list(subjectName,recommendStatus,pageSize,pageNum); - return new CommonResult().pageSuccess(homeBrandList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsAdminController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsAdminController.java deleted file mode 100644 index 62bd2af..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsAdminController.java +++ /dev/null @@ -1,178 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.UmsAdminLoginParam; -import com.macro.mall.dto.UmsAdminParam; -import com.macro.mall.model.UmsAdmin; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRole; -import com.macro.mall.service.UmsAdminService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Controller; -import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletRequest; -import java.security.Principal; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * ̨û - */ -@Controller -@Api(tags = "UmsAdminController", description = "̨û") -@RequestMapping("/admin") -public class UmsAdminController { - @Autowired - private UmsAdminService adminService;//̨û - @Value("${jwt.tokenHeader}") - private String tokenHeader; - @Value("${jwt.tokenHead}") - private String tokenHead; - - @ApiOperation(value = "ûע") - @RequestMapping(value = "/register", method = RequestMethod.POST) - @ResponseBody - public Object register(@RequestBody UmsAdminParam umsAdminParam, BindingResult result) { - UmsAdmin umsAdmin = adminService.register(umsAdminParam);//û - if (umsAdmin == null) { - new CommonResult().failed(); - } - return new CommonResult().success(umsAdmin); - } - - @ApiOperation(value = "¼Ժ󷵻token") - @RequestMapping(value = "/login", method = RequestMethod.POST) - @ResponseBody - public Object login(@RequestBody UmsAdminLoginParam umsAdminLoginParam, BindingResult result) {//¼ - String token = adminService.login(umsAdminLoginParam.getUsername(), umsAdminLoginParam.getPassword());//û¼token - if (token == null) { - return new CommonResult().validateFailed("û"); - } - Map tokenMap = new HashMap<>();//µĹϣ洢tokenֵ - tokenMap.put("token", token); - tokenMap.put("tokenHead", tokenHead); - return new CommonResult().success(tokenMap); - } - - @ApiOperation(value = "ˢtoken") - @RequestMapping(value = "/token/refresh", method = RequestMethod.GET) - @ResponseBody - public Object refreshToken(HttpServletRequest request) {//Http - String token = request.getHeader(tokenHeader);//ȡͷ - String refreshToken = adminService.refreshToken(token); - if (refreshToken == null) { - return new CommonResult().failed(); - } - Map tokenMap = new HashMap<>(); - tokenMap.put("token", token); - tokenMap.put("tokenHead", tokenHead); - return new CommonResult().success(tokenMap); - } - - @ApiOperation(value = "ȡǰ¼ûϢ") - @RequestMapping(value = "/info", method = RequestMethod.GET) - @ResponseBody - public Object getAdminInfo(Principal principal) {//ȡûϢ - /*AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();*/ - String username = principal.getName(); - UmsAdmin umsAdmin = adminService.getAdminByUsername(username); - Map data = new HashMap<>(); - data.put("username", umsAdmin.getUsername()); - data.put("roles", new String[]{"TEST"});//ûɫ - data.put("icon", umsAdmin.getIcon());//ûͷ - return new CommonResult().success(data); - } - - @ApiOperation(value = "˳") - @RequestMapping(value = "/logout", method = RequestMethod.POST) - @ResponseBody - public Object logout() { - return new CommonResult().success(null); - } - - @ApiOperation("ûҳȡûб") - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ResponseBody - public Object list(@RequestParam(value = "name",required = false) String name,//û - @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, - @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum){ - List adminList = adminService.list(name,pageSize,pageNum); - return new CommonResult().pageSuccess(adminList); - } - - @ApiOperation("ȡָûϢ") - @RequestMapping(value = "/{id}",method = RequestMethod.GET) - @ResponseBody - public Object getItem(@PathVariable Long id){//idȡûϢ - UmsAdmin admin = adminService.getItem(id); - return new CommonResult().success(admin); - } - - @ApiOperation("ȡָûϢ") - @RequestMapping(value = "/update/{id}",method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id,@RequestBody UmsAdmin admin){ - int count = adminService.update(id,admin); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾָûϢ") - @RequestMapping(value = "/delete/{id}",method = RequestMethod.POST) - @ResponseBody - public Object delete(@PathVariable Long id){ - int count = adminService.delete(id); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ûɫ") - @RequestMapping(value = "/role/update",method = RequestMethod.POST) - @ResponseBody - public Object updateRole(@RequestParam("adminId") Long adminId,//½ɫ - @RequestParam("roleIds") List roleIds){ - int count = adminService.updateRole(adminId,roleIds); - if(count>=0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡָûĽɫ") - @RequestMapping(value = "/role/{adminId}",method = RequestMethod.GET) - @ResponseBody - public Object getRoleList(@PathVariable Long adminId){//ȡָûɫб - List roleList = adminService.getRoleList(adminId); - return new CommonResult().success(roleList); - } - - @ApiOperation("û+ - Ȩ") - @RequestMapping(value = "/permission/update",method = RequestMethod.POST) - @ResponseBody - public Object updatePermission(@RequestParam Long adminId, - @RequestParam("permissionIds") List permissionIds){ - int count = adminService.updatePermission(adminId,permissionIds); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡûȨޣ+ - Ȩޣ") - @RequestMapping(value = "/permission/{adminId}",method = RequestMethod.GET) - @ResponseBody - public Object getPermissionList(@PathVariable Long adminId){ - List permissionList = adminService.getPermissionList(adminId); - return new CommonResult().success(permissionList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsMemberLevelController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsMemberLevelController.java deleted file mode 100644 index f8e7435..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsMemberLevelController.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.UmsMemberLevel; -import com.macro.mall.service.UmsMemberLevelService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; - -import java.util.List; - -/** - * ԱȼController - */ -@Controller -@Api(tags = "UmsMemberLevelController",description = "Աȼ") -@RequestMapping("/memberLevel") -public class UmsMemberLevelController { - @Autowired - private UmsMemberLevelService memberLevelService;//Աȼ - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ApiOperation("ѯлԱȼ") - @ResponseBody - public Object list(@RequestParam("defaultStatus") Integer defaultStatus){ - List memberLevelList = memberLevelService.list(defaultStatus); - return new CommonResult().success(memberLevelList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsPermissionController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsPermissionController.java deleted file mode 100644 index 1a018c8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsPermissionController.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.dto.UmsPermissionNode; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.service.UmsPermissionService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ̨ûȨ޹ - */ -@Controller -@Api(tags = "UmsPermissionController", description = "̨ûȨ޹") -@RequestMapping("/permission") -public class UmsPermissionController { - @Autowired - private UmsPermissionService permissionService;//Ȩ޷ - @ApiOperation("Ȩ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody UmsPermission permission) { - int count = permissionService.create(permission); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ȩ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody UmsPermission permission) { - int count = permissionService.update(id,permission); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("idɾȨ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) { - int count = permissionService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("Բ㼶ṹȨ") - @RequestMapping(value = "/treeList", method = RequestMethod.GET)//㼶 - @ResponseBody - public Object treeList() { - List permissionNodeList = permissionService.treeList(); - return new CommonResult().success(permissionNodeList); - } - - @ApiOperation("ȡȨб") - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ResponseBody - public Object list() { - List permissionList = permissionService.list(); - return new CommonResult().success(permissionList); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsRoleController.java b/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsRoleController.java deleted file mode 100644 index f35393b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/controller/UmsRoleController.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.macro.mall.controller; - -import com.macro.mall.dto.CommonResult; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRole; -import com.macro.mall.service.UmsRoleService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * ̨ûɫ - */ -@Controller -@Api(tags = "UmsRoleController", description = "̨ûɫ") -@RequestMapping("/role") -public class UmsRoleController { - @Autowired - private UmsRoleService roleService;//ɫ - - @ApiOperation("ӽɫ") - @RequestMapping(value = "/create", method = RequestMethod.POST) - @ResponseBody - public Object create(@RequestBody UmsRole role) { - int count = roleService.create(role); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("޸Ľɫ") - @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) - @ResponseBody - public Object update(@PathVariable Long id, @RequestBody UmsRole role) { - int count = roleService.update(id,role); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ɾɫ") - @RequestMapping(value = "/delete", method = RequestMethod.POST) - @ResponseBody - public Object delete(@RequestParam("ids") List ids) {//idɾɫ - int count = roleService.delete(ids); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡӦɫȨ") - @RequestMapping(value = "/permission/{roleId}", method = RequestMethod.GET)//ɫȨ - @ResponseBody - public Object getPermissionList(@PathVariable Long roleId) { - List permissionList =roleService.getPermissionList(roleId); - return new CommonResult().success(permissionList); - } - - @ApiOperation("޸ĽɫȨ") - @RequestMapping(value = "/permission/update", method = RequestMethod.POST) - @ResponseBody - public Object updatePermission(@RequestParam Long roleId, - @RequestParam("permissionIds") List permissionIds) { - int count = roleService.updatePermission(roleId,permissionIds); - if(count>0){ - return new CommonResult().success(count); - } - return new CommonResult().failed(); - } - - @ApiOperation("ȡнɫ") - @RequestMapping(value = "/list",method = RequestMethod.GET) - @ResponseBody - public Object list(){ - List roleList = roleService.list(); - return new CommonResult().success(roleList); - } - -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsPrefrenceAreaProductRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsPrefrenceAreaProductRelationDao.java deleted file mode 100644 index cf91caa..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsPrefrenceAreaProductRelationDao.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.CmsPrefrenceAreaProductRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶѡƷϵ - * DAOݿʶ - */ -public interface CmsPrefrenceAreaProductRelationDao {//ѡƷϵ - int insertList(@Param("list") List prefrenceAreaProductRelationList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsSubjectProductRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsSubjectProductRelationDao.java deleted file mode 100644 index dc0c656..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/CmsSubjectProductRelationDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.CmsSubjectProductRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶƷרϵ - */ -public interface CmsSubjectProductRelationDao {//רƷϵ - int insertList(@Param("list") List subjectProductRelationList);//б -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderDao.java deleted file mode 100644 index 9a6180c..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderDao.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.OmsOrderDeliveryParam; -import com.macro.mall.dto.OmsOrderDetail; -import com.macro.mall.dto.OmsOrderQueryParam; -import com.macro.mall.model.OmsOrder; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶѯDao - */ -public interface OmsOrderDao { - /** - * ѯ - */ - List getList(@Param("queryParam") OmsOrderQueryParam queryParam); - - /** - * - */ - int delivery(@Param("list") List deliveryParamList); - - /** - * ȡ - */ - OmsOrderDetail getDetail(@Param("id") Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderOperateHistoryDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderOperateHistoryDao.java deleted file mode 100644 index 4905ae8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderOperateHistoryDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.OmsOrderOperateHistory; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ¼ԶDao - */ -public interface OmsOrderOperateHistoryDao { - int insertList(@Param("list") List orderOperateHistoryList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderReturnApplyDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderReturnApplyDao.java deleted file mode 100644 index 307508a..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/OmsOrderReturnApplyDao.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.OmsOrderReturnApplyResult; -import com.macro.mall.dto.OmsReturnApplyQueryParam; -import com.macro.mall.model.OmsOrderReturnApply; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ˻ԶDao - */ -public interface OmsOrderReturnApplyDao { - /** - * ѯб - */ - List getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam); - - /** - * ȡ - */ - OmsOrderReturnApplyResult getDetail(@Param("id")Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsMemberPriceDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsMemberPriceDao.java deleted file mode 100644 index 8bfce90..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsMemberPriceDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsMemberPrice; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶԱ۸Dao - */ -public interface PmsMemberPriceDao {//Ա۸ - int insertList(@Param("list") List memberPriceList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeCategoryDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeCategoryDao.java deleted file mode 100644 index c729116..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeCategoryDao.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.PmsProductAttributeCategoryItem; - -import java.util.List; - -/** - * ԶƷԷDao - */ -public interface PmsProductAttributeCategoryDao {//ƷԷ - List getListWithAttr(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeDao.java deleted file mode 100644 index c23b9d8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.ProductAttrInfo; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶƷDao - */ -public interface PmsProductAttributeDao {//Ʒ - List getProductAttrInfo(@Param("id") Long productCategoryId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeValueDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeValueDao.java deleted file mode 100644 index e01431b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductAttributeValueDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsProductAttributeValue; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ƷƷԶDao - */ -public interface PmsProductAttributeValueDao {//Ʒֵ - int insertList(@Param("list")List productAttributeValueList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryAttributeRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryAttributeRelationDao.java deleted file mode 100644 index b7ff516..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryAttributeRelationDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsProductCategoryAttributeRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶƷԹϵDao - */ -public interface PmsProductCategoryAttributeRelationDao {//ƷԹϵ - int insertList(@Param("list") List productCategoryAttributeRelationList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryDao.java deleted file mode 100644 index 8da46dc..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductCategoryDao.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; - -import java.util.List; - -/** - * ƷԶDao - */ -public interface PmsProductCategoryDao {//Ʒ - List listWithChildren(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductDao.java deleted file mode 100644 index 0bafd4d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductDao.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.PmsProductResult; -import org.apache.ibatis.annotations.Param; - - -/** - * ƷԶDao - */ -public interface PmsProductDao { - /** - * ȡƷ༭Ϣ - */ - PmsProductResult getUpdateInfo(@Param("id") Long id);//ȡϢ -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductFullReductionDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductFullReductionDao.java deleted file mode 100644 index c8705b6..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductFullReductionDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsProductFullReduction; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶƷDao - */ -public interface PmsProductFullReductionDao {//Ʒ - int insertList(@Param("list") List productFullReductionList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductLadderDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductLadderDao.java deleted file mode 100644 index 2d5b107..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductLadderDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsProductLadder; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶԱݼ۸Dao - */ -public interface PmsProductLadderDao {//Ʒݲ - int insertList(@Param("list") List productLadderList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductVertifyRecordDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductVertifyRecordDao.java deleted file mode 100644 index b204829..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsProductVertifyRecordDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsProductVertifyRecord; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * Ʒ־Զdao - */ -public interface PmsProductVertifyRecordDao {//Ʒ˼¼ - int insertList(@Param("list") List list); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsSkuStockDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsSkuStockDao.java deleted file mode 100644 index 87571af..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/PmsSkuStockDao.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.PmsSkuStock; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ԶƷskuDao - */ -public interface PmsSkuStockDao {//Sku洢 - /** - * - */ - int insertList(@Param("list")List skuStockList);//б - - /** - * 滻 - */ - int replaceList(@Param("list")List skuStockList);//滻б -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponDao.java deleted file mode 100644 index 1b2cab1..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponDao.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.SmsCouponParam; -import org.apache.ibatis.annotations.Param; - -/** - * ŻȯԶѯDao - */ -public interface SmsCouponDao {//ŻȯDao - SmsCouponParam getItem(@Param("id") Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductCategoryRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductCategoryRelationDao.java deleted file mode 100644 index 2e3d8e3..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductCategoryRelationDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.SmsCouponProductCategoryRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ŻȯƷϵԶDao - */ -public interface SmsCouponProductCategoryRelationDao {//ŻȯƷϵ - int insertList(@Param("list")List productCategoryRelationList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductRelationDao.java deleted file mode 100644 index 429b9b4..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsCouponProductRelationDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.SmsCouponProductRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ŻȯͲƷϵԶDao - */ -public interface SmsCouponProductRelationDao {//ŻȯƷϵ - int insertList(@Param("list")List productRelationList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsFlashPromotionProductRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsFlashPromotionProductRelationDao.java deleted file mode 100644 index 1961fa9..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/SmsFlashPromotionProductRelationDao.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.dto.SmsFlashPromotionProduct; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ʱƷԶDao - */ -public interface SmsFlashPromotionProductRelationDao { - /** - * ȡʱƷϢ - */ - List getList(@Param("flashPromotionId") Long flashPromotionId, @Param("flashPromotionSessionId") Long flashPromotionSessionId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java deleted file mode 100644 index ae8ea70..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.UmsAdminPermissionRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ûȨԶDao - */ -public interface UmsAdminPermissionRelationDao {//ûȨ޹ϵ - int insertList(@Param("list") List list); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java deleted file mode 100644 index 0318a55..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.UmsAdminRoleRelation; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRole; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ̨ûɫԶDao - */ -public interface UmsAdminRoleRelationDao {//ûɫϵ - /** - * ûɫϵ - */ - int insertList(@Param("list") List adminRoleRelationList); - - /** - * ȡнɫ - */ - List getRoleList(@Param("adminId") Long adminId); - - /** - * ȡûнɫȨ - */ - List getRolePermissionList(@Param("adminId") Long adminId); - - /** - * ȡûȨ(+ - Ȩ) - */ - List getPermissionList(@Param("adminId") Long adminId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsRolePermissionRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsRolePermissionRelationDao.java deleted file mode 100644 index cc9240b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsRolePermissionRelationDao.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.macro.mall.dao; - -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRolePermissionRelation; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ̨ûɫԶDao - */ -public interface UmsRolePermissionRelationDao { - /** - * ɫȨ޹ϵ - */ - int insertList(@Param("list")List list); - - /** - * ݽɫȡȨ - */ - List getPermissionList(@Param("roleId") Long roleId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/CommonResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/CommonResult.java deleted file mode 100644 index ffc4e1d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/CommonResult.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.macro.mall.dto; - -import com.github.pagehelper.PageInfo; -import com.macro.mall.util.JsonUtil; -import org.springframework.validation.BindingResult; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * ͨ÷ض - */ -public class CommonResult { - //ɹ - public static final int SUCCESS = 200; - //ʧ - public static final int FAILED = 500; - //Уʧ - public static final int VALIDATE_FAILED = 404; - //δ֤ - public static final int UNAUTHORIZED = 401; - //δȨ - public static final int FORBIDDEN = 403; - private int code; - private String message; - private Object data; - - /** - * ͨɹ - * - * @param data ȡ - */ - public CommonResult success(Object data) { - this.code = SUCCESS; - this.message = "ɹ"; - this.data = data; - return this; - } - - /** - * طҳɹ - */ - public CommonResult pageSuccess(List data) { - PageInfo pageInfo = new PageInfo(data);//ҳ - Map result = new HashMap<>(); - result.put("pageSize", pageInfo.getPageSize()); - result.put("totalPage", pageInfo.getPages()); - result.put("total", pageInfo.getTotal()); - result.put("pageNum", pageInfo.getPageNum()); - result.put("list", pageInfo.getList()); - this.code = SUCCESS; - this.message = "ɹ"; - this.data = result; - return this; - } - - /** - * ͨʧʾϢ - */ - public CommonResult failed() { - this.code = FAILED; - this.message = "ʧ"; - return this; - } - - /** - * ֤ʧʹ - * - * @param message Ϣ - */ - public CommonResult validateFailed(String message) { - this.code = VALIDATE_FAILED; - this.message = message; - return this; - } - - /** - * δ¼ʱʹ - * - * @param message Ϣ - */ - public CommonResult unauthorized(String message) { - this.code = UNAUTHORIZED; - this.message = "δ¼tokenѾ";//֤ - this.data = message; - return this; - } - - /** - * δȨʱʹ - * - * @param message Ϣ - */ - public CommonResult forbidden(String message) { - this.code = FORBIDDEN; - this.message = "ûȨ"; - this.data = message; - return this; - } - - /** - * ֤ʧʹ - * @param result Ϣ - */ - public CommonResult validateFailed(BindingResult result) { - validateFailed(result.getFieldError().getDefaultMessage()); - return this; - } - - @Override - public String toString() { - return JsonUtil.objectToJson(this); - } - - public int getCode() { - /*ȡ֤*/ - return code; - } - - public void setCode(int code) { - /*༭֤*/ - this.code = code; - } - - public String getMessage() { - /*ȡϢ*/ - return message; - } - - public void setMessage(String message) { - /*༭Ϣ*/ - this.message = message; - } - - public Object getData() { - /*ȡ*/ - return data; - } - - public void setData(Object data) { - /*༭*/ - this.data = data; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsMoneyInfoParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsMoneyInfoParam.java deleted file mode 100644 index 68145d4..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsMoneyInfoParam.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.macro.mall.dto; - -import lombok.Getter; -import lombok.Setter; - -import java.math.BigDecimal; - -/** - * ޸ĶϢ - */ -@Getter//getʹlombokԶĬgetter -@Setter//setʹlombokԶĬsetter -public class OmsMoneyInfoParam { - private Long orderId;//id - private BigDecimal freightAmount;//˷ܼ - private BigDecimal discountAmount;//ۿܼ - private Integer status;//״̬ -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDeliveryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDeliveryParam.java deleted file mode 100644 index f3b2ca9..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDeliveryParam.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import lombok.Getter; -import lombok.Setter; - -/** - * - */ -@Getter -@Setter -public class OmsOrderDeliveryParam { - @ApiModelProperty("id") - private Long orderId; - @ApiModelProperty("˾") - private String deliveryCompany; - @ApiModelProperty("") - private String deliverySn; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDetail.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDetail.java deleted file mode 100644 index 2ba60e1..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderDetail.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.OmsOrder; -import com.macro.mall.model.OmsOrderItem; -import com.macro.mall.model.OmsOrderOperateHistory; -import lombok.Getter; -import lombok.Setter; - -import java.util.List; - -/** - * Ϣ - */ -public class OmsOrderDetail extends OmsOrder { - @Getter - @Setter - private List orderItemList; - @Getter - @Setter - private List historyList;//־ -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderQueryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderQueryParam.java deleted file mode 100644 index 05e1d20..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderQueryParam.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import lombok.Getter; -import lombok.Setter; - -/** - * ѯ - */ -@Getter -@Setter -public class OmsOrderQueryParam { - @ApiModelProperty(value = "") - private String orderSn; - @ApiModelProperty(value = "ջ/") - private String receiverKeyword;//ջ˹ؼϢ - @ApiModelProperty(value = "״̬0->1->2->ѷ3->ɣ4->ѹرգ5->Ч") - private Integer status; - @ApiModelProperty(value = "ͣ0->1->ɱ") - private Integer orderType; - @ApiModelProperty(value = "Դ0->PC1->app") - private Integer sourceType;//Դ - @ApiModelProperty(value = "ύʱ") - private String createTime;//Ϣ -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderReturnApplyResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderReturnApplyResult.java deleted file mode 100644 index 3b0b072..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsOrderReturnApplyResult.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.OmsCompanyAddress; -import com.macro.mall.model.OmsOrderReturnApply; -import lombok.Getter; -import lombok.Setter; - -/** - * Ϣװ - */ -public class OmsOrderReturnApplyResult extends OmsOrderReturnApply { - @Getter - @Setter - private OmsCompanyAddress companyAddress; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReceiverInfoParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReceiverInfoParam.java deleted file mode 100644 index d7710c8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReceiverInfoParam.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.macro.mall.dto; - -import lombok.Getter; -import lombok.Setter; - -/** - * ޸ջϢ - */ -@Getter -@Setter -public class OmsReceiverInfoParam { - private Long orderId;//id - private String receiverName;//ջ - private String receiverPhone;//ջ˵绰 - private String receiverPostCode;//ջַ - private String receiverDetailAddress;//ջϸַ - private String receiverProvince;//ջʡ - private String receiverCity;//ջ˳ - private String receiverRegion;//ջ - private Integer status;//״̬ -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReturnApplyQueryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReturnApplyQueryParam.java deleted file mode 100644 index eae39e7..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsReturnApplyQueryParam.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import lombok.Getter; -import lombok.Setter; - -/** - * ˻ѯ - */ -@Getter -@Setter -public class OmsReturnApplyQueryParam { - @ApiModelProperty("񵥺") - private Long id; - @ApiModelProperty(value = "ջ/") - private String receiverKeyword; - @ApiModelProperty(value = "״̬0->1->˻У2->ɣ3->Ѿܾ") - private Integer status; - @ApiModelProperty(value = "ʱ") - private String createTime; - @ApiModelProperty(value = "Ա") - private String handleMan; - @ApiModelProperty(value = "ʱ") - private String handleTime; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsUpdateStatusParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsUpdateStatusParam.java deleted file mode 100644 index 64c07f3..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OmsUpdateStatusParam.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import lombok.Getter; -import lombok.Setter; - -import java.math.BigDecimal; - -/** - * ȷջύ - */ -@Getter -@Setter -public class OmsUpdateStatusParam {//״̬ - @ApiModelProperty("񵥺") - private Long id; - @ApiModelProperty("ջַid") - private Long companyAddressId; - @ApiModelProperty("ȷ˿") - private BigDecimal returnAmount; - @ApiModelProperty("ע") - private String handleNote; - @ApiModelProperty("") - private String handleMan; - @ApiModelProperty("ջע") - private String receiveNote; - @ApiModelProperty("ջ") - private String receiveMan; - @ApiModelProperty("״̬1->˻У2->ɣ3->Ѿܾ") - private Integer status; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackParam.java deleted file mode 100644 index 71dde40..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackParam.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.macro.mall.dto; - -/** - * - */ - -public class OssCallbackParam {// - private String callbackUrl;//Դλ - private String callbackBody;// - private String callbackBodyType;// - - public String getCallbackUrl() { - /*ȡԴλ*/ - return callbackUrl; - } - - public void setCallbackUrl(String callbackUrl) { - /*÷Դλ*/ - this.callbackUrl = callbackUrl; - } - - public String getCallbackBody() { - /*ȡ*/ - return callbackBody; - } - - public void setCallbackBody(String callbackBody) { - /*÷*/ - this.callbackBody = callbackBody; - } - - public String getCallbackBodyType() { - /*ȡ*/ - return callbackBodyType; - } - - public void setCallbackBodyType(String callbackBodyType) { - /*÷*/ - this.callbackBodyType = callbackBodyType; - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackResult.java deleted file mode 100644 index 37999aa..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssCallbackResult.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.macro.mall.dto; - -/** - * - */ -public class OssCallbackResult { - private String filename;//ļ - private String size; - private String mimeType; - private String width; - private String height; - - public String getFilename() { - return filename; - } - - public void setFilename(String filename) { - this.filename = filename; - } - - public String getSize() { - return size; - } - - public void setSize(String size) { - this.size = size; - } - - public String getMimeType() {//ȡļ - return mimeType; - } - - public void setMimeType(String mimeType) { - this.mimeType = mimeType; - } - - public String getWidth() {//ʾС-- - return width; - } - - public void setWidth(String width) { - this.width = width; - } - - public String getHeight() {//ʾС-- - return height; - } - - public void setHeight(String height) { - this.height = height; - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssPolicyResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssPolicyResult.java deleted file mode 100644 index 1160300..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/OssPolicyResult.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.macro.mall.dto; - -/** - * ȡOSSϴȨؽ - */ -public class OssPolicyResult { - private String accessKeyId;//id - private String policy;//Ȩ - private String signature;//ǩ - private String dir;//Ŀ¼ - private String host;// - - public String getAccessKeyId() { - return accessKeyId; - } - - public void setAccessKeyId(String accessKeyId) { - this.accessKeyId = accessKeyId; - } - - public String getPolicy() { - return policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - public String getDir() { - return dir; - } - - public void setDir(String dir) { - this.dir = dir; - } - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsBrandParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsBrandParam.java deleted file mode 100644 index c3373c6..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsBrandParam.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.validator.FlagValidator; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import org.hibernate.validator.constraints.NotEmpty; - -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; - -/** - * Ʒƴݲ - */ -public class PmsBrandParam {//ƷƲ - @ApiModelProperty(value = "Ʒ",required = true) - @NotEmpty(message = "ƲΪ") - private String name; - @ApiModelProperty(value = "Ʒĸ") - private String firstLetter; - @ApiModelProperty(value = "ֶ") - @Min(value = 0, message = "СΪ0") - private Integer sort; - @ApiModelProperty(value = "ǷΪ") - @FlagValidator(value = {"0","1"}, message = "״̬ȷ") - private Integer factoryStatus; - @ApiModelProperty(value = "Ƿʾ") - @FlagValidator(value = {"0","1"}, message = "ʾ״̬ȷ") - private Integer showStatus; - @ApiModelProperty(value = "Ʒlogo",required = true) - @NotEmpty(message = "ƷlogoΪ") - private String logo; - @ApiModelProperty(value = "Ʒƴͼ") - private String bigPic; - @ApiModelProperty(value = "Ʒƹ") - private String brandStory; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getFirstLetter() { - return firstLetter; - } - - public void setFirstLetter(String firstLetter) { - this.firstLetter = firstLetter; - } - - public Integer getSort() { - return sort; - } - - public void setSort(Integer sort) { - this.sort = sort; - } - - public Integer getFactoryStatus() { - return factoryStatus; - } - - public void setFactoryStatus(Integer factoryStatus) { - this.factoryStatus = factoryStatus; - } - - public Integer getShowStatus() { - return showStatus; - } - - public void setShowStatus(Integer showStatus) { - this.showStatus = showStatus; - } - - public String getLogo() { - return logo; - } - - public void setLogo(String logo) { - this.logo = logo; - } - - public String getBigPic() { - return bigPic; - } - - public void setBigPic(String bigPic) { - this.bigPic = bigPic; - } - - public String getBrandStory() { - return brandStory; - } - - public void setBrandStory(String brandStory) { - this.brandStory = brandStory; - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java deleted file mode 100644 index b263219..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.PmsProductAttribute; -import com.macro.mall.model.PmsProductAttributeCategory; - -import java.util.List; - -/** - * зԵdto - */ -public class PmsProductAttributeCategoryItem extends PmsProductAttributeCategory {//ƷԷϢ - private List productAttributeList; - - public List getProductAttributeList() {//ȡƷб - return productAttributeList; - } - - public void setProductAttributeList(List productAttributeList) {//༭Ʒб - this.productAttributeList = productAttributeList; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java deleted file mode 100644 index 298a604..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.validator.FlagValidator; -import io.swagger.annotations.ApiModelProperty; -import org.hibernate.validator.constraints.NotEmpty; - -/** - * ƷԲ - */ -public class PmsProductAttributeParam { - @ApiModelProperty("ԷID") - @NotEmpty(message = "Է಻Ϊ") - private Long productAttributeCategoryId; - @ApiModelProperty("") - @NotEmpty(message = "ƲΪ") - private String name; - @ApiModelProperty("ѡͣ0->Ψһ1->ѡ2->ѡ") - @FlagValidator({"0","1","2"}) - private Integer selectType; - @ApiModelProperty("¼뷽ʽ0->ֹ¼룻1->бѡȡ") - @FlagValidator({"0","1"}) - private Integer inputType; - @ApiModelProperty("ѡֵбԶŸ") - private String inputList; - - private Integer sort; - @ApiModelProperty("ɸѡʽ0->ͨ1->ɫ") - @FlagValidator({"0","1"}) - private Integer filterType; - @ApiModelProperty("ͣ0->Ҫм1->ؼּ2->Χ") - @FlagValidator({"0","1","2"}) - private Integer searchType; - @ApiModelProperty("ͬԲƷǷ0->1->") - @FlagValidator({"0","1"}) - private Integer relatedStatus; - @ApiModelProperty("Ƿֶ֧0->֧֣1->֧") - @FlagValidator({"0","1"}) - private Integer handAddStatus; - @ApiModelProperty("Եͣ0->1->") - @FlagValidator({"0","1"}) - private Integer type; - - public Long getProductAttributeCategoryId() { - return productAttributeCategoryId; - } - - public void setProductAttributeCategoryId(Long productAttributeCategoryId) { - this.productAttributeCategoryId = productAttributeCategoryId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getSelectType() { - /*ȡ*/ - return selectType; - } - - public void setSelectType(Integer selectType) { - /*༭*/ - this.selectType = selectType; - } - - public Integer getInputType() { - return inputType; - } - - public void setInputType(Integer inputType) { - this.inputType = inputType; - } - - public String getInputList() { - /*ȡѡֵб*/ - return inputList; - } - - public void setInputList(String inputList) { - /*༭ѡֵб*/ - this.inputList = inputList; - } - - public Integer getSort() { - return sort; - } - - public void setSort(Integer sort) { - this.sort = sort; - } - - public Integer getFilterType() { - return filterType; - } - - public void setFilterType(Integer filterType) { - this.filterType = filterType; - } - - public Integer getSearchType() { - return searchType; - } - - public void setSearchType(Integer searchType) { - this.searchType = searchType; - } - - public Integer getRelatedStatus() { - return relatedStatus; - } - - public void setRelatedStatus(Integer relatedStatus) { - this.relatedStatus = relatedStatus; - } - - public Integer getHandAddStatus() { - return handAddStatus; - } - - public void setHandAddStatus(Integer handAddStatus) { - this.handAddStatus = handAddStatus; - } - - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java deleted file mode 100644 index 9c1a65e..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.validator.FlagValidator; -import io.swagger.annotations.ApiModelProperty; -import org.hibernate.validator.constraints.NotEmpty; - -import javax.validation.constraints.Min; -import java.util.List; - -/** - * Ӹ²ƷIJ - */ -public class PmsProductCategoryParam {//Ʒ - @ApiModelProperty("ı") - private Long parentId; - @ApiModelProperty(value = "Ʒ",required = true) - @NotEmpty(message = "ƷƲΪ") - private String name; - @ApiModelProperty("൥λ") - private String productUnit; - @ApiModelProperty("Ƿڵʾ") - @FlagValidator(value = {"0","1"},message = "״ֻ̬Ϊ01") - private Integer navStatus; - @ApiModelProperty("Ƿʾ") - @FlagValidator(value = {"0","1"},message = "״ֻ̬Ϊ01") - private Integer showStatus; - @ApiModelProperty("") - @Min(value = 0,message = "СΪ0") - private Integer sort; - @ApiModelProperty("ͼ") - private String icon; - @ApiModelProperty("ؼ") - private String keywords; - @ApiModelProperty("") - private String description; - @ApiModelProperty("ƷɸѡԼ") - private List productAttributeIdList; - - public Long getParentId() { - return parentId; - } - - public void setParentId(Long parentId) { - this.parentId = parentId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getProductUnit() { - return productUnit; - } - - public void setProductUnit(String productUnit) { - this.productUnit = productUnit; - } - - public Integer getNavStatus() { - return navStatus; - } - - public void setNavStatus(Integer navStatus) { - this.navStatus = navStatus; - } - - public Integer getShowStatus() { - return showStatus; - } - - public void setShowStatus(Integer showStatus) { - this.showStatus = showStatus; - } - - public Integer getSort() { - return sort; - } - - public void setSort(Integer sort) { - this.sort = sort; - } - - public String getIcon() { - return icon; - } - - public void setIcon(String icon) { - this.icon = icon; - } - - public String getKeywords() { - return keywords; - } - - public void setKeywords(String keywords) { - this.keywords = keywords; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public List getProductAttributeIdList() { - return productAttributeIdList; - } - - public void setProductAttributeIdList(List productAttributeIdList) { - this.productAttributeIdList = productAttributeIdList; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java deleted file mode 100644 index 6eac75e..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.PmsProductCategory; - -import java.util.List; - -/** - *ƷӷϢ - */ -public class PmsProductCategoryWithChildrenItem extends PmsProductCategory { - private List children; - - public List getChildren() {//ȡӷ - return children; - } - - public void setChildren(List children) { - this.children = children; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java deleted file mode 100644 index e078980..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.*; -import io.swagger.annotations.ApiModelProperty; - -import java.util.List; - -/** - * ޸ƷʱʹõIJ - */ -public class PmsProductParam extends PmsProduct{ - @ApiModelProperty("Ʒݼ۸") - private List productLadderList; - @ApiModelProperty("Ʒ۸") - private List productFullReductionList; - @ApiModelProperty("ƷԱ۸") - private List memberPriceList; - @ApiModelProperty("ƷskuϢ") - private List skuStockList; - @ApiModelProperty("ƷԶ") - private List productAttributeValueList; - @ApiModelProperty("רƷϵ") - private List subjectProductRelationList; - @ApiModelProperty("ѡרƷĹϵ") - private List prefrenceAreaProductRelationList; - - public List getProductLadderList() { - return productLadderList; - } - - public void setProductLadderList(List productLadderList) { - this.productLadderList = productLadderList; - } - - public List getProductFullReductionList() { - return productFullReductionList; - } - - public void setProductFullReductionList(List productFullReductionList) { - this.productFullReductionList = productFullReductionList; - } - - public List getMemberPriceList() { - return memberPriceList; - } - - public void setMemberPriceList(List memberPriceList) { - this.memberPriceList = memberPriceList; - } - - public List getSkuStockList() { - return skuStockList; - } - - public void setSkuStockList(List skuStockList) { - this.skuStockList = skuStockList; - } - - public List getProductAttributeValueList() { - return productAttributeValueList; - } - - public void setProductAttributeValueList(List productAttributeValueList) { - this.productAttributeValueList = productAttributeValueList; - } - - public List getSubjectProductRelationList() { - return subjectProductRelationList; - } - - public void setSubjectProductRelationList(List subjectProductRelationList) { - this.subjectProductRelationList = subjectProductRelationList; - } - - public List getPrefrenceAreaProductRelationList() { - return prefrenceAreaProductRelationList; - } - - public void setPrefrenceAreaProductRelationList(List prefrenceAreaProductRelationList) { - this.prefrenceAreaProductRelationList = prefrenceAreaProductRelationList; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java deleted file mode 100644 index fe61f8e..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; - -/** - * Ʒѯ - */ -public class PmsProductQueryParam { - @ApiModelProperty("ϼ״̬") - private Integer publishStatus; - @ApiModelProperty("״̬") - private Integer verifyStatus; - @ApiModelProperty("Ʒģؼ") - private String keyword; - @ApiModelProperty("Ʒ") - private String productSn; - @ApiModelProperty("Ʒ") - private Long productCategoryId; - @ApiModelProperty("ƷƷƱ") - private Long brandId; - - public Integer getPublishStatus() { - return publishStatus; - } - - public void setPublishStatus(Integer publishStatus) { - this.publishStatus = publishStatus; - } - - public Integer getVerifyStatus() { - return verifyStatus; - } - - public void setVerifyStatus(Integer verifyStatus) { - this.verifyStatus = verifyStatus; - } - - public String getKeyword() { - return keyword; - } - - public void setKeyword(String keyword) { - this.keyword = keyword; - } - - public String getProductSn() { - return productSn; - } - - public void setProductSn(String productSn) { - this.productSn = productSn; - } - - public Long getProductCategoryId() { - return productCategoryId; - } - - public void setProductCategoryId(Long productCategoryId) { - this.productCategoryId = productCategoryId; - } - - public Long getBrandId() { - return brandId; - } - - public void setBrandId(Long brandId) { - this.brandId = brandId; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java deleted file mode 100644 index 7cb327f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.macro.mall.dto; - -/** - * ѯƷ޸ʱصĽ - */ -public class PmsProductResult extends PmsProductParam { - //Ʒѡĸid - private Long cateParentId; - - public Long getCateParentId() { - return cateParentId; - } - - public void setCateParentId(Long cateParentId) { - this.cateParentId = cateParentId; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/ProductAttrInfo.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/ProductAttrInfo.java deleted file mode 100644 index 9bd645b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/ProductAttrInfo.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.macro.mall.dto; - - -/** - * ƷӦϢ - */ -public class ProductAttrInfo {//ƷϢ - private Long attributeId; - private Long attributeCategoryId; - - public Long getAttributeId() { - return attributeId; - } - - public void setAttributeId(Long attributeId) { - this.attributeId = attributeId; - } - - public Long getAttributeCategoryId() { - return attributeCategoryId; - } - - public void setAttributeCategoryId(Long attributeCategoryId) { - this.attributeCategoryId = attributeCategoryId; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsCouponParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsCouponParam.java deleted file mode 100644 index 6f6a3c5..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsCouponParam.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.SmsCoupon; -import com.macro.mall.model.SmsCouponProductCategoryRelation; -import com.macro.mall.model.SmsCouponProductRelation; - -import java.util.List; - -/** - * ŻȯϢװƷͰ󶨷 - */ -public class SmsCouponParam extends SmsCoupon { - //Żȯ󶨵Ʒ - private List productRelationList; - //Żȯ󶨵Ʒ - private List productCategoryRelationList; - - public List getProductRelationList() { - return productRelationList; - } - - public void setProductRelationList(List productRelationList) { - this.productRelationList = productRelationList; - } - - public List getProductCategoryRelationList() { - return productCategoryRelationList; - } - - public void setProductCategoryRelationList(List productCategoryRelationList) { - this.productCategoryRelationList = productCategoryRelationList; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionProduct.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionProduct.java deleted file mode 100644 index 6a53256..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionProduct.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.PmsProduct; -import com.macro.mall.model.SmsFlashPromotionProductRelation; -import lombok.Getter; -import lombok.Setter; - -/** - * ʱƷϢװ - */ -public class SmsFlashPromotionProduct extends SmsFlashPromotionProductRelation{ - @Getter - @Setter - private PmsProduct product; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionSessionDetail.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionSessionDetail.java deleted file mode 100644 index 641a6e1..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/SmsFlashPromotionSessionDetail.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.SmsFlashPromotionSession; -import lombok.Getter; -import lombok.Setter; - -/** - * ƷijϢ - */ -public class SmsFlashPromotionSessionDetail extends SmsFlashPromotionSession { - @Setter - @Getter - private Integer productCount; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java deleted file mode 100644 index 10a1fa1..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminLoginParam.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import org.hibernate.validator.constraints.NotEmpty; - -/** - * û¼ - */ -public class UmsAdminLoginParam { - @ApiModelProperty(value = "û", required = true) - @NotEmpty(message = "ûΪ") - private String username; - @ApiModelProperty(value = "", required = true) - @NotEmpty(message = "벻Ϊ") - private String password; - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java deleted file mode 100644 index ab39b5d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsAdminParam.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.macro.mall.dto; - -import io.swagger.annotations.ApiModelProperty; -import lombok.Getter; -import lombok.Setter; -import org.hibernate.validator.constraints.Email; -import org.hibernate.validator.constraints.NotEmpty; - -/** - * û¼ - */ -@Getter -@Setter -public class UmsAdminParam { - @ApiModelProperty(value = "û", required = true) - @NotEmpty(message = "ûΪ") - private String username; - @ApiModelProperty(value = "", required = true) - @NotEmpty(message = "벻Ϊ") - private String password; - @ApiModelProperty(value = "ûͷ") - private String icon; - @ApiModelProperty(value = "") - @Email(message = "ʽϷ") - private String email; - @ApiModelProperty(value = "ûdz") - private String nickName; - @ApiModelProperty(value = "ע") - private String note; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsPermissionNode.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsPermissionNode.java deleted file mode 100644 index 5be31ad..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/dto/UmsPermissionNode.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.macro.mall.dto; - -import com.macro.mall.model.UmsPermission; -import lombok.Getter; -import lombok.Setter; - -import java.util.List; - -/** - *Ȩޱ - */ -public class UmsPermissionNode extends UmsPermission { - @Getter - @Setter - private List children; -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsPrefrenceAreaService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsPrefrenceAreaService.java deleted file mode 100644 index 96667f8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsPrefrenceAreaService.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.CmsPrefrenceArea; - -import java.util.List; - -/** - * ѡרService - */ -public interface CmsPrefrenceAreaService { - List listAll(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsSubjectService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsSubjectService.java deleted file mode 100644 index a645090..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/CmsSubjectService.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.CmsSubject; - -import java.util.List; - -/** - * ƷרService - */ -public interface CmsSubjectService { - /** - * ѯר - */ - List listAll(); - - /** - * ҳѯר - */ - List list(String keyword, Integer pageNum, Integer pageSize); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsCompanyAddressService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsCompanyAddressService.java deleted file mode 100644 index 60ef3da..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsCompanyAddressService.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsCompanyAddress; - -import java.util.List; - -/** - * ջַService - */ -public interface OmsCompanyAddressService { - /** - * ȡȫջַ - */ - List list(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnApplyService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnApplyService.java deleted file mode 100644 index 04285a5..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnApplyService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.OmsOrderReturnApplyResult; -import com.macro.mall.dto.OmsReturnApplyQueryParam; -import com.macro.mall.dto.OmsUpdateStatusParam; -import com.macro.mall.model.OmsOrderReturnApply; - -import java.util.List; - -/** - * ˻Service - */ -public interface OmsOrderReturnApplyService { - /** - * ҳѯ - */ - List list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum); - - /** - * ɾ - */ - int delete(List ids); - - /** - * ޸״̬ - */ - int updateStatus(Long id, OmsUpdateStatusParam statusParam); - - /** - * ȡָ - */ - OmsOrderReturnApplyResult getItem(Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnReasonService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnReasonService.java deleted file mode 100644 index 7f6bdd4..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderReturnReasonService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsOrderReturnReason; - -import java.util.List; - -/** - * ԭService - */ -public interface OmsOrderReturnReasonService { - /** - * Ӷԭ - */ - int create(OmsOrderReturnReason returnReason); - - /** - * ޸˻ԭ - */ - int update(Long id, OmsOrderReturnReason returnReason); - - /** - * ɾ˻ԭ - */ - int delete(List ids); - - /** - * ҳȡ˻ԭ - */ - List list(Integer pageSize, Integer pageNum); - - /** - * ޸˻ԭ״̬ - */ - int updateStatus(List ids, Integer status); - - /** - * ȡ˻ԭϢ - */ - OmsOrderReturnReason getItem(Long id); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderService.java deleted file mode 100644 index e87d77f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderService.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.*; -import com.macro.mall.model.OmsOrder; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * Service - */ -public interface OmsOrderService { - /** - * ѯ - */ - List list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum); - - /** - * - */ - @Transactional - int delivery(List deliveryParamList); - - /** - * رն - */ - @Transactional - int close(List ids, String note); - - /** - * ɾ - */ - int delete(List ids); - - /** - * ȡָ - */ - OmsOrderDetail detail(Long id); - - /** - * ޸ĶջϢ - */ - @Transactional - int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam); - - /** - * ޸ĶϢ - */ - @Transactional - int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam); - - /** - * ޸Ķע - */ - @Transactional - int updateNote(Long id, String note, Integer status); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderSettingService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderSettingService.java deleted file mode 100644 index de32889..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OmsOrderSettingService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsOrderSetting; - -/** - * Service - */ -public interface OmsOrderSettingService { - /** - * ȡָ - */ - OmsOrderSetting getItem(Long id); - - /** - * ޸ָ - */ - int update(Long id, OmsOrderSetting orderSetting); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/OssService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/OssService.java deleted file mode 100644 index 4347606..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/OssService.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.OssCallbackResult; -import com.macro.mall.dto.OssPolicyResult; - -import javax.servlet.http.HttpServletRequest; - -/** - * ossϴService - */ -public interface OssService { - OssPolicyResult policy(); - OssCallbackResult callback(HttpServletRequest request); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsBrandService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsBrandService.java deleted file mode 100644 index 2d03d76..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsBrandService.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.PmsBrandParam; -import com.macro.mall.model.PmsBrand; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ƷƷService - */ -public interface PmsBrandService { - List listAllBrand(); - - int createBrand(PmsBrandParam pmsBrandParam); - @Transactional - int updateBrand(Long id, PmsBrandParam pmsBrandParam); - - int deleteBrand(Long id); - - int deleteBrand(List ids); - - List listBrand(String keyword, int pageNum, int pageSize); - - PmsBrand getBrand(Long id); - - int updateShowStatus(List ids, Integer showStatus); - - int updateFactoryStatus(List ids, Integer factoryStatus); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeCategoryService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeCategoryService.java deleted file mode 100644 index e093241..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeCategoryService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.PmsProductAttributeCategoryItem; -import com.macro.mall.model.PmsProductAttributeCategory; - -import java.util.List; - -/** - * ƷԷService - */ -public interface PmsProductAttributeCategoryService { - int create(String name); - - int update(Long id, String name); - - int delete(Long id); - - PmsProductAttributeCategory getItem(Long id); - - List getList(Integer pageSize, Integer pageNum); - - List getListWithAttr(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeService.java deleted file mode 100644 index 3595317..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductAttributeService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.PmsProductAttributeParam; -import com.macro.mall.dto.ProductAttrInfo; -import com.macro.mall.model.PmsProductAttribute; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ƷService - */ -public interface PmsProductAttributeService { - /** - * ݷҳȡƷ - * @param cid id - * @param type 0->ԣ2-> - * @return - */ - List getList(Long cid, Integer type, Integer pageSize, Integer pageNum); - - /** - * Ʒ - */ - @Transactional - int create(PmsProductAttributeParam pmsProductAttributeParam); - - /** - * ޸Ʒ - */ - int update(Long id, PmsProductAttributeParam productAttributeParam); - - /** - * ȡƷϢ - */ - PmsProductAttribute getItem(Long id); - - @Transactional - int delete(List ids); - - List getProductAttrInfo(Long productCategoryId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductCategoryService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductCategoryService.java deleted file mode 100644 index a42b73b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductCategoryService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.PmsProductCategoryParam; -import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; -import com.macro.mall.model.PmsProductCategory; -import org.springframework.transaction.annotation.Isolation; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ƷService - */ -public interface PmsProductCategoryService { - @Transactional - int create(PmsProductCategoryParam pmsProductCategoryParam); - - @Transactional - int update(Long id, PmsProductCategoryParam pmsProductCategoryParam); - - List getList(Long parentId, Integer pageSize, Integer pageNum); - - int delete(Long id); - - PmsProductCategory getItem(Long id); - - int updateNavStatus(List ids, Integer navStatus); - - int updateShowStatus(List ids, Integer showStatus); - - List listWithChildren(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductService.java deleted file mode 100644 index 98b723d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsProductService.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.PmsProductParam; -import com.macro.mall.dto.PmsProductQueryParam; -import com.macro.mall.dto.PmsProductResult; -import com.macro.mall.model.PmsProduct; -import org.springframework.transaction.annotation.Isolation; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ƷService - */ -public interface PmsProductService { - /** - * Ʒ - */ - @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED) - int create(PmsProductParam productParam); - - /** - * ƷŻȡϢ - */ - PmsProductResult getUpdateInfo(Long id); - - /** - * Ʒ - */ - @Transactional - int update(Long id, PmsProductParam productParam); - - /** - * ҳѯƷ - */ - List list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum); - - /** - * ޸״̬ - * @param ids Ʒid - * @param verifyStatus ״̬ - * @param detail - */ - @Transactional - int updateVerifyStatus(List ids, Integer verifyStatus, String detail); - - /** - * ޸Ʒϼ״̬ - */ - int updatePublishStatus(List ids, Integer publishStatus); - - /** - * ޸ƷƼ״̬ - */ - int updateRecommendStatus(List ids, Integer recommendStatus); - - /** - * ޸Ʒ״̬ - */ - int updateNewStatus(List ids, Integer newStatus); - - /** - * ɾƷ - */ - int updateDeleteStatus(List ids, Integer deleteStatus); - - /** - * Ʒƻ߻ģѯ - */ - List list(String keyword); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsSkuStockService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsSkuStockService.java deleted file mode 100644 index 8af5b01..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/PmsSkuStockService.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.PmsSkuStock; - -import java.util.List; - -/** - * skuƷService - */ -public interface PmsSkuStockService { - /** - * ݲƷidskuCodeģ - */ - List getList(Long pid, String keyword); - - /** - * ƷϢ - */ - int update(Long pid, List skuStockList); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java deleted file mode 100644 index 5304a7c..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCoupnHistoryService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsCouponHistory; - -import java.util.List; - -/** - * Żȯȡ¼Service - */ -public interface SmsCouponHistoryService { - /** - * ҳѯŻȯȡ¼ - * @param couponId Żȯid - * @param useStatus ʹ״̬ - * @param orderSn ʹö - */ - List list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java deleted file mode 100644 index fbac6a7..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsCouponService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.SmsCouponParam; -import com.macro.mall.model.SmsCoupon; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ŻȯService - */ -public interface SmsCouponService { - /** - * Żȯ - */ - @Transactional - int create(SmsCouponParam couponParam); - - /** - * ŻȯidɾŻȯ - */ - @Transactional - int delete(Long id); - - /** - * ŻȯidŻȯϢ - */ - @Transactional - int update(Long id, SmsCouponParam couponParam); - - /** - * ҳȡŻȯб - */ - List list(String name, Integer type, Integer pageSize, Integer pageNum); - - /** - * ȡŻȯ - * @param id Żȯid - */ - SmsCouponParam getItem(Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java deleted file mode 100644 index 67928bd..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionProductRelationService.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.SmsFlashPromotionProduct; -import com.macro.mall.model.SmsFlashPromotionProductRelation; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ʱƷService - */ -public interface SmsFlashPromotionProductRelationService { - /** - * ӹ - */ - @Transactional - int create(List relationList); - - /** - * ޸ĹϢ - */ - int update(Long id, SmsFlashPromotionProductRelation relation); - - /** - * ɾ - */ - int delete(Long id); - - /** - * ȡ - */ - SmsFlashPromotionProductRelation getItem(Long id); - - /** - * ҳѯƷϢ - * - * @param flashPromotionId ʱid - * @param flashPromotionSessionId ʱid - */ - List list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum); - - /** - * ݻͳidȡƷϵ - * @param flashPromotionId - * @param flashPromotionSessionId - * @return - */ - int getCount(Long flashPromotionId,Long flashPromotionSessionId); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java deleted file mode 100644 index 8ba8558..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsFlashPromotion; - -import java.util.List; - -/** - * ʱService - */ -public interface SmsFlashPromotionService { - /** - * ӻ - */ - int create(SmsFlashPromotion flashPromotion); - - /** - * ޸ָ - */ - int update(Long id, SmsFlashPromotion flashPromotion); - - /** - * ɾ - */ - int delete(Long id); - - /** - * ޸״̬ - */ - int updateStatus(Long id, Integer status); - - /** - * ȡϸϢ - */ - SmsFlashPromotion getItem(Long id); - - /** - * ҳѯ - */ - List list(String keyword, Integer pageSize, Integer pageNum); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java deleted file mode 100644 index 72e963f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsFlashPromotionSessionService.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.SmsFlashPromotionSessionDetail; -import com.macro.mall.model.SmsFlashPromotionSession; - -import java.util.List; - -/** - * ʱιService - */ -public interface SmsFlashPromotionSessionService { - /** - * ӳ - */ - int create(SmsFlashPromotionSession promotionSession); - - /** - * ޸ij - */ - int update(Long id, SmsFlashPromotionSession promotionSession); - - /** - * ޸ij״̬ - */ - int updateStatus(Long id, Integer status); - - /** - * ɾ - */ - int delete(Long id); - - /** - * ȡ - */ - SmsFlashPromotionSession getItem(Long id); - - /** - * ״̬ȡб - */ - List list(); - - /** - * ȡȫѡμ - */ - List selectList(Long flashPromotionId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java deleted file mode 100644 index 75651c7..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeAdvertiseService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsHomeAdvertise; - -import java.util.List; - -/** - * ҳService - */ -public interface SmsHomeAdvertiseService { - /** - * ӹ - */ - int create(SmsHomeAdvertise advertise); - - /** - * ɾ - */ - int delete(List ids); - - /** - * ޸ϡ״̬ - */ - int updateStatus(Long id, Integer status); - - /** - * ȡ - */ - SmsHomeAdvertise getItem(Long id); - - /** - * ¹ - */ - int update(Long id, SmsHomeAdvertise advertise); - - /** - * ҳѯ - */ - List list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java deleted file mode 100644 index 86d6abd..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeBrandService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsHomeBrand; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ҳƷƹService - */ -public interface SmsHomeBrandService { - /** - * ҳƷƼ - */ - @Transactional - int create(List homeBrandList); - - /** - * ޸ƷƼ - */ - int updateSort(Long id, Integer sort); - - /** - * ɾƷƼ - */ - int delete(List ids); - - /** - * Ƽ״̬ - */ - int updateRecommendStatus(List ids, Integer recommendStatus); - - /** - * ҳѯƷƼ - */ - List list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java deleted file mode 100644 index cc1c4b5..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeNewProductService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsHomeNewProduct; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ҳƷService - */ -public interface SmsHomeNewProductService { - /** - * ҳƼ - */ - @Transactional - int create(List homeNewProductList); - - /** - * ޸Ƽ - */ - int updateSort(Long id, Integer sort); - - /** - * ɾƼ - */ - int delete(List ids); - - /** - * Ƽ״̬ - */ - int updateRecommendStatus(List ids, Integer recommendStatus); - - /** - * ҳѯƼ - */ - List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java deleted file mode 100644 index bf73497..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendProductService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsHomeRecommendProduct; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ҳƼService - */ -public interface SmsHomeRecommendProductService { - /** - * ҳƼ - */ - @Transactional - int create(List homeRecommendProductList); - - /** - * ޸Ƽ - */ - int updateSort(Long id, Integer sort); - - /** - * ɾƼ - */ - int delete(List ids); - - /** - * Ƽ״̬ - */ - int updateRecommendStatus(List ids, Integer recommendStatus); - - /** - * ҳѯƼ - */ - List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java deleted file mode 100644 index 87fd058..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/SmsHomeRecommendSubjectService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.SmsHomeRecommendSubject; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ҳרƼService - */ -public interface SmsHomeRecommendSubjectService { - /** - * ҳƼ - */ - @Transactional - int create(List recommendSubjectList); - - /** - * ޸Ƽ - */ - int updateSort(Long id, Integer sort); - - /** - * ɾƼ - */ - int delete(List ids); - - /** - * Ƽ״̬ - */ - int updateRecommendStatus(List ids, Integer recommendStatus); - - /** - * ҳѯƼ - */ - List list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsAdminService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsAdminService.java deleted file mode 100644 index a6a3ce9..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsAdminService.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.UmsAdminParam; -import com.macro.mall.model.UmsAdmin; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRole; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ̨ԱService - */ -public interface UmsAdminService { - /** - * ûȡ̨Ա - */ - UmsAdmin getAdminByUsername(String username); - - /** - * עṦ - */ - UmsAdmin register(UmsAdminParam umsAdminParam); - - /** - * ¼ - * @param username û - * @param password - * @return ɵJWTtoken - */ - String login(String username,String password); - - /** - * ˢtokenĹ - * @param oldToken ɵtoken - */ - String refreshToken(String oldToken); - - /** - * ûidȡû - */ - UmsAdmin getItem(Long id); - - /** - * ûdzƷҳѯû - */ - List list(String name, Integer pageSize, Integer pageNum); - - /** - * ޸ָûϢ - */ - int update(Long id, UmsAdmin admin); - - /** - * ɾָû - */ - int delete(Long id); - - /** - * ޸ûɫϵ - */ - @Transactional - int updateRole(Long adminId, List roleIds); - - /** - * ȡûڽɫ - */ - List getRoleList(Long adminId); - - /** - * ޸û+-Ȩ - */ - @Transactional - int updatePermission(Long adminId, List permissionIds); - - /** - * ȡûȨޣɫȨ޺+-Ȩޣ - */ - List getPermissionList(Long adminId); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsMemberLevelService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsMemberLevelService.java deleted file mode 100644 index 8dae505..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsMemberLevelService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.UmsMemberLevel; - -import java.util.List; - -/** - * ԱȼService - */ -public interface UmsMemberLevelService { - /** - * ȡлԱ¼ - * @param defaultStatus ǷΪĬϻԱ - */ - List list(Integer defaultStatus); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsPermissionService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsPermissionService.java deleted file mode 100644 index febf64f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsPermissionService.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.UmsPermissionNode; -import com.macro.mall.model.UmsPermission; - -import java.util.List; - -/** - * ̨ûȨ޹Service - */ -public interface UmsPermissionService { - /** - * Ȩ - */ - int create(UmsPermission permission); - - /** - * ޸Ȩ - */ - int update(Long id,UmsPermission permission); - - /** - * ɾȨ - */ - int delete(List ids); - - /** - * Բ㼶ṹȨ - */ - List treeList(); - - /** - * ȡȨ - */ - List list(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsRoleService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsRoleService.java deleted file mode 100644 index 77edd4c..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/UmsRoleService.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsRole; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * ̨ɫService - */ -public interface UmsRoleService { - /** - * ӽɫ - */ - int create(UmsRole role); - - /** - * ޸ĽɫϢ - */ - int update(Long id, UmsRole role); - - /** - * ɾɫ - */ - int delete(List ids); - - /** - * ȡָɫȨ - */ - List getPermissionList(Long roleId); - - /** - * ޸ָɫȨ - */ - @Transactional - int updatePermission(Long roleId, List permissionIds); - - /** - * ȡɫб - */ - List list(); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsPrefrenceAreaService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsPrefrenceAreaService.java deleted file mode 100644 index 96667f8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsPrefrenceAreaService.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.CmsPrefrenceArea; - -import java.util.List; - -/** - * ѡרService - */ -public interface CmsPrefrenceAreaService { - List listAll(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsSubjectService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsSubjectService.java deleted file mode 100644 index 077ce11..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/CmsSubjectService.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.CmsSubject; - -import java.util.List; - -/** - * ƷרService - */ -public interface CmsSubjectService { - /** - * ѯר - */ - List listAll(); - - /** - * ҳѯר - */ - List list(String keyword, Integer pageNum, Integer pageSize); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsCompanyAddressService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsCompanyAddressService.java deleted file mode 100644 index 60ef3da..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsCompanyAddressService.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsCompanyAddress; - -import java.util.List; - -/** - * ջַService - */ -public interface OmsCompanyAddressService { - /** - * ȡȫջַ - */ - List list(); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnApplyService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnApplyService.java deleted file mode 100644 index 04285a5..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnApplyService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.OmsOrderReturnApplyResult; -import com.macro.mall.dto.OmsReturnApplyQueryParam; -import com.macro.mall.dto.OmsUpdateStatusParam; -import com.macro.mall.model.OmsOrderReturnApply; - -import java.util.List; - -/** - * ˻Service - */ -public interface OmsOrderReturnApplyService { - /** - * ҳѯ - */ - List list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum); - - /** - * ɾ - */ - int delete(List ids); - - /** - * ޸״̬ - */ - int updateStatus(Long id, OmsUpdateStatusParam statusParam); - - /** - * ȡָ - */ - OmsOrderReturnApplyResult getItem(Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnReasonService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnReasonService.java deleted file mode 100644 index c561b97..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderReturnReasonService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsOrderReturnReason; - -import java.util.List; - -/** - * ԭService - */ -public interface OmsOrderReturnReasonService { - /** - * Ӷԭ - */ - int create(OmsOrderReturnReason returnReason); - - /** - * ޸˻ԭ - */ - int update(Long id, OmsOrderReturnReason returnReason); - - /** - * ɾ˻ԭ - */ - int delete(List ids); - - /** - * ҳȡ˻ԭ - */ - List list(Integer pageSize, Integer pageNum); - - /** - * ޸˻ԭ״̬ - */ - int updateStatus(List ids, Integer status); - - /** - * ȡ˻ԭϢ - */ - OmsOrderReturnReason getItem(Long id); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderService.java deleted file mode 100644 index e87d77f..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderService.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.*; -import com.macro.mall.model.OmsOrder; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * Service - */ -public interface OmsOrderService { - /** - * ѯ - */ - List list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum); - - /** - * - */ - @Transactional - int delivery(List deliveryParamList); - - /** - * رն - */ - @Transactional - int close(List ids, String note); - - /** - * ɾ - */ - int delete(List ids); - - /** - * ȡָ - */ - OmsOrderDetail detail(Long id); - - /** - * ޸ĶջϢ - */ - @Transactional - int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam); - - /** - * ޸ĶϢ - */ - @Transactional - int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam); - - /** - * ޸Ķע - */ - @Transactional - int updateNote(Long id, String note, Integer status); -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderSettingService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderSettingService.java deleted file mode 100644 index de32889..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OmsOrderSettingService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.model.OmsOrderSetting; - -/** - * Service - */ -public interface OmsOrderSettingService { - /** - * ȡָ - */ - OmsOrderSetting getItem(Long id); - - /** - * ޸ָ - */ - int update(Long id, OmsOrderSetting orderSetting); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OssService.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OssService.java deleted file mode 100644 index 4347606..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/OssService.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.macro.mall.service; - -import com.macro.mall.dto.OssCallbackResult; -import com.macro.mall.dto.OssPolicyResult; - -import javax.servlet.http.HttpServletRequest; - -/** - * ossϴService - */ -public interface OssService { - OssPolicyResult policy(); - OssCallbackResult callback(HttpServletRequest request); -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsBrandServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsBrandServiceImpl.java deleted file mode 100644 index 854ce0a..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsBrandServiceImpl.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dto.PmsBrandParam; -import com.macro.mall.mapper.PmsBrandMapper; -import com.macro.mall.mapper.PmsProductMapper; -import com.macro.mall.model.PmsBrand; -import com.macro.mall.model.PmsBrandExample; -import com.macro.mall.model.PmsProduct; -import com.macro.mall.model.PmsProductExample; -import com.macro.mall.service.PmsBrandService; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ƷƷServiceʵ - */ -@Service -public class PmsBrandServiceImpl implements PmsBrandService { - @Autowired - private PmsBrandMapper brandMapper; - @Autowired - private PmsProductMapper productMapper; - - @Override - public List listAllBrand() { - return brandMapper.selectByExample(new PmsBrandExample()); - } - - @Override - public int createBrand(PmsBrandParam pmsBrandParam) { - PmsBrand pmsBrand = new PmsBrand(); - BeanUtils.copyProperties(pmsBrandParam, pmsBrand); - //ʱĸΪգȡƵĵһΪĸ - if (StringUtils.isEmpty(pmsBrand.getFirstLetter())) { - pmsBrand.setFirstLetter(pmsBrand.getName().substring(0, 1)); - } - return brandMapper.insertSelective(pmsBrand); - } - - @Override - public int updateBrand(Long id, PmsBrandParam pmsBrandParam) { - PmsBrand pmsBrand = new PmsBrand(); - BeanUtils.copyProperties(pmsBrandParam, pmsBrand); - pmsBrand.setId(id); - //ʱĸΪգȡƵĵһΪĸ - if (StringUtils.isEmpty(pmsBrand.getFirstLetter())) { - pmsBrand.setFirstLetter(pmsBrand.getName().substring(0, 1)); - } - //ƷʱҪƷеƷ - PmsProduct product = new PmsProduct(); - product.setBrandName(pmsBrand.getName()); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andBrandIdEqualTo(id); - productMapper.updateByExampleSelective(product,example); - return brandMapper.updateByPrimaryKeySelective(pmsBrand); - } - - @Override - public int deleteBrand(Long id) { - return brandMapper.deleteByPrimaryKey(id); - } - - @Override - public int deleteBrand(List ids) { - PmsBrandExample pmsBrandExample = new PmsBrandExample(); - pmsBrandExample.createCriteria().andIdIn(ids); - return brandMapper.deleteByExample(pmsBrandExample); - } - - @Override - public List listBrand(String keyword, int pageNum, int pageSize) { - PageHelper.startPage(pageNum, pageSize); - PmsBrandExample pmsBrandExample = new PmsBrandExample(); - pmsBrandExample.setOrderByClause("sort desc"); - PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria(); - if (!StringUtils.isEmpty(keyword)) { - criteria.andNameLike("%" + keyword + "%"); - } - return brandMapper.selectByExample(pmsBrandExample); - } - - @Override - public PmsBrand getBrand(Long id) { - return brandMapper.selectByPrimaryKey(id); - } - - @Override - public int updateShowStatus(List ids, Integer showStatus) { - PmsBrand pmsBrand = new PmsBrand(); - pmsBrand.setShowStatus(showStatus); - PmsBrandExample pmsBrandExample = new PmsBrandExample(); - pmsBrandExample.createCriteria().andIdIn(ids); - return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample); - } - - @Override - public int updateFactoryStatus(List ids, Integer factoryStatus) { - PmsBrand pmsBrand = new PmsBrand(); - pmsBrand.setFactoryStatus(factoryStatus); - PmsBrandExample pmsBrandExample = new PmsBrandExample(); - pmsBrandExample.createCriteria().andIdIn(ids); - return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java deleted file mode 100644 index 138a869..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.PmsProductAttributeCategoryDao; -import com.macro.mall.dto.PmsProductAttributeCategoryItem; -import com.macro.mall.mapper.PmsProductAttributeCategoryMapper; -import com.macro.mall.model.PmsProductAttributeCategory; -import com.macro.mall.model.PmsProductAttributeCategoryExample; -import com.macro.mall.service.PmsProductAttributeCategoryService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * PmsProductAttributeCategoryServiceʵ - */ -@Service -public class PmsProductAttributeCategoryServiceImpl implements PmsProductAttributeCategoryService { - @Autowired - private PmsProductAttributeCategoryMapper productAttributeCategoryMapper; - @Autowired - private PmsProductAttributeCategoryDao productAttributeCategoryDao; - - @Override - public int create(String name) { - PmsProductAttributeCategory productAttributeCategory = new PmsProductAttributeCategory(); - productAttributeCategory.setName(name); - return productAttributeCategoryMapper.insertSelective(productAttributeCategory); - } - - @Override - public int update(Long id, String name) { - PmsProductAttributeCategory productAttributeCategory = new PmsProductAttributeCategory(); - productAttributeCategory.setName(name); - productAttributeCategory.setId(id); - return productAttributeCategoryMapper.updateByPrimaryKeySelective(productAttributeCategory); - } - - @Override - public int delete(Long id) { - return productAttributeCategoryMapper.deleteByPrimaryKey(id); - } - - @Override - public PmsProductAttributeCategory getItem(Long id) { - return productAttributeCategoryMapper.selectByPrimaryKey(id); - } - - @Override - public List getList(Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - return productAttributeCategoryMapper.selectByExample(new PmsProductAttributeCategoryExample()); - } - - @Override - public List getListWithAttr() { - return productAttributeCategoryDao.getListWithAttr(); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeServiceImpl.java deleted file mode 100644 index cb95d16..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductAttributeServiceImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.PmsProductAttributeDao; -import com.macro.mall.dto.PmsProductAttributeParam; -import com.macro.mall.dto.ProductAttrInfo; -import com.macro.mall.mapper.PmsProductAttributeCategoryMapper; -import com.macro.mall.mapper.PmsProductAttributeMapper; -import com.macro.mall.model.PmsProductAttribute; -import com.macro.mall.model.PmsProductAttributeCategory; -import com.macro.mall.model.PmsProductAttributeExample; -import com.macro.mall.service.PmsProductAttributeService; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * ƷServiceʵ - */ -@Service -public class PmsProductAttributeServiceImpl implements PmsProductAttributeService { - @Autowired - private PmsProductAttributeMapper productAttributeMapper; - @Autowired - private PmsProductAttributeCategoryMapper productAttributeCategoryMapper; - @Autowired - private PmsProductAttributeDao productAttributeDao; - - @Override - public List getList(Long cid, Integer type, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - PmsProductAttributeExample example = new PmsProductAttributeExample(); - example.setOrderByClause("sort desc"); - example.createCriteria().andProductAttributeCategoryIdEqualTo(cid).andTypeEqualTo(type); - return productAttributeMapper.selectByExample(example); - } - - @Override - public int create(PmsProductAttributeParam pmsProductAttributeParam) { - PmsProductAttribute pmsProductAttribute = new PmsProductAttribute(); - BeanUtils.copyProperties(pmsProductAttributeParam, pmsProductAttribute); - int count = productAttributeMapper.insertSelective(pmsProductAttribute); - //ƷԺҪƷԷ - PmsProductAttributeCategory pmsProductAttributeCategory = productAttributeCategoryMapper.selectByPrimaryKey(pmsProductAttribute.getProductAttributeCategoryId()); - if(pmsProductAttribute.getType()==0){ - pmsProductAttributeCategory.setAttributeCount(pmsProductAttributeCategory.getAttributeCount()+1); - }else if(pmsProductAttribute.getType()==1){ - pmsProductAttributeCategory.setParamCount(pmsProductAttributeCategory.getParamCount()+1); - } - productAttributeCategoryMapper.updateByPrimaryKey(pmsProductAttributeCategory); - return count; - } - - @Override - public int update(Long id, PmsProductAttributeParam productAttributeParam) { - PmsProductAttribute pmsProductAttribute = new PmsProductAttribute(); - pmsProductAttribute.setId(id); - BeanUtils.copyProperties(productAttributeParam, pmsProductAttribute); - return productAttributeMapper.updateByPrimaryKeySelective(pmsProductAttribute); - } - - @Override - public PmsProductAttribute getItem(Long id) { - return productAttributeMapper.selectByPrimaryKey(id); - } - - @Override - public int delete(List ids) { - //ȡ - PmsProductAttribute pmsProductAttribute = productAttributeMapper.selectByPrimaryKey(ids.get(0)); - Integer type = pmsProductAttribute.getType(); - PmsProductAttributeCategory pmsProductAttributeCategory = productAttributeCategoryMapper.selectByPrimaryKey(pmsProductAttribute.getProductAttributeCategoryId()); - PmsProductAttributeExample example = new PmsProductAttributeExample(); - example.createCriteria().andIdIn(ids); - int count = productAttributeMapper.deleteByExample(example); - //ɾɺ޸ - if(type==0){ - if(pmsProductAttributeCategory.getAttributeCount()>=count){ - pmsProductAttributeCategory.setAttributeCount(pmsProductAttributeCategory.getAttributeCount()-count); - }else{ - pmsProductAttributeCategory.setAttributeCount(0); - } - }else if(type==1){ - if(pmsProductAttributeCategory.getParamCount()>=count){ - pmsProductAttributeCategory.setParamCount(pmsProductAttributeCategory.getParamCount()-count); - }else{ - pmsProductAttributeCategory.setParamCount(0); - } - } - productAttributeCategoryMapper.updateByPrimaryKey(pmsProductAttributeCategory); - return count; - } - - @Override - public List getProductAttrInfo(Long productCategoryId) { - return productAttributeDao.getProductAttrInfo(productCategoryId); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductCategoryServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductCategoryServiceImpl.java deleted file mode 100644 index dc231ef..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductCategoryServiceImpl.java +++ /dev/null @@ -1,153 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.PmsProductCategoryAttributeRelationDao; -import com.macro.mall.dao.PmsProductCategoryDao; -import com.macro.mall.dto.PmsProductCategoryParam; -import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; -import com.macro.mall.mapper.PmsProductCategoryAttributeRelationMapper; -import com.macro.mall.mapper.PmsProductCategoryMapper; -import com.macro.mall.mapper.PmsProductMapper; -import com.macro.mall.model.*; -import com.macro.mall.service.PmsProductCategoryService; -import org.apache.commons.collections.CollectionUtils; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - * PmsProductCategoryServiceʵ - */ -@Service -public class PmsProductCategoryServiceImpl implements PmsProductCategoryService { - @Autowired - private PmsProductCategoryMapper productCategoryMapper; - @Autowired - private PmsProductMapper productMapper; - @Autowired - private PmsProductCategoryAttributeRelationDao productCategoryAttributeRelationDao; - @Autowired - private PmsProductCategoryAttributeRelationMapper productCategoryAttributeRelationMapper; - @Autowired - private PmsProductCategoryDao productCategoryDao; - @Override - public int create(PmsProductCategoryParam pmsProductCategoryParam) { - PmsProductCategory productCategory = new PmsProductCategory(); - productCategory.setProductCount(0); - BeanUtils.copyProperties(pmsProductCategoryParam, productCategory); - //ûиʱΪһ - setCategoryLevel(productCategory);//÷ȼ - int count = productCategoryMapper.insertSelective(productCategory); - //ɸѡԹ - List productAttributeIdList = pmsProductCategoryParam.getProductAttributeIdList(); - if(!CollectionUtils.isEmpty(productAttributeIdList)){ - insertRelationList(productCategory.getId(), productAttributeIdList); - } - return count; - } - - /** - * ƷɸѡԹϵ - * @param productCategoryId Ʒid - * @param productAttributeIdList Ʒɸѡid - */ - private void insertRelationList(Long productCategoryId, List productAttributeIdList) { - List relationList = new ArrayList<>(); - for (Long productAttrId : productAttributeIdList) { - PmsProductCategoryAttributeRelation relation = new PmsProductCategoryAttributeRelation(); - relation.setProductAttributeId(productAttrId); - relation.setProductCategoryId(productCategoryId); - relationList.add(relation); - } - productCategoryAttributeRelationDao.insertList(relationList); - } - - @Override - public int update(Long id, PmsProductCategoryParam pmsProductCategoryParam) { - PmsProductCategory productCategory = new PmsProductCategory(); - productCategory.setId(id); - BeanUtils.copyProperties(pmsProductCategoryParam, productCategory); - setCategoryLevel(productCategory); - //ƷʱҪƷе - PmsProduct product = new PmsProduct(); - product.setProductCategoryName(productCategory.getName()); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andProductCategoryIdEqualTo(id); - productMapper.updateByExampleSelective(product,example); - //ͬʱɸѡԵϢ - if(!CollectionUtils.isEmpty(pmsProductCategoryParam.getProductAttributeIdList())){ - PmsProductCategoryAttributeRelationExample relationExample = new PmsProductCategoryAttributeRelationExample(); - relationExample.createCriteria().andProductCategoryIdEqualTo(id); - productCategoryAttributeRelationMapper.deleteByExample(relationExample); - insertRelationList(id,pmsProductCategoryParam.getProductAttributeIdList()); - }else{ - PmsProductCategoryAttributeRelationExample relationExample = new PmsProductCategoryAttributeRelationExample(); - relationExample.createCriteria().andProductCategoryIdEqualTo(id); - productCategoryAttributeRelationMapper.deleteByExample(relationExample); - } - return productCategoryMapper.updateByPrimaryKeySelective(productCategory); - } - - @Override - public List getList(Long parentId, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - PmsProductCategoryExample example = new PmsProductCategoryExample(); - example.setOrderByClause("sort desc"); - example.createCriteria().andParentIdEqualTo(parentId); - return productCategoryMapper.selectByExample(example); - } - - @Override - public int delete(Long id) { - return productCategoryMapper.deleteByPrimaryKey(id); - } - - @Override - public PmsProductCategory getItem(Long id) { - return productCategoryMapper.selectByPrimaryKey(id); - } - - @Override - public int updateNavStatus(List ids, Integer navStatus) { - PmsProductCategory productCategory = new PmsProductCategory(); - productCategory.setNavStatus(navStatus); - PmsProductCategoryExample example = new PmsProductCategoryExample(); - example.createCriteria().andIdIn(ids); - return productCategoryMapper.updateByExampleSelective(productCategory, example); - } - - @Override - public int updateShowStatus(List ids, Integer showStatus) { - PmsProductCategory productCategory = new PmsProductCategory(); - productCategory.setShowStatus(showStatus); - PmsProductCategoryExample example = new PmsProductCategoryExample(); - example.createCriteria().andIdIn(ids); - return productCategoryMapper.updateByExampleSelective(productCategory, example); - } - - @Override - public List listWithChildren() { - return productCategoryDao.listWithChildren(); - } - - /** - * ݷparentId÷level - */ - private void setCategoryLevel(PmsProductCategory productCategory) { - //ûиʱΪһ - if (productCategory.getParentId() == 0) { - productCategory.setLevel(0); - } else { - //иʱѡݸlevel - PmsProductCategory parentCategory = productCategoryMapper.selectByPrimaryKey(productCategory.getParentId()); - if (parentCategory != null) { - productCategory.setLevel(parentCategory.getLevel() + 1); - } else { - productCategory.setLevel(0); - } - } - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductServiceImpl.java deleted file mode 100644 index 2488301..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsProductServiceImpl.java +++ /dev/null @@ -1,350 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.*; -import com.macro.mall.dto.PmsProductParam; -import com.macro.mall.dto.PmsProductQueryParam; -import com.macro.mall.dto.PmsProductResult; -import com.macro.mall.mapper.*; -import com.macro.mall.model.*; -import com.macro.mall.service.PmsProductService; -import io.swagger.annotations.Example; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.CollectionUtils; -import org.springframework.util.StringUtils; - -import java.lang.reflect.Method; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * ƷServiceʵ - */ -@Service -public class PmsProductServiceImpl implements PmsProductService { - private static final Logger LOGGER = LoggerFactory.getLogger(PmsProductServiceImpl.class); - @Autowired - private PmsProductMapper productMapper; - @Autowired - private PmsMemberPriceDao memberPriceDao;//Ա۸ - @Autowired - private PmsMemberPriceMapper memberPriceMapper; - @Autowired - private PmsProductLadderDao productLadderDao; - @Autowired - private PmsProductLadderMapper productLadderMapper; - @Autowired - private PmsProductFullReductionDao productFullReductionDao; - @Autowired - private PmsProductFullReductionMapper productFullReductionMapper; - @Autowired - private PmsSkuStockDao skuStockDao; - @Autowired - private PmsSkuStockMapper skuStockMapper; - @Autowired - private PmsProductAttributeValueDao productAttributeValueDao; - @Autowired - private PmsProductAttributeValueMapper productAttributeValueMapper; - @Autowired - private CmsSubjectProductRelationDao subjectProductRelationDao; - @Autowired - private CmsSubjectProductRelationMapper subjectProductRelationMapper; - @Autowired - private CmsPrefrenceAreaProductRelationDao prefrenceAreaProductRelationDao; - @Autowired - private CmsPrefrenceAreaProductRelationMapper prefrenceAreaProductRelationMapper; - @Autowired - private PmsProductDao productDao; - @Autowired - private PmsProductVertifyRecordDao productVertifyRecordDao; - - @Override - public int create(PmsProductParam productParam) { - int count; - //Ʒ - PmsProduct product = productParam; - product.setId(null); - productMapper.insertSelective(product); - //ݴü۸񣺡ݼ۸۸ - Long productId = product.getId(); - //Ա۸ - relateAndInsertList(memberPriceDao, productParam.getMemberPriceList(), productId); - //ݼ۸ - relateAndInsertList(productLadderDao, productParam.getProductLadderList(), productId); - //۸ - relateAndInsertList(productFullReductionDao, productParam.getProductFullReductionList(), productId); - //skuı - handleSkuStockCode(productParam.getSkuStockList(),productId); - //skuϢ - relateAndInsertList(skuStockDao, productParam.getSkuStockList(), productId); - //Ʒ,ԶƷ - relateAndInsertList(productAttributeValueDao, productParam.getProductAttributeValueList(), productId); - //ר - relateAndInsertList(subjectProductRelationDao, productParam.getSubjectProductRelationList(), productId); - //ѡ - relateAndInsertList(prefrenceAreaProductRelationDao, productParam.getPrefrenceAreaProductRelationList(), productId); - count = 1; - return count; - } - - private void handleSkuStockCode(List skuStockList, Long productId) { - if(CollectionUtils.isEmpty(skuStockList))return; - for(int i=0;i list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - PmsProductExample productExample = new PmsProductExample(); - PmsProductExample.Criteria criteria = productExample.createCriteria(); - criteria.andDeleteStatusEqualTo(0); - if (productQueryParam.getPublishStatus() != null) { - criteria.andPublishStatusEqualTo(productQueryParam.getPublishStatus()); - } - if (productQueryParam.getVerifyStatus() != null) { - criteria.andVerifyStatusEqualTo(productQueryParam.getVerifyStatus()); - } - if (!StringUtils.isEmpty(productQueryParam.getKeyword())) { - criteria.andNameLike("%" + productQueryParam.getKeyword() + "%"); - } - if (!StringUtils.isEmpty(productQueryParam.getProductSn())) { - criteria.andProductSnEqualTo(productQueryParam.getProductSn()); - } - if (productQueryParam.getBrandId() != null) { - criteria.andBrandIdEqualTo(productQueryParam.getBrandId()); - } - if (productQueryParam.getProductCategoryId() != null) { - criteria.andProductCategoryIdEqualTo(productQueryParam.getProductCategoryId()); - } - return productMapper.selectByExample(productExample); - } - - @Override - public int updateVerifyStatus(List ids, Integer verifyStatus, String detail) { - PmsProduct product = new PmsProduct(); - product.setVerifyStatus(verifyStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - List list = new ArrayList<>(); - int count = productMapper.updateByExampleSelective(product, example); - //޸״̬˼¼ - for (Long id : ids) { - PmsProductVertifyRecord record = new PmsProductVertifyRecord(); - record.setProductId(id); - record.setCreateTime(new Date()); - record.setDetail(detail); - record.setStatus(verifyStatus); - record.setVertifyMan("test"); - list.add(record); - } - productVertifyRecordDao.insertList(list); - return count; - } - - @Override - public int updatePublishStatus(List ids, Integer publishStatus) { - PmsProduct record = new PmsProduct(); - record.setPublishStatus(publishStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - - @Override - public int updateRecommendStatus(List ids, Integer recommendStatus) { - PmsProduct record = new PmsProduct(); - record.setRecommandStatus(recommendStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - - @Override - public int updateNewStatus(List ids, Integer newStatus) { - PmsProduct record = new PmsProduct(); - record.setNewStatus(newStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - - @Override - public int updateDeleteStatus(List ids, Integer deleteStatus) { - PmsProduct record = new PmsProduct(); - record.setDeleteStatus(deleteStatus); - PmsProductExample example = new PmsProductExample(); - example.createCriteria().andIdIn(ids); - return productMapper.updateByExampleSelective(record, example); - } - - @Override - public List list(String keyword) { - PmsProductExample productExample = new PmsProductExample(); - PmsProductExample.Criteria criteria = productExample.createCriteria(); - criteria.andDeleteStatusEqualTo(0); - if(!StringUtils.isEmpty(keyword)){ - criteria.andNameLike("%" + keyword + "%"); - productExample.or().andDeleteStatusEqualTo(0).andProductSnLike("%" + keyword + "%"); - } - return productMapper.selectByExample(productExample); - } - - /** - * @deprecated ɰ洴 - */ - public int createOld(PmsProductParam productParam) { - int count; - //Ʒ - PmsProduct product = productParam; - product.setId(null); - productMapper.insertSelective(product); - //ݴü۸񣺡ݼ۸۸ - Long productId = product.getId(); - //Ա۸ - List memberPriceList = productParam.getMemberPriceList(); - if (!CollectionUtils.isEmpty(memberPriceList)) { - for (PmsMemberPrice pmsMemberPrice : memberPriceList) { - pmsMemberPrice.setId(null); - pmsMemberPrice.setProductId(productId); - } - memberPriceDao.insertList(memberPriceList); - } - //ݼ۸ - List productLadderList = productParam.getProductLadderList(); - if (!CollectionUtils.isEmpty(productLadderList)) { - for (PmsProductLadder productLadder : productLadderList) { - productLadder.setId(null); - productLadder.setProductId(productId); - } - productLadderDao.insertList(productLadderList); - } - //۸ - List productFullReductionList = productParam.getProductFullReductionList(); - if (!CollectionUtils.isEmpty(productFullReductionList)) { - for (PmsProductFullReduction productFullReduction : productFullReductionList) { - productFullReduction.setId(null); - productFullReduction.setProductId(productId); - } - productFullReductionDao.insertList(productFullReductionList); - } - //skuϢ - List skuStockList = productParam.getSkuStockList(); - if (!CollectionUtils.isEmpty(skuStockList)) { - for (PmsSkuStock skuStock : skuStockList) { - skuStock.setId(null); - skuStock.setProductId(productId); - } - skuStockDao.insertList(skuStockList); - } - //Ʒ,ԶƷ - List productAttributeValueList = productParam.getProductAttributeValueList(); - if (!CollectionUtils.isEmpty(productAttributeValueList)) { - for (PmsProductAttributeValue productAttributeValue : productAttributeValueList) { - productAttributeValue.setId(null); - productAttributeValue.setProductId(productId); - } - productAttributeValueDao.insertList(productAttributeValueList); - } - //ר - relateAndInsertList(subjectProductRelationDao, productParam.getSubjectProductRelationList(), productId); - //ѡ - relateAndInsertList(prefrenceAreaProductRelationDao, productParam.getPrefrenceAreaProductRelationList(), productId); - count = 1; - return count; - } - - /** - * Ͳϵ - * - * @param dao Բdao - * @param dataList Ҫ - * @param productId ϵid - */ - private void relateAndInsertList(Object dao, List dataList, Long productId) { - try { - if (CollectionUtils.isEmpty(dataList)) return; - for (Object item : dataList) { - Method setId = item.getClass().getMethod("setId", Long.class); - setId.invoke(item, (Long) null); - Method setProductId = item.getClass().getMethod("setProductId", Long.class); - setProductId.invoke(item, productId); - } - Method insertList = dao.getClass().getMethod("insertList", List.class); - insertList.invoke(dao, dataList); - } catch (Exception e) { - LOGGER.warn("Ʒ:{}", e.getMessage()); - throw new RuntimeException(e.getMessage()); - } - } - -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsSkuStockServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsSkuStockServiceImpl.java deleted file mode 100644 index 0f0786b..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/PmsSkuStockServiceImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.macro.mall.service.impl; - -import com.macro.mall.dao.PmsSkuStockDao; -import com.macro.mall.mapper.PmsSkuStockMapper; -import com.macro.mall.model.PmsSkuStock; -import com.macro.mall.model.PmsSkuStockExample; -import com.macro.mall.service.PmsSkuStockService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ƷskuServiceʵ - */ -@Service -public class PmsSkuStockServiceImpl implements PmsSkuStockService { - @Autowired - private PmsSkuStockMapper skuStockMapper; - @Autowired - private PmsSkuStockDao skuStockDao; - - @Override - public List getList(Long pid, String keyword) { - PmsSkuStockExample example = new PmsSkuStockExample(); - PmsSkuStockExample.Criteria criteria = example.createCriteria().andProductIdEqualTo(pid); - if (!StringUtils.isEmpty(keyword)) { - criteria.andSkuCodeLike("%" + keyword + "%"); - } - return skuStockMapper.selectByExample(example); - } - - @Override - public int update(Long pid, List skuStockList) { - return skuStockDao.replaceList(skuStockList); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponHistoryServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponHistoryServiceImpl.java deleted file mode 100644 index b360279..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponHistoryServiceImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsCouponHistoryMapper; -import com.macro.mall.model.SmsCouponHistory; -import com.macro.mall.model.SmsCouponHistoryExample; -import com.macro.mall.service.SmsCouponHistoryService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * Żȯȡ¼Serviceʵ - */ -@Service -public class SmsCouponHistoryServiceImpl implements SmsCouponHistoryService { - @Autowired - private SmsCouponHistoryMapper historyMapper; - @Override - public List list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - SmsCouponHistoryExample example = new SmsCouponHistoryExample(); - SmsCouponHistoryExample.Criteria criteria = example.createCriteria(); - if(couponId!=null){ - criteria.andCouponIdEqualTo(couponId); - } - if(useStatus!=null){ - criteria.andUseStatusEqualTo(useStatus); - } - if(!StringUtils.isEmpty(orderSn)){ - criteria.andOrderSnEqualTo(orderSn); - } - return historyMapper.selectByExample(example); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponServiceImpl.java deleted file mode 100644 index 1abd3ac..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsCouponServiceImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.SmsCouponDao; -import com.macro.mall.dao.SmsCouponProductCategoryRelationDao; -import com.macro.mall.dao.SmsCouponProductRelationDao; -import com.macro.mall.dto.SmsCouponParam; -import com.macro.mall.mapper.SmsCouponMapper; -import com.macro.mall.mapper.SmsCouponProductCategoryRelationMapper; -import com.macro.mall.mapper.SmsCouponProductRelationMapper; -import com.macro.mall.model.*; -import com.macro.mall.service.SmsCouponService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ŻȯServiceʵ - */ -@Service -public class SmsCouponServiceImpl implements SmsCouponService { - @Autowired - private SmsCouponMapper couponMapper; - @Autowired - private SmsCouponProductRelationMapper productRelationMapper; - @Autowired - private SmsCouponProductCategoryRelationMapper productCategoryRelationMapper; - @Autowired - private SmsCouponProductRelationDao productRelationDao; - @Autowired - private SmsCouponProductCategoryRelationDao productCategoryRelationDao; - @Autowired - private SmsCouponDao couponDao; - @Override - public int create(SmsCouponParam couponParam) { - couponParam.setCount(couponParam.getPublishCount()); - couponParam.setUseCount(0); - couponParam.setReceiveCount(0); - //Żȯ - int count = couponMapper.insert(couponParam); - //ŻȯƷϵ - if(couponParam.getUseType().equals(2)){ - for(SmsCouponProductRelation productRelation:couponParam.getProductRelationList()){ - productRelation.setCouponId(couponParam.getId()); - } - productRelationDao.insertList(couponParam.getProductRelationList()); - } - //ŻȯƷϵ - if(couponParam.getUseType().equals(1)){ - for (SmsCouponProductCategoryRelation couponProductCategoryRelation : couponParam.getProductCategoryRelationList()) { - couponProductCategoryRelation.setCouponId(couponParam.getId()); - } - productCategoryRelationDao.insertList(couponParam.getProductCategoryRelationList()); - } - return count; - } - - @Override - public int delete(Long id) { - //ɾŻȯ - int count = couponMapper.deleteByPrimaryKey(id); - //ɾƷ - deleteProductRelation(id); - //ɾƷ - deleteProductCategoryRelation(id); - return count; - } - - private void deleteProductCategoryRelation(Long id) { - SmsCouponProductCategoryRelationExample productCategoryRelationExample = new SmsCouponProductCategoryRelationExample(); - productCategoryRelationExample.createCriteria().andCouponIdEqualTo(id); - productCategoryRelationMapper.deleteByExample(productCategoryRelationExample); - } - - private void deleteProductRelation(Long id) { - SmsCouponProductRelationExample productRelationExample = new SmsCouponProductRelationExample(); - productRelationExample.createCriteria().andCouponIdEqualTo(id); - productRelationMapper.deleteByExample(productRelationExample); - } - - @Override - public int update(Long id, SmsCouponParam couponParam) { - couponParam.setId(id); - int count =couponMapper.updateByPrimaryKey(couponParam); - //ɾŻȯƷϵ - if(couponParam.getUseType().equals(2)){ - for(SmsCouponProductRelation productRelation:couponParam.getProductRelationList()){ - productRelation.setCouponId(couponParam.getId()); - } - deleteProductRelation(id); - productRelationDao.insertList(couponParam.getProductRelationList()); - } - //ɾŻȯƷϵ - if(couponParam.getUseType().equals(1)){ - for (SmsCouponProductCategoryRelation couponProductCategoryRelation : couponParam.getProductCategoryRelationList()) { - couponProductCategoryRelation.setCouponId(couponParam.getId()); - } - deleteProductCategoryRelation(id); - productCategoryRelationDao.insertList(couponParam.getProductCategoryRelationList()); - } - return count; - } - - @Override - public List list(String name, Integer type, Integer pageSize, Integer pageNum) { - SmsCouponExample example = new SmsCouponExample(); - SmsCouponExample.Criteria criteria = example.createCriteria(); - if(!StringUtils.isEmpty(name)){ - criteria.andNameLike("%"+name+"%"); - } - if(type!=null){ - criteria.andTypeEqualTo(type); - } - PageHelper.startPage(pageNum,pageSize); - return couponMapper.selectByExample(example); - } - - @Override - public SmsCouponParam getItem(Long id) { - return couponDao.getItem(id); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java deleted file mode 100644 index 3ff5e50..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.SmsFlashPromotionProductRelationDao; -import com.macro.mall.dto.SmsFlashPromotionProduct; -import com.macro.mall.mapper.SmsFlashPromotionProductRelationMapper; -import com.macro.mall.model.SmsFlashPromotionProductRelation; -import com.macro.mall.model.SmsFlashPromotionProductRelationExample; -import com.macro.mall.service.SmsFlashPromotionProductRelationService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * ʱƷServiceʵ - */ -@Service -public class SmsFlashPromotionProductRelationServiceImpl implements SmsFlashPromotionProductRelationService { - @Autowired - private SmsFlashPromotionProductRelationMapper relationMapper; - @Autowired - private SmsFlashPromotionProductRelationDao relationDao; - @Override - public int create(List relationList) { - for (SmsFlashPromotionProductRelation relation : relationList) { - relationMapper.insert(relation); - } - return relationList.size(); - } - - @Override - public int update(Long id, SmsFlashPromotionProductRelation relation) { - relation.setId(id); - return relationMapper.updateByPrimaryKey(relation); - } - - @Override - public int delete(Long id) { - return relationMapper.deleteByPrimaryKey(id); - } - - @Override - public SmsFlashPromotionProductRelation getItem(Long id) { - return relationMapper.selectByPrimaryKey(id); - } - - @Override - public List list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - return relationDao.getList(flashPromotionId,flashPromotionSessionId); - } - - @Override - public int getCount(Long flashPromotionId, Long flashPromotionSessionId) { - SmsFlashPromotionProductRelationExample example = new SmsFlashPromotionProductRelationExample(); - example.createCriteria() - .andFlashPromotionIdEqualTo(flashPromotionId) - .andFlashPromotionSessionIdEqualTo(flashPromotionSessionId); - return relationMapper.countByExample(example); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionServiceImpl.java deleted file mode 100644 index 6519fd3..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionServiceImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsFlashPromotionMapper; -import com.macro.mall.model.SmsFlashPromotion; -import com.macro.mall.model.SmsFlashPromotionExample; -import com.macro.mall.service.SmsFlashPromotionService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.Date; -import java.util.List; - -/** - * ʱServiceʵ - */ -@Service -public class SmsFlashPromotionServiceImpl implements SmsFlashPromotionService { - @Autowired - private SmsFlashPromotionMapper flashPromotionMapper; - - @Override - public int create(SmsFlashPromotion flashPromotion) { - flashPromotion.setCreateTime(new Date()); - return flashPromotionMapper.insert(flashPromotion); - } - - @Override - public int update(Long id, SmsFlashPromotion flashPromotion) { - flashPromotion.setId(id); - return flashPromotionMapper.updateByPrimaryKey(flashPromotion); - } - - @Override - public int delete(Long id) { - return flashPromotionMapper.deleteByPrimaryKey(id); - } - - @Override - public int updateStatus(Long id, Integer status) { - SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); - flashPromotion.setId(id); - flashPromotion.setStatus(status); - return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); - } - - @Override - public SmsFlashPromotion getItem(Long id) { - return flashPromotionMapper.selectByPrimaryKey(id); - } - - @Override - public List list(String keyword, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - SmsFlashPromotionExample example = new SmsFlashPromotionExample(); - if (!StringUtils.isEmpty(keyword)) { - example.createCriteria().andTitleLike("%" + keyword + "%"); - } - return flashPromotionMapper.selectByExample(example); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java deleted file mode 100644 index 2d682ef..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.macro.mall.service.impl; - -import com.macro.mall.dto.SmsFlashPromotionSessionDetail; -import com.macro.mall.mapper.SmsFlashPromotionSessionMapper; -import com.macro.mall.model.SmsFlashPromotionSession; -import com.macro.mall.model.SmsFlashPromotionSessionExample; -import com.macro.mall.service.SmsFlashPromotionProductRelationService; -import com.macro.mall.service.SmsFlashPromotionSessionService; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * ʱιServiceʵ - */ -@Service -public class SmsFlashPromotionSessionServiceImpl implements SmsFlashPromotionSessionService { - @Autowired - private SmsFlashPromotionSessionMapper promotionSessionMapper; - @Autowired - private SmsFlashPromotionProductRelationService relationService; - - @Override - public int create(SmsFlashPromotionSession promotionSession) { - promotionSession.setCreateTime(new Date()); - return promotionSessionMapper.insert(promotionSession); - } - - @Override - public int update(Long id, SmsFlashPromotionSession promotionSession) { - promotionSession.setId(id); - return promotionSessionMapper.updateByPrimaryKey(promotionSession); - } - - @Override - public int updateStatus(Long id, Integer status) { - SmsFlashPromotionSession promotionSession = new SmsFlashPromotionSession(); - promotionSession.setId(id); - promotionSession.setStatus(status); - return promotionSessionMapper.updateByPrimaryKeySelective(promotionSession); - } - - @Override - public int delete(Long id) { - return promotionSessionMapper.deleteByPrimaryKey(id); - } - - @Override - public SmsFlashPromotionSession getItem(Long id) { - return promotionSessionMapper.selectByPrimaryKey(id); - } - - @Override - public List list() { - SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); - return promotionSessionMapper.selectByExample(example); - } - - @Override - public List selectList(Long flashPromotionId) { - List result = new ArrayList<>(); - SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); - example.createCriteria().andStatusEqualTo(1); - List list = promotionSessionMapper.selectByExample(example); - for (SmsFlashPromotionSession promotionSession : list) { - SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail(); - BeanUtils.copyProperties(promotionSession, detail); - int count = relationService.getCount(flashPromotionId, promotionSession.getId()); - detail.setProductCount(count); - result.add(detail); - } - return result; - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeAdvertiseServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeAdvertiseServiceImpl.java deleted file mode 100644 index f1d7224..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeAdvertiseServiceImpl.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsHomeAdvertiseMapper; -import com.macro.mall.model.SmsHomeAdvertise; -import com.macro.mall.model.SmsHomeAdvertiseExample; -import com.macro.mall.service.SmsHomeAdvertiseService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.List; - -/** - * ҳServiceʵ - */ -@Service -public class SmsHomeAdvertiseServiceImpl implements SmsHomeAdvertiseService { - @Autowired - private SmsHomeAdvertiseMapper advertiseMapper; - - @Override - public int create(SmsHomeAdvertise advertise) { - advertise.setClickCount(0); - advertise.setOrderCount(0); - return advertiseMapper.insert(advertise); - } - - @Override - public int delete(List ids) { - SmsHomeAdvertiseExample example = new SmsHomeAdvertiseExample(); - example.createCriteria().andIdIn(ids); - return advertiseMapper.deleteByExample(example); - } - - @Override - public int updateStatus(Long id, Integer status) { - SmsHomeAdvertise record = new SmsHomeAdvertise(); - record.setId(id); - record.setStatus(status); - return advertiseMapper.updateByPrimaryKeySelective(record); - } - - @Override - public SmsHomeAdvertise getItem(Long id) { - return advertiseMapper.selectByPrimaryKey(id); - } - - @Override - public int update(Long id, SmsHomeAdvertise advertise) { - advertise.setId(id); - return advertiseMapper.updateByPrimaryKeySelective(advertise); - } - - @Override - public List list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - SmsHomeAdvertiseExample example = new SmsHomeAdvertiseExample(); - SmsHomeAdvertiseExample.Criteria criteria = example.createCriteria(); - if (!StringUtils.isEmpty(name)) { - criteria.andNameLike("%" + name + "%"); - } - if (type != null) { - criteria.andTypeEqualTo(type); - } - if (!StringUtils.isEmpty(endTime)) { - String startStr = endTime + " 00:00:00"; - String endStr = endTime + " 23:59:59"; - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - Date start = null; - try { - start = sdf.parse(startStr); - } catch (ParseException e) { - e.printStackTrace(); - } - Date end = null; - try { - end = sdf.parse(endStr); - } catch (ParseException e) { - e.printStackTrace(); - } - if (start != null && end != null) { - criteria.andEndTimeBetween(start, end); - } - } - example.setOrderByClause("sort desc"); - return advertiseMapper.selectByExample(example); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeBrandServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeBrandServiceImpl.java deleted file mode 100644 index 0a8092d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeBrandServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsHomeBrandMapper; -import com.macro.mall.model.SmsHomeBrand; -import com.macro.mall.model.SmsHomeBrandExample; -import com.macro.mall.service.SmsHomeBrandService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ҳƷƹServiceʵ - */ -@Service -public class SmsHomeBrandServiceImpl implements SmsHomeBrandService { - @Autowired - private SmsHomeBrandMapper homeBrandMapper; - @Override - public int create(List homeBrandList) { - for (SmsHomeBrand smsHomeBrand : homeBrandList) { - smsHomeBrand.setRecommendStatus(1); - smsHomeBrand.setSort(0); - homeBrandMapper.insert(smsHomeBrand); - } - return homeBrandList.size(); - } - - @Override - public int updateSort(Long id, Integer sort) { - SmsHomeBrand homeBrand = new SmsHomeBrand(); - homeBrand.setId(id); - homeBrand.setSort(sort); - return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); - } - - @Override - public int delete(List ids) { - SmsHomeBrandExample example = new SmsHomeBrandExample(); - example.createCriteria().andIdIn(ids); - return homeBrandMapper.deleteByExample(example); - } - - @Override - public int updateRecommendStatus(List ids, Integer recommendStatus) { - SmsHomeBrandExample example = new SmsHomeBrandExample(); - example.createCriteria().andIdIn(ids); - SmsHomeBrand record = new SmsHomeBrand(); - record.setRecommendStatus(recommendStatus); - return homeBrandMapper.updateByExampleSelective(record,example); - } - - @Override - public List list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - SmsHomeBrandExample example = new SmsHomeBrandExample(); - SmsHomeBrandExample.Criteria criteria = example.createCriteria(); - if(!StringUtils.isEmpty(brandName)){ - criteria.andBrandNameLike("%"+brandName+"%"); - } - if(recommendStatus!=null){ - criteria.andRecommendStatusEqualTo(recommendStatus); - } - example.setOrderByClause("sort desc"); - return homeBrandMapper.selectByExample(example); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeNewProductServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeNewProductServiceImpl.java deleted file mode 100644 index ded4fb8..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeNewProductServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsHomeNewProductMapper; -import com.macro.mall.model.SmsHomeNewProduct; -import com.macro.mall.model.SmsHomeNewProductExample; -import com.macro.mall.service.SmsHomeNewProductService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ҳƷƼServiceʵ - */ -@Service -public class SmsHomeNewProductServiceImpl implements SmsHomeNewProductService { - @Autowired - private SmsHomeNewProductMapper homeNewProductMapper; - @Override - public int create(List homeNewProductList) { - for (SmsHomeNewProduct SmsHomeNewProduct : homeNewProductList) { - SmsHomeNewProduct.setRecommendStatus(1); - SmsHomeNewProduct.setSort(0); - homeNewProductMapper.insert(SmsHomeNewProduct); - } - return homeNewProductList.size(); - } - - @Override - public int updateSort(Long id, Integer sort) { - SmsHomeNewProduct homeNewProduct = new SmsHomeNewProduct(); - homeNewProduct.setId(id); - homeNewProduct.setSort(sort); - return homeNewProductMapper.updateByPrimaryKeySelective(homeNewProduct); - } - - @Override - public int delete(List ids) { - SmsHomeNewProductExample example = new SmsHomeNewProductExample(); - example.createCriteria().andIdIn(ids); - return homeNewProductMapper.deleteByExample(example); - } - - @Override - public int updateRecommendStatus(List ids, Integer recommendStatus) { - SmsHomeNewProductExample example = new SmsHomeNewProductExample(); - example.createCriteria().andIdIn(ids); - SmsHomeNewProduct record = new SmsHomeNewProduct(); - record.setRecommendStatus(recommendStatus); - return homeNewProductMapper.updateByExampleSelective(record,example); - } - - @Override - public List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - SmsHomeNewProductExample example = new SmsHomeNewProductExample(); - SmsHomeNewProductExample.Criteria criteria = example.createCriteria(); - if(!StringUtils.isEmpty(productName)){ - criteria.andProductNameLike("%"+productName+"%"); - } - if(recommendStatus!=null){ - criteria.andRecommendStatusEqualTo(recommendStatus); - } - example.setOrderByClause("sort desc"); - return homeNewProductMapper.selectByExample(example); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendProductServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendProductServiceImpl.java deleted file mode 100644 index 2caa5c3..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendProductServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsHomeRecommendProductMapper; -import com.macro.mall.model.SmsHomeRecommendProduct; -import com.macro.mall.model.SmsHomeRecommendProductExample; -import com.macro.mall.service.SmsHomeRecommendProductService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ҳƼServiceʵ - */ -@Service -public class SmsHomeRecommendProductServiceImpl implements SmsHomeRecommendProductService { - @Autowired - private SmsHomeRecommendProductMapper recommendProductMapper; - @Override - public int create(List homeRecommendProductList) { - for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { - recommendProduct.setRecommendStatus(1); - recommendProduct.setSort(0); - recommendProductMapper.insert(recommendProduct); - } - return homeRecommendProductList.size(); - } - - @Override - public int updateSort(Long id, Integer sort) { - SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); - recommendProduct.setId(id); - recommendProduct.setSort(sort); - return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); - } - - @Override - public int delete(List ids) { - SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); - example.createCriteria().andIdIn(ids); - return recommendProductMapper.deleteByExample(example); - } - - @Override - public int updateRecommendStatus(List ids, Integer recommendStatus) { - SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); - example.createCriteria().andIdIn(ids); - SmsHomeRecommendProduct record = new SmsHomeRecommendProduct(); - record.setRecommendStatus(recommendStatus); - return recommendProductMapper.updateByExampleSelective(record,example); - } - - @Override - public List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); - SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria(); - if(!StringUtils.isEmpty(productName)){ - criteria.andProductNameLike("%"+productName+"%"); - } - if(recommendStatus!=null){ - criteria.andRecommendStatusEqualTo(recommendStatus); - } - example.setOrderByClause("sort desc"); - return recommendProductMapper.selectByExample(example); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java deleted file mode 100644 index 505743c..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.mapper.SmsHomeRecommendSubjectMapper; -import com.macro.mall.model.SmsHomeRecommendSubject; -import com.macro.mall.model.SmsHomeRecommendSubjectExample; -import com.macro.mall.service.SmsHomeRecommendSubjectService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.util.List; - -/** - * ҳרƼServiceʵ - */ -@Service -public class SmsHomeRecommendSubjectServiceImpl implements SmsHomeRecommendSubjectService { - @Autowired - private SmsHomeRecommendSubjectMapper recommendProductMapper; - @Override - public int create(List recommendSubjectList) { - for (SmsHomeRecommendSubject recommendProduct : recommendSubjectList) { - recommendProduct.setRecommendStatus(1); - recommendProduct.setSort(0); - recommendProductMapper.insert(recommendProduct); - } - return recommendSubjectList.size(); - } - - @Override - public int updateSort(Long id, Integer sort) { - SmsHomeRecommendSubject recommendProduct = new SmsHomeRecommendSubject(); - recommendProduct.setId(id); - recommendProduct.setSort(sort); - return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); - } - - @Override - public int delete(List ids) { - SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); - example.createCriteria().andIdIn(ids); - return recommendProductMapper.deleteByExample(example); - } - - @Override - public int updateRecommendStatus(List ids, Integer recommendStatus) { - SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); - example.createCriteria().andIdIn(ids); - SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); - record.setRecommendStatus(recommendStatus); - return recommendProductMapper.updateByExampleSelective(record,example); - } - - @Override - public List list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum,pageSize); - SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); - SmsHomeRecommendSubjectExample.Criteria criteria = example.createCriteria(); - if(!StringUtils.isEmpty(subjectName)){ - criteria.andSubjectNameLike("%"+subjectName+"%"); - } - if(recommendStatus!=null){ - criteria.andRecommendStatusEqualTo(recommendStatus); - } - example.setOrderByClause("sort desc"); - return recommendProductMapper.selectByExample(example); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsAdminServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsAdminServiceImpl.java deleted file mode 100644 index 0241d41..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsAdminServiceImpl.java +++ /dev/null @@ -1,247 +0,0 @@ -package com.macro.mall.service.impl; - -import com.github.pagehelper.PageHelper; -import com.macro.mall.dao.UmsAdminPermissionRelationDao; -import com.macro.mall.dao.UmsAdminRoleRelationDao; -import com.macro.mall.dto.UmsAdminParam; -import com.macro.mall.mapper.UmsAdminLoginLogMapper; -import com.macro.mall.mapper.UmsAdminMapper; -import com.macro.mall.mapper.UmsAdminPermissionRelationMapper; -import com.macro.mall.mapper.UmsAdminRoleRelationMapper; -import com.macro.mall.model.*; -import com.macro.mall.service.UmsAdminService; -import com.macro.mall.util.JwtTokenUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.security.authentication.AuthenticationManager; -import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.authentication.encoding.PasswordEncoder; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.AuthenticationException; -import org.springframework.security.core.context.SecurityContextHolder; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.stereotype.Service; -import org.springframework.util.CollectionUtils; -import org.springframework.util.StringUtils; -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; - -import javax.servlet.http.HttpServletRequest; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.stream.Collectors; - -/** - * UmsAdminServiceʵ - */ -@Service -public class UmsAdminServiceImpl implements UmsAdminService { - private static final Logger LOGGER = LoggerFactory.getLogger(UmsAdminServiceImpl.class); - @Autowired - private AuthenticationManager authenticationManager; - @Autowired - private UserDetailsService userDetailsService; - @Autowired - private JwtTokenUtil jwtTokenUtil; - @Autowired - private PasswordEncoder passwordEncoder; - @Value("${jwt.tokenHead}") - private String tokenHead; - @Autowired - private UmsAdminMapper adminMapper; - @Autowired - private UmsAdminRoleRelationMapper adminRoleRelationMapper; - @Autowired - private UmsAdminRoleRelationDao adminRoleRelationDao; - @Autowired - private UmsAdminPermissionRelationMapper adminPermissionRelationMapper; - @Autowired - private UmsAdminPermissionRelationDao adminPermissionRelationDao; - @Autowired - private UmsAdminLoginLogMapper loginLogMapper; - - @Override - public UmsAdmin getAdminByUsername(String username) { - UmsAdminExample example = new UmsAdminExample(); - example.createCriteria().andUsernameEqualTo(username); - List adminList = adminMapper.selectByExample(example); - if (adminList != null && adminList.size() > 0) { - return adminList.get(0); - } - return null; - } - - @Override - public UmsAdmin register(UmsAdminParam umsAdminParam) { - UmsAdmin umsAdmin = new UmsAdmin(); - BeanUtils.copyProperties(umsAdminParam, umsAdmin); - umsAdmin.setCreateTime(new Date()); - umsAdmin.setStatus(1); - //ѯǷͬûû - UmsAdminExample example = new UmsAdminExample(); - example.createCriteria().andUsernameEqualTo(umsAdmin.getUsername()); - List umsAdminList = adminMapper.selectByExample(example); - if (umsAdminList.size() > 0) { - return null; - } - //мܲ - String md5Password = passwordEncoder.encodePassword(umsAdmin.getPassword(), null); - umsAdmin.setPassword(md5Password); - adminMapper.insert(umsAdmin); - return umsAdmin; - } - - @Override - public String login(String username, String password) { - String token = null; - //Ҫͻ˼ܺ󴫵 - UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, passwordEncoder.encodePassword(password, null)); - try { - Authentication authentication = authenticationManager.authenticate(authenticationToken); - SecurityContextHolder.getContext().setAuthentication(authentication); - UserDetails userDetails = userDetailsService.loadUserByUsername(username); - token = jwtTokenUtil.generateToken(userDetails); - updateLoginTimeByUsername(username); - insertLoginLog(username); - } catch (AuthenticationException e) { - LOGGER.warn("¼쳣:{}", e.getMessage()); - } - return token; - } - - /** - * ӵ¼¼ - * @param username û - */ - private void insertLoginLog(String username) { - UmsAdmin admin = getAdminByUsername(username); - UmsAdminLoginLog loginLog = new UmsAdminLoginLog(); - loginLog.setAdminId(admin.getId()); - loginLog.setCreateTime(new Date()); - ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); - HttpServletRequest request = attributes.getRequest(); - loginLog.setIp(request.getRemoteAddr()); - loginLogMapper.insert(loginLog); - } - - /** - * û޸ĵ¼ʱ - */ - private void updateLoginTimeByUsername(String username) { - UmsAdmin record = new UmsAdmin(); - record.setLoginTime(new Date()); - UmsAdminExample example = new UmsAdminExample(); - example.createCriteria().andUsernameEqualTo(username); - adminMapper.updateByExampleSelective(record, example); - } - - @Override - public String refreshToken(String oldToken) { - String token = oldToken.substring(tokenHead.length()); - if (jwtTokenUtil.canRefresh(token)) { - return jwtTokenUtil.refreshToken(token); - } - return null; - } - - @Override - public UmsAdmin getItem(Long id) { - return adminMapper.selectByPrimaryKey(id); - } - - @Override - public List list(String name, Integer pageSize, Integer pageNum) { - PageHelper.startPage(pageNum, pageSize); - UmsAdminExample example = new UmsAdminExample(); - UmsAdminExample.Criteria criteria = example.createCriteria(); - if (!StringUtils.isEmpty(name)) { - criteria.andUsernameLike("%" + name + "%"); - example.or(example.createCriteria().andNickNameLike("%" + name + "%")); - } - return adminMapper.selectByExample(example); - } - - @Override - public int update(Long id, UmsAdmin admin) { - admin.setId(id); - return adminMapper.updateByPrimaryKey(admin); - } - - @Override - public int delete(Long id) { - return adminMapper.deleteByPrimaryKey(id); - } - - @Override - public int updateRole(Long adminId, List roleIds) { - int count = roleIds == null ? 0 : roleIds.size(); - //ɾԭĹϵ - UmsAdminRoleRelationExample adminRoleRelationExample = new UmsAdminRoleRelationExample(); - adminRoleRelationExample.createCriteria().andAdminIdEqualTo(adminId); - adminRoleRelationMapper.deleteByExample(adminRoleRelationExample); - //¹ϵ - if (!CollectionUtils.isEmpty(roleIds)) { - List list = new ArrayList<>(); - for (Long roleId : roleIds) { - UmsAdminRoleRelation roleRelation = new UmsAdminRoleRelation(); - roleRelation.setAdminId(adminId); - roleRelation.setRoleId(roleId); - list.add(roleRelation); - } - adminRoleRelationDao.insertList(list); - } - return count; - } - - @Override - public List getRoleList(Long adminId) { - return adminRoleRelationDao.getRoleList(adminId); - } - - @Override - public int updatePermission(Long adminId, List permissionIds) { - //ɾԭȨ޹ϵ - UmsAdminPermissionRelationExample relationExample = new UmsAdminPermissionRelationExample(); - relationExample.createCriteria().andAdminIdEqualTo(adminId); - adminPermissionRelationMapper.deleteByExample(relationExample); - //ȡûнɫȨ - List permissionList = adminRoleRelationDao.getRolePermissionList(adminId); - List rolePermissionList = permissionList.stream().map(UmsPermission::getId).collect(Collectors.toList()); - if (!CollectionUtils.isEmpty(permissionIds)) { - List relationList = new ArrayList<>(); - //ɸѡ+Ȩ - List addPermissionIdList = permissionIds.stream().filter(permissionId -> !rolePermissionList.contains(permissionId)).collect(Collectors.toList()); - //ɸѡ-Ȩ - List subPermissionIdList = rolePermissionList.stream().filter(permissionId -> !permissionIds.contains(permissionId)).collect(Collectors.toList()); - //+-Ȩ޹ϵ - relationList.addAll(convert(adminId,1,addPermissionIdList)); - relationList.addAll(convert(adminId,-1,subPermissionIdList)); - return adminPermissionRelationDao.insertList(relationList); - } - return 0; - } - - /** - * +-Ȩ޹ϵתΪ - */ - private List convert(Long adminId,Integer type,List permissionIdList) { - List relationList = permissionIdList.stream().map(permissionId -> { - UmsAdminPermissionRelation relation = new UmsAdminPermissionRelation(); - relation.setAdminId(adminId); - relation.setType(type); - relation.setPermissionId(permissionId); - return relation; - }).collect(Collectors.toList()); - return relationList; - } - - @Override - public List getPermissionList(Long adminId) { - return adminRoleRelationDao.getPermissionList(adminId); - } -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsMemberLevelServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsMemberLevelServiceImpl.java deleted file mode 100644 index 4c4c737..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsMemberLevelServiceImpl.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.macro.mall.service.impl; - -import com.macro.mall.mapper.UmsMemberLevelMapper; -import com.macro.mall.model.UmsMemberLevel; -import com.macro.mall.model.UmsMemberLevelExample; -import com.macro.mall.service.UmsMemberLevelService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * ԱȼServiceʵ - */ -@Service -public class UmsMemberLevelServiceImpl implements UmsMemberLevelService{ - @Autowired - private UmsMemberLevelMapper memberLevelMapper; - @Override - public List list(Integer defaultStatus) { - UmsMemberLevelExample example = new UmsMemberLevelExample(); - example.createCriteria().andDefaultStatusEqualTo(defaultStatus); - return memberLevelMapper.selectByExample(example); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsPermissionServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsPermissionServiceImpl.java deleted file mode 100644 index a31801c..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsPermissionServiceImpl.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.macro.mall.service.impl; - -import com.macro.mall.dto.UmsPermissionNode; -import com.macro.mall.mapper.UmsPermissionMapper; -import com.macro.mall.model.UmsPermission; -import com.macro.mall.model.UmsPermissionExample; -import com.macro.mall.service.UmsPermissionService; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; -import java.util.stream.Collectors; - -/** - * ̨ûȨ޹Serviceʵ - */ -@Service -public class UmsPermissionServiceImpl implements UmsPermissionService { - @Autowired - private UmsPermissionMapper permissionMapper; - - @Override - public int create(UmsPermission permission) { - permission.setStatus(1); - permission.setCreateTime(new Date()); - permission.setSort(0); - return permissionMapper.insert(permission); - } - - @Override - public int update(Long id, UmsPermission permission) { - permission.setId(id); - return permissionMapper.updateByPrimaryKey(permission); - } - - @Override - public int delete(List ids) { - UmsPermissionExample example = new UmsPermissionExample(); - example.createCriteria().andIdIn(ids); - return permissionMapper.deleteByExample(example); - } - - @Override - public List treeList() { - List permissionList = permissionMapper.selectByExample(new UmsPermissionExample()); - List result = permissionList.stream() - .filter(permission -> permission.getPid().equals(0L)) - .map(permission -> covert(permission,permissionList)).collect(Collectors.toList()); - return result; - } - - @Override - public List list() { - return permissionMapper.selectByExample(new UmsPermissionExample()); - } - - /** - * ȨתΪӼȨ޶ - * ҲӼȨ޵ʱmapٵݹcovert - */ - private UmsPermissionNode covert(UmsPermission permission,List permissionList){ - UmsPermissionNode node = new UmsPermissionNode(); - BeanUtils.copyProperties(permission,node); - List children = permissionList.stream() - .filter(subPermission -> subPermission.getPid().equals(permission.getId())) - .map(subPermission -> covert(subPermission,permissionList)).collect(Collectors.toList()); - node.setChildren(children); - return node; - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsRoleServiceImpl.java b/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsRoleServiceImpl.java deleted file mode 100644 index 5c4d910..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/service/impl/UmsRoleServiceImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.macro.mall.service.impl; - -import com.macro.mall.dao.UmsRolePermissionRelationDao; -import com.macro.mall.mapper.UmsRoleMapper; -import com.macro.mall.mapper.UmsRolePermissionRelationMapper; -import com.macro.mall.model.*; -import com.macro.mall.service.UmsRoleService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * ̨ɫServiceʵ - */ -@Service -public class UmsRoleServiceImpl implements UmsRoleService { - @Autowired - private UmsRoleMapper roleMapper; - @Autowired - private UmsRolePermissionRelationMapper rolePermissionRelationMapper; - @Autowired - private UmsRolePermissionRelationDao rolePermissionRelationDao; - @Override - public int create(UmsRole role) { - role.setCreateTime(new Date()); - role.setStatus(1); - role.setAdminCount(0); - role.setSort(0); - return roleMapper.insert(role); - } - - @Override - public int update(Long id, UmsRole role) { - role.setId(id); - return roleMapper.updateByPrimaryKey(role); - } - - @Override - public int delete(List ids) { - UmsRoleExample example = new UmsRoleExample(); - example.createCriteria().andIdIn(ids); - return roleMapper.deleteByExample(example); - } - - @Override - public List getPermissionList(Long roleId) { - return rolePermissionRelationDao.getPermissionList(roleId); - } - - @Override - public int updatePermission(Long roleId, List permissionIds) { - //ɾԭйϵ - UmsRolePermissionRelationExample example=new UmsRolePermissionRelationExample(); - example.createCriteria().andRoleIdEqualTo(roleId); - rolePermissionRelationMapper.deleteByExample(example); - //¹ϵ - List relationList = new ArrayList<>(); - for (Long permissionId : permissionIds) { - UmsRolePermissionRelation relation = new UmsRolePermissionRelation(); - relation.setRoleId(roleId); - relation.setPermissionId(permissionId); - relationList.add(relation); - } - return rolePermissionRelationDao.insertList(relationList); - } - - @Override - public List list() { - return roleMapper.selectByExample(new UmsRoleExample()); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/util/JsonUtil.java b/代码库/mall-admin/src/main/java/com/sock/mall/util/JsonUtil.java deleted file mode 100644 index 20fa06d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/util/JsonUtil.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.macro.mall.util; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JavaType; -import com.fasterxml.jackson.databind.ObjectMapper; - -import java.util.List; - -/** - * Jackson jsonлͷл - */ -public class JsonUtil { - - // jackson - private static final ObjectMapper MAPPER = new ObjectMapper(); - - /** - * תjsonַ - */ - public static String objectToJson(Object data) { - try { - String string = MAPPER.writeValueAsString(data); - return string; - } catch (JsonProcessingException e) { - e.printStackTrace(); - } - return null; - } - - /** - * jsonתΪ - * - * @param jsonData json - * @param beanType еobject - */ - public static T jsonToPojo(String jsonData, Class beanType) { - try { - T t = MAPPER.readValue(jsonData, beanType); - return t; - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - /** - * jsonתpojolist - */ - public static List jsonToList(String jsonData, Class beanType) { - JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType); - try { - List list = MAPPER.readValue(jsonData, javaType); - return list; - } catch (Exception e) { - e.printStackTrace(); - } - - return null; - } - -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/util/JwtTokenUtil.java b/代码库/mall-admin/src/main/java/com/sock/mall/util/JwtTokenUtil.java deleted file mode 100644 index 029b6cf..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/util/JwtTokenUtil.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.macro.mall.util; - -import io.jsonwebtoken.*; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.stereotype.Component; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - * JwtTokenɵĹ - * JWT tokenĸʽheader.payload.signature - * headerĸʽ㷨tokenͣ - * {"alg": "HS512","typ": "JWT"} - * payloadĸʽûʱ䡢ʱ䣩 - * {"sub":"wang","created":1489079981393,"exp":1489684781} - * signature㷨 - * HMACSHA256(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret) - */ -@Component -public class JwtTokenUtil { - private static final Logger LOGGER = LoggerFactory.getLogger(JwtTokenUtil.class); - private static final String CLAIM_KEY_USERNAME = "sub"; - private static final String CLAIM_KEY_CREATED = "created"; - @Value("${jwt.secret}") - private String secret; - @Value("${jwt.expiration}") - private Long expiration; - - /** - * ݸJWTtoken - */ - private String generateToken(Map claims) { - return Jwts.builder() - .setClaims(claims) - .setExpiration(generateExpirationDate()) - .signWith(SignatureAlgorithm.HS512, secret) - .compact(); - } - - /** - * tokenлȡJWTеĸ - */ - private Claims getClaimsFromToken(String token) { - Claims claims = null; - try { - claims = Jwts.parser() - .setSigningKey(secret) - .parseClaimsJws(token) - .getBody(); - } catch (Exception e) { - LOGGER.info("JWTʽ֤ʧ:{}",token); - } - return claims; - } - - /** - * tokenĹʱ - */ - private Date generateExpirationDate() { - return new Date(System.currentTimeMillis() + expiration * 1000); - } - - /** - * tokenлȡ¼û - */ - public String getUserNameFromToken(String token) { - String username; - try { - Claims claims = getClaimsFromToken(token); - username = claims.getSubject(); - } catch (Exception e) { - username = null; - } - return username; - } - - /** - * ֤tokenǷЧ - * - * @param token ͻ˴token - * @param userDetails ݿвѯûϢ - */ - public boolean validateToken(String token, UserDetails userDetails) { - String username = getUserNameFromToken(token); - return username.equals(userDetails.getUsername()) && !isTokenExpired(token); - } - - /** - * жtokenǷѾʧЧ - */ - private boolean isTokenExpired(String token) { - Date expiredDate = getExpiredDateFromToken(token); - return expiredDate.before(new Date()); - } - - /** - * tokenлȡʱ - */ - private Date getExpiredDateFromToken(String token) { - Claims claims = getClaimsFromToken(token); - return claims.getExpiration(); - } - - /** - * ûϢtoken - */ - public String generateToken(UserDetails userDetails) { - Map claims = new HashMap<>(); - claims.put(CLAIM_KEY_USERNAME, userDetails.getUsername()); - claims.put(CLAIM_KEY_CREATED, new Date()); - return generateToken(claims); - } - - /** - * жtokenǷԱˢ - */ - public boolean canRefresh(String token) { - return !isTokenExpired(token); - } - - /** - * ˢtoken - */ - public String refreshToken(String token) { - Claims claims = getClaimsFromToken(token); - claims.put(CLAIM_KEY_CREATED, new Date()); - return generateToken(claims); - } -} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/util/RequestUtil.java b/代码库/mall-admin/src/main/java/com/sock/mall/util/RequestUtil.java deleted file mode 100644 index 0d1e12d..0000000 --- a/代码库/mall-admin/src/main/java/com/sock/mall/util/RequestUtil.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.macro.mall.util; - -import javax.servlet.http.HttpServletRequest; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.Map; - -/** - * request - */ -public class RequestUtil { - - /** - * Ƴrequestָ - */ - public String removeParam(HttpServletRequest request, String paramName) { - String queryString = ""; - Enumeration keys = request.getParameterNames(); - while (keys.hasMoreElements()) { - String key = (String) keys.nextElement(); - if (key.equals(paramName)) { - continue; - } - if ("".equals(queryString)) { - queryString = key + "=" + request.getParameter(key); - } else { - queryString += "&" + key + "=" + request.getParameter(key); - } - } - return queryString; - } - - /** - * ȡbasePath - */ - public static String getBasePath(HttpServletRequest request) { - StringBuffer basePath = new StringBuffer(); - String scheme = request.getScheme(); - String domain = request.getServerName(); - int port = request.getServerPort(); - basePath.append(scheme); - basePath.append("://"); - basePath.append(domain); - if("http".equalsIgnoreCase(scheme) && 80 != port) { - basePath.append(":").append(String.valueOf(port)); - } else if("https".equalsIgnoreCase(scheme) && port != 443) { - basePath.append(":").append(String.valueOf(port)); - } - return basePath.toString(); - } - - /** - * вתMap,for֧첽ص,ƽʱֱʹrequest.getParameterMap(),Map - */ - public static Map getParameterMap(HttpServletRequest request) { - Map result = new HashMap<>(); - Enumeration parameterNames = request.getParameterNames(); - while (parameterNames.hasMoreElements()) { - String parameterName = (String) parameterNames.nextElement(); - result.put(parameterName, request.getParameter(parameterName)); - } - return result; - } - -} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidator.java b/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidator.java new file mode 100644 index 0000000..516d3f5 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidator.java @@ -0,0 +1,22 @@ +package com.macro.mall.validator; + +import javax.validation.Constraint; +import javax.validation.Payload; +import java.lang.annotation.*; + +/** + * û֤״̬ǷָΧڵע + */ +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.FIELD,ElementType.PARAMETER}) +@Constraint(validatedBy = FlagValidatorClass.class) +public @interface FlagValidator { + String[] value() default {}; + + String message() default "flag is not found"; + + Class[] groups() default {}; + + Class[] payload() default {}; +} \ No newline at end of file diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidatorClass.java b/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidatorClass.java new file mode 100644 index 0000000..a38db5c --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/validator/FlagValidatorClass.java @@ -0,0 +1,31 @@ +package com.macro.mall.validator; + +import javax.validation.ConstraintValidator; +import javax.validation.ConstraintValidatorContext; + +/** + * ״̬У + */ +public class FlagValidatorClass implements ConstraintValidator { + private String[] values; + @Override + public void initialize(FlagValidator flagValidator) { + this.values = flagValidator.value(); + } + + @Override + public boolean isValid(Integer value, ConstraintValidatorContext constraintValidatorContext) { + boolean isValid = false; + if(value==null){ + //״̬ΪʱʹĬֵ + return true; + } + for(int i=0;i + 4.0.0 + + com.macro.mall + mall-admin + 0.0.1-SNAPSHOT + jar + + mall-admin + mall-admin project for mall + + + org.springframework.boot + spring-boot-starter-parent + 1.5.14.RELEASE + + + + + UTF-8 + UTF-8 + 1.8 + true + + + + + com.macro.mall + mall-mbg + 1.0-SNAPSHOT + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-security + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.2.0 + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-aop + + + + com.github.pagehelper + pagehelper-spring-boot-starter + 1.2.3 + + + + io.springfox + springfox-swagger2 + 2.6.1 + + + io.springfox + springfox-swagger-ui + 2.6.1 + + + + io.jsonwebtoken + jjwt + 0.9.0 + + + + com.aliyun.oss + aliyun-sdk-oss + 2.5.0 + + + + net.logstash.logback + logstash-logback-encoder + 4.8 + + + + com.alibaba + druid-spring-boot-starter + 1.1.10 + + + + org.projectlombok + lombok + true + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + com.spotify + docker-maven-plugin + 1.1.0 + + + build-image + package + + build + + + + + mall/${project.artifactId}:${project.version} + http://192.168.1.71:2375 + java:8 + ["java", "-jar", "-Dspring.profiles.active=prod","/${project.build.finalName}.jar"] + + + / + ${project.build.directory} + ${project.build.finalName}.jar + + + + + + + diff --git a/代码库/mall-admin/target/classes/application-dev.properties b/代码库/mall-admin/target/classes/application-dev.properties new file mode 100644 index 0000000..b458a3e --- /dev/null +++ b/代码库/mall-admin/target/classes/application-dev.properties @@ -0,0 +1,19 @@ +#===datasource start=== +spring.datasource.url=jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8 +spring.datasource.username=root +spring.datasource.password=root +#===datasource end=== + +#===druid start=== +#\u8FDE\u63A5\u6C60\u521D\u59CB\u5316\u5927\u5C0F +spring.datasource.druid.initial-size=5 +#\u6700\u5C0F\u7A7A\u95F2\u8FDE\u63A5\u6570 +spring.datasource.druid.min-idle=10 +#\u6700\u5927\u8FDE\u63A5\u6570 +spring.datasource.druid.max-active=20 +#\u4E0D\u7EDF\u8BA1\u8FD9\u4E9B\u8BF7\u6C42\u6570\u636E +spring.datasource.druid.web-stat-filter.exclusions=*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* +#\u8BBF\u95EE\u76D1\u63A7\u7F51\u9875\u7684\u767B\u5F55\u7528\u6237\u540D\u548C\u5BC6\u7801 +spring.datasource.druid.stat-view-servlet.login-username=druid +spring.datasource.druid.stat-view-servlet.login-password=druid +#===druid end=== \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/application-prod.properties b/代码库/mall-admin/target/classes/application-prod.properties new file mode 100644 index 0000000..55e63df --- /dev/null +++ b/代码库/mall-admin/target/classes/application-prod.properties @@ -0,0 +1,19 @@ +#===datasource start=== +spring.datasource.url=jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8 +spring.datasource.username=root +spring.datasource.password=root +#===datasource end=== + +#===druid start=== +#\u8FDE\u63A5\u6C60\u521D\u59CB\u5316\u5927\u5C0F +spring.datasource.druid.initial-size=5 +#\u6700\u5C0F\u7A7A\u95F2\u8FDE\u63A5\u6570 +spring.datasource.druid.min-idle=10 +#\u6700\u5927\u8FDE\u63A5\u6570 +spring.datasource.druid.max-active=20 +#\u4E0D\u7EDF\u8BA1\u8FD9\u4E9B\u8BF7\u6C42\u6570\u636E +spring.datasource.druid.web-stat-filter.exclusions=*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* +#\u8BBF\u95EE\u76D1\u63A7\u7F51\u9875\u7684\u767B\u5F55\u7528\u6237\u540D\u548C\u5BC6\u7801 +spring.datasource.druid.stat-view-servlet.login-username=druid +spring.datasource.druid.stat-view-servlet.login-password=druid +#===druid end=== \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/application-read.properties b/代码库/mall-admin/target/classes/application-read.properties new file mode 100644 index 0000000..e2cdd95 --- /dev/null +++ b/代码库/mall-admin/target/classes/application-read.properties @@ -0,0 +1,20 @@ +#===datasource start=== +#===just for read=== +spring.datasource.url=jdbc:mysql://localhost/mall?useUnicode=true&characterEncoding=utf-8 +spring.datasource.username=reader +spring.datasource.password=123456 +#===datasource end=== + +#===druid start=== +#\u8FDE\u63A5\u6C60\u521D\u59CB\u5316\u5927\u5C0F +spring.datasource.druid.initial-size=5 +#\u6700\u5C0F\u7A7A\u95F2\u8FDE\u63A5\u6570 +spring.datasource.druid.min-idle=10 +#\u6700\u5927\u8FDE\u63A5\u6570 +spring.datasource.druid.max-active=20 +#\u4E0D\u7EDF\u8BA1\u8FD9\u4E9B\u8BF7\u6C42\u6570\u636E +spring.datasource.druid.web-stat-filter.exclusions=*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* +#\u8BBF\u95EE\u76D1\u63A7\u7F51\u9875\u7684\u767B\u5F55\u7528\u6237\u540D\u548C\u5BC6\u7801 +spring.datasource.druid.stat-view-servlet.login-username=druid +spring.datasource.druid.stat-view-servlet.login-password=druid +#===druid end=== \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/application.properties b/代码库/mall-admin/target/classes/application.properties new file mode 100644 index 0000000..2825a90 --- /dev/null +++ b/代码库/mall-admin/target/classes/application.properties @@ -0,0 +1,47 @@ +#\u9ED8\u8BA4\u4E3A\u5F00\u53D1\u73AF\u5883 +spring.profiles.active=dev + +#===mybatis start=== +mybatis.mapper-locations=classpath:dao/*.xml,classpath*:com/**/mapper/*.xml +#===mybatis end=== + +#===log start=== +#\u65E5\u5FD7\u914D\u7F6EDEBUG,INFO,WARN,ERROR +logging.level.root=info +#\u5355\u72EC\u914D\u7F6E\u65E5\u5FD7\u7EA7\u522B +logging.level.com.macro.mall=debug +#\u914D\u7F6E\u65E5\u5FD7\u751F\u6210\u8DEF\u5F84 +#logging.path=/var/logs +#\u914D\u7F6E\u65E5\u5FD7\u6587\u4EF6\u540D\u79F0 +#logging.file=demo_log.log +#===log end=== + +#===thymeleaf start=== +spring.thymeleaf.mode=HTML5 +spring.thymeleaf.encoding=UTF-8 +spring.thymeleaf.content-type=text/html +#\u5F00\u53D1\u65F6\u5173\u95ED\u7F13\u5B58,\u4E0D\u7136\u6CA1\u6CD5\u770B\u5230\u5B9E\u65F6\u9875\u9762 +spring.thymeleaf.cache=false +#===thymeleaf end== + +#===JWT start=== +#JWT\u5B58\u50A8\u7684\u8BF7\u6C42\u5934 +jwt.tokenHeader=Authorization +#JWT\u52A0\u89E3\u5BC6\u4F7F\u7528\u7684\u5BC6\u94A5 +jwt.secret=mySecret +#JWT\u7684\u8D85\u671F\u9650\u65F6\u95F4(60*60*24) +jwt.expiration=604800 +#JWT\u8D1F\u8F7D\u4E2D\u62FF\u5230\u5F00\u5934 +jwt.tokenHead=Bearer +#===JWT end=== + +#===OSS start=== +aliyun.oss.endpoint=oss-cn-shenzhen.aliyuncs.com +aliyun.oss.accessKeyId=test +aliyun.oss.accessKeySecret=test +aliyun.oss.bucketName=macro-oss +aliyun.oss.policy.expire=300 +aliyun.oss.maxSize=10 +aliyun.oss.callback=http://localhost:8080/aliyun/oss/callback +aliyun.oss.dir.prefix=mall/images/ +#===OSS end=== \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/com/macro/mall/MallAdminApplication.class b/代码库/mall-admin/target/classes/com/macro/mall/MallAdminApplication.class new file mode 100644 index 0000000..6084829 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/MallAdminApplication.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/bo/AdminUserDetails.class b/代码库/mall-admin/target/classes/com/macro/mall/bo/AdminUserDetails.class new file mode 100644 index 0000000..3c50e7d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/bo/AdminUserDetails.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/bo/WebLog.class b/代码库/mall-admin/target/classes/com/macro/mall/bo/WebLog.class new file mode 100644 index 0000000..35f5d55 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/bo/WebLog.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/component/BindingResultAspect.class b/代码库/mall-admin/target/classes/com/macro/mall/component/BindingResultAspect.class new file mode 100644 index 0000000..be3019c Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/component/BindingResultAspect.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/component/JwtAuthenticationTokenFilter.class b/代码库/mall-admin/target/classes/com/macro/mall/component/JwtAuthenticationTokenFilter.class new file mode 100644 index 0000000..71ac765 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/component/JwtAuthenticationTokenFilter.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/component/RestAuthenticationEntryPoint.class b/代码库/mall-admin/target/classes/com/macro/mall/component/RestAuthenticationEntryPoint.class new file mode 100644 index 0000000..49f3e20 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/component/RestAuthenticationEntryPoint.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/component/RestfulAccessDeniedHandler.class b/代码库/mall-admin/target/classes/com/macro/mall/component/RestfulAccessDeniedHandler.class new file mode 100644 index 0000000..08f8054 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/component/RestfulAccessDeniedHandler.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/component/WebLogAspect.class b/代码库/mall-admin/target/classes/com/macro/mall/component/WebLogAspect.class new file mode 100644 index 0000000..4958059 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/component/WebLogAspect.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/config/OssConfig.class b/代码库/mall-admin/target/classes/com/macro/mall/config/OssConfig.class new file mode 100644 index 0000000..12977d6 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/config/OssConfig.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/config/SecurityConfig.class b/代码库/mall-admin/target/classes/com/macro/mall/config/SecurityConfig.class new file mode 100644 index 0000000..1c62a70 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/config/SecurityConfig.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/config/Swagger2Config.class b/代码库/mall-admin/target/classes/com/macro/mall/config/Swagger2Config.class new file mode 100644 index 0000000..a94bbd7 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/config/Swagger2Config.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsPrefrenceAreaController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsPrefrenceAreaController.class new file mode 100644 index 0000000..7f7cbbd Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsPrefrenceAreaController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsSubjectController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsSubjectController.class new file mode 100644 index 0000000..9ef650e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/CmsSubjectController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsCompanyAddressController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsCompanyAddressController.class new file mode 100644 index 0000000..537b87f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsCompanyAddressController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderController.class new file mode 100644 index 0000000..7287864 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnApplyController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnApplyController.class new file mode 100644 index 0000000..4e3966b Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnApplyController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnReasonController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnReasonController.class new file mode 100644 index 0000000..e0bf76d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderReturnReasonController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderSettingController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderSettingController.class new file mode 100644 index 0000000..84e55e3 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OmsOrderSettingController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/OssController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/OssController.class new file mode 100644 index 0000000..8edb6d1 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/OssController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsBrandController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsBrandController.class new file mode 100644 index 0000000..c16b29d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsBrandController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeCategoryController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeCategoryController.class new file mode 100644 index 0000000..cee0d19 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeCategoryController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeController.class new file mode 100644 index 0000000..6904127 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductAttributeController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductCategoryController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductCategoryController.class new file mode 100644 index 0000000..042200e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductCategoryController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductController.class new file mode 100644 index 0000000..0eec460 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsProductController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsSkuStockController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsSkuStockController.class new file mode 100644 index 0000000..c021e0a Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/PmsSkuStockController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponController.class new file mode 100644 index 0000000..a7c290a Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponHistoryController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponHistoryController.class new file mode 100644 index 0000000..07f89bb Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsCouponHistoryController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionController.class new file mode 100644 index 0000000..976a2d1 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionProductRelationController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionProductRelationController.class new file mode 100644 index 0000000..fe1747e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionProductRelationController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionSessionController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionSessionController.class new file mode 100644 index 0000000..b41b090 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsFlashPromotionSessionController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeAdvertiseController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeAdvertiseController.class new file mode 100644 index 0000000..a84ceab Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeAdvertiseController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeBrandController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeBrandController.class new file mode 100644 index 0000000..9b31319 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeBrandController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeNewProductController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeNewProductController.class new file mode 100644 index 0000000..38e436c Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeNewProductController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendProductController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendProductController.class new file mode 100644 index 0000000..a0e6854 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendProductController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendSubjectController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendSubjectController.class new file mode 100644 index 0000000..12f8d21 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/SmsHomeRecommendSubjectController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsAdminController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsAdminController.class new file mode 100644 index 0000000..85cc7e5 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsAdminController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsMemberLevelController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsMemberLevelController.class new file mode 100644 index 0000000..6d6adca Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsMemberLevelController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsPermissionController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsPermissionController.class new file mode 100644 index 0000000..be3cb09 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsPermissionController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsRoleController.class b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsRoleController.class new file mode 100644 index 0000000..d54595a Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/controller/UmsRoleController.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.class new file mode 100644 index 0000000..da69b9d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsSubjectProductRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsSubjectProductRelationDao.class new file mode 100644 index 0000000..71f5ea3 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/CmsSubjectProductRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderDao.class new file mode 100644 index 0000000..1324dfa Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderOperateHistoryDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderOperateHistoryDao.class new file mode 100644 index 0000000..c6b7c27 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderOperateHistoryDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderReturnApplyDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderReturnApplyDao.class new file mode 100644 index 0000000..054e0e9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/OmsOrderReturnApplyDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsMemberPriceDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsMemberPriceDao.class new file mode 100644 index 0000000..830750b Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsMemberPriceDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeCategoryDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeCategoryDao.class new file mode 100644 index 0000000..3c87285 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeCategoryDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeDao.class new file mode 100644 index 0000000..eaa30c4 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeValueDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeValueDao.class new file mode 100644 index 0000000..9514d32 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductAttributeValueDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.class new file mode 100644 index 0000000..696e700 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryDao.class new file mode 100644 index 0000000..c2202cd Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductCategoryDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductDao.class new file mode 100644 index 0000000..241687b Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductFullReductionDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductFullReductionDao.class new file mode 100644 index 0000000..c5597ec Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductFullReductionDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductLadderDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductLadderDao.class new file mode 100644 index 0000000..e47ff64 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductLadderDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductVertifyRecordDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductVertifyRecordDao.class new file mode 100644 index 0000000..95a0a47 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsProductVertifyRecordDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsSkuStockDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsSkuStockDao.class new file mode 100644 index 0000000..8a84272 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/PmsSkuStockDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponDao.class new file mode 100644 index 0000000..3afdde4 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.class new file mode 100644 index 0000000..1bed2b7 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductRelationDao.class new file mode 100644 index 0000000..9f5fc68 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsCouponProductRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.class new file mode 100644 index 0000000..0259829 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminPermissionRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminPermissionRelationDao.class new file mode 100644 index 0000000..b79f087 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminPermissionRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminRoleRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminRoleRelationDao.class new file mode 100644 index 0000000..61d45ca Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsAdminRoleRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsRolePermissionRelationDao.class b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsRolePermissionRelationDao.class new file mode 100644 index 0000000..fd72405 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dao/UmsRolePermissionRelationDao.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/CommonResult.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/CommonResult.class new file mode 100644 index 0000000..9f9fdba Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/CommonResult.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsMoneyInfoParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsMoneyInfoParam.class new file mode 100644 index 0000000..67017f5 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsMoneyInfoParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDeliveryParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDeliveryParam.class new file mode 100644 index 0000000..e40beb4 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDeliveryParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDetail.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDetail.class new file mode 100644 index 0000000..4a64e9f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderDetail.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderQueryParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderQueryParam.class new file mode 100644 index 0000000..4c42390 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderQueryParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderReturnApplyResult.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderReturnApplyResult.class new file mode 100644 index 0000000..56b7df1 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsOrderReturnApplyResult.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReceiverInfoParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReceiverInfoParam.class new file mode 100644 index 0000000..404c512 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReceiverInfoParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReturnApplyQueryParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReturnApplyQueryParam.class new file mode 100644 index 0000000..6a914bb Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsReturnApplyQueryParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsUpdateStatusParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsUpdateStatusParam.class new file mode 100644 index 0000000..bfee8af Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OmsUpdateStatusParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackParam.class new file mode 100644 index 0000000..15b599e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackResult.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackResult.class new file mode 100644 index 0000000..2dfdb06 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssCallbackResult.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/OssPolicyResult.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssPolicyResult.class new file mode 100644 index 0000000..2213e8e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/OssPolicyResult.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsBrandParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsBrandParam.class new file mode 100644 index 0000000..04a6824 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsBrandParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeCategoryItem.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeCategoryItem.class new file mode 100644 index 0000000..d873e88 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeCategoryItem.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeParam.class new file mode 100644 index 0000000..9f306da Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductAttributeParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryParam.class new file mode 100644 index 0000000..e577498 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.class new file mode 100644 index 0000000..1f4e4ea Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductParam.class new file mode 100644 index 0000000..0672f08 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductQueryParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductQueryParam.class new file mode 100644 index 0000000..c19595e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductQueryParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductResult.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductResult.class new file mode 100644 index 0000000..3d91de9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/PmsProductResult.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/ProductAttrInfo.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/ProductAttrInfo.class new file mode 100644 index 0000000..879ac6d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/ProductAttrInfo.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsCouponParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsCouponParam.class new file mode 100644 index 0000000..2623120 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsCouponParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionProduct.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionProduct.class new file mode 100644 index 0000000..7638a78 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionProduct.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionSessionDetail.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionSessionDetail.class new file mode 100644 index 0000000..c8416dd Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/SmsFlashPromotionSessionDetail.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminLoginParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminLoginParam.class new file mode 100644 index 0000000..485062f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminLoginParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminParam.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminParam.class new file mode 100644 index 0000000..24a2413 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsAdminParam.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsPermissionNode.class b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsPermissionNode.class new file mode 100644 index 0000000..fc8136a Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/dto/UmsPermissionNode.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/CmsPrefrenceAreaService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/CmsPrefrenceAreaService.class new file mode 100644 index 0000000..e52b06e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/CmsPrefrenceAreaService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/CmsSubjectService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/CmsSubjectService.class new file mode 100644 index 0000000..641ccf9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/CmsSubjectService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OmsCompanyAddressService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsCompanyAddressService.class new file mode 100644 index 0000000..3a3789c Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsCompanyAddressService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnApplyService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnApplyService.class new file mode 100644 index 0000000..32191bc Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnApplyService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnReasonService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnReasonService.class new file mode 100644 index 0000000..d1830cf Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderReturnReasonService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderService.class new file mode 100644 index 0000000..e0316d3 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderSettingService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderSettingService.class new file mode 100644 index 0000000..8f763f9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OmsOrderSettingService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/OssService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/OssService.class new file mode 100644 index 0000000..982a33d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/OssService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsBrandService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsBrandService.class new file mode 100644 index 0000000..a45c741 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsBrandService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeCategoryService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeCategoryService.class new file mode 100644 index 0000000..80b4d96 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeCategoryService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeService.class new file mode 100644 index 0000000..02cf0bc Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductAttributeService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductCategoryService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductCategoryService.class new file mode 100644 index 0000000..94db366 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductCategoryService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductService.class new file mode 100644 index 0000000..dc8bdc5 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsProductService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/PmsSkuStockService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsSkuStockService.class new file mode 100644 index 0000000..b64c10d Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/PmsSkuStockService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponHistoryService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponHistoryService.class new file mode 100644 index 0000000..ee8f1af Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponHistoryService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponService.class new file mode 100644 index 0000000..12c4d59 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsCouponService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionProductRelationService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionProductRelationService.class new file mode 100644 index 0000000..dd7bf80 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionProductRelationService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionService.class new file mode 100644 index 0000000..c880f36 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionSessionService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionSessionService.class new file mode 100644 index 0000000..e5fa173 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsFlashPromotionSessionService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeAdvertiseService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeAdvertiseService.class new file mode 100644 index 0000000..8030626 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeAdvertiseService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeBrandService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeBrandService.class new file mode 100644 index 0000000..42cd533 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeBrandService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeNewProductService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeNewProductService.class new file mode 100644 index 0000000..1f0801a Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeNewProductService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendProductService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendProductService.class new file mode 100644 index 0000000..a85df8e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendProductService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendSubjectService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendSubjectService.class new file mode 100644 index 0000000..259c55e Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/SmsHomeRecommendSubjectService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/UmsAdminService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsAdminService.class new file mode 100644 index 0000000..534bcc8 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsAdminService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/UmsMemberLevelService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsMemberLevelService.class new file mode 100644 index 0000000..ad46231 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsMemberLevelService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/UmsPermissionService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsPermissionService.class new file mode 100644 index 0000000..7157582 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsPermissionService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/UmsRoleService.class b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsRoleService.class new file mode 100644 index 0000000..0a008b4 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/UmsRoleService.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.class new file mode 100644 index 0000000..d864021 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsSubjectServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsSubjectServiceImpl.class new file mode 100644 index 0000000..89a27e4 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/CmsSubjectServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.class new file mode 100644 index 0000000..b2293a9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.class new file mode 100644 index 0000000..16c08d5 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.class new file mode 100644 index 0000000..0bc4155 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderServiceImpl.class new file mode 100644 index 0000000..14656c6 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.class new file mode 100644 index 0000000..497db26 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OssServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OssServiceImpl.class new file mode 100644 index 0000000..52c9cf9 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/OssServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsBrandServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsBrandServiceImpl.class new file mode 100644 index 0000000..4787863 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsBrandServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.class new file mode 100644 index 0000000..238148f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.class new file mode 100644 index 0000000..b1a5414 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.class new file mode 100644 index 0000000..2992a45 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductServiceImpl.class new file mode 100644 index 0000000..e2fc236 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsProductServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsSkuStockServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsSkuStockServiceImpl.class new file mode 100644 index 0000000..8cfafae Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/PmsSkuStockServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.class new file mode 100644 index 0000000..3f6fb0f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponServiceImpl.class new file mode 100644 index 0000000..4be87e7 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsCouponServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.class new file mode 100644 index 0000000..41f9cfe Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.class new file mode 100644 index 0000000..80150e2 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.class new file mode 100644 index 0000000..9d31c67 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.class new file mode 100644 index 0000000..7e00e05 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.class new file mode 100644 index 0000000..f4802ba Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.class new file mode 100644 index 0000000..51d7648 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.class new file mode 100644 index 0000000..8900bfb Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.class new file mode 100644 index 0000000..27ccc64 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsAdminServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsAdminServiceImpl.class new file mode 100644 index 0000000..443f865 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsAdminServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.class new file mode 100644 index 0000000..7dfdf1f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsPermissionServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsPermissionServiceImpl.class new file mode 100644 index 0000000..1074950 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsPermissionServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsRoleServiceImpl.class b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsRoleServiceImpl.class new file mode 100644 index 0000000..d8ef8b6 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/service/impl/UmsRoleServiceImpl.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/util/JsonUtil.class b/代码库/mall-admin/target/classes/com/macro/mall/util/JsonUtil.class new file mode 100644 index 0000000..ce3e1f8 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/util/JsonUtil.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/util/JwtTokenUtil.class b/代码库/mall-admin/target/classes/com/macro/mall/util/JwtTokenUtil.class new file mode 100644 index 0000000..02e1d2f Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/util/JwtTokenUtil.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/util/RequestUtil.class b/代码库/mall-admin/target/classes/com/macro/mall/util/RequestUtil.class new file mode 100644 index 0000000..c900ac3 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/util/RequestUtil.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidator.class b/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidator.class new file mode 100644 index 0000000..caccd34 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidator.class differ diff --git a/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidatorClass.class b/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidatorClass.class new file mode 100644 index 0000000..f1f4e97 Binary files /dev/null and b/代码库/mall-admin/target/classes/com/macro/mall/validator/FlagValidatorClass.class differ diff --git a/代码库/mall-admin/target/classes/dao/CmsPrefrenceAreaProductRelationDao.xml b/代码库/mall-admin/target/classes/dao/CmsPrefrenceAreaProductRelationDao.xml new file mode 100644 index 0000000..9d21467 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/CmsPrefrenceAreaProductRelationDao.xml @@ -0,0 +1,11 @@ + + + + + insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id) values + + (#{item.prefrenceAreaId,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/CmsSubjectProductRelationDao.xml b/代码库/mall-admin/target/classes/dao/CmsSubjectProductRelationDao.xml new file mode 100644 index 0000000..653c767 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/CmsSubjectProductRelationDao.xml @@ -0,0 +1,11 @@ + + + + + insert into cms_subject_product_relation (subject_id, product_id) values + + (#{item.subjectId,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/OmsOrderDao.xml b/代码库/mall-admin/target/classes/dao/OmsOrderDao.xml new file mode 100644 index 0000000..0b0d45e --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/OmsOrderDao.xml @@ -0,0 +1,93 @@ + + + + + + + + + + UPDATE oms_order + SET + delivery_sn = CASE id + + WHEN #{item.orderId} THEN #{item.deliverySn} + + END, + delivery_company = CASE id + + WHEN #{item.orderId} THEN #{item.deliveryCompany} + + END, + delivery_time = CASE id + + WHEN #{item.orderId} THEN now() + + END, + `status` = CASE id + + WHEN #{item.orderId} THEN 2 + + END + WHERE + id IN + + #{item.orderId} + + AND `status` = 1 + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/OmsOrderOperateHistoryDao.xml b/代码库/mall-admin/target/classes/dao/OmsOrderOperateHistoryDao.xml new file mode 100644 index 0000000..ce9880a --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/OmsOrderOperateHistoryDao.xml @@ -0,0 +1,14 @@ + + + + + INSERT INTO oms_order_operate_history (order_id, operate_man, create_time, order_status, note) VALUES + + (#{item.orderId}, + #{item.operateMan}, + #{item.createTime,jdbcType=TIMESTAMP}, + #{item.orderStatus}, + #{item.note}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/OmsOrderReturnApplyDao.xml b/代码库/mall-admin/target/classes/dao/OmsOrderReturnApplyDao.xml new file mode 100644 index 0000000..971e741 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/OmsOrderReturnApplyDao.xml @@ -0,0 +1,59 @@ + + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsMemberPriceDao.xml b/代码库/mall-admin/target/classes/dao/PmsMemberPriceDao.xml new file mode 100644 index 0000000..d33425f --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsMemberPriceDao.xml @@ -0,0 +1,14 @@ + + + + + + INSERT INTO pms_member_price (product_id, member_level_id, member_price,member_level_name) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.memberLevelId,jdbcType=BIGINT}, + #{item.memberPrice,jdbcType=DECIMAL}, + #{item.memberLevelName,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductAttributeCategoryDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductAttributeCategoryDao.xml new file mode 100644 index 0000000..3239a50 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductAttributeCategoryDao.xml @@ -0,0 +1,19 @@ + + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductAttributeDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductAttributeDao.xml new file mode 100644 index 0000000..3a4d713 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductAttributeDao.xml @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductAttributeValueDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductAttributeValueDao.xml new file mode 100644 index 0000000..75236d4 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductAttributeValueDao.xml @@ -0,0 +1,12 @@ + + + + + insert into pms_product_attribute_value (product_id,product_attribute_id,value) values + + (#{item.productId,jdbcType=BIGINT}, + #{item.productAttributeId,jdbcType=BIGINT}, + #{item.value,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductCategoryAttributeRelationDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductCategoryAttributeRelationDao.xml new file mode 100644 index 0000000..e357163 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductCategoryAttributeRelationDao.xml @@ -0,0 +1,12 @@ + + + + + + INSERT INTO pms_product_category_attribute_relation (product_category_id, product_attribute_id) VALUES + + (#{item.productCategoryId,jdbcType=BIGINT}, + #{item.productAttributeId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductCategoryDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductCategoryDao.xml new file mode 100644 index 0000000..33be6e1 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductCategoryDao.xml @@ -0,0 +1,18 @@ + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductDao.xml new file mode 100644 index 0000000..d6d2fa8 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductDao.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductFullReductionDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductFullReductionDao.xml new file mode 100644 index 0000000..38fea50 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductFullReductionDao.xml @@ -0,0 +1,12 @@ + + + + + INSERT INTO pms_product_full_reduction (product_id, full_price, reduce_price) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.fullPrice,jdbcType=DECIMAL}, + #{item.reducePrice,jdbcType=DECIMAL}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductLadderDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductLadderDao.xml new file mode 100644 index 0000000..7be6e28 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductLadderDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO pms_product_ladder (product_id, count, discount, price) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.count,jdbcType=INTEGER}, + #{item.discount,jdbcType=DECIMAL}, + #{item.price,jdbcType=DECIMAL}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsProductVertifyRecordDao.xml b/代码库/mall-admin/target/classes/dao/PmsProductVertifyRecordDao.xml new file mode 100644 index 0000000..7035905 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsProductVertifyRecordDao.xml @@ -0,0 +1,15 @@ + + + + + + insert into pms_product_vertify_record (product_id, create_time, vertify_man,status, detail) values + + (#{item.productId,jdbcType=BIGINT}, + #{item.createTime,jdbcType=TIMESTAMP}, + #{item.vertifyMan,jdbcType=VARCHAR}, + #{item.status,jdbcType=INTEGER}, + #{item.detail,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/PmsSkuStockDao.xml b/代码库/mall-admin/target/classes/dao/PmsSkuStockDao.xml new file mode 100644 index 0000000..483592f --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/PmsSkuStockDao.xml @@ -0,0 +1,35 @@ + + + + + INSERT INTO pms_sku_stock (product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.skuCode,jdbcType=VARCHAR}, + #{item.price,jdbcType=DECIMAL}, + #{item.stock,jdbcType=INTEGER}, + #{item.lowStock,jdbcType=INTEGER}, + #{item.sp1,jdbcType=VARCHAR}, + #{item.sp2,jdbcType=VARCHAR}, + #{item.sp3,jdbcType=VARCHAR}, + #{item.pic,jdbcType=VARCHAR}, + #{item.sale,jdbcType=INTEGER}) + + + + REPLACE INTO pms_sku_stock (id,product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale) VALUES + + (#{item.id,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}, + #{item.skuCode,jdbcType=VARCHAR}, + #{item.price,jdbcType=DECIMAL}, + #{item.stock,jdbcType=INTEGER}, + #{item.lowStock,jdbcType=INTEGER}, + #{item.sp1,jdbcType=VARCHAR}, + #{item.sp2,jdbcType=VARCHAR}, + #{item.sp3,jdbcType=VARCHAR}, + #{item.pic,jdbcType=VARCHAR}, + #{item.sale,jdbcType=INTEGER}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/SmsCouponDao.xml b/代码库/mall-admin/target/classes/dao/SmsCouponDao.xml new file mode 100644 index 0000000..e3da460 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/SmsCouponDao.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/SmsCouponProductCategoryRelationDao.xml b/代码库/mall-admin/target/classes/dao/SmsCouponProductCategoryRelationDao.xml new file mode 100644 index 0000000..a138a24 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/SmsCouponProductCategoryRelationDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO sms_coupon_product_category_relation (product_category_id,product_category_name,parent_category_name,coupon_id) VALUES + + (#{item.productCategoryId,jdbcType=BIGINT}, + #{item.productCategoryName,jdbcType=VARCHAR}, + #{item.parentCategoryName,jdbcType=VARCHAR}, + #{item.couponId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/SmsCouponProductRelationDao.xml b/代码库/mall-admin/target/classes/dao/SmsCouponProductRelationDao.xml new file mode 100644 index 0000000..74bff5d --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/SmsCouponProductRelationDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO sms_coupon_product_relation (product_id,product_name,product_sn,coupon_id) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.productName,jdbcType=VARCHAR}, + #{item.productSn,jdbcType=VARCHAR}, + #{item.couponId,jdbcType=INTEGER}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/SmsFlashPromotionProductRelationDao.xml b/代码库/mall-admin/target/classes/dao/SmsFlashPromotionProductRelationDao.xml new file mode 100644 index 0000000..f00afc2 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/SmsFlashPromotionProductRelationDao.xml @@ -0,0 +1,30 @@ + + + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/UmsAdminPermissionRelationDao.xml b/代码库/mall-admin/target/classes/dao/UmsAdminPermissionRelationDao.xml new file mode 100644 index 0000000..4ce5e63 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/UmsAdminPermissionRelationDao.xml @@ -0,0 +1,13 @@ + + + + + + INSERT INTO ums_admin_permission_relation (admin_id, permission_id, type) VALUES + + (#{item.adminId,jdbcType=BIGINT}, + #{item.permissionId,jdbcType=BIGINT}, + #{item.type,jdbcType=INTEGER}) + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/UmsAdminRoleRelationDao.xml b/代码库/mall-admin/target/classes/dao/UmsAdminRoleRelationDao.xml new file mode 100644 index 0000000..05c94c8 --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/UmsAdminRoleRelationDao.xml @@ -0,0 +1,55 @@ + + + + + + INSERT INTO ums_admin_role_relation (admin_id, role_id) VALUES + + (#{item.adminId,jdbcType=BIGINT}, + #{item.roleId,jdbcType=BIGINT}) + + + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/dao/UmsRolePermissionRelationDao.xml b/代码库/mall-admin/target/classes/dao/UmsRolePermissionRelationDao.xml new file mode 100644 index 0000000..0d3bbfd --- /dev/null +++ b/代码库/mall-admin/target/classes/dao/UmsRolePermissionRelationDao.xml @@ -0,0 +1,21 @@ + + + + + + INSERT INTO ums_role_permission_relation (role_id, permission_id) VALUES + + (#{item.roleId,jdbcType=BIGINT}, + #{item.permissionId,jdbcType=BIGINT}) + + + + \ No newline at end of file diff --git a/代码库/mall-admin/target/classes/logback-spring.xml b/代码库/mall-admin/target/classes/logback-spring.xml new file mode 100644 index 0000000..bda9284 --- /dev/null +++ b/代码库/mall-admin/target/classes/logback-spring.xml @@ -0,0 +1,31 @@ + + + + + + + + + + ${APP_NAME} + + + + ${LOG_FILE_PATH}/${APP_NAME}-%d{yyyy-MM-dd}.log + 30 + + + ${FILE_LOG_PATTERN} + + + + + localhost:4560 + + + + + + + +